From owner-svn-ports-all@FreeBSD.ORG Tue Dec 24 12:42:39 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 97D34490; Tue, 24 Dec 2013 12:42:39 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 79C601E43; Tue, 24 Dec 2013 12:42:39 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBOCgdju082567; Tue, 24 Dec 2013 12:42:39 GMT (envelope-from pawel@svn.freebsd.org) Received: (from pawel@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBOCgcqK082564; Tue, 24 Dec 2013 12:42:38 GMT (envelope-from pawel@svn.freebsd.org) Message-Id: <201312241242.rBOCgcqK082564@svn.freebsd.org> From: Pawel Pekala Date: Tue, 24 Dec 2013 12:42:38 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r337339 - in head/devel/pcre++: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Dec 2013 12:42:39 -0000 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 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 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 + #include + #include ++#include + + + extern "C" { + #include +- #include + } + + 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