summaryrefslogtreecommitdiff
path: root/textproc/uim-qt4/Makefile
blob: e946f3c2feba9d80e00d2967e290675e521d2879 (plain)
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
# Created by: Yamashiro Jun <yamajun@ofug.net>
# $FreeBSD$

PKGNAMESUFFIX=	-qt4

COMMENT=	Qt4 modules of uim input method

LIB_DEPENDS=	uim:${PORTSDIR}/textproc/uim

USE_QT4=	qmake_build moc_build qt3support uic
USE_AUTOTOOLS=	libtool
USES=		iconv

MASTERDIR=	${.CURDIR}/../../textproc/uim
PKGDIR=		${.CURDIR}
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=	--with-qt4 --with-qt4-immodule
CONFIGURE_ENV=	DATADIRNAME="share"
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CFLAGS+=	-I${LOCALBASE}/include
UIM_SLAVE=	yes

.if defined(WITHOUT_X11)
IGNORE=		cannot be built without X11. Please, unset WITHOUT_X11
.endif

do-build:
	(cd ${WRKSRC}/uim && ${SETENV} ${MAKE_ENV} ${GMAKE} libuim-x-util.la libuim-counted-init.la)
	(cd ${WRKSRC}/replace && ${SETENV} ${MAKE_ENV} ${GMAKE})
	(cd ${WRKSRC}/qt4 && ${SETENV} ${MAKE_ENV} ${GMAKE})

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

.include "${MASTERDIR}/Makefile"