mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Fix STAGEDIR, make PREFIX safe, change CONFIGURE_ARGS and add REINPLACE
Reported by: swills@
This commit is contained in:
parent
9443b344d2
commit
40f961c7a3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348848
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user