aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2011-04-23 13:41:49 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2011-04-23 13:41:49 +0000
commit41a6f452d82e58cce3e72349ad7a4db0ac731671 (patch)
treee29ed1d6dbb35d7682e5889736b5156ded50a9f6 /graphics
parent5c35ed0284f0cd2f7c3f589694003592668d9235 (diff)
downloadports-41a6f452d82e58cce3e72349ad7a4db0ac731671.tar.gz
ports-41a6f452d82e58cce3e72349ad7a4db0ac731671.zip
Notes
Diffstat (limited to 'graphics')
-rw-r--r--graphics/netpbm/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/graphics/netpbm/Makefile b/graphics/netpbm/Makefile
index f1f1c08ec039..58fc48f3fdd3 100644
--- a/graphics/netpbm/Makefile
+++ b/graphics/netpbm/Makefile
@@ -37,6 +37,11 @@ USE_LDCONFIG= yes
MAN1= netpbm.1
pre-configure:
+ @if [ -e ${DESTDIR}/${LOCALBASE}/include/pm.h ]; then \
+ (${ECHO_MSG} "===> Cannot build with netpbm installed, please deinstall first"; exit 1) \
+ fi
+ if test -d "${DESTDIR}/${LOCALBASE}/include/pm.h
+ end
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/pm_config.in.h