1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00

- wrap USE_GETTEXT by adding "if !defined(WITHOUT_NLS)"

- use system libintl instead of included one
This commit is contained in:
Yen-Ming Lee 2004-10-26 16:37:44 +00:00
parent 5e743e5b88
commit 67b669b9dc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=120248
2 changed files with 16 additions and 9 deletions

View File

@ -16,16 +16,23 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= A fast Console Chinese System which supports framebuffer device
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-included-gettext=${LOCALBASE}
USE_GETTEXT= yes
CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE}
USE_GMAKE= yes
USE_REINPLACE= yes
ONLY_FOR_ARCHS= i386
.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
MAN1= zhcon.1
post-patch:
@${REINPLACE_CMD} -Ee 's,(\s*=\s*)("?)/usr/local([^"]*)("?),\1\2${PREFIX}\3\4,g' \
${WRKSRC}/${CONFIGURE_SCRIPT}
-e '/_nl_expand_alias/s,\(0\),\(\),g' ${WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.mk>

View File

@ -34,12 +34,12 @@ lib/zhcon/input/wbh.mb
lib/zhcon/input/winpy.mb
lib/zhcon/input/winsp.mb
lib/zhcon/input/winzm.mb
share/locale/ja/LC_MESSAGES/zhcon.mo
share/locale/ko/LC_MESSAGES/zhcon.mo
share/locale/zh_CN.EUC/LC_MESSAGES/zhcon.mo
share/locale/zh_CN.GB2312/LC_MESSAGES/zhcon.mo
share/locale/zh_CN.GBK/LC_MESSAGES/zhcon.mo
share/locale/zh_TW.Big5/LC_MESSAGES/zhcon.mo
%%NLS%%share/locale/ja/LC_MESSAGES/zhcon.mo
%%NLS%%share/locale/ko/LC_MESSAGES/zhcon.mo
%%NLS%%share/locale/zh_CN.EUC/LC_MESSAGES/zhcon.mo
%%NLS%%share/locale/zh_CN.GB2312/LC_MESSAGES/zhcon.mo
%%NLS%%share/locale/zh_CN.GBK/LC_MESSAGES/zhcon.mo
%%NLS%%share/locale/zh_TW.Big5/LC_MESSAGES/zhcon.mo
@dirrm lib/zhcon/input
@dirrm lib/zhcon/font
@dirrm lib/zhcon