2004-07-30 11:03:11 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2004/07/30 09:03:11 wiz Exp $
|
2000-01-07 06:23:30 +01:00
|
|
|
|
2000-04-28 12:23:43 +02:00
|
|
|
DISTNAME= locales-2.1-1mdk
|
|
|
|
PKGNAME= linux-locale-2.1.1
|
2000-01-07 06:23:30 +01:00
|
|
|
CATEGORIES= emulators
|
2004-07-30 11:03:11 +02:00
|
|
|
MASTER_SITES= # http://www.linuxi18n.org/locales/
|
2000-04-28 12:23:43 +02:00
|
|
|
EXTRACT_SUFX= .noarch.rpm
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2000-01-11 11:13:31 +01:00
|
|
|
|
2003-07-17 23:31:04 +02:00
|
|
|
MAINTAINER= sakamoto@NetBSD.org
|
2000-04-28 12:23:43 +02:00
|
|
|
HOMEPAGE= http://www.linuxi18n.org/locales/
|
2001-02-17 19:38:11 +01:00
|
|
|
COMMENT= Locales for Linux
|
2000-01-07 06:23:30 +01:00
|
|
|
|
2001-09-28 01:17:41 +02:00
|
|
|
BUILD_DEPENDS+= rpm-[0-9]*:../../misc/rpm
|
2000-01-07 06:23:30 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2000-04-28 12:23:43 +02:00
|
|
|
.if !defined(LINUX_LOCALES)
|
|
|
|
LINUX_LOCALES= \
|
|
|
|
af ar bg br ca cs cy da de el en eo es et eu fi fo fr ga gl \
|
|
|
|
he hr hu hy id is it ja ka kl ko lo lt lv nl no oc pl pt ro \
|
|
|
|
ru sk sl sr sv th tr uk vi wa zh
|
|
|
|
# fa gd gv iu kw ml ms pd
|
2000-01-07 06:23:30 +01:00
|
|
|
.endif
|
|
|
|
|
2000-04-28 12:23:43 +02:00
|
|
|
.for locale in ${LINUX_LOCALES}
|
|
|
|
DISTFILES+= locales-${locale}-2.1-1mdk${EXTRACT_SUFX}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
DIST_SUBDIR= linux-locale
|
|
|
|
|
|
|
|
ONLY_FOR_PLATFORM=NetBSD-*-i386
|
2002-04-05 11:36:44 +02:00
|
|
|
DEPENDS= suse_base>=6.3:../../emulators/${SUSE_DIR_PREFIX}_base
|
2000-04-28 12:23:43 +02:00
|
|
|
|
2000-01-07 06:23:30 +01:00
|
|
|
EXTRACT_ONLY= # empty
|
|
|
|
NO_CONFIGURE= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
|
|
|
|
EMULSUBDIR= emul/linux
|
|
|
|
EMULDIR= ${PREFIX}/${EMULSUBDIR}
|
2000-04-28 12:23:43 +02:00
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
|
2000-05-12 07:19:09 +02:00
|
|
|
EXCLUDELIST= ${WRKDIR}/EXCLUDE
|
2000-04-28 12:23:43 +02:00
|
|
|
CPIOLIST= ${WRKDIR}/CPIOLIST
|
2000-08-31 04:35:25 +02:00
|
|
|
CHECK_SHLIBS= no
|
2000-01-07 06:23:30 +01:00
|
|
|
|
|
|
|
do-install:
|
2000-04-28 12:23:43 +02:00
|
|
|
@${RM} -f ${CPIOLIST}
|
2000-05-12 07:19:09 +02:00
|
|
|
@(cd ${EMULDIR}; \
|
2004-01-27 01:53:10 +01:00
|
|
|
${FIND} usr/share/locale -name "*" -print > ${EXCLUDELIST})
|
2000-04-28 12:23:43 +02:00
|
|
|
.for f in ${DISTFILES}
|
2000-05-12 07:19:09 +02:00
|
|
|
@rpm2cpio ${DISTDIR}/${DIST_SUBDIR}/${f} | \
|
|
|
|
cpio -t -v -f -E ${EXCLUDELIST} >> ${CPIOLIST}
|
|
|
|
@(cd ${EMULDIR}; rpm2cpio ${DISTDIR}/${DIST_SUBDIR}/${f} | \
|
|
|
|
cpio -i -d -f -E ${EXCLUDELIST})
|
2000-04-28 12:23:43 +02:00
|
|
|
.endfor
|
2000-01-07 06:23:30 +01:00
|
|
|
|
|
|
|
post-install:
|
2000-04-28 12:23:43 +02:00
|
|
|
@${CAT} ${CPIOLIST}|${GREP} "^d"|${SED} -e "s|.* \(usr\/.*\)|@exec ${MKDIR} ${EMULDIR}/\1|"|sort >> ${PLIST_SRC}
|
|
|
|
@${CAT} ${CPIOLIST}|${GREP} "^-"|${SED} -e "s|.* \(usr\/.*\)|${EMULSUBDIR}/\1|"|sort >> ${PLIST_SRC}
|
|
|
|
@${CAT} ${CPIOLIST}|${GREP} "^l"|${SED} -e "s|.* \(usr\/.*\) -> \(.*\)|@exec ln -s \2 %D/${EMULSUBDIR}/\1|"|sort >> ${PLIST_SRC}
|
|
|
|
@${CAT} ${CPIOLIST}|${GREP} "^l"|${SED} -e "s|.* \(usr\/.*\) -> .*|@unexec rm -f %D/${EMULSUBDIR}/\1|"|sort >> ${PLIST_SRC}
|
|
|
|
@${CAT} ${CPIOLIST}|${GREP} "^d"|${SED} -e "s|.* \(usr\/.*\)|@dirrm ${EMULSUBDIR}/\1|"|sort -r >> ${PLIST_SRC}
|
2000-01-07 06:23:30 +01:00
|
|
|
|
2002-04-05 11:36:44 +02:00
|
|
|
.include "../../emulators/suse_linux/Makefile.application"
|
2003-03-26 05:05:37 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|