blob: 5dbe4e5bf71277064a85c503c455d9e4d7b2b520 (
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
42
43
44
45
46
47
|
# Created by: Zhihao Yuan <lichray@gmail.com>
# $FreeBSD$
PORTNAME= fcitx-configtool
PORTVERSION= 0.4.5.2
CATEGORIES= chinese x11
MASTER_SITES= GOOGLE_CODE
PROJECTHOST= fcitx
DIST_SUBDIR= fcitx
MAINTAINER= lichray@gmail.com
COMMENT= Fcitx IM framework configuration tool
BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes \
${LOCALBASE}/libdata/pkgconfig/dbus-glib-1.pc:${PORTSDIR}/devel/dbus-glib
LIB_DEPENDS= fcitx-config:${PORTSDIR}/chinese/fcitx
USE_XZ= yes
USE_GNOME= intltool gnomehack
USES= cmake gettext
OPTIONS_DEFINE= GTK2 GTK3
OPTIONS_DEFAULT=GTK2
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTK2}
CMAKE_ARGS+= -DENABLE_GTK2=ON
USE_GNOME+= gtk20
PLIST_SUB+= GTK2=""
.else
PLIST_SUB+= GTK2="@comment "
.endif
.if ${PORT_OPTIONS:MGTK3}
USE_GNOME+= gtk30
PLIST_SUB+= GTK3=""
.else
CMAKE_ARGS+= -DENABLE_GTK3=OFF
PLIST_SUB+= GTK3="@comment "
.endif
.if !${PORT_OPTIONS:MGTK2} && !${PORT_OPTIONS:MGTK3}
IGNORE= a GUI is required
.endif
.include <bsd.port.mk>
|