aboutsummaryrefslogtreecommitdiff
path: root/textproc/ltxml
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2014-03-23 09:53:49 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2014-03-23 09:53:49 +0000
commit40f961c7a35712cd31e6280ae15f131444a0f34a (patch)
treed0f9a3757cfc87a948523db69ce3b832439ac955 /textproc/ltxml
parent9443b344d23803a21a1a845e6b029ec724c91a93 (diff)
downloadports-40f961c7a35712cd31e6280ae15f131444a0f34a.tar.gz
ports-40f961c7a35712cd31e6280ae15f131444a0f34a.zip
- Fix STAGEDIR, make PREFIX safe, change CONFIGURE_ARGS and add REINPLACE
Reported by: swills@
Notes
Notes: svn path=/head/; revision=348848
Diffstat (limited to 'textproc/ltxml')
-rw-r--r--textproc/ltxml/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/textproc/ltxml/Makefile b/textproc/ltxml/Makefile
index 4005807d8e25..e7e42b22257d 100644
--- a/textproc/ltxml/Makefile
+++ b/textproc/ltxml/Makefile
@@ -18,7 +18,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/XML
USES= gmake perl5
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-zlib=/usr --datadir=${PREFIX}/lib/ltxml12
+CONFIGURE_ARGS= --with-zlib=/usr --datadir=${STAGEDIR}${PREFIX}/lib/ltxml12
.include <bsd.port.pre.mk>
@@ -34,5 +34,7 @@ CFLAGS+= -fPIC
post-patch:
@${REINPLACE_CMD} -e 's|CFLAGS=.*$$|CFLAGS=\$$CFLAGS|g ; \
s|CXXFLAGS=.*$$|CXXFLAGS=\$$CXXFLAGS|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|@prefix@|${STAGEDIR}${PREFIX}|' \
+ ${WRKSRC}/src/Makefile.sub.in
.include <bsd.port.post.mk>