diff options
Diffstat (limited to 'graphics/netpbm/Makefile')
-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 |