aboutsummaryrefslogtreecommitdiff
path: root/textproc/scim-bridge/Makefile
blob: 5611e4a3c94a929791f92a30a282ea78a7a7eb97 (plain) (blame)
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
# New ports collection makefile for:	scim-bridge
# Date created:		2008-09-10
# Whom:			Max Brazhnikov <makc@FreeBSD.org>
#
# $FreeBSD$
#

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

MAINTAINER=	henry.hu.sh@gmail.com
COMMENT=	Scim-bridge agent (server)

LIB_DEPENDS=	scim-1.0.10:${PORTSDIR}/textproc/scim

USE_GMAKE=	yes
USE_GETTEXT=	yes
GNU_CONFIGURE=	yes

CONFIGURE_ENV=	CPPFLAGS="-D__STDC_ISO_10646__"

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

PLIST_FILES=	bin/scim-bridge

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'

.include <bsd.port.mk>