aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/gcin-qt5/Makefile
blob: 48222dda3ba3d7aedffcc78c727f9039463be507 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Created by: vanilla@
# $FreeBSD$

PORTNAME=   gcin
PORTVERSION=    2.8.8
PORTREVISION=   1
CATEGORIES= chinese textproc gnome
MASTER_SITES=   http://hyperrate.com/gcin-source/
PKGNAMESUFFIX=  -qt5
EXTRACT_ONLY=   gcin-${PORTVERSION}.tar.xz

MAINTAINER= vanilla@FreeBSD.org
COMMENT=    Traditional Chinese input utility in X

LICENSE=    LGPL21

LIB_DEPENDS=    libgcin-im-client.so:chinese/gcin

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}/qt5-im
USES=       compiler:c++11-lang gmake pkgconfig qt:5 tar:xz
USE_QT=     qdbus qmake_build buildtools_build core gui
USE_CXXSTD= c++11
MAKE_ENV=   INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
        MKDIR="${MKDIR}"

PLIST_FILES=    ${QT_PLUGINDIR}/platforminputcontexts/libgcinplatforminputcontextplugin.so

post-patch:
    @${REINPLACE_CMD} -e 's,%%PREFIX%%,${PREFIX},g; \
        s,%%MOC%%,${MOC},;' ${WRKSRC}/Makefile

.include <bsd.port.mk>