1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/misc/kde4-l10n/Makefile
Tobias C. Berner 0f583d8700 Replace Mk/bsd.kde4.mk by Mk/Uses/kde.mk in preparation for KDE Frameworks and
Plasma5 ports

At the moment KDE ports use bsd.kde4.mk to handle their dependencies. When
working on the ports for KDE Frameworks and Plasma5 it seemed to be more
reasonable to create a new kde.mk instead of adding an bsd.kde5.mk.

The kde.mk in this review is a stripped down version of the one we are using in
the KDE Test repositories plasma5 branch [1] to only contain the parts relevant
to the current KDE4 ports in the portstree [2].

Changes to the KDE Ports needed by this:

Replace USE_KDE4 by USE_KDE [3]
Add USES=kde:4 [4]
[1] http://src.mouf.net/area51/view/branches/plasma5/KDE/Mk/Uses/kde.mk
[2] The version in the plasma5 branch also handles frameworks/plasma5 and
    handles MASTER_SITES via a KDE_DIST variable similar to bsd.qt.mk for Qt
    Ports -- I chose to leave this out for now, as the diff is already large
    enough.
[3] I chose USE_KDE instead of USE_KDE4, USE_KDE5, USE_KDEX as the version we
    want is already specified as argument to kde:<arg>
[4] For KDE Frameworks and Plasma5 ports this would be kde:5

PR:             210667
Approved by:    portmgr, mat (mentor), rakuco (mentor)
Reviewed by:    mat, rakuco
Differential Revision:   https://reviews.freebsd.org/D6961
2016-08-24 08:20:31 +00:00

60 lines
1.6 KiB
Makefile

# Created by: Martin Wilke <miwi@FreeBSD.org>
# $FreeBSD$
PORTNAME= kde-l10n
PORTVERSION= ${KDE4_VERSION}
CATEGORIES= misc kde
MAINTAINER= kde@FreeBSD.org
COMMENT= Localized messages and documentation for KDE SC 4
USES= kde:4 metaport
KDE4_LANG_ALL= ar bg bs ca ca@valencia cs da de el en_GB es et eu fa \
fi fr ga gl he hi hr hu ia id is it ja kk km ko lt lv mr nb \
nds nl nn pa pl pt pt_BR ro ru sk sl sr sv tr ug \
uk wa zh_CN zh_TW
ar_PORT= arabic/kde4-l10n
ca@valencia_PORT= misc/kde4-l10n-ca_valencia
de_PORT= german/kde4-l10n
fr_PORT= french/kde4-l10n
he_PORT= hebrew/kde4-l10n
hu_PORT= hungarian/kde4-l10n
ja_PORT= japanese/kde4-l10n
ko_PORT= korean/kde4-l10n
pl_PORT= polish/kde4-l10n
pt_BR_PORT= portuguese/kde4-l10n-pt_BR
pt_PORT= portuguese/kde4-l10n
ru_PORT= russian/kde4-l10n
uk_PORT= ukrainian/kde4-l10n
vi_PORT= vietnamese/kde4-l10n
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_DEFINE= ALL ${LANG_OPT_ALL}
OPTIONS_DEFAULT= ALL
ALL_DESC= All localizations
.for lang in ${KDE4_LANG_ALL}
${lang}_DETECT?= ${KDE_PREFIX}/share/locale/${lang}/entry.desktop
${lang}_PORT?= misc/kde4-l10n-${lang}
${lang}_NAME?= ${lang}
${lang}_OPT= ${lang:S/@/_/}
LANG_OPT_ALL+= ${${lang}_OPT}
${${lang}_OPT}_DESC= ${${lang}_NAME} localization
${${lang}_OPT}_RUN_DEPENDS= ${${lang}_DETECT}:${${lang}_PORT}
.endfor
.for opt in ${LANG_OPT_ALL}
ALL_RUN_DEPENDS+= ${${opt}_RUN_DEPENDS}
.endfor
.include <bsd.port.mk>