# New ports collection makefile for:   uim-gtk
# Date created:        31 August 2003
# Whom:                MANTANI Nobutaka <nobutaka@FreeBSD.org>
#
# $FreeBSD: branches/RELEASE_8_4_0/textproc/uim-gtk/Makefile 300897 2012-07-14 14:29:18Z beat $
#

PKGNAMESUFFIX=	-gtk

COMMENT=	GTK+ modules of uim input method

USE_GNOME=	gtk20
LIB_DEPENDS=	uim.8:${PORTSDIR}/textproc/uim

MASTERDIR=	${.CURDIR}/../../textproc/uim
PKGDIR=		${.CURDIR}
CONFIGURE_ARGS=	--with-gtk2 --enable-pref

UIM_SLAVE=	yes

EXTRA_PATCHES=	${PATCHDIR}/extra-patch-gtk2_immodule_Makefile.in \
		${PATCHDIR}/extra-patch-gtk2_pad_Makefile.in \
		${PATCHDIR}/extra-patch-gtk2_pref_Makefile.in \
		${PATCHDIR}/extra-patch-gtk2_switcher_Makefile.in \
		${PATCHDIR}/extra-patch-gtk2_toolbar_Makefile.in

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

do-build:
	(cd ${WRKSRC}/uim && ${GMAKE} libuim-x-util.la libuim-counted-init.la)
	(cd ${WRKSRC}/gtk2/immodule && ${GMAKE})
	(cd ${WRKSRC}/gtk2/pad && ${GMAKE})
	(cd ${WRKSRC}/gtk2/pref && ${GMAKE})
	(cd ${WRKSRC}/gtk2/switcher && ${GMAKE})
	(cd ${WRKSRC}/gtk2/toolbar && ${GMAKE})

do-install:
	(cd ${WRKSRC}/gtk2/immodule && ${GMAKE} install)
	(cd ${WRKSRC}/gtk2/pad && ${GMAKE} install)
	(cd ${WRKSRC}/gtk2/pref && ${GMAKE} install)
	(cd ${WRKSRC}/gtk2/switcher && ${GMAKE} install)
	(cd ${WRKSRC}/gtk2/toolbar && ${GMAKE} install)

.include "${MASTERDIR}/Makefile"
