aboutsummaryrefslogtreecommitdiffstats
path: root/misc/kde4-l10n/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/kde4-l10n/Makefile')
-rw-r--r--misc/kde4-l10n/Makefile31
1 files changed, 18 insertions, 13 deletions
diff --git a/misc/kde4-l10n/Makefile b/misc/kde4-l10n/Makefile
index 7b89217e2c6b..a92ff5037449 100644
--- a/misc/kde4-l10n/Makefile
+++ b/misc/kde4-l10n/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: kde4-l10n
-# Date created: 21 July 2008
-# Whom: Martin Wilke <miwi@FreeBSD.org>
-#
+# Created by: Martin Wilke <miwi@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= kde-l10n
PORTVERSION= ${KDE4_VERSION}
@@ -19,7 +15,7 @@ NO_BUILD= yes
USE_KDE4= kdeprefix
KDE4_LANG_ALL= ar bg bs ca ca@valencia cs da de el en_GB es et eu fa \
- fi fr ga gl he hr hu ia id is it ja kk km ko lt lv nb nds \
+ fi fr ga gl he hi hr hu ia is it ja kk km ko lt lv nb nds \
nl nn pa pl pt pt_BR ro ru si sk sl sr sv tg th tr ug uk \
vi wa zh_CN zh_TW
@@ -41,23 +37,32 @@ zh_CN_PORT= chinese/kde4-l10n-zh_CN
zh_TW_PORT= chinese/kde4-l10n-zh_TW
.include <${.CURDIR}/files/kde4-lang-names>
+# kde4-lang-names is encoded in UTF, override with plain ASCII:
nb_NAME= Norwegian Bokmal
-OPTIONS= ALL "All localizations" on
+OPTIONS_DEFINE= ALL ${LANG_OPT_ALL}
+OPTIONS_DEFAULT= ALL
+
+ALL_DESC= All localizations
+
.for lang in ${KDE4_LANG_ALL}
${lang}_DETECT?= ${KDE4_PREFIX}/share/locale/${lang}/entry.desktop
${lang}_PORT?= misc/kde4-l10n-${lang}
${lang}_NAME?= ${lang}
-${lang}_OPTION= ${lang:S/@/_/}
-OPTIONS+= ${${lang}_OPTION} "${${lang}_NAME} localization" off
+
+${lang}_OPT= ${lang:S/@/_/}
+LANG_OPT_ALL+= ${${lang}_OPT}
+${${lang}_OPT}_DESC= ${${lang}_NAME} localization
+
+${${lang}_OPT}_DEP= ${${lang}_DETECT}:${PORTSDIR}/${${lang}_PORT}
.endfor
.include <bsd.port.options.mk>
-.for lang in ${KDE4_LANG_ALL}
-.if defined(WITH_ALL) || defined(WITH_${${lang}_OPTION})
-RUN_DEPENDS+= ${${lang}_DETECT}:${PORTSDIR}/${${lang}_PORT}
-.endif
+.for opt in ${LANG_OPT_ALL}
+. if ${PORT_OPTIONS:M${opt}} || ${PORT_OPTIONS:MALL}
+RUN_DEPENDS+= ${${opt}_DEP}
+. endif
.endfor
do-install: