diff options
| author | Dirk Meyer <dinoex@FreeBSD.org> | 2011-04-23 13:41:49 +0000 |
|---|---|---|
| committer | Dirk Meyer <dinoex@FreeBSD.org> | 2011-04-23 13:41:49 +0000 |
| commit | 41a6f452d82e58cce3e72349ad7a4db0ac731671 (patch) | |
| tree | e29ed1d6dbb35d7682e5889736b5156ded50a9f6 | |
| parent | - Update to 1.0.24 (diff) | |
- make fail early when old netpbm is installed
| -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 |
