blob: 26a9cd4eb7b2b2ba7a7ae9067fb80a8785de7a55 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Created by: Timur I. Bakeyev <timur@gnome.org>
# $FreeBSD$
PORTNAME= stardict-quick
PORTVERSION= 2.4.2
PORTREVISION= 9
CATEGORIES= textproc
MASTER_SITES= http://abloz.com/huzheng/stardict-dic/Quick/
DIST_SUBDIR= stardict
MAINTAINER= makc@FreeBSD.org
COMMENT= Dictionaries from Quick for StarDict
NO_BUILD= yes
USE_BZIP2= yes
DATADIR= ${PREFIX}/share/stardict
DICTDIR= ${DATADIR}/dic
PORTDATA= *
DICTIONARIES= afr-eng afr-swe bul-swe dan-deu dan-eng dan-fin dan-fra \
dan-hun dan-ind dan-ita dan-jpn dan-lat dan-nld dan-nor \
dan-por dan-rus dan-spa dan-swa dan-swe deu-dan deu-deu \
deu-eng deu-swe eng-afr eng-dan eng-deu eng-eng eng-fin \
eng-fra eng-gre eng-hun eng-ind eng-ita eng-jpn eng-lat \
eng-nld eng-nor eng-por eng-rus eng-spa eng-swa eng-swe \
esp-swe fin-dan fin-eng fin-swe fra-dan fra-eng fra-swe \
fry-swe gre-eng gre-swe hun-dan hun-eng hun-swe ind-dan \
ind-eng ind-swe isl-swe ita-dan ita-eng ita-swe jpn-dan \
jpn-eng jpn-swe lat-dan lat-eng lat-swe nld-dan nld-eng \
nld-swe nor-dan nor-eng nor-swe pol-swe por-dan por-eng \
por-swe rum-swe rus-dan rus-eng rus-swe slo-swe spa-dan \
spa-eng spa-swe swa-dan swa-eng swa-swe swe-afr swe-bul \
swe-dan swe-deu swe-eng swe-esp swe-fin swe-fra swe-fry \
swe-gre swe-hun swe-ind swe-isl swe-ita swe-jpn swe-lat \
swe-nld swe-nor swe-pol swe-por swe-rum swe-rus swe-slo \
swe-spa swe-swa swe-wel wel-swe
OPTIONS_DEFINE= ALL
OPTIONS_DEFAULT= ALL
ALL_DESC= All dictionaries
.for dict in ${DICTIONARIES}
OPTIONS_DEFINE+= ${dict:tu:S|-|_|g}
${dict:tu:S|-|_|g}_DESC= ${dict} dictionary
${dict}_DISTNAME= ${PORTNAME}_${dict}-${PORTVERSION}
.endfor
.include <bsd.port.options.mk>
.for dict in ${DICTIONARIES}
.if ${PORT_OPTIONS:MALL} || ${PORT_OPTIONS:M${dict:tu:S|-|_|g}}
INSTALL_DICTIONARIES+= ${dict}
DISTFILES+= ${${dict}_DISTNAME}${EXTRACT_SUFX}
.endif
.endfor
do-install:
@${MKDIR} ${STAGEDIR}${DICTDIR}
.for dict in ${INSTALL_DICTIONARIES}
${INSTALL_DATA} ${WRKDIR}/${${dict}_DISTNAME}/* \
${STAGEDIR}${DICTDIR}
.endfor
.include <bsd.port.mk>
|