freebsd-ports/textproc/scim-bridge-qt4/Makefile

45 lines
1.1 KiB
Makefile

# New ports collection makefile for: scim-bridge-qt4
# Date created: 2008-08-17
# Whom: Henry Hu <henry.hu.sh@gmail.com>
#
# $FreeBSD$
#
PORTNAME= scim-bridge
PORTVERSION= 0.4.15
PORTREVISION= 3
CATEGORIES= textproc
MASTER_SITES= SF/scim/${PORTNAME}/${PORTVERSION}
PKGNAMESUFFIX= -qt4
MAINTAINER= henry.hu.sh@gmail.com
COMMENT= Qt4 client for Scim-bridge
RUN_DEPENDS= scim-bridge:${PORTSDIR}/textproc/scim-bridge
USE_QT_VER= 4
QT_COMPONENTS= gui corelib moc_build
QT_NONSTANDARD= yes
USE_GMAKE= yes
USE_GETTEXT= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-D__STDC_ISO_10646__"
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>