source: trunk/dports/archivers/upx/Portfile

Last change on this file was 120775, checked in by mf2k@…, 3 years ago

class-dump upx: Add openmaintainer. (#43601)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 120775 2014-06-06 20:47:27Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name             upx
6version          3.09
7categories       archivers
8maintainers      gmail.com:cedric.luthi openmaintainer
9license          GPL-2+
10
11description      compress or expand executable files
12long_description UPX is a free, portable, extendable, high-performance \
13                 executable packer for several different executable formats
14homepage         http://upx.sourceforge.net/
15platforms        darwin
16master_sites     ${homepage}download/
17
18distname         ${name}-${version}-src
19use_bzip2        yes
20checksums        ${distname}${extract.suffix} \
21                 rmd160  3cf404ea7538a39d2a3caaabd804cb7b3de815b1 \
22                 sha256  f61a95694d9b8f8c486ee25c9cceab483b9262a29d6ed31c8d3ae4aca0f55c9a
23
24use_configure    no
25
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
32depends_lib      port:ucl port:zlib
33
34# pod2man, pod2text, and pod2html are used to generate documentation
35depends_build    bin:pod2man:perl5 \
36                 bin:pod2text:perl5 \
37                 bin:pod2html:perl5
38
39post-configure {
40    # Ensure that the correct compiler is used
41    reinplace "s|CXX = .*|CXX = ${configure.cxx}|" ${worksrcpath}/src/Makefile
42}
43
44destroot {
45    xinstall -m 755 ${worksrcpath}/src/upx.out ${destroot}${prefix}/bin/upx
46
47    xinstall -m 644 ${worksrcpath}/doc/upx.1 ${destroot}${prefix}/share/man/man1
48
49    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
50    xinstall -m 644 -W ${worksrcpath}/doc upx.doc upx.html ${destroot}${prefix}/share/doc/${name}
51    xinstall -m 644 -W ${worksrcpath} BUGS COPYING LICENSE NEWS PROJECTS README README.1ST README.SRC THANKS TODO ${destroot}${prefix}/share/doc/${name}
52}
53
54variant lzma description {Support LZMA compression} {
55    set lzma-distfile lzma465${extract.suffix}
56    master_sites-append sourceforge:sevenzip:lzma
57    distfiles-append    ${lzma-distfile}:lzma
58    checksums-append    ${lzma-distfile} \
59                        md5     29d5ffd03a5a3e51aef6a74e9eafb759 \
60                        sha1    5ec1c4606fec88c770a9712073e83916f8aed173 \
61                        rmd160  70953d4ee8542addf566953e0ed62e9c75a016b5
62    build.env-append    UPX_LZMADIR=${workpath}
63}
64
65livecheck.type  regex
66livecheck.url   ${homepage}
67livecheck.regex UPX (\\d(\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.