1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup github 1.0 |
---|
5 | |
---|
6 | github.setup maxmind libmaxminddb 1.3.2 |
---|
7 | revision 0 |
---|
8 | checksums rmd160 199373bd1003493fb17ee855b5a5f9ff75a70afa \ |
---|
9 | sha256 e6f881aa6bd8cfa154a44d965450620df1f714c6dc9dd9971ad98f6e04f6c0f0 \ |
---|
10 | size 619009 |
---|
11 | |
---|
12 | categories devel net |
---|
13 | platforms darwin |
---|
14 | license Apache-2 |
---|
15 | maintainers nomaintainer |
---|
16 | |
---|
17 | description The libmaxminddb library provides a C library for reading \ |
---|
18 | MaxMind DB files, including the GeoIP2 databases from MaxMind. |
---|
19 | |
---|
20 | long_description ${description} This is a custom binary format designed to facilitate \ |
---|
21 | fast lookups of IP addresses while allowing for great flexibility \ |
---|
22 | in the type of data associated with an address.\n\n\The \ |
---|
23 | MaxMind DB format is an open format. The spec is available at \ |
---|
24 | http://maxmind.github.io/MaxMind-DB/. This spec is licensed under the \ |
---|
25 | Creative Commons Attribution-ShareAlike 3.0 Unported License.\n\n\See \ |
---|
26 | http://dev.maxmind.com/ for more details about MaxMind's \ |
---|
27 | GeoIP2 products.\n |
---|
28 | |
---|
29 | homepage https://maxmind.github.io/libmaxminddb/ |
---|
30 | github.tarball_from releases |
---|
31 | |
---|
32 | depends_build port:automake port:autoconf port:libtool |
---|
33 | |
---|
34 | variant universal {} |
---|
35 | |
---|
36 | # For the t/libtap subdirectory. |
---|
37 | build.env-append CC="${configure.cc}" \ |
---|
38 | CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \ |
---|
39 | LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" |
---|
40 | |
---|
41 | test.run yes |
---|
42 | test.target check |
---|
43 | |
---|
44 | post-destroot { |
---|
45 | xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name} |
---|
46 | xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/doc |
---|
47 | xinstall -m 0644 -W ${worksrcpath} AUTHORS Changes.md \ |
---|
48 | LICENSE NOTICE README.md ${destroot}${prefix}/share/doc/${name} |
---|
49 | xinstall -m 0644 -W ${worksrcpath}/doc libmaxminddb.md mmdblookup.md \ |
---|
50 | ${destroot}${prefix}/share/doc/${name}/doc |
---|
51 | } |
---|