2009-04-28 17:51:01 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.38 2009/04/28 21:51:01 martynas Exp $
|
2006-08-03 10:48:13 -04:00
|
|
|
|
|
|
|
PKG_ARCH= *
|
2006-06-25 17:25:44 -04:00
|
|
|
|
2009-04-28 17:51:01 -04:00
|
|
|
V= 3.0.10
|
2006-06-25 17:25:44 -04:00
|
|
|
NAME= firefox-i18n
|
2008-09-27 15:14:32 -04:00
|
|
|
PKGNAME= ${NAME}-${V}
|
2006-06-25 17:25:44 -04:00
|
|
|
|
|
|
|
CATEGORIES= www
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.mozilla.org/projects/l10n/
|
|
|
|
|
2007-05-22 14:47:14 -04:00
|
|
|
MAINTAINER= Martynas Venckus <martynas@openbsd.org>
|
2006-06-25 17:25:44 -04:00
|
|
|
|
|
|
|
# Mozilla public license
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-03-02 10:59:15 -05:00
|
|
|
MASTER_SITES= http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${V}/linux-i686/xpi/
|
2006-06-25 17:25:44 -04:00
|
|
|
|
2008-09-27 15:14:32 -04:00
|
|
|
LANGUAGES= af ar be bg ca cs da de el en-GB es-AR es-ES eu fi \
|
|
|
|
fr ga-IE gu-IN he hu it ja ka ko ku lt mn nb-NO nl \
|
|
|
|
nn-NO pl pt-BR ru sk sl sv-SE tr zh-CN zh-TW
|
2007-01-14 04:17:41 -05:00
|
|
|
# broken/inexistent: fy-NL mk pa-IN pt-PT ro
|
2006-06-25 17:25:44 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS= :unzip-*:archivers/unzip
|
2006-12-30 17:53:03 -05:00
|
|
|
RUN_DEPENDS= :mozilla-firefox-${V}:www/mozilla-firefox
|
2006-06-25 17:25:44 -04:00
|
|
|
|
2006-12-30 17:53:03 -05:00
|
|
|
DIST_SUBDIR= ${NAME}-${V}
|
2006-06-25 17:25:44 -04:00
|
|
|
NO_BUILD= Yes
|
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
2008-09-27 15:14:32 -04:00
|
|
|
# define one language for the main package
|
|
|
|
SUBPACKAGE?= -en-GB
|
2006-11-22 02:40:24 -05:00
|
|
|
|
2008-09-27 15:14:32 -04:00
|
|
|
.for i in ${LANGUAGES}
|
2006-06-25 17:25:44 -04:00
|
|
|
MULTI_PACKAGES+=-$i
|
|
|
|
DISTFILES+= $i.xpi
|
2007-06-01 04:05:25 -04:00
|
|
|
PKGNAME-$i= ${NAME}-$i-${V}
|
2006-06-25 17:25:44 -04:00
|
|
|
COMMENT-$i= $i language pack for Firefox
|
|
|
|
LPACKDIR-$i= ${PREFIX}/mozilla-firefox/extensions/langpack-$i@firefox.mozilla.org
|
|
|
|
.endfor
|
2008-11-20 19:00:28 -05:00
|
|
|
PKGNAME-en-GB= ${NAME}-en-GB-${V}
|
2006-06-25 17:25:44 -04:00
|
|
|
|
|
|
|
# use the same for all subpackages
|
|
|
|
MESSAGE= ${PKGDIR}/MESSAGE
|
|
|
|
|
|
|
|
do-extract:
|
2008-09-27 15:14:32 -04:00
|
|
|
.for i in ${LANGUAGES}
|
2006-06-25 17:25:44 -04:00
|
|
|
@mkdir -p ${WRKDIR}/$i
|
|
|
|
@${UNZIP} -oq ${FULLDISTDIR}/$i.xpi -d ${WRKDIR}/$i
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
2008-09-27 15:14:32 -04:00
|
|
|
.for i in ${LANGUAGES}
|
2006-06-25 17:25:44 -04:00
|
|
|
${INSTALL_DATA_DIR} ${LPACKDIR-$i}/chrome
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i/chrome.manifest ${LPACKDIR-$i}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i/install.rdf ${LPACKDIR-$i}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i/chrome/$i.jar ${LPACKDIR-$i}/chrome
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|