? textproc/py-libxml2/work Index: textproc/libxml2/Makefile =================================================================== RCS file: /home/pcvs/ports/textproc/libxml2/Makefile,v retrieving revision 1.172 diff -a -u -r1.172 Makefile --- textproc/libxml2/Makefile 1 Nov 2011 11:08:35 -0000 1.172 +++ textproc/libxml2/Makefile 1 Nov 2011 15:59:50 -0000 @@ -32,7 +32,6 @@ GNU_CONFIGURE= yes USE_GNOME?= gnomehack pkgconfig USE_LDCONFIG= yes -WITH_FBSD10_FIX=yes CONFIGURE_ARGS?=--with-iconv=${LOCALBASE} \ --with-html-dir=${PREFIX}/share/doc \ --with-html-subdir=${PORTNAME} \ @@ -75,10 +74,15 @@ 's|/etc/xml/catalog|${LOCALBASE}/share/xml/catalog|g; \ s|/etc/sgml/catalog|${LOCALBASE}/share/sgml/catalog|g' ${WRKSRC}/${f} .endfor - -pre-build: - @${TOUCH} ${WRKSRC}/aclocal.m4 ${WRKSRC}/Makefile.in \ - ${WRKSRC}/configure ${WRKSRC}/config.h.in +# @${FIND} ${WRKSRC} -depth 1 -type f -exec ${TOUCH} {} \; +# manual patch because WITH_FBSD10_FIX break the python bindings +# -o -name libtool.m4 \) \ + ${FIND} ${WRKSRC} -type f -name configure \ + -exec ${SH} -c " \ + mtime=\$$(date -r \$$(stat -f '%m' \$$0) '+%Y%m%d%H%M.%S'); \ + ${SED} -i '.batman' -e 's|freebsd1\*)|freebsd1.\*)|g' \ + -e 's|freebsd\[123\]\*)|freebsd[123].*)|g' \$$0; \ + touch -mt \$$mtime \$$0" {} \; || /usr/bin/true .include