svn commit: r337440 - in head/devel/regexx: . files
Pawel Pekala
pawel at FreeBSD.org
Wed Dec 25 19:35:31 UTC 2013
Author: pawel
Date: Wed Dec 25 19:35:30 2013
New Revision: 337440
URL: http://svnweb.freebsd.org/changeset/ports/337440
Log:
- Fix build on -current
- Depend on pcre from ports instead of bundled one
- Strip library file
PR: ports/184229
Submitted by: KATO Tsuguru <tkato432 at yahoo.com>
Added:
head/devel/regexx/files/patch-src__Makefile.in (contents, props changed)
head/devel/regexx/files/patch-src__regexx.hh (contents, props changed)
Deleted:
head/devel/regexx/files/patch-libtool22
Modified:
head/devel/regexx/Makefile (contents, props changed)
Modified: head/devel/regexx/Makefile
==============================================================================
--- head/devel/regexx/Makefile Wed Dec 25 19:16:49 2013 (r337439)
+++ head/devel/regexx/Makefile Wed Dec 25 19:35:30 2013 (r337440)
@@ -3,27 +3,31 @@
PORTNAME= regexx
PORTVERSION= 0.98.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= devel
MASTER_SITES= SF
MAINTAINER= ports at FreeBSD.org
-COMMENT= A complete regular expressions C++ solution
+COMMENT= Complete regular expressions C++ solution
-USE_GMAKE= yes
+LICENSE= LGPL21
+
+LIB_DEPENDS= libpcre.so:${PORTSDIR}/devel/pcre
+
+USES= gmake pkgconfig
USE_AUTOTOOLS= libtool
+MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \
+ AUTOMAKE="${TRUE}"
USE_LDCONFIG= yes
-MAKE_ENV+= INCLUDES="-I${WRKSRC}/pcre"
-NO_STAGE= yes
+CPPFLAGS+= $$(pkg-config --cflags libpcre)
+LDFLAGS+= $$(pkg-config --libs libpcre)
+
post-patch:
- @${REINPLACE_CMD} -e 's|@LIBTOOL@|${LIBTOOL}|g ; \
- s| \./libtool|${LIBTOOL}|g ; \
- s|\(DEFS.*\)|\1 -I${LOCALBASE}/include|' \
- ${WRKSRC}/src/Makefile.in ${WRKSRC}/pcre/Makefile.in
- @${REINPLACE_CMD} -e 's|$${CONFIG_SHELL-/bin/sh} $$ac_aux_dir|$$ac_aux_dir|' \
- ${WRKSRC}/configure
- @${REINPLACE_CMD} -e 's| examples||g' \
- ${WRKSRC}/Makefile.am
+ @${REINPLACE_CMD} -e \
+ 's|"pcre"||' ${WRKSRC}/configure
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libregexx.so.2
.include <bsd.port.mk>
Added: head/devel/regexx/files/patch-src__Makefile.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/regexx/files/patch-src__Makefile.in Wed Dec 25 19:35:30 2013 (r337440)
@@ -0,0 +1,11 @@
+--- src/Makefile.in.orig 2013-11-15 21:03:55.000000000 +0900
++++ src/Makefile.in 2013-11-15 21:04:18.000000000 +0900
+@@ -74,7 +74,7 @@
+
+ lib_LTLIBRARIES = libregexx.la
+ libregexx_la_SOURCES = regexx.cc regexx.hh split.cc split.hh
+-libregexx_la_LDFLAGS = -version-info 2:0:1 ../pcre/maketables.lo ../pcre/get.lo ../pcre/study.lo ../pcre/pcre.lo
++libregexx_la_LDFLAGS = -version-info 2:0:1
+ include_HEADERS = regexx.hh split.hh
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
+ CONFIG_CLEAN_FILES =
Added: head/devel/regexx/files/patch-src__regexx.hh
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/regexx/files/patch-src__regexx.hh Wed Dec 25 19:35:30 2013 (r337440)
@@ -0,0 +1,10 @@
+--- src/regexx.hh.orig 2013-11-15 21:02:42.000000000 +0900
++++ src/regexx.hh 2013-11-15 21:03:03.000000000 +0900
+@@ -29,6 +29,7 @@
+ #ifndef REGEXX_HH
+ #define REGEXX_HH
+
++#include <cstdlib>
+ #include <string>
+ #include <vector>
+ #include <split.hh>
More information about the svn-ports-all
mailing list