# $Id: Portfile 28963 2007-09-12 19:39:40Z nox@macports.org $ PortSystem 1.0 name ecm version 1.0 categories archivers platforms darwin maintainers nomaintainer description CD image file error code modeler long_description \ ECM (Error Code Modeler) lets you prepare CD image files - \ such as BIN, CDI, NRG, CCD, or similar - so that they'll compress \ far better. homepage http://www.neillcorlett.com/ecm/ master_sites http://www.neillcorlett.com/downloads/ distname ecm100 use_zip yes checksums md5 debcc0772cea7e8b1ae2562a38788fb6 \ sha1 ec8884b547bebee69fa3d2901dbd076f9a84c2ce \ rmd160 04110dd50d7609e0337e71ab7587fb3d0d05eefb extract.dir ${worksrcpath} pre-extract { file mkdir ${worksrcpath} } build { foreach {bin} {ecm unecm} { system "cd ${worksrcpath} && \ gcc [join ${configure.cflags} " "] ${bin}.c -o ${bin}" } } destroot { xinstall -W ${worksrcpath} ecm unecm ${destroot}${prefix}/bin set docdir ${prefix}/share/doc/${name}-${version} xinstall -d ${destroot}${docdir} eval xinstall -m 0644 [glob ${worksrcpath}/*.txt] ${destroot}${docdir} } variant universal {} livecheck.check regex livecheck.url ${homepage} livecheck.regex "ECM v(\\d+(?:\\.\\d+)*)"