1 | # $Id: Portfile 95581 2012-07-17 06:17:15Z jmr@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name libcipher |
---|
6 | version 4.7-RELEASE |
---|
7 | revision 1 |
---|
8 | categories devel |
---|
9 | license BSD |
---|
10 | platforms darwin |
---|
11 | maintainers nomaintainer |
---|
12 | description Cipher routines from FreeBSD |
---|
13 | long_description ${description} |
---|
14 | |
---|
15 | homepage http://svnweb.FreeBSD.org/base/release/4.7.0/secure/lib/libcipher/ |
---|
16 | master_sites macports |
---|
17 | use_bzip2 yes |
---|
18 | |
---|
19 | checksums md5 e322740002fc69c1e4e390ba461835d2 \ |
---|
20 | sha1 16d5f31be00361b61f0f1b50a63cad1b31619462 \ |
---|
21 | rmd160 5a619279536eb7258533cf477e10ce5eae1d1d7c |
---|
22 | |
---|
23 | patchfiles patch-Makefile \ |
---|
24 | patch-crypt.c |
---|
25 | |
---|
26 | worksrcdir ${name} |
---|
27 | |
---|
28 | use_configure no |
---|
29 | |
---|
30 | build.type bsd |
---|
31 | build.args "LDADD=\"-install_name ${prefix}/lib/libcipher.1.dylib\"" \ |
---|
32 | "CFLAGS=\"${configure.cflags}\"" |
---|
33 | |
---|
34 | destroot { |
---|
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 | |
---|
48 | variant universal { |
---|
49 | build.args-append "CFLAGS+=\"${configure.universal_cflags}\"" \ |
---|
50 | "LDADD+=\"${configure.universal_ldflags}\"" |
---|
51 | } |
---|