Ticket #40489: Portfile

File Portfile, 1.5 KB (added by casner@…, 11 years ago)

Updated Portfile to include the additional patch

Line 
1# $Id: Portfile 95581 2012-07-17 06:17:15Z jmr@macports.org $
2
3PortSystem      1.0
4
5name            libcipher
6version         4.7-RELEASE
7revision        1
8categories      devel
9license         BSD
10platforms       darwin
11maintainers     nomaintainer
12description     Cipher routines from FreeBSD
13long_description    ${description}
14
15homepage        http://svnweb.FreeBSD.org/base/release/4.7.0/secure/lib/libcipher/
16master_sites    macports
17use_bzip2       yes
18
19checksums       md5 e322740002fc69c1e4e390ba461835d2 \
20                sha1 16d5f31be00361b61f0f1b50a63cad1b31619462 \
21                rmd160 5a619279536eb7258533cf477e10ce5eae1d1d7c
22
23patchfiles      patch-Makefile \
24                patch-crypt.c
25
26worksrcdir      ${name}
27
28use_configure   no
29
30build.type      bsd
31build.args      "LDADD=\"-install_name ${prefix}/lib/libcipher.1.dylib\"" \
32                "CFLAGS=\"${configure.cflags}\""
33
34destroot {
35    xinstall ${worksrcpath}/libcipher.1.dylib \
36        ${destroot}${prefix}/lib
37
38    system "cd ${destroot}${prefix}/lib &&
39        ln -s libcipher.1.dylib libcipher.dylib"
40
41    xinstall -m 0444 ${worksrcpath}/cipher.3 ${destroot}${prefix}/share/man/man3
42
43    set docdir ${prefix}/share/doc/${name}-${version}
44    xinstall -d ${destroot}${docdir}
45    xinstall -m 0644 ${worksrcpath}/README ${destroot}${docdir}
46}
47
48variant universal {
49    build.args-append   "CFLAGS+=\"${configure.universal_cflags}\"" \
50                        "LDADD+=\"${configure.universal_ldflags}\""
51}