2007-10-27 19:44:41 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.8 2007/10/27 23:44:41 ajacoutot Exp $
|
2007-04-07 07:52:20 -04:00
|
|
|
|
|
|
|
PKG_ARCH= *
|
|
|
|
|
2007-09-15 16:59:36 -04:00
|
|
|
COMMENT-main= ${MAINLANG} dictionary for Mozilla
|
2007-04-07 07:52:20 -04:00
|
|
|
V= 1.0
|
|
|
|
NAME= mozilla-dicts
|
|
|
|
PKGNAME= ${NAME}-${MAINLANG}-${V}
|
2007-05-28 10:47:54 -04:00
|
|
|
PKGNAME-main= ${NAME}-${MAINLANG}-${V}p2
|
2007-04-07 07:52:20 -04:00
|
|
|
|
|
|
|
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>
|
2007-04-07 07:52:20 -04:00
|
|
|
|
|
|
|
# Mozilla public license
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2007-06-09 13:59:52 -04:00
|
|
|
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}/
|
2007-04-07 07:52:20 -04:00
|
|
|
|
|
|
|
# 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
|
2007-05-28 10:47:54 -04:00
|
|
|
PKGNAME-$i= ${NAME}-$i-${V}p2
|
2007-04-07 07:52:20 -04:00
|
|
|
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>
|