aboutsummaryrefslogtreecommitdiff
path: root/textproc/uim-kde/Makefile
blob: 35ddaae1b7920b1d2499abc8eec613fa98b5ec65 (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
# New ports collection makefile for:   uim-kde
# Date created:        10 March 2007
# Whom:                MANTANI Nobutaka <nobutaka@FreeBSD.org>
#
# $FreeBSD$
#

PKGNAMESUFFIX=	-kde

COMMENT=	KDE panel applet of uim input method

LIB_DEPENDS=	qt-mt.3:${PORTSDIR}/x11-toolkits/qt33 \
		uim.4:${PORTSDIR}/textproc/uim
RUN_DEPENDS=	uim-pref-qt:${PORTSDIR}/textproc/uim-qt

USE_KDELIBS_VER=3
USE_AUTOTOOLS=	libtool:15

MASTERDIR=	${.CURDIR}/../../textproc/uim
PKGDIR=		${.CURDIR}
CONFIGURE_ARGS=	--with-qt --enable-pref --enable-default-toolkit=qt \
		--enable-kde-applet=yes
CONFIGURE_ENV=	QTDIR=${X11BASE}/lib QTINCDIR=${X11BASE}/include \
		CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
		CXX="${CXX} -lc" \
		CXXFLAGS="${CXXFLAGS} ${PTHREAD_CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include" \
		LIBS="${LIBS} ${PTHREAD_LIBS} -L${X11BASE}/lib -L${LOCALBASE}/lib" \
		LDFLAGS="${LDFLAGS} ${PTHREAD_LIBS} -L${X11BASE}/lib -L${LOCALBASE}/lib"
UIM_SLAVE=	yes

# This is normally handled by defining USE_QT_VER ...

.if defined(PACKAGE_BUILDING)
TMPDIR?=	/tmp
MAKE_ENV+=	TMPDIR="${TMPDIR}"
CONFIGURE_ENV+=	TMPDIR="${TMPDIR}"
.endif

EXTRA_PATCHES=	${PATCHDIR}/extra-patch-qt_Makefile.in

.if defined(WITHOUT_X11)
IGNORE=		requires X11
.endif

do-build:
	(cd ${WRKSRC}/qt && ${GMAKE} LIBTOOL=${WRKSRC}/libtool LIBS="-luim -luim-custom" uim_panelapplet.la)

do-install:
	(cd ${WRKSRC}/qt && ${SETENV} ${MAKE_ENV} ${GMAKE} install-appletLTLIBRARIES install-lnkDATA)

.include "${MASTERDIR}/Makefile"