Ticket #17623: Portfile.diff

File Portfile.diff, 2.4 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago)
  • Portfile

    old new  
    55name             upx
    66version          3.03
    77categories       archivers
    8 maintainers      cedric.luthi@gmail.com
     8maintainers      gmail.com:cedric.luthi
    99description      compress or expand executable files
    1010long_description UPX is a free, portable, extendable, high-performance \
    1111                 executable packer for several different executable formats
    12 homepage         http://upx.sourceforge.net
     12homepage         http://upx.sourceforge.net/
    1313platforms        darwin
    1414master_sites     ${homepage}/download/
    1515
     
    1919                 ${distname}${extract.suffix} sha1 b7e6f93d355e689e63776a2a94ce3c8cf5ef60dd \
    2020                 ${distname}${extract.suffix} rmd160 224f7d93e829b66d1786155522a7a43c0f11f3ce
    2121
     22universal_variant no
    2223use_configure    no
    2324build.env        CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
    2425
    25 depends_lib      port:ucl
     26depends_lib      port:ucl port:zlib
     27
     28# pod2html, pod2text, and pod2html are used to generate documentation
     29depends_build    path:bin/perl:perl5
     30
     31post-configure {
     32    # Ensure that the correct compiler is used
     33    reinplace "s|CXX = .*|CXX = ${configure.cxx}|" ${worksrcpath}/src/Makefile
     34}
    2635
    2736destroot {
    2837    xinstall -m 755 ${worksrcpath}/src/upx.out ${destroot}${prefix}/bin/upx
     
    3039    xinstall -m 644 ${worksrcpath}/doc/upx.1 ${destroot}${prefix}/share/man/man1
    3140
    3241    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}
    3443    xinstall -m 644 -W ${worksrcpath} BUGS COPYING LICENSE NEWS PROJECTS README README.1ST README.SRC THANKS TODO ${destroot}${prefix}/share/doc/${name}
    3544}
    3645
    37 variant lzma {
     46variant lzma description {Support LZMA compression} {
    3847    set lzma-distfile lzma457.tar.bz2
    3948    master_sites-append sourceforge:sevenzip:lzma
    4049    distfiles-append    ${lzma-distfile}:lzma
    4150    checksums-append    ${lzma-distfile} md5 fc7a12a396ade1772e959604d6eb31e1 \
    4251                        ${lzma-distfile} sha1 bd1b46ba42fe1ad7351a39c131e8b7657e909001 \
    4352                        ${lzma-distfile} rmd160 9a3b8577e99f4ae4e62e75e1f3bbd3f1626e140f
    44     build.env-append    UPX_LZMADIR="${workpath}"
     53    build.env-append    UPX_LZMADIR=${workpath}
    4554}