[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / inputmethod / xcin

File: [cvs.NetBSD.org] / pkgsrc / inputmethod / xcin / Makefile (download)

Revision 1.49, Wed Nov 23 16:20:30 2022 UTC (2 months, 1 week ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2022Q4-base, pkgsrc-2022Q4, HEAD
Changes since 1.48: +2 -2 lines

massive revision bump after textproc/icu update

# $NetBSD: Makefile,v 1.49 2022/11/23 16:20:30 adam Exp $

DISTNAME=	xcin-2.5.3.pre2
PKGNAME=	xcin-2.5.3rc2
PKGREVISION=	23
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

MAKE_JOBS_SAFE=	no

WRKSRC=			${WRKDIR}/xcin
USE_LIBTOOL=		yes
USE_TOOLS+=		msgfmt pax perl:run
GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
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

PLIST_VARS+=	big5hk gbk

.if ${OPSYS} == "NetBSD"
GB2312_ENC=	euccn
.elif ${OPSYS} == "Linux"
GB2312_ENC=	gb2312
PLIST.big5hk=	yes
BIG5HK_ENC=	big5hkscs
PLIST.gbk=	yes
GBK_ENC=	gbk
.elif ${OPSYS} == "HPUX"
GB2312_ENC=	gb2312
PLIST.big5hk=	yes
BIG5HK_ENC=	hkbig5
.else
GB2312_ENC=	euc
.endif

PLIST_SUBST+=	GB2312_ENC=${GB2312_ENC}
.if defined(PLIST.big5hk) && ${PLIST.big5hk} == "yes"
PLIST_SUBST+=	BIG5HK_ENC=${BIG5HK_ENC}
.endif
.if defined(PLIST.gbk) && ${PLIST.gbk} == "yes"
PLIST_SUBST+=	GBK_ENC=${GBK_ENC}
.endif

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

post-patch:
	${CP} ${FILESDIR}/xcin_chewing.c ${WRKSRC}/src/Cinput/chewing

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 db5
BUILDLINK_TRANSFORM+=	l:db:${BDB_TYPE}

.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../inputmethod/libchewing/buildlink3.mk"
.include "../../inputmethod/libtabe/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bdb.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"