From f87e3c48c81d85b5e7311d08bce33037b3825557 Mon Sep 17 00:00:00 2001 From: "Vanilla I. Shu" Date: Wed, 23 May 2018 07:52:52 +0000 Subject: [PATCH] Unbreak on 11.1. --- chinese/gcin-qt5/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/chinese/gcin-qt5/Makefile b/chinese/gcin-qt5/Makefile index a42ed845cd36..3f1bc70e6497 100644 --- a/chinese/gcin-qt5/Makefile +++ b/chinese/gcin-qt5/Makefile @@ -3,6 +3,7 @@ PORTNAME= gcin PORTVERSION= 2.8.6 +PORTREVISION= 1 CATEGORIES= chinese textproc gnome MASTER_SITES= http://hyperrate.com/gcin-source/ PKGNAMESUFFIX= -qt5 @@ -16,7 +17,7 @@ LICENSE= LGPL21 LIB_DEPENDS= libgcin-im-client.so:chinese/gcin WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/qt5-im -USES= gmake pkgconfig tar:xz +USES= compiler:c++11-lang gmake pkgconfig tar:xz USE_QT5= qdbus qmake_build buildtools_build core gui USE_CXXSTD= c++11 MAKE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ @@ -24,8 +25,18 @@ MAKE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ PLIST_FILES= ${QT_PLUGINDIR}/platforminputcontexts/libgcinplatforminputcontextplugin.so +.include + +.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 60 +BUILD_DEPENDS+= ${LOCALBASE}/bin/clang60:devel/llvm60 +CPP= ${LOCALBASE}/bin/clang-cpp60 +CC= ${LOCALBASE}/bin/clang60 +CXX= ${LOCALBASE}/bin/clang++60 +.endif + post-patch: @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g; \ s,%%MOC%%,${MOC},;' ${WRKSRC}/Makefile + @${ECHO} "XXXX: ${COMPILER_VERSION}" -.include +.include