freebsd-ports/textproc/scim-bridge-qt4/Makefile
Tobias C. Berner b1a1d38bf9 Replace bsd.qt.mk by Uses/qt.mk and Uses/qt-dist.mk
From now on, ports that depend on Qt4 will have to set
	USES=		qt:4
	USE_QT=		foo bar
ports depending on Qt5 will use
	USES=		qt:5
	USE_QT=		foo bar

PR:		229225
Exp-run by:	antoine
Reviewed by:	mat
Approved by:	portmgr (antoine)
Differential Revision:	→https://reviews.freebsd.org/D15540
2018-06-28 17:39:53 +00:00

43 lines
1.2 KiB
Makefile

# Created by: Henry Hu <henry.hu.sh@gmail.com>
# $FreeBSD$
PORTNAME= scim-bridge
PORTVERSION= 0.4.16
PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= SF/scim/${PORTNAME}/${PORTVERSION}
PKGNAMESUFFIX= -qt4
MAINTAINER= ashish@FreeBSD.org
COMMENT= Qt4 client for Scim-bridge
LICENSE= GPLv2 LGPL21
LICENSE_COMB= dual
LICENSE_FILE_GPLv2= ${WRKSRC}/doc/LICENSE.GPL
LICENSE_FILE_LGPL21= ${WRKSRC}/doc/LICENSE.LGPL
RUN_DEPENDS= scim-bridge:textproc/scim-bridge
USE_QT= corelib gui moc_build
USES= gettext gmake libtool pkgconfig qmake:no_env qt:4
GNU_CONFIGURE= yes
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>