freebsd-ports/chinese/auto-tw-l10n/Makefile
Chin-San Huang 563aa3f66f - Add a workaround support for KDE.
Noticed by:	kevlo@
2008-01-07 15:36:34 +00:00

53 lines
1.3 KiB
Makefile

# New ports collection makefile for: zh-auto-tw-l10n
# Date created: 7 Oct 2000
# Whom: "Michael C . Wu" <keichii@iteration.net>
#
# $FreeBSD$
PORTNAME= auto-tw-l10n
PORTVERSION= 1.10
PORTREVISION= 1
CATEGORIES= chinese
MASTER_SITES= LOCAL/chinsan
DISTNAME= zh-${PORTNAME}-${PORTVERSION}
MAINTAINER= chinsan@FreeBSD.org
COMMENT= The automatic localization for Traditional Chinese zh_TW.Big5 locale
RUN_DEPENDS= ${FASTEST_CVSUP}:${PORTSDIR}/sysutils/fastest_cvsup
NO_BUILD= yes
PKGINSTALL= ${WRKDIR}/pkg-install
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES= pkg-install pkg-message
SUB_LIST= PREFIX=${PREFIX} ZONE=${ZONE} SOURCE_DIR=${WRKSRC} \
WRKDIR=${WRKDIR} FASTEST_CVSUP=${FASTEST_CVSUP}
OPTIONS= KDE "Enable KDE support" Off
FASTEST_CVSUP?= ${LOCALBASE}/bin/fastest_cvsup
ZONE?= tw
.include <bsd.port.pre.mk>
post-patch:
.if defined(WITH_KDE)
@${REINPLACE_CMD} -e '5 s/en_US.ISO8859-1/zh_TW.Big5/g' \
${WRKSRC}/dot.cshrc
@${REINPLACE_CMD} -e '1 s/en_US.ISO8859-1/zh_TW.Big5/g' \
${WRKSRC}/dot.bashrc
@${FIND} ${WRKSRC} -name "*.bak" -delete
.endif
pre-install:
@${SH} ${PKGINSTALL}
@${FIND} ${WRKSRC} -name "*.in" -delete
do-install:
${MKDIR} ${PREFIX}/share/skel/zh_TW.Big5
${CP} ${WRKSRC}/* ${PREFIX}/share/skel/zh_TW.Big5
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>