diff options
author | mm <mm@FreeBSD.org> | 2012-02-14 20:44:23 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2012-02-14 20:44:23 +0800 |
commit | c0984d7212423fec61910cec885222df29522d13 (patch) | |
tree | 00d73aa4bb38b5978fae38bed5387611768195d4 /math/freemat | |
parent | 1a52b304772d7d32b726994f9863e7666533c22c (diff) | |
download | freebsd-ports-gnome-c0984d7212423fec61910cec885222df29522d13.tar.gz freebsd-ports-gnome-c0984d7212423fec61910cec885222df29522d13.tar.zst freebsd-ports-gnome-c0984d7212423fec61910cec885222df29522d13.zip |
Bump pcre library dependency due to 8.30 update
Add (vendor) patch for deprecated pcre_info()
Diffstat (limited to 'math/freemat')
-rw-r--r-- | math/freemat/Makefile | 4 | ||||
-rw-r--r-- | math/freemat/files/patch-libs__thirdparty__pcre__pcreposix.c | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/math/freemat/Makefile b/math/freemat/Makefile index 77472ed68aeb..32ad006dadda 100644 --- a/math/freemat/Makefile +++ b/math/freemat/Makefile @@ -8,7 +8,7 @@ PORTNAME= FreeMat PORTVERSION= 4.0 DISTVERSIONSUFFIX= -Source -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= math science MASTER_SITES= SF MASTER_SITE_SUBDIR= freemat/FreeMat4 @@ -20,7 +20,7 @@ MAINTAINER= glarkin@FreeBSD.org COMMENT= An environment for rapid engineering and scientific processing LIB_DEPENDS= lapack.4:${PORTSDIR}/math/lapack \ - pcre.0:${PORTSDIR}/devel/pcre + pcre.1:${PORTSDIR}/devel/pcre BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkg-config LICENSE= GPLv2 diff --git a/math/freemat/files/patch-libs__thirdparty__pcre__pcreposix.c b/math/freemat/files/patch-libs__thirdparty__pcre__pcreposix.c new file mode 100644 index 000000000000..fc1d28b76a56 --- /dev/null +++ b/math/freemat/files/patch-libs__thirdparty__pcre__pcreposix.c @@ -0,0 +1,12 @@ +--- libs/thirdparty/pcre/pcreposix.c.orig 2012-02-14 11:08:58.826982602 +0100 ++++ libs/thirdparty/pcre/pcreposix.c 2012-02-14 11:09:36.105982836 +0100 +@@ -238,7 +238,8 @@ + + if (preg->re_pcre == NULL) return eint[errorcode]; + +-preg->re_nsub = pcre_info((const pcre *)preg->re_pcre, NULL, NULL); ++pcre_fullinfo((const pcre *)preg->re_pcre, NULL, ++ PCRE_INFO_CAPTURECOUNT, &(preg->re_nsub)); + return 0; + } + |