1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

Unbreak on 11.1.

This commit is contained in:
Vanilla I. Shu 2018-05-23 07:52:52 +00:00
parent 095c8cce87
commit f87e3c48c8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=470686

View File

@ -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 <bsd.port.pre.mk>
.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 <bsd.port.mk>
.include <bsd.port.post.mk>