openbsd-ports/textproc/mozilla-dicts/Makefile
2010-10-11 08:11:24 +00:00

63 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.13 2010/10/11 08:18:29 jasper Exp $
# keep in sync with www/mozilla/mozilla.port.mk
ONLY_FOR_ARCHS= alpha amd64 arm i386 powerpc sparc64
PKG_ARCH= *
V= 1.2
NAME= mozilla-dicts
PKGNAME= ${NAME}-${V}
REVISION= 0
CATEGORIES= textproc
HOMEPAGE= https://addons.mozilla.org/firefox/browse/type:3
MAINTAINER= Martynas Venckus <martynas@openbsd.org>
# Mozilla public license
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://openbsddistfiles.com/martynas/mozilla/dicts/${V}/
LANGUAGES= af ar be bg ca cs cy-GB da de-AT de-CH de-DE el-EN \
el en-AU en-CA en-GB en-ZA eo es-AR es-ES et eu fr \
fy-NL ga-IE gl he hr hsb hu id is it ku la lt lv \
nb-NO nl nn-NO pl pt-BR pt-PT ro ru sk sl sq sr \
sv-SE uk
BUILD_DEPENDS= :unzip-*:archivers/unzip
DIST_SUBDIR= ${NAME}-${V}
NO_BUILD= Yes
NO_REGRESS= Yes
# define one language for the main package
SUBPACKAGE?= -en-GB
.for i in ${LANGUAGES}
MULTI_PACKAGES+=-$i
DISTFILES+= $i.xpi
PKGNAME-$i= ${NAME}-$i-${V}
COMMENT-$i= $i dictionary for Mozilla
.endfor
do-extract:
.for i in ${LANGUAGES}
@${UNZIP} -oq ${FULLDISTDIR}/$i.xpi -d ${WRKDIR} \*.aff
@${UNZIP} -oq ${FULLDISTDIR}/$i.xpi -d ${WRKDIR} \*.dic
.endfor
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/mozilla-dicts
${INSTALL_DATA} ${WRKDIR}/dictionaries/*.aff \
${PREFIX}/share/mozilla-dicts/
${INSTALL_DATA} ${WRKDIR}/dictionaries/*.dic \
${PREFIX}/share/mozilla-dicts/
.include <bsd.port.mk>