diff options
author | pat <pat@FreeBSD.org> | 2002-03-16 07:29:19 +0000 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-03-16 07:29:19 +0000 |
commit | 1f96ef07ed8b5490d4107f2da2b352b852cfa416 (patch) | |
tree | d6608ceb4a526fbdc2ee58152167238c38307359 /devel/pcre++ | |
parent | 0a4a6f887297dc06b0ef97339bdbdef2f4d99823 (diff) | |
download | FreeBSD-ports-1f96ef07ed8b5490d4107f2da2b352b852cfa416.zip FreeBSD-ports-1f96ef07ed8b5490d4107f2da2b352b852cfa416.tar.gz |
Support CXXFLAGS/LOCALBASE properly
PR: 35958
Submitted by: KATO Tsuguru <tkato@prontomail.com>
Diffstat (limited to 'devel/pcre++')
-rw-r--r-- | devel/pcre++/Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/devel/pcre++/Makefile b/devel/pcre++/Makefile index 8134c32..38f807b 100644 --- a/devel/pcre++/Makefile +++ b/devel/pcre++/Makefile @@ -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> |