aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--misc/kde4-l10n/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/misc/kde4-l10n/Makefile b/misc/kde4-l10n/Makefile
index d5d0794cf6dc..5f7c572a00ed 100644
--- a/misc/kde4-l10n/Makefile
+++ b/misc/kde4-l10n/Makefile
@@ -42,22 +42,21 @@ zh_CN_PORT= chinese/kde4-l10n-zh_CN
zh_TW_PORT= chinese/kde4-l10n-zh_TW
.include <${.CURDIR}/files/kde4-lang-names>
+nb_NAME= Norwegian Bokmal
OPTIONS= ALL "All localizations" on
.for lang in ${KDE4_LANG_ALL}
-OPTIONS+= ${lang} "${${lang}_NAME} localization" off
-.endfor
-
-.include <bsd.port.pre.mk>
-
-.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
.endfor
+.include <bsd.port.options.mk>
+
.for lang in ${KDE4_LANG_ALL}
-.if defined(WITH_ALL) || defined(WITH_${lang})
+.if defined(WITH_ALL) || defined(WITH_${${lang}_OPTION})
RUN_DEPENDS+= ${${lang}_DETECT}:${PORTSDIR}/${${lang}_PORT}
.endif
.endfor
@@ -65,4 +64,4 @@ RUN_DEPENDS+= ${${lang}_DETECT}:${PORTSDIR}/${${lang}_PORT}
do-install:
${DO_NADA}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>