Ticket #44709: Portfile

File Portfile, 2.2 KB (added by ryandesign (Ryan Carsten Schmidt), 5 years ago)

Working Portfile created by Eric F (iEFdev) modified slightly by me

Line 
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
3PortSystem          1.0
4PortGroup           github 1.0
5
6github.setup        maxmind libmaxminddb 1.3.2
7revision            0
8checksums           rmd160  199373bd1003493fb17ee855b5a5f9ff75a70afa \
9                    sha256  e6f881aa6bd8cfa154a44d965450620df1f714c6dc9dd9971ad98f6e04f6c0f0 \
10                    size    619009
11
12categories          devel net
13platforms           darwin
14license             Apache-2
15maintainers         nomaintainer
16
17description         The libmaxminddb library provides a C library for reading \
18                    MaxMind DB files, including the GeoIP2 databases from MaxMind.
19
20long_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
29homepage            https://maxmind.github.io/libmaxminddb/
30github.tarball_from releases
31
32depends_build       port:automake port:autoconf port:libtool
33
34variant universal {}
35
36# For the t/libtap subdirectory.
37build.env-append    CC="${configure.cc}" \
38                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
39                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
40
41test.run            yes
42test.target         check
43
44post-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}