summaryrefslogtreecommitdiff
path: root/graphics/netpbm
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2011-05-11 17:58:09 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2011-05-11 17:58:09 +0000
commit9c5272efb1955d38ef95944aef8c45ad51a70760 (patch)
treea084de609cc56818e7b6450894cadf564c21f42c /graphics/netpbm
parent- Update to 4.5.10 (diff)
- use MAKE_JOBS_SAFE
PR: 156930 Submitted by: Matthias Andree
Notes
Notes: svn path=/head/; revision=273972
Diffstat (limited to 'graphics/netpbm')
-rw-r--r--graphics/netpbm/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index e825442e92c2..4d9eb734995d 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -22,7 +22,7 @@ LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff \
jasper.4:${PORTSDIR}/graphics/jasper \
xml2.5:${PORTSDIR}/textproc/libxml2
-MAKE_JOBS_UNSAFE= yes
+MAKE_JOBS_SAFE= yes
USE_PERL5= yes
USE_GMAKE= yes
@@ -55,6 +55,16 @@ pre-configure:
@${LN} -sf ${WRKSRC}/lib/util/nstring.h ${WRKSRC}/lib/util/pm_nstring.h
cd ${WRKSRC} && buildtools/stamp-date > ${WRKSRC}/lib/compile.h
+# This snippet is all it takes to make the port as of 10.35.80 MAKE_JOBS_SAFE:
+pre-build:
+ @(cd ${BUILD_WRKSRC}/lib/util; if ! ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE2} ${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}; then \
+ if [ x != x${BUILD_FAIL_MESSAGE} ] ; then \
+ ${ECHO_MSG} "===> Compilation failed unexpectedly."; \
+ (${ECHO_CMD} ${BUILD_FAIL_MESSAGE}) | ${FMT} 75 79 ; \
+ fi; \
+ ${FALSE}; \
+ fi)
+
post-install:
@${ECHO_MSG} "===> Installing man pages..."
@${REINPLACE_CMD} -e 's|doc/USERDOC|${DOCSDIR}/USERDOC|g' \