Fixes PLIST for Linux and HP-UX.

This commit is contained in:
obache 2012-01-07 12:58:45 +00:00
parent 8b2b9ecd1b
commit 8e993987cb
2 changed files with 43 additions and 12 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.29 2011/04/22 13:43:58 obache Exp $
# $NetBSD: Makefile,v 1.30 2012/01/07 12:58:45 obache Exp $
DISTNAME= xcin-2.5.3.pre2
PKGNAME= xcin-2.5.3rc2
@ -32,13 +32,31 @@ INSTALLATION_DIRS= share/doc/xcin
EGDIR= ${PREFIX}/share/examples/xcin
CONF_FILES= ${EGDIR}/xcinrc ${PKG_SYSCONFDIR}/xcinrc
PLIST_VARS+= big5hk gbk
.if ${OPSYS} == "NetBSD"
EUC_LOCALE= euccn
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
EUC_LOCALE= euc
GB2312_ENC= euc
.endif
PLIST_SUBST+= EUC_LOCALE=${EUC_LOCALE}
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

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.7 2010/06/02 12:36:57 adam Exp $
@comment $NetBSD: PLIST,v 1.8 2012/01/07 12:58:45 obache Exp $
bin/cin2tab
bin/xcin
lib/libxcin.la
@ -17,13 +17,26 @@ lib/xcin/tab/big5/pinyin0.tab
lib/xcin/tab/big5/simplex.tab
lib/xcin/tab/big5/sys.tab
lib/xcin/tab/big5/telecode.tab
lib/xcin/tab/${EUC_LOCALE}/default.phr
lib/xcin/tab/${EUC_LOCALE}/jtcj_gb.tab
lib/xcin/tab/${EUC_LOCALE}/phonegb2.tab
lib/xcin/tab/${EUC_LOCALE}/pinyin.tab
lib/xcin/tab/${EUC_LOCALE}/shuangpin.tab
lib/xcin/tab/${EUC_LOCALE}/sys.tab
lib/xcin/tab/${EUC_LOCALE}/wubizixing.tab
${PLIST.big5hk}lib/xcin/tab/${BIG5HK_ENC}/array30.tab
${PLIST.big5hk}lib/xcin/tab/${BIG5HK_ENC}/bims_pinyin.tab
${PLIST.big5hk}lib/xcin/tab/${BIG5HK_ENC}/cj.tab
${PLIST.big5hk}lib/xcin/tab/${BIG5HK_ENC}/default.phr
${PLIST.big5hk}lib/xcin/tab/${BIG5HK_ENC}/jyutping.tab
${PLIST.big5hk}lib/xcin/tab/${BIG5HK_ENC}/jyutping0.tab
${PLIST.big5hk}lib/xcin/tab/${BIG5HK_ENC}/phone.tab
${PLIST.big5hk}lib/xcin/tab/${BIG5HK_ENC}/pinyin.tab
${PLIST.big5hk}lib/xcin/tab/${BIG5HK_ENC}/simplex.tab
${PLIST.big5hk}lib/xcin/tab/${BIG5HK_ENC}/sys.tab
${PLIST.big5hk}lib/xcin/tab/${BIG5HK_ENC}/telecode.tab
lib/xcin/tab/${GB2312_ENC}/default.phr
lib/xcin/tab/${GB2312_ENC}/jtcj_gb.tab
lib/xcin/tab/${GB2312_ENC}/phonegb2.tab
lib/xcin/tab/${GB2312_ENC}/pinyin.tab
lib/xcin/tab/${GB2312_ENC}/shuangpin.tab
lib/xcin/tab/${GB2312_ENC}/sys.tab
lib/xcin/tab/${GB2312_ENC}/wubizixing.tab
${PLIST.gbk}lib/xcin/tab/${GBK_ENC}/default.phr
${PLIST.gbk}lib/xcin/tab/${GBK_ENC}/sys.tab
lib/xcin/zh_hex.la
man/man1/xcin.1
share/doc/xcin/Bugs