blob: 10e6124dde2ef81d7aad72c104c2d6001588e4a2 (
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
48
49
50
51
52
53
|
# New ports collection makefile for: fcitx-configtool
# Date created: 09 Nov 2011
# Whom: Zhihao Yuan <lichray@gmail.com>
#
# $FreeBSD$
#
PORTNAME= fcitx-configtool
PORTVERSION= 0.4.3
CATEGORIES= chinese x11
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DIST_SUBDIR= fcitx
MAINTAINER= lichray@gmail.com
COMMENT= Fcitx IM framework configure 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.4:${PORTSDIR}/chinese/fcitx
USE_XZ= yes
USE_GNOME= intltool gnomehack
USE_GETTEXT= yes
USE_CMAKE= yes
OPTIONS= GTK2 "Enable Gtk2 Version" on \
GTK3 "Enable Gtk3 Version" off
.include <bsd.port.options.mk>
.if defined(WITH_GTK2)
USE_GNOME+= gtk20
PLIST_SUB+= GTK2=""
.else
CMAKE_ARGS+= -DENABLE_GTK2=OFF
PLIST_SUB+= GTK2="@comment "
.endif
.if defined(WITH_GTK3)
USE_GNOME+= gtk30
CMAKE_ARGS+= -DENABLE_GTK3=ON
PLIST_SUB+= GTK3=""
.else
PLIST_SUB+= GTK3="@comment "
.endif
.if defined(WITHOUT_GTK2) && defined(WITHOUT_GTK3)
IGNORE= a GUI is required
.endif
PROJECTHOST= fcitx
.include <bsd.port.mk>
|