aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gimp-help/Makefile
blob: 58fd07a1bfd2aaf5c1ee30a5eb3ed968c83eb9e8 (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
65
66
67
68
69
70
# New ports collection makefile for:    gimp-help
# Date created:             28 May, 2005
# Whom:                 Adam Weinberger <adamw@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   gimp-help
PORTVERSION=    2.6.1
CATEGORIES= graphics
MASTER_SITES=   # empty
PKGNAMESUFFIX=  -html
DISTFILES=  # none
EXTRACT_ONLY=   # empty

MAINTAINER= liangtai.s4@gmail.com
COMMENT=    The meta port for GIMP User Manual

LICENSE=    GFDL

NO_BUILD=   yes

LANG_ALL=   de en es fr it ja ko nl nn pl ru sv zh_CN

de_PORT=    german/gimp-help
fr_PORT=    french/gimp-help
ja_PORT=    japanese/gimp-help
ko_PORT=    korean/gimp-help
pl_PORT=    polish/gimp-help
ru_PORT=    russian/gimp-help
zh_CN_PORT= chinese/gimp-help-zh_CN

# you can find more in ${PORTSDIR}/misc/kde4-l10n/files/kde4-lang-names
de_NAME=    German
en_NAME=    English
es_NAME=    Spanish
fr_NAME=    French
it_NAME=    Italian
ja_NAME=    Japanese
ko_NAME=    Korean
nl_NAME=    Dutch
nn_NAME=    Norwegian Nynorsk
pl_NAME=    Polish
ru_NAME=    Russian
sv_NAME=    Swedish
zh_CN_NAME= Chinese Simplified

.for lang in ${LANG_ALL}
${lang}_DETECT?=    ${LOCALBASE}/share/gimp/help/${lang}/index.html
${lang}_PORT?=      misc/gimp-help-${lang}
${lang}_NAME?=      ${lang}
.endfor

OPTIONS=    ALL "All translations" on
.for lang in ${LANG_ALL}
OPTIONS+=   ${lang:U} "${${lang}_NAME}" off
.endfor

.include <bsd.port.options.mk>

.for lang in ${LANG_ALL}
.if defined(WITH_ALL) || defined(WITH_${lang:U})
RUN_DEPENDS+=   ${${lang}_DETECT}:${PORTSDIR}/${${lang}_PORT}
.endif
.endfor

do-install:
    ${DO_NADA}

.include <bsd.port.mk>