2002-06-30 07:05:51 +00:00
|
|
|
# New ports collection makefile for: utf8locale
|
|
|
|
# Date created: 29 June 2002
|
|
|
|
# Whom: Hye-Shik Chang
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= utf8locale
|
2002-10-14 05:30:49 +00:00
|
|
|
PORTVERSION= 1.3
|
2002-06-30 07:05:51 +00:00
|
|
|
CATEGORIES= misc
|
2002-08-23 09:26:59 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
|
|
http://people.freebsd.org/~perky/distfiles/
|
2002-06-30 07:05:51 +00:00
|
|
|
MASTER_SITE_SUBDIR= perky
|
|
|
|
|
|
|
|
MAINTAINER= perky@FreeBSD.org
|
|
|
|
|
2002-10-05 10:59:29 +00:00
|
|
|
LANGS= af_ZA bg_BG cs_CZ da_DK de_AT de_CH de_DE el_GR en_AU en_CA \
|
|
|
|
en_GB en_NZ en_US es_ES et_EE fi_FI fr_BE fr_CA fr_FR hr_HR \
|
|
|
|
hu_HU is_IS it_IT ja_JP ko_KR nl_BE nl_NL no_NO pl_PL pt_BR \
|
|
|
|
pt_PT ro_RO ru_RU sk_SK sl_SI sv_SE tr_TR uk_UA zh_CN zh_TW
|
2002-06-30 07:05:51 +00:00
|
|
|
BASELOCALEDIR= ${DESTDIR}/usr/share/locale
|
|
|
|
PLIST_SUB= BASELOCALEDIR=${BASELOCALEDIR} \
|
|
|
|
LANGS="${LANGS}"
|
2002-10-05 10:59:29 +00:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2002-06-30 07:05:51 +00:00
|
|
|
|
2002-09-09 05:04:55 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
_HAVE_SWIDTH!= ${GREP} _CTYPE_SW ${DESTDIR}/usr/include/ctype.h 2>/dev/null \
|
|
|
|
|| ${TRUE}
|
2002-08-23 09:26:59 +00:00
|
|
|
.if empty(_HAVE_SWIDTH)
|
|
|
|
PKGNAMESUFFIX= -without-swidth
|
|
|
|
.endif
|
|
|
|
|
2002-10-05 10:59:29 +00:00
|
|
|
pre-install:
|
|
|
|
-@${RM} -f ${PLIST}
|
|
|
|
.for lang in ${LANGS}
|
|
|
|
.for cate in LC_COLLATE LC_CTYPE LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME
|
|
|
|
@${ECHO} "share/locale/${lang}.UTF-8/${cate}" >> ${PLIST}
|
|
|
|
.endfor
|
|
|
|
@${ECHO} "@dirrm share/locale/${lang}.UTF-8" >> ${PLIST}
|
|
|
|
.endfor
|
|
|
|
@${CAT} ${.CURDIR}/pkg-plist >> ${PLIST}
|
|
|
|
|
2002-06-30 07:05:51 +00:00
|
|
|
post-install:
|
|
|
|
.for lang in ${LANGS}
|
|
|
|
-${LN} -sf ${PREFIX}/share/locale/${lang}.UTF-8 \
|
|
|
|
${BASELOCALEDIR}/${lang}.UTF-8
|
|
|
|
.endfor
|
|
|
|
|
2002-09-09 05:04:55 +00:00
|
|
|
.include <bsd.port.post.mk>
|