aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorlinimon <linimon@FreeBSD.org>2019-01-23 16:12:06 +0800
committerlinimon <linimon@FreeBSD.org>2019-01-23 16:12:06 +0800
commit68937ca2a9d51acd6b317f004cd8560911b30bc0 (patch)
treed9ee6906cfc83d8bdf4258dd05cb96ca6ea24979 /chinese
parent4edda7f25593b546549367b5941eef7b8db93e31 (diff)
downloadfreebsd-ports-gnome-68937ca2a9d51acd6b317f004cd8560911b30bc0.tar.gz
freebsd-ports-gnome-68937ca2a9d51acd6b317f004cd8560911b30bc0.tar.zst
freebsd-ports-gnome-68937ca2a9d51acd6b317f004cd8560911b30bc0.zip
Add -Wno-error=narrowing when the architecture has base GCC (and thus
uses new GCC from ports) to prevent the following: DoublePinyinTable.h:86:1: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing] While here, pet portlint. PR: 235105 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket)
Diffstat (limited to 'chinese')
-rw-r--r--chinese/pyzy/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/chinese/pyzy/Makefile b/chinese/pyzy/Makefile
index 95727f49055e..88f1bc9a27fe 100644
--- a/chinese/pyzy/Makefile
+++ b/chinese/pyzy/Makefile
@@ -11,6 +11,10 @@ COMMENT= Chinese PinYin and Bopomofo conversion library
LICENSE= LGPL21
+BROKEN_aarch64= fails to compile: constant expression evaluates to -1
+BROKEN_armv6= fails to compile: constant expression evaluates to -1
+BROKEN_armv7= fails to compile: constant expression evaluates to -1
+
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
USE_GITHUB= yes
@@ -21,11 +25,6 @@ SHEBANG_FILES= data/db/android/create_db.py
USE_GNOME= glib20
USE_LDCONFIG= yes
-BROKEN_aarch64= fails to compile: constant expression evaluates to -1
-BROKEN_armv6= fails to compile: constant expression evaluates to -1
-BROKEN_armv7= fails to compile: constant expression evaluates to -1
-BROKEN_powerpc64= fails to compile: narrowing conversion of '-1' from 'int' to 'char'
-
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-dependency-tracking --disable-boost
@@ -37,6 +36,10 @@ OPENCC_DESC= Use opencc for simplified and traditional Chinese conversion
OPENCC_CONFIGURE_ENABLE= opencc
OPENCC_LIB_DEPENDS= libopencc.so:chinese/opencc
+.if exists(/usr/lib/libstdc++.so)
+CXXFLAGS+= -Wno-error=narrowing
+.endif
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-1.0.so