mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
PERL => REINPLACE
Add a REINPLACE to prevent double-inclusion of ppmcmap.h. Submitted by: bento
This commit is contained in:
parent
38ff01f9c0
commit
6ea8dc0476
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=88993
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user