aboutsummaryrefslogtreecommitdiffstats
path: root/chinese/ibus-chewing/Makefile
blob: c911c66c8cb922066e81d6d0bd23046f5067e8dc (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
33
34
35
36
37
38
39
40
41
# Created by: Eric L. Camachat <eric@camachat.org>
# $FreeBSD$

PORTNAME=   ibus-chewing
PORTVERSION=    1.4.14
CATEGORIES= chinese

MAINTAINER= eric@camachat.org
COMMENT=    Chewing engine for IBus

LICENSE=    GPLv2

BUILD_DEPENDS=  gob2:${PORTSDIR}/devel/gob2 \
        ${LOCALBASE}/share/cmake/Modules/ManageEnvironmentCommon.cmake:${PORTSDIR}/devel/cmake-fedora \
        ibus-daemon:${PORTSDIR}/textproc/ibus
LIB_DEPENDS=    libchewing.so:${PORTSDIR}/chinese/libchewing
RUN_DEPENDS=    ibus-daemon:${PORTSDIR}/textproc/ibus

CMAKE_ARGS= -DSYSCONF_INSTALL_DIR=${PREFIX}/etc \
        -DLIB_DIR=${PREFIX}/lib
LDFLAGS+=   -L${LOCALBASE}/lib
GLIB_SCHEMAS=   org.freedesktop.IBus.Chewing.gschema.xml
USES=       cmake gettext pkgconfig
USE_GNOME=  gtk20
USE_XORG=   xtst
WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}

PLIST_SUB=  PORTVERSION=${PORTVERSION}

USE_GITHUB= yes
GH_ACCOUNT= definite

post-patch:
    @${REINPLACE_CMD} -e \
        's|$${CHEWING_DATADIR}|$${CHEWING_chewing_DATADIR}|' \
        ${WRKSRC}/CMakeLists.txt
    @${REINPLACE_CMD} -e \
        's|/usr|${PREFIX}|' \
        ${WRKSRC}/data/ibus-setup-chewing.desktop

.include <bsd.port.mk>