Date: Tue, 24 Dec 2013 12:42:38 +0000 (UTC) From: Pawel Pekala <pawel@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337339 - in head/devel/pcre++: . files Message-ID: <201312241242.rBOCgcqK082564@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pawel Date: Tue Dec 24 12:42:38 2013 New Revision: 337339 URL: http://svnweb.freebsd.org/changeset/ports/337339 Log: - Fix build with clang - Respect CXXFLAGS - Add LICENSE - Support staging, strip library PR: ports/184897 Submitted by: KATO Tsuguru <tkato432@yahoo.com> Added: head/devel/pcre++/files/patch-libpcre++__pcre++.h (contents, props changed) Deleted: head/devel/pcre++/files/patch-doc::Makefile.in head/devel/pcre++/files/patch-ltmain.sh Modified: head/devel/pcre++/Makefile (contents, props changed) head/devel/pcre++/pkg-plist (contents, props changed) Modified: head/devel/pcre++/Makefile ============================================================================== --- head/devel/pcre++/Makefile Tue Dec 24 12:33:44 2013 (r337338) +++ head/devel/pcre++/Makefile Tue Dec 24 12:42:38 2013 (r337339) @@ -3,31 +3,39 @@ PORTNAME= pcre++ PORTVERSION= 0.9.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= devel MASTER_SITES= http://www.daemon.de/idisk/Apps/pcre++/ MAINTAINER= ports@FreeBSD.org -COMMENT= A wrapper class around the pcre library +COMMENT= Wrapper class around the pcre library -LIB_DEPENDS= pcre.3:${PORTSDIR}/devel/pcre +LICENSE= LGPL21 -PCRE_CONFIG?= ${LOCALBASE}/bin/pcre-config +LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre +USES= gmake USE_AUTOTOOLS= libtool -USE_GMAKE= yes -GNU_CONFIGURE= yes -CPPFLAGS+= `${PCRE_CONFIG} --cflags` -LDFLAGS+= `${PCRE_CONFIG} --libs` USE_LDCONFIG= yes -MAN3= Pcre.3 -PLIST_SUB= VERSION=${PORTVERSION} +CPPFLAGS+= $$(${PCRE_CONFIG} --cflags) +LDFLAGS+= $$(${PCRE_CONFIG} --libs) DOCSDIR= ${PREFIX}/share/doc/lib${PORTNAME}-${PORTVERSION} -NO_STAGE= yes +PCRE_CONFIG?= ${LOCALBASE}/bin/pcre-config + post-patch: - @${REINPLACE_CMD} -e 's|-O -g|\@CXXFLAGS\@|g' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e \ + 's| ../COPYING|| ; \ + s| $$(prefix)/doc| $${DESTDIR}$$(prefix)/share/doc|' \ + ${WRKSRC}/doc/Makefile.in +.for i in examples/Makefile.in libpcre++/Makefile.in test/Makefile.in + @${REINPLACE_CMD} -e \ + 's|-O -g|@CXXFLAGS@|' ${WRKSRC}/${i} +.endfor + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpcre++.so.0 .include <bsd.port.mk> Added: head/devel/pcre++/files/patch-libpcre++__pcre++.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pcre++/files/patch-libpcre++__pcre++.h Tue Dec 24 12:42:38 2013 (r337339) @@ -0,0 +1,15 @@ +--- libpcre++/pcre++.h.orig ++++ libpcre++/pcre++.h +@@ -47,11 +47,11 @@ + #include <map> + #include <stdexcept> + #include <iostream> ++#include <clocale> + + + extern "C" { + #include <pcre.h> +- #include <locale.h> + } + + namespace pcrepp { Modified: head/devel/pcre++/pkg-plist ============================================================================== --- head/devel/pcre++/pkg-plist Tue Dec 24 12:33:44 2013 (r337338) +++ head/devel/pcre++/pkg-plist Tue Dec 24 12:42:38 2013 (r337339) @@ -4,8 +4,8 @@ lib/libpcre++.a lib/libpcre++.la lib/libpcre++.so lib/libpcre++.so.0 +man/man3/Pcre.3.gz %%DOCSDIR%%/AUTHORS -%%DOCSDIR%%/COPYING %%DOCSDIR%%/ChangeLog %%DOCSDIR%%/INSTALL %%DOCSDIR%%/README
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312241242.rBOCgcqK082564>