source: trunk/dports/archivers/unalz/Portfile

Last change on this file was 83841, checked in by jmr@…, 6 years ago

unalz: update to 0.65 (#16106)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 83841 2011-09-11 17:51:50Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name                    unalz
6version         0.65
7categories              archivers
8platforms               darwin
9maintainers             bawi.org:minskim
10description             unarchiver for the AlZip format
11
12long_description        Unalz is a BSD-licensed unarchiver for AlZip format which \
13                                requires proprietary and win32-only software but widely used \
14                                in Korea.
15
16homepage                http://www.kipple.pe.kr/win/unalz/
17master_sites    ${homepage}
18extract.suffix  .tgz
19
20depends_lib     port:libiconv
21
22checksums       md5 e4db2c4e3c8f6f5ee414b68bc55288e5 \
23                sha1 98a64f799892f7adfffd4635bd19826fe8f18b26 \
24                rmd160 bb55aee26e12c8bf0e4422b11feffa5c88844771
25
26worksrcdir              unalz
27
28post-patch {
29    reinplace "s|/usr/local|\$(DESTDIR)${prefix}|" ${worksrcpath}/Makefile
30}
31
32# Note: CPP in the Makefile is the C++ compiler, not preprocessor
33configure {
34    reinplace -E "/^CFLAGS/s|\$|${configure.cflags} [get_canonical_archflags cc]\\\nCPPFLAGS=${configure.cxxflags} [get_canonical_archflags cxx]|" ${worksrcpath}/Makefile
35    reinplace -E "/^LDFLAGS/s|\$|${configure.ldflags} [get_canonical_archflags ld]|" ${worksrcpath}/Makefile
36}
37
38build.args       CPP="${configure.cxx}" \
39                     CXX="${configure.cxx}" \
40                     CC="${configure.cc}"
41build.target    posix-utf8
42
43post-destroot {
44    set docdir ${prefix}/share/doc/${name}
45    xinstall -d ${destroot}${docdir}
46    xinstall -m 0644 ${worksrcpath}/readme.txt ${destroot}${docdir}
47}
48
49livecheck.type  regex
50livecheck.url   ${homepage}
51livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.