Ticket #32520: upx-3.08.diff

File upx-3.08.diff, 1.6 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)

proposed patch

  • Portfile

     
    33PortSystem 1.0
    44
    55name             upx
    6 version          3.07
     6version          3.08
    77categories       archivers
    88maintainers      gmail.com:cedric.luthi
     9license          GPL-2+
     10
    911description      compress or expand executable files
    1012long_description UPX is a free, portable, extendable, high-performance \
    1113                 executable packer for several different executable formats
    1214homepage         http://upx.sourceforge.net/
    1315platforms        darwin
    14 master_sites     ${homepage}/download/
     16master_sites     ${homepage}download/
    1517
    1618distname         ${name}-${version}-src
    1719use_bzip2        yes
    1820checksums        [suffix ${distname}] \
    19                  md5     8186ab103288242f7e8ecad1acd4af03 \
    20                  sha1    53692fa1662c4d6be0110e8b7976ab2f9cc6701e \
    21                  rmd160  b0b0c01ddf3d958c5c3405106e70c7cd37f148bb
     21                 rmd160  3fd7b3c4c66a90ddd622b5fb0ba0502c7145da62 \
     22                 sha256  c6d873925ef0d5422b9320c7075ef9be5981a6f99418469ce067becd68de65eb
    2223
    23 universal_variant no
    2424use_configure    no
    25 build.env        CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
    2625
     26variant universal {}
     27
     28build.env        CPPFLAGS="${configure.cppflags}" \
     29                 CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
     30                 LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"
     31
    2732depends_lib      port:ucl port:zlib
    2833
    2934# pod2man, pod2text, and pod2html are used to generate documentation