aboutsummaryrefslogtreecommitdiffstats
path: root/editors/mined
diff options
context:
space:
mode:
authorthierry <thierry@FreeBSD.org>2005-10-19 03:50:22 +0800
committerthierry <thierry@FreeBSD.org>2005-10-19 03:50:22 +0800
commitbe453610dc99db0e2f985dc4bcbadcc83b80bbdd (patch)
treed3af8d71358f4b54412de989396ac17c873afcc7 /editors/mined
parent65d83d61e900ecff7afef63fb0ba0c9c382ec11c (diff)
downloadfreebsd-ports-gnome-be453610dc99db0e2f985dc4bcbadcc83b80bbdd.tar.gz
freebsd-ports-gnome-be453610dc99db0e2f985dc4bcbadcc83b80bbdd.tar.zst
freebsd-ports-gnome-be453610dc99db0e2f985dc4bcbadcc83b80bbdd.zip
Respect $PREFIX.
Reported by: dosirak via Kris
Diffstat (limited to 'editors/mined')
-rw-r--r--editors/mined/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/editors/mined/Makefile b/editors/mined/Makefile
index ed0839a9c963..5b4a23abedcc 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