Ticket #16106: Portfile.diff
File Portfile.diff, 2.3 KB (added by jgkim@…, 16 years ago) |
---|
-
Portfile
old new 1 1 # $Id: Portfile 29068 2007-09-14 12:53:38Z nox@macports.org $ 2 2 3 PortSystem 3 PortSystem 1.0 4 4 5 name unalz6 version 0.617 categories archivers8 platforms darwin9 maintainers minskim@bawi.org10 description unarchiver for the AlZip format5 name unalz 6 version 0.62 7 categories archivers 8 platforms darwin 9 maintainers minskim@bawi.org 10 description unarchiver for the AlZip format 11 11 12 12 long_description Unalz is a BSD-licensed unarchiver for AlZip format which \ 13 requires proprietary and win32-only software but widely used \14 in Korea.13 requires proprietary and win32-only software but widely used \ 14 in Korea. 15 15 16 homepage http://www.kipple.pe.kr/win/unalz/17 master_sites ${homepage}18 extract.suffix .tgz16 homepage http://www.kipple.pe.kr/win/unalz/ 17 master_sites ${homepage} 18 extract.suffix .tgz 19 19 20 depends_lib 20 depends_lib port:libiconv 21 21 22 checksums md5 f3ee5bad439f10e06b089b8db38b7566\23 sha1 a6cab2a02b7f44957211e694b7d8d144840b2255\24 rmd160 68cb957aeacfc8452e01637f7e0a50939d515ab6 22 checksums md5 564bf1dc61bb443faf7e8be1d1b5efc8 \ 23 sha1 ddacadcb98235eba40bd8c1a2f120e1052a045dc \ 24 rmd160 3fcbbb7ef903c417f06769be9d88f6f8faac42dc 25 25 26 worksrcdir unalz 26 worksrcdir unalz 27 28 patchfiles UnAlz.cpp.patch 27 29 28 30 post-patch { 29 31 reinplace "s|/usr/local|\$(DESTDIR)${prefix}|" ${worksrcpath}/Makefile 30 32 } 31 33 32 configure { 33 set CFLAGS [join ${configure.cflags} " "] 34 reinplace -E "/^CFLAGS/s|\$|${CFLAGS}\\\nCPPFLAGS=${CFLAGS}|" ${worksrcpath}/Makefile 34 use_configure no 35 36 post-configure { 37 reinplace -E "/^CFLAGS/s|\$|[join [list ${configure.cflags} ${configure.cppflags} ${configure.cxxflags}] " "]|" ${worksrcpath}/Makefile 35 38 reinplace -E "/^LDFLAGS/s|\$|[join ${configure.ldflags} " "]|" ${worksrcpath}/Makefile 36 39 } 37 40 38 build.target posix-utf841 build.target posix-utf8 39 42 40 43 post-destroot { 41 44 set docdir ${prefix}/share/doc/${name}-${version} … … 43 46 xinstall -m 0644 ${worksrcpath}/readme.txt ${destroot}${docdir} 44 47 } 45 48 46 livecheck.check regex 47 livecheck.url ${homepage} 48 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*) 49 49 livecheck.check regex 50 livecheck.url ${homepage} 51 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)