# $Id: Portfile 29068 2007-09-14 12:53:38Z nox@macports.org $ PortSystem 1.0 name unalz version 0.61 categories archivers platforms darwin maintainers minskim@bawi.org description unarchiver for the AlZip format long_description Unalz is a BSD-licensed unarchiver for AlZip format which \ requires proprietary and win32-only software but widely used \ in Korea. homepage http://www.kipple.pe.kr/win/unalz/ master_sites ${homepage} extract.suffix .tgz depends_lib port:libiconv checksums md5 f3ee5bad439f10e06b089b8db38b7566 \ sha1 a6cab2a02b7f44957211e694b7d8d144840b2255 \ rmd160 68cb957aeacfc8452e01637f7e0a50939d515ab6 worksrcdir unalz post-patch { reinplace "s|/usr/local|\$(DESTDIR)${prefix}|" ${worksrcpath}/Makefile } configure { set CFLAGS [join ${configure.cflags} " "] reinplace -E "/^CFLAGS/s|\$|${CFLAGS}\\\nCPPFLAGS=${CFLAGS}|" ${worksrcpath}/Makefile reinplace -E "/^LDFLAGS/s|\$|[join ${configure.ldflags} " "]|" ${worksrcpath}/Makefile } build.target posix-utf8 post-destroot { set docdir ${prefix}/share/doc/${name}-${version} xinstall -d ${destroot}${docdir} xinstall -m 0644 ${worksrcpath}/readme.txt ${destroot}${docdir} } livecheck.check regex livecheck.url ${homepage} livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)