Ticket #17623: Portfile.diff
File Portfile.diff, 2.4 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago) |
---|
-
Portfile
old new 5 5 name upx 6 6 version 3.03 7 7 categories archivers 8 maintainers cedric.luthi@gmail.com8 maintainers gmail.com:cedric.luthi 9 9 description compress or expand executable files 10 10 long_description UPX is a free, portable, extendable, high-performance \ 11 11 executable packer for several different executable formats 12 homepage http://upx.sourceforge.net 12 homepage http://upx.sourceforge.net/ 13 13 platforms darwin 14 14 master_sites ${homepage}/download/ 15 15 … … 19 19 ${distname}${extract.suffix} sha1 b7e6f93d355e689e63776a2a94ce3c8cf5ef60dd \ 20 20 ${distname}${extract.suffix} rmd160 224f7d93e829b66d1786155522a7a43c0f11f3ce 21 21 22 universal_variant no 22 23 use_configure no 23 24 build.env CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib" 24 25 25 depends_lib port:ucl 26 depends_lib port:ucl port:zlib 27 28 # pod2html, pod2text, and pod2html are used to generate documentation 29 depends_build path:bin/perl:perl5 30 31 post-configure { 32 # Ensure that the correct compiler is used 33 reinplace "s|CXX = .*|CXX = ${configure.cxx}|" ${worksrcpath}/src/Makefile 34 } 26 35 27 36 destroot { 28 37 xinstall -m 755 ${worksrcpath}/src/upx.out ${destroot}${prefix}/bin/upx … … 30 39 xinstall -m 644 ${worksrcpath}/doc/upx.1 ${destroot}${prefix}/share/man/man1 31 40 32 41 xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} 33 xinstall -m 644 -W ${worksrcpath}/doc upx.doc upx.html ${destroot}${prefix}/share/doc/${name} 42 xinstall -m 644 -W ${worksrcpath}/doc upx.doc upx.html ${destroot}${prefix}/share/doc/${name} 34 43 xinstall -m 644 -W ${worksrcpath} BUGS COPYING LICENSE NEWS PROJECTS README README.1ST README.SRC THANKS TODO ${destroot}${prefix}/share/doc/${name} 35 44 } 36 45 37 variant lzma {46 variant lzma description {Support LZMA compression} { 38 47 set lzma-distfile lzma457.tar.bz2 39 48 master_sites-append sourceforge:sevenzip:lzma 40 49 distfiles-append ${lzma-distfile}:lzma 41 50 checksums-append ${lzma-distfile} md5 fc7a12a396ade1772e959604d6eb31e1 \ 42 51 ${lzma-distfile} sha1 bd1b46ba42fe1ad7351a39c131e8b7657e909001 \ 43 52 ${lzma-distfile} rmd160 9a3b8577e99f4ae4e62e75e1f3bbd3f1626e140f 44 build.env-append UPX_LZMADIR= "${workpath}"53 build.env-append UPX_LZMADIR=${workpath} 45 54 }