2009-08-21 12:41:46 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.29 2009/08/21 16:41:46 martynas Exp $
|
2007-05-01 08:43:17 -04:00
|
|
|
|
|
|
|
PKG_ARCH= *
|
2006-07-02 12:32:35 -04:00
|
|
|
|
2009-08-21 12:41:46 -04:00
|
|
|
V= 2.0.0.23
|
2006-07-02 12:32:35 -04:00
|
|
|
NAME= thunderbird-i18n
|
2008-09-27 15:14:32 -04:00
|
|
|
PKGNAME= ${NAME}-${V}
|
2006-07-02 12:32:35 -04:00
|
|
|
|
|
|
|
CATEGORIES= mail
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.mozilla.org/projects/l10n/
|
|
|
|
|
2007-05-22 14:47:14 -04:00
|
|
|
MAINTAINER= Martynas Venckus <martynas@openbsd.org>
|
2006-07-02 12:32:35 -04:00
|
|
|
|
|
|
|
# Mozilla public license
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-03-19 18:08:02 -04:00
|
|
|
MASTER_SITES= http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${V}/linux-i686/xpi/
|
2006-07-02 12:32:35 -04:00
|
|
|
|
2008-09-27 15:14:32 -04:00
|
|
|
LANGUAGES= be bg ca cs da de el en-GB es-AR es-ES eu fi fr \
|
|
|
|
ga-IE hu it ja ko lt nb-NO nl nn-NO pl pt-BR pt-PT \
|
2007-04-30 18:43:55 -04:00
|
|
|
ru sk sl sv-SE tr zh-CN zh-TW
|
2007-08-05 11:43:48 -04:00
|
|
|
# broken: mk pa-IN
|
2006-07-02 12:32:35 -04:00
|
|
|
|
|
|
|
BUILD_DEPENDS= :unzip-*:archivers/unzip
|
2006-12-30 17:53:03 -05:00
|
|
|
RUN_DEPENDS= :mozilla-thunderbird-${V}:mail/mozilla-thunderbird
|
2006-07-02 12:32:35 -04:00
|
|
|
|
2006-12-30 17:53:03 -05:00
|
|
|
DIST_SUBDIR= ${NAME}-${V}
|
2006-07-02 12:32:35 -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:54:11 -05:00
|
|
|
|
2008-09-27 15:14:32 -04:00
|
|
|
.for i in ${LANGUAGES}
|
2006-07-02 12:32:35 -04:00
|
|
|
MULTI_PACKAGES+=-$i
|
|
|
|
DISTFILES+= $i.xpi
|
2007-07-26 13:49:15 -04:00
|
|
|
PKGNAME-$i= ${NAME}-$i-${V}
|
2006-07-02 12:32:35 -04:00
|
|
|
COMMENT-$i= $i language pack for Thunderbird
|
|
|
|
LPACKDIR-$i= ${PREFIX}/mozilla-thunderbird/extensions/langpack-$i@thunderbird.mozilla.org
|
|
|
|
.endfor
|
2009-01-09 10:45:41 -05:00
|
|
|
PKGNAME-en-GB= ${NAME}-en-GB-${V}
|
2006-07-02 12:32:35 -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-07-02 12:32:35 -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-07-02 12:32:35 -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/chromelist.txt ${LPACKDIR-$i}/chrome
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/$i/chrome/$i.jar ${LPACKDIR-$i}/chrome
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|