2006-06-03 19:16:48 +02:00
|
|
|
# New ports collection makefile for: zh-auto-cn-l10n
|
|
|
|
# Date created: 12 May 2006
|
2007-07-05 09:21:24 +02:00
|
|
|
# Whom: Yinghong Liu <relaxbsd@gmail.com>
|
2006-06-03 19:16:48 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= auto-cn-l10n
|
2007-06-01 11:31:29 +02:00
|
|
|
PORTVERSION= 1.1
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 3
|
2006-06-03 19:16:48 +02:00
|
|
|
CATEGORIES= chinese
|
2011-10-07 01:20:24 +02:00
|
|
|
#MASTER_SITES= ftp://local-distfiles.freebsd.org.cn/pub/china-ports/hamigua/
|
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL:S/%SUBDIR%/delphij/}
|
2006-06-03 19:16:48 +02:00
|
|
|
DISTNAME= zh-${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2008-03-02 09:25:11 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-06-03 19:16:48 +02:00
|
|
|
COMMENT= The automatic localization for Simplified Chinese zh_CN.eucCN locale
|
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
2007-06-01 11:31:29 +02:00
|
|
|
REINPLACE_ARGS= -i ""
|
2006-06-03 19:16:48 +02:00
|
|
|
|
2007-06-01 11:31:29 +02:00
|
|
|
OPTIONS= WQY "WenQuanYi Bitmap Song Font" on \
|
|
|
|
FIREFLYTTF "Firefly TrueType Font" off \
|
|
|
|
FCITX "GBK Chinese XIM server" off \
|
|
|
|
SCIM "Smart Common Input Method platform" on \
|
2006-06-03 19:16:48 +02:00
|
|
|
MINICHINPUT "A tiny version of Chinput" off \
|
|
|
|
RELAXCONF "A set of utilities for FreeBSD LiveCD" on
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-06-01 11:31:29 +02:00
|
|
|
.if !defined(WITHOUT_WQY)
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/wqy/wenquanyi_10pt.pcf:${PORTSDIR}/x11-fonts/wqy
|
2007-06-01 11:31:29 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_FIREFLYTTF)
|
2006-06-03 19:16:48 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/fonts/TrueType/fireflysung.ttf:${PORTSDIR}/chinese/fireflyttf
|
|
|
|
.endif
|
|
|
|
|
2007-06-01 11:31:29 +02:00
|
|
|
.if defined(WITH_FCITX)
|
2006-06-03 19:16:48 +02:00
|
|
|
RUN_DEPENDS+= fcitx:${PORTSDIR}/chinese/fcitx
|
|
|
|
.endif
|
|
|
|
|
2007-06-01 11:31:29 +02:00
|
|
|
.if !defined(WITHOUT_SCIM)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/share/scim/tables/Wubi.bin:${PORTSDIR}/chinese/scim-tables
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/lib/scim-1.0/1.4.0/IMEngine/pinyin.so:${PORTSDIR}/chinese/scim-pinyin
|
2006-06-03 19:16:48 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MINICHINPUT)
|
|
|
|
RUN_DEPENDS+= chinput:${PORTSDIR}/chinese/miniChinput
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_RELAXCONF)
|
|
|
|
RUN_DEPENDS+= relaxconf:${PORTSDIR}/sysutils/relaxconf
|
|
|
|
.endif
|
|
|
|
|
2007-06-01 11:31:29 +02:00
|
|
|
post-patch:
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g; \
|
2007-06-01 11:31:29 +02:00
|
|
|
s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/dot.xselector ${WRKSRC}/dot.xinitrc
|
|
|
|
|
2006-06-03 19:16:48 +02:00
|
|
|
do-install:
|
|
|
|
${MKDIR} ${PREFIX}/share/skel/zh_CN.eucCN
|
|
|
|
${CP} ${WRKSRC}/* ${PREFIX}/share/skel/zh_CN.eucCN
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${SED} "s|%%PREFIX%%|${PREFIX}|g" \
|
|
|
|
${.CURDIR}/pkg-message > ${PKGMESSAGE}
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|