1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/japanese/linux_locale/Makefile
Akinori MUSHA edcf8b3594 Update with the new PORT{NAME,VERSION}/PKGNAME{PRE,SUF}FIX variables.
Now try to use those variables everywhere around DIST* and PATCH*
definitions as far as possible, for ease of the future updates and the
neatness.

Okay, 60% of `japanese' ports have been done. :)
2000-04-11 14:15:53 +00:00

52 lines
1.5 KiB
Makefile

# New ports collection makefile for: ja-linux_locale
# Date created: March 20 2000
# Whom: imura@FreeBSD.org
#
# $FreeBSD$
#
PORTNAME= linux_locale
PORTVERSION= ${VERSION}.0
CATEGORIES= japanese emulators linux
MASTER_SITES= ftp://ftp.debian.org/debian/dists/potato/main/source/admin/ \
http://people.FreeBSD.org/~imura/distfiles/
DISTNAME= locale-ja_${VERSION}
MAINTAINER= imura@FreeBSD.org
BUILD_DEPENDS= ${LCDEF_CMD}:${PORTSDIR}/emulators/linux_base
RUN_DEPENDS= ${LINUX_BASE}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base
LINUX_BASE= /compat/linux
PREFIX= ${LINUX_BASE}
NO_MTREE= yes
WRKSRC= ${WRKDIR}/locale-ja-${VERSION}
PLIST_SUB= VER=${VERSION}
VERSION= 13
SRCDEF= ${WRKSRC}/ja_JP
CHARMAPS= ${WRKSRC}/charmaps/EUC-JP
REPERTOIRE_MAP= ${LINUX_BASE}/usr/share/i18n/repertoiremaps/charids.894
LCDEF_CMD= ${LINUX_BASE}/usr/bin/localedef
LCDEF_ARGS= --repertoire-map=${REPERTOIRE_MAP} \
-c -f ${CHARMAPS} -i ${SRCDEF}
LCDIR= ${PREFIX}/usr/share/locale/ja_JP
COMPAT_LC= ${PREFIX}/usr/share/locale/ja_JP.EUC
DOCDIR= ${PREFIX}/usr/doc/locale-ja-${VERSION}
do-build:
${MKDIR} ${WRKDIR}/LC_MESSAGES
${LCDEF_CMD} ${LCDEF_ARGS} ${WRKDIR}
do-install:
${MKDIR} ${LCDIR}/LC_MESSAGES
.for LC in COLLATE CTYPE MONETARY NUMERIC TIME
${INSTALL_DATA} ${WRKDIR}/LC_${LC} ${LCDIR}
.endfor
${INSTALL_DATA} ${WRKDIR}/LC_MESSAGES/SYS_LC_MESSAGES ${LCDIR}/LC_MESSAGES
${LN} -sf ja_JP ${COMPAT_LC}
${MKDIR} ${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/debian/* ${DOCDIR}
.include <bsd.port.mk>