aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-09-11 16:23:14 +0800
committerjbeich <jbeich@FreeBSD.org>2017-09-11 16:23:14 +0800
commit84a684fd521a2b5eb6dd5e63abd637b9f782473b (patch)
tree0bacecc4ddbab7259b4177d91f2616159cb9760f /devel
parent26b9fbdc3c6dfcfb40f552d70379604b2da67b3b (diff)
downloadfreebsd-ports-gnome-84a684fd521a2b5eb6dd5e63abd637b9f782473b.tar.gz
freebsd-ports-gnome-84a684fd521a2b5eb6dd5e63abd637b9f782473b.tar.zst
freebsd-ports-gnome-84a684fd521a2b5eb6dd5e63abd637b9f782473b.zip
devel/py-pyicu: switch to C++11, required by ICU >= 59
In file included from _icu.cpp:27: In file included from ./common.h:90: In file included from /usr/local/include/unicode/utypes.h:38: /usr/local/include/unicode/umachine.h:347:13: error: unknown type name 'char16_t' typedef char16_t UChar; ^ PR: 218788
Diffstat (limited to 'devel')
-rw-r--r--devel/py-pyicu/Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/devel/py-pyicu/Makefile b/devel/py-pyicu/Makefile
index 6db074739352..460c6226b8c4 100644
--- a/devel/py-pyicu/Makefile
+++ b/devel/py-pyicu/Makefile
@@ -3,7 +3,7 @@
PORTNAME= pyicu
PORTVERSION= 1.9.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -15,14 +15,17 @@ COMMENT= Python extension wrapping IBM's ICU C++ API #'
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+LIB_DEPENDS= libicudata.so:devel/icu
+
USES?= python
+USES+= compiler:c++11-lib
+USE_CXXSTD= gnu++11
USE_PYTHON= distutils autoplist
-MAKE_ENV+= PYICU_INCLUDES="${PREFIX}/include" \
- PYICU_CFLAGS="-w:-DPYICU_VER=\"${PORTVERSION}\"" \
- PYICU_LFLAGS="-L${PREFIX}/lib"
-
-LIB_DEPENDS+= libicudata.so:devel/icu
+MAKE_ENV+= PYICU_INCLUDES="${LOCALBASE}/include" \
+ PYICU_CFLAGS="${CXXFLAGS:ts:}" \
+ PYICU_LFLAGS="-L${LOCALBASE}/lib"
+CFLAGS+= -w -DPYICU_VER=\"${PORTVERSION}\"
pre-configure:
@if [ ! -e ${LOCALBASE}/lib/libicule.so ]; then \