aboutsummaryrefslogtreecommitdiff
path: root/palm/ppmtoTbmp
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2003-09-15 20:51:26 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2003-09-15 20:51:26 +0000
commit6ea8dc0476be3ada332379ff9470404a5e0610fe (patch)
tree244c04c458fc440bf5066af04dc728d4cbf3b0a4 /palm/ppmtoTbmp
parent38ff01f9c0575b81c621b220405327bdd5da7287 (diff)
downloadports-6ea8dc0476be3ada332379ff9470404a5e0610fe.tar.gz
ports-6ea8dc0476be3ada332379ff9470404a5e0610fe.zip
Notes
Diffstat (limited to 'palm/ppmtoTbmp')
-rw-r--r--palm/ppmtoTbmp/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/palm/ppmtoTbmp/Makefile b/palm/ppmtoTbmp/Makefile
index 7a02c7e69e0d..0826c3881d52 100644
--- a/palm/ppmtoTbmp/Makefile
+++ b/palm/ppmtoTbmp/Makefile
@@ -15,9 +15,12 @@ COMMENT= PPM to Pilot bitmap converter
LIB_DEPENDS= netpbm.1:${PORTSDIR}/graphics/netpbm
+USE_REINPLACE= yes
+
post-patch:
- ${PERL} -pi -e "s|^CFLAGS.+|CFLAGS += -I${LOCALBASE}/include|g; \
+ @${REINPLACE_CMD} -e "s|^CFLAGS =.*|CFLAGS += -I${LOCALBASE}/include|g; \
s|^LDLIBS =|LDLIBS = -L${LOCALBASE}/lib|g" ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e '/^#include "ppmcmap.h"/d' ${WRKSRC}/ppmtoTbmp.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ppmtoTbmp ${WRKSRC}/Tbmptopnm \