mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Support CXXFLAGS/LOCALBASE properly
PR: 35958 Submitted by: KATO Tsuguru <tkato@prontomail.com>
This commit is contained in:
parent
a9013ad98f
commit
128097325b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=56196
@ -13,19 +13,27 @@ MASTER_SITES= ftp://ftp.daemon.de/scip/Apps/pcre++/
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
|
||||
LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre
|
||||
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
|
||||
|
||||
PCRE_CONFIG?= ${LOCALBASE}/bin/pcre-config
|
||||
|
||||
USE_LIBTOOL= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
USE_LIBTOOL= yes
|
||||
CONFIGURE_ENV= CPPFLAGS="`${PCRE_CONFIG} --cflags`" \
|
||||
LDFLAGS="`${PCRE_CONFIG} --libs`"
|
||||
INSTALLS_SHLIB= yes
|
||||
|
||||
MAN3= Pcre.3
|
||||
|
||||
.if !defined(NOPORTDOCS)
|
||||
post-patch:
|
||||
@${PERL} -pi -e 's|-I/usr/local/include||g ; \
|
||||
s|-L/usr/local/lib||g' ${WRKSRC}/configure
|
||||
@${PERL} -pi -e 's|-O -g|\@CXXFLAGS\@|g' ${WRKSRC}/Makefile.in
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${CP} -R ${WRKSRC}/doc/html/ ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/html/*.* ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user