Ticket #53206: Portfile

File Portfile, 1.4 KB (added by gallafent, 8 years ago)

Portfile adapted from those from xar and xar-devel to fetch and build 1.6.1 from github

Line 
1# $Id$
2
3PortSystem 1.0
4
5name                xar
6version             1.6.1
7
8categories          archivers sysutils
9platforms           darwin freebsd linux
10license             BSD
11description         xar is the eXtensible ARchiver
12maintainers         mww
13long_description    ${description}
14homepage            http://mackyle.github.io/xar/
15master_sites        https://github.com/downloads/mackyle/xar/
16checksums           rmd160 4f33141a065e737af2d78b2f17da058010dcaf15 \
17                    sha256 ee46089968457cf710b8cf1bdeb98b7ef232eb8a4cdeb34502e1f16ef4d2153e
18
19depends_lib         port:bzip2 \
20                    port:xz \
21                    port:libiconv \
22                    port:libxml2 \
23                    path:lib/libssl.dylib:openssl \
24                    port:zlib
25
26patchfiles          patch-ext2.c
27
28configure.args      --mandir=${prefix}/share/man \
29                    --with-libz=${prefix} \
30                    --with-libbzip2=${prefix} \
31                    --with-liblzma=${prefix} \
32                    --with-libcrypto=${prefix} \
33                    --with-xml2-config=${prefix}/bin/xml2-config
34
35post-destroot {
36    reinplace "s/installed=no/installed=yes/" ${destpath}${prefix}/lib/libxar.la
37}
38
39# ToDo: Switch livecheck to point at (for example):
40# https://github.com/mackyle/xar/archive/xar-1.6.1.tar.gz
41#livecheck.type      regex
42#livecheck.url       http://code.google.com/p/xar/downloads/list?can=2&q=&sort=-uploaded
43#livecheck.regex     files/xar-(\[0-9\.\]+).tar.gz
44