diff options
author | dinoex <dinoex@FreeBSD.org> | 2011-04-23 21:41:49 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2011-04-23 21:41:49 +0800 |
commit | 58951d1697e711742b7f3dfc4c938e9ff8583e1a (patch) | |
tree | d68cd970a472cc9d8f595998668c8fb1480df342 /graphics | |
parent | 1962a077e8fc6b4f8be5c84d37720d6e4c541ef6 (diff) | |
download | freebsd-ports-gnome-58951d1697e711742b7f3dfc4c938e9ff8583e1a.tar.gz freebsd-ports-gnome-58951d1697e711742b7f3dfc4c938e9ff8583e1a.tar.zst freebsd-ports-gnome-58951d1697e711742b7f3dfc4c938e9ff8583e1a.zip |
- make fail early when old netpbm is installed
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/netpbm/Makefile | 5 |
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 |