summaryrefslogtreecommitdiff
path: root/inputmethod/xcin/Makefile
blob: 8918ac47a90e9777529b11d9501489bca86ec50c (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# $NetBSD: Makefile,v 1.26 2009/11/24 11:23:34 obache Exp $
#

DISTNAME=	xcin-2.5.3.pre2
PKGNAME=	xcin-2.5.3rc2
PKGREVISION=	7
CATEGORIES=	chinese x11
MASTER_SITES=	ftp://xcin.linux.org.tw/pub/xcin/xcin/devel/

MAINTAINER=	rxg@NetBSD.org
HOMEPAGE=	http://xcin.linux.org.tw/
COMMENT=	Chinese XIM server
LICENSE=	gnu-gpl-v2

PKG_DESTDIR_SUPPORT=	user-destdir

MAKE_JOBS_SAFE=	no

WRKSRC=			${WRKDIR}/xcin
USE_PKGLOCALEDIR=	yes
USE_X11BASE=		yes
USE_LIBTOOL=		yes
USE_TOOLS+=		msgfmt pax perl:run

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=	--with-db-lib=${BDBBASE}/lib
CONFIGURE_ARGS+=	--with-db-inc=${BDBBASE}/include/{BDB_TYPE}

.include "../../mk/bsd.prefs.mk"

INSTALLATION_DIRS=	share/doc/xcin

EGDIR=			${PREFIX}/share/examples/xcin
CONF_FILES=		${EGDIR}/xcinrc ${PKG_SYSCONFDIR}/xcinrc

.if ${OPSYS} == "NetBSD"
EUC_LOCALE=	euccn
.else
EUC_LOCALE=	euc
.endif

PLIST_SUBST+=	EUC_LOCALE=${EUC_LOCALE}

post-extract:
	${CP} ${FILESDIR}/xcinrc.DRAGONFLY ${WRKSRC}/etc

post-install:
	cd ${WRKSRC}/doc && pax -rw	\
		-s ',^\./man$$,,' -s ',^\./man/.*,,'	\
		. ${DESTDIR}${PREFIX}/share/doc/xcin

INSTALL_MAKE_FLAGS+=	program_prefix=${DESTDIR}

BUILDLINK_DEPMETHOD.libXt?=	build

BDB_ACCEPTED=	db2 db3 db4

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../inputmethod/libchewing02/buildlink3.mk"
.include "../../inputmethod/libtabe/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bdb.buildlink3.mk"
BUILDLINK_TRANSFORM+=	l:db:${BDB_TYPE}
.include "../../mk/bsd.pkg.mk"