openbsd-ports/mail/thunderbird-i18n/Makefile.inc
landry 7441780c52 Convert thunderbird-i18n to use subdirs/Makefile.inc instead of abusing
multipackages, allows to parallelize builds in dpb. This way they also
share PLIST and DESCR.. while here take maintainership (agreed by previous)
and set @pkgpath for seamless updates.
prodded by/based on an initial work by espie@
2012-01-22 17:11:57 +00:00

61 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile.inc,v 1.1 2012/01/22 17:11:57 landry Exp $
# keep in sync with www/mozilla/mozilla.port.mk
ONLY_FOR_ARCHS = amd64 i386 powerpc
PKG_ARCH = *
FV = 9.0.1
V = ${FV:C/b.$//}
NAME = thunderbird-i18n
CATEGORIES = mail
HOMEPAGE = https://wiki.mozilla.org/L10n:Home_Page
MAINTAINER = Landry Breuil <landry@openbsd.org>
# Mozilla public license
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${FV}/linux-i686/xpi/ \
http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${FV}/linux-i686/xpi/ \
ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/${FV}/linux-i686/xpi/
LANGUAGES = ar be bg bn-BD br ca cs da de el en-GB en-US es-AR es-ES et eu \
fi fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO \
pa-IN pl pt-BR pt-PT rm ro ru si sk sl sq sv-SE ta-LK tr uk vi \
zh-CN zh-TW
BUILD_DEPENDS = archivers/unzip
RUN_DEPENDS = thunderbird-${FV:S/b/beta/}:mail/mozilla-thunderbird
DIST_SUBDIR = mozilla/${NAME}-${FV}
NO_BUILD = Yes
NO_REGRESS = Yes
EXTRACT_ONLY =
.for i in ${LANGUAGES}
SUPDISTFILES += $i.xpi
.endfor
PKGNAME = ${NAME}-$L-${FV:S/b/beta/}
REVISION = 0
COMMENT = $L language pack for Thunderbird
DISTFILES = $L.xpi
# use the same for all subpackages
PKGDIR = ${.CURDIR}/../pkg
PLIST = ${PKGDIR}/PLIST
DESCR = ${PKGDIR}/DESCR
CHECKSUM_FILE = ${.CURDIR}/../distinfo
MESSAGE= ${PKGDIR}/MESSAGE
SUBST_VARS = V L
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/thunderbird-$V/extensions
${INSTALL_DATA} ${FULLDISTDIR}/$L.xpi ${PREFIX}/lib/thunderbird-$V/extensions/langpack-$L@thunderbird.mozilla.org.xpi