aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2011-04-23 21:41:49 +0800
committerdinoex <dinoex@FreeBSD.org>2011-04-23 21:41:49 +0800
commit58951d1697e711742b7f3dfc4c938e9ff8583e1a (patch)
treed68cd970a472cc9d8f595998668c8fb1480df342 /graphics
parent1962a077e8fc6b4f8be5c84d37720d6e4c541ef6 (diff)
downloadfreebsd-ports-graphics-58951d1697e711742b7f3dfc4c938e9ff8583e1a.tar.gz
freebsd-ports-graphics-58951d1697e711742b7f3dfc4c938e9ff8583e1a.tar.zst
freebsd-ports-graphics-58951d1697e711742b7f3dfc4c938e9ff8583e1a.zip
- make fail early when old netpbm is installed
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 f1f1c08ec03..58fc48f3fdd 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