diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2003-09-15 20:51:26 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2003-09-15 20:51:26 +0000 |
commit | 6ea8dc0476be3ada332379ff9470404a5e0610fe (patch) | |
tree | 244c04c458fc440bf5066af04dc728d4cbf3b0a4 /palm/ppmtoTbmp | |
parent | Update to RC4 which fixes distfile fetch. (diff) |
PERL => REINPLACE
Add a REINPLACE to prevent double-inclusion of ppmcmap.h.
Submitted by: bento
Notes
Notes:
svn path=/head/; revision=88993
Diffstat (limited to 'palm/ppmtoTbmp')
-rw-r--r-- | palm/ppmtoTbmp/Makefile | 5 |
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 \ |