openbsd-ports/textproc/mozilla-dicts/Makefile

63 lines
1.6 KiB
Makefile
Raw Normal View History

2007-10-27 19:44:41 -04:00
# $OpenBSD: Makefile,v 1.8 2007/10/27 23:44:41 ajacoutot Exp $
PKG_ARCH= *
COMMENT-main= ${MAINLANG} dictionary for Mozilla
V= 1.0
NAME= mozilla-dicts
PKGNAME= ${NAME}-${MAINLANG}-${V}
PKGNAME-main= ${NAME}-${MAINLANG}-${V}p2
CATEGORIES= textproc
HOMEPAGE= https://addons.mozilla.org/firefox/browse/type:3
2007-05-22 14:47:14 -04:00
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://mirrors.protection.cx/~martynas/mozilla/dicts/${V}/ \
2007-10-27 19:44:41 -04:00
http://www.bsdfrog.org/OpenBSD/distfiles/mozilla/dictionaries/${V}/
# define one language for the main package
MAINLANG= en-GB
OTHERLANGS= bg-BG ca cs cy-GB danish de-AT de-CH de-DE el-GR en-AU \
en-CA eo-EO es-AR es-es fr-FR fr ga-IE he hr hu is-IS is \
it-IT lt lv-LV nb-NO_nn-NO nl-NL pl pt-BR pt-PT ro ru sl sv
BUILD_DEPENDS= :unzip-*:archivers/unzip
DIST_SUBDIR= ${NAME}-${V}
NO_BUILD= Yes
NO_REGRESS= Yes
DISTFILES= ${MAINLANG}.xpi
MULTI_PACKAGES= -main
.for i in ${OTHERLANGS}
MULTI_PACKAGES+=-$i
DISTFILES+= $i.xpi
PKGNAME-$i= ${NAME}-$i-${V}p2
COMMENT-$i= $i dictionary for Mozilla
.endfor
SUBST_VARS= MAINLANG
do-extract:
.for i in ${MAINLANG} ${OTHERLANGS}
@${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>