summaryrefslogtreecommitdiff
path: root/textproc/scim-bridge-qt4/Makefile
blob: 280e41c2dde899a49279cc063377d926bf8d1962 (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
37
38
39
40
41
42
43
44
# Created by: Henry Hu <henry.hu.sh@gmail.com>
# $FreeBSD$

PORTNAME=	scim-bridge
PORTVERSION=	0.4.16
PORTREVISION=	1
CATEGORIES=	textproc
MASTER_SITES=	SF/scim/${PORTNAME}/${PORTVERSION}
PKGNAMESUFFIX=	-qt4

MAINTAINER=	ashish@FreeBSD.org
COMMENT=	Qt4 client for Scim-bridge

RUN_DEPENDS=	scim-bridge:${PORTSDIR}/textproc/scim-bridge

USE_QT4=	corelib gui moc_build
QT_NONSTANDARD=	yes
USES=		gettext gmake pkgconfig
GNU_CONFIGURE=	yes

LICENSE=	GPLv2 LGPL21
LICENSE_COMB=	dual
LICENSE_FILE_GPLv2=	${WRKSRC}/doc/LICENSE.GPL
LICENSE_FILE_LGPL21=	${WRKSRC}/doc/LICENSE.LGPL

CPPFLAGS+=	-I${LOCALBASE}/include -D__STDC_ISO_10646__
CXXFLAGS+=	${CPPFLAGS}

CONFIGURE_ARGS+=--with-libintl-prefix=${LOCALBASE} \
		--disable-agent \
		--disable-gtk2-immodule \
		--disable-qt3-immodule \
		--enable-qt4-immodule

post-patch:
	@${GREP} -lR "<malloc\.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
		's|<malloc\.h>|<stdlib.h>|g'
	@${GREP} -lR "<alloca\.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
		's|<alloca\.h>|<stdlib.h>|g'
	@${REINPLACE_CMD} -e '/^MOC/s|=.*|=${MOC}|' \
		-e '/^moduledir/s|=.*|=${PREFIX}/lib/qt4/plugins/inputmethods|' \
		${WRKSRC}/client-qt/qt4/Makefile.in

.include <bsd.port.mk>