aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--editors/mined/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/editors/mined/Makefile b/editors/mined/Makefile
index ed0839a9c96..5b4a23abedc 100644
--- a/editors/mined/Makefile
+++ b/editors/mined/Makefile
@@ -21,12 +21,22 @@ ALL_TARGET= mined manual
PORTDOCS= *
.endif
-USE_GMAKE= YES
+USE_GMAKE= yes
+USE_REINPLACE= yes
+REINPLACE_ARGS= -i ""
MAKE_ARGS= GMAKE=${GMAKE} CC=${CC:T} OPT="${CFLAGS}"
INSTALL_TARGET= localinstall
MAN1= mined.1
+PRFX2FIX= src/makefile.bsd src/makefile.gcc usrshare/xinitrc.mined \
+ usrshare/mined.desktop src/mined1.c
+
+pre-configure:
+.for FILE in ${PRFX2FIX}
+ @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|' ${WRKSRC}/${FILE}
+.endfor
+
pre-build:
${MV} ${WRKSRC}/src/mkinclud.cc ${WRKSRC}/src/mkinclud.cc.bak
${CP} ${WRKSRC}/src/mkinclud.gcc ${WRKSRC}/src/mkinclud.cc