source: trunk/dports/devel/libcipher/Portfile

Last change on this file was 111145, checked in by ryandesign@…, 4 years ago

libcipher: fix build with latest clang (#40489)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 111145 2013-09-16 01:03:39Z ryandesign@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.diff \
24                patch-crypt.c.diff
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}
Note: See TracBrowser for help on using the repository browser.