aboutsummaryrefslogtreecommitdiff
path: root/chinese
diff options
context:
space:
mode:
Diffstat (limited to 'chinese')
-rw-r--r--chinese/pyzy/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/chinese/pyzy/Makefile b/chinese/pyzy/Makefile
index 88f1bc9a27fe..1eef448041c3 100644
--- a/chinese/pyzy/Makefile
+++ b/chinese/pyzy/Makefile
@@ -20,7 +20,7 @@ LIB_DEPENDS= libsqlite3.so:databases/sqlite3
USE_GITHUB= yes
GH_TAGNAME= 6d9c3cd
-USES= compiler:c++11-lib gmake libtool pkgconfig python:2.7,build shebangfix autoreconf gettext-runtime pathfix
+USES= compiler:c++11-lang gmake libtool pkgconfig python:2.7,build shebangfix autoreconf gettext-runtime pathfix
SHEBANG_FILES= data/db/android/create_db.py
USE_GNOME= glib20
USE_LDCONFIG= yes
@@ -36,11 +36,13 @@ 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)
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE} == gcc
CXXFLAGS+= -Wno-error=narrowing
.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib${PORTNAME}-1.0.so
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>