[29029] trunk/dports/devel/libcipher/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 13 06:36:21 PDT 2007


Revision: 29029
          http://trac.macosforge.org/projects/macports/changeset/29029
Author:   nox at macports.org
Date:     2007-09-13 06:36:20 -0700 (Thu, 13 Sep 2007)

Log Message:
-----------
libcipher:
 * Added universal support.
 * Added sha1 and rmd160 checksums.
 * Added standard doc install.
 * Removed cd call.
 * Added manpage.

Modified Paths:
--------------
    trunk/dports/devel/libcipher/Portfile

Modified: trunk/dports/devel/libcipher/Portfile
===================================================================
--- trunk/dports/devel/libcipher/Portfile	2007-09-13 12:25:10 UTC (rev 29028)
+++ trunk/dports/devel/libcipher/Portfile	2007-09-13 13:36:20 UTC (rev 29029)
@@ -3,16 +3,19 @@
 PortSystem      1.0
 name            libcipher
 version         4.7-RELEASE
+revision        1
 categories      devel
 platforms       darwin
 maintainers     nomaintainer
 description     Cipher routines from FreeBSD
 
 #homepage
-master_sites	opendarwin
+master_sites    macports
 use_bzip2       yes
 
-checksums       md5 e322740002fc69c1e4e390ba461835d2
+checksums       md5 e322740002fc69c1e4e390ba461835d2 \
+                sha1 16d5f31be00361b61f0f1b50a63cad1b31619462 \
+                rmd160 5a619279536eb7258533cf477e10ce5eae1d1d7c
 
 patchfiles      patch-Makefile
 
@@ -21,15 +24,25 @@
 use_configure   no
 
 build.type      bsd
-build.env       LDADD=-install_name\\ ${prefix}/lib/libcipher.1.dylib
+build.args      "LDADD=\"-install_name ${prefix}/lib/libcipher.1.dylib\"" \
+                "CFLAGS=\"${configure.cflags}\""
 
 destroot {
-    cd ${worksrcpath}
+    xinstall ${worksrcpath}/libcipher.1.dylib \
+        ${destroot}${prefix}/lib
 
-    xinstall -m 755 -d ${destroot}${prefix}/lib
-    xinstall -m 755 -c libcipher.1.dylib \
-        ${destroot}${prefix}/lib
-    system "ln -sf libcipher.1.dylib \
-        ${destroot}${prefix}/lib/libcipher.dylib"
+    system "cd ${destroot}${prefix}/lib &&
+        ln -s libcipher.1.dylib libcipher.dylib"
+
+    xinstall -m 0444 ${worksrcpath}/cipher.3 ${destroot}${prefix}/share/man/man3
+
+    set docdir ${prefix}/share/doc/${name}-${version}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 0644 ${worksrcpath}/README ${destroot}${docdir}
 }
 
+variant universal {
+    build.args-append   "CFLAGS+=\"${configure.universal_cflags}\"" \
+                        "LDADD+=\"${configure.universal_ldflags}\""
+}
+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070913/f4f103d6/attachment.html


More information about the macports-changes mailing list