[43672] trunk/dports/archivers

mcalhoun at macports.org mcalhoun at macports.org
Sat Dec 13 07:52:23 PST 2008


Revision: 43672
          http://trac.macports.org/changeset/43672
Author:   mcalhoun at macports.org
Date:     2008-12-13 07:52:22 -0800 (Sat, 13 Dec 2008)
Log Message:
-----------
New Port: upx
Fixes #17623.

Added Paths:
-----------
    trunk/dports/archivers/upx/
    trunk/dports/archivers/upx/Portfile

Added: trunk/dports/archivers/upx/Portfile
===================================================================
--- trunk/dports/archivers/upx/Portfile	                        (rev 0)
+++ trunk/dports/archivers/upx/Portfile	2008-12-13 15:52:22 UTC (rev 43672)
@@ -0,0 +1,54 @@
+# $Id$
+
+PortSystem 1.0
+
+name             upx
+version          3.03
+categories       archivers
+maintainers      gmail.com:cedric.luthi
+description      compress or expand executable files
+long_description UPX is a free, portable, extendable, high-performance \
+                 executable packer for several different executable formats
+homepage         http://upx.sourceforge.net/
+platforms        darwin
+master_sites     ${homepage}/download/
+
+distname         ${name}-${version}-src
+use_bzip2        yes
+checksums        ${distname}${extract.suffix} md5 1d5830fff06537a129c923527c4ce205 \
+                 ${distname}${extract.suffix} sha1 b7e6f93d355e689e63776a2a94ce3c8cf5ef60dd \
+                 ${distname}${extract.suffix} rmd160 224f7d93e829b66d1786155522a7a43c0f11f3ce
+
+universal_variant no
+use_configure    no
+build.env        CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
+
+depends_lib      port:ucl port:zlib
+
+# pod2html, pod2text, and pod2html are used to generate documentation
+depends_build    path:bin/perl:perl5
+
+post-configure {
+    # Ensure that the correct compiler is used
+    reinplace "s|CXX = .*|CXX = ${configure.cxx}|" ${worksrcpath}/src/Makefile
+}
+
+destroot {
+    xinstall -m 755 ${worksrcpath}/src/upx.out ${destroot}${prefix}/bin/upx
+
+    xinstall -m 644 ${worksrcpath}/doc/upx.1 ${destroot}${prefix}/share/man/man1
+
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath}/doc upx.doc upx.html ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 -W ${worksrcpath} BUGS COPYING LICENSE NEWS PROJECTS README README.1ST README.SRC THANKS TODO ${destroot}${prefix}/share/doc/${name}
+}
+
+variant lzma description {Support LZMA compression} {
+    set lzma-distfile lzma457.tar.bz2
+    master_sites-append sourceforge:sevenzip:lzma
+    distfiles-append    ${lzma-distfile}:lzma
+    checksums-append    ${lzma-distfile} md5 fc7a12a396ade1772e959604d6eb31e1 \
+                        ${lzma-distfile} sha1 bd1b46ba42fe1ad7351a39c131e8b7657e909001 \
+                        ${lzma-distfile} rmd160 9a3b8577e99f4ae4e62e75e1f3bbd3f1626e140f
+    build.env-append    UPX_LZMADIR=${workpath}
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081213/9ff86cc6/attachment.html>


More information about the macports-changes mailing list