most recent changes, diff for webdec
Index: archivers/webdec/Portfile
--- archivers/webdec/Portfile (revision 29069)
+++ archivers/webdec/Portfile (revision 29070)
@@ -1,8 +1,10 @@
# $Id$
-PortSystem 1.0
+PortSystem 1.0
+
name webdec
version 0.46.2
+revision 1
categories archivers
maintainers izmir@verizon.net
description Extract webshots pictures
@@ -15,20 +17,26 @@
master_sites http://www.jamesbarford.net/downloads/
-checksums md5 14341604153c4605ecf81162b09c67fa
+checksums md5 14341604153c4605ecf81162b09c67fa \
+ sha1 6f0d90f09627f023f71ddd30ca67edf3e62f673e \
+ rmd160 e49877e5e9598326b319f882a877af691156f03f
-use_configure no
+configure {
+ reinplace -E "/^CFLAGS/s|\$| [join ${configure.cflags} " "]|" ${worksrcpath}/Makefile
+ reinplace -E "/^LDFLAGS/s|\$| [join ${configure.ldflags} " "]|" ${worksrcpath}/Makefile
+}
-destroot {}
+destroot {
+ xinstall ${worksrcpath}/webdec ${destroot}${prefix}/bin
-post-destroot {
- xinstall -m 755 -W ${worksrcpath} webdec \
- ${destroot}${prefix}/bin/webdec
+ set docdir ${prefix}/share/doc/${name}-${version}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 0644 -W ${worksrcpath} GPL README ${destroot}${docdir}
}
-variant debug {
- build.pre_args CFLAGS="-Wall -ansi -pedantic -DDEBUG"
+variant debug {
+ post-configure {
+ reinplace -E "/^CFLAGS/s|\$| -DDEBUG|" ${worksrcpath}/Makefile
+ }
}
-universal_variant no
-