aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/icontact/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/icontact/Makefile')
-rw-r--r--graphics/icontact/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/graphics/icontact/Makefile b/graphics/icontact/Makefile
index 282ddec34eb0..469a06e8d552 100644
--- a/graphics/icontact/Makefile
+++ b/graphics/icontact/Makefile
@@ -15,10 +15,12 @@ MAINTAINER= markp@FreeBSD.org
RUN_DEPENDS= ${LOCALBASE}/bin/ppmmake:${PORTSDIR}/graphics/netpbm \
${LOCALBASE}/bin/cjpeg:${PORTSDIR}/graphics/jpeg
+USE_REINPLACE= yes
MAN1= icontact.1 xvtoppm.1
-pre-build:
- ${PERL} -pi -e "s@CC=cc@CC=${CC}@g;s@CFLAGS=-O@CFLAGS=${CFLAGS}@g" ${WRKSRC}/Makefile
+post-patch:
+ ${REINPLACE_CMD} "s/CC=cc/CC=${CC}/g; s/CFLAGS=-O/CFLAGS=${CFLAGS}/g" \
+ ${WRKSRC}/Makefile
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/icontact ${PREFIX}/bin