Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/grantlee.mk
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# $FreeBSD$ | |||||
# | |||||
# Handle dependency on grantlee | |||||
# | |||||
# Feature: grantlee | |||||
# Usage: USES=grantlee:ARGS | |||||
# Valid ARGS: <version>,selfbuild | |||||
mat: Use english :-) | |||||
# | |||||
# version The chooseable versions are 4 and 5. | |||||
# USES=grantlee:4 # Use grantlee 0.x (qt4-based) | |||||
# USES=grantlee:5 # Use grantlee 5.x (qt5-based) | |||||
# | |||||
# selfbuild Used in devel/grantlee and devel/grantlee5 to suck in versions | |||||
# but not LIB_DEPENDS. | |||||
# | |||||
# MAINTAINER: kde@FreeBSD.org | |||||
Done Inline ActionsTry to use the same format as other USES, first the feature/usage/args, then a description of the args, then what it is for and all. mat: Try to use the same format as other USES, first the feature/usage/args, then a description of… | |||||
# | |||||
Done Inline ActionsMAINTAINER should be email addresses. mat: MAINTAINER should be email addresses. | |||||
.if ! defined(_INCLUDE_USES_GRANTLEE_MK) | |||||
_INCLUDE_USES_GRANTLEE_MK= YES | |||||
GRANTLEE_SUPPORTED= 4 5 | |||||
GRANTLEE4_VER= 0.5.1 | |||||
GRANTLEE5_VER= 5.1.0 | |||||
GRANTLEE4_LIB_DEPEND= libgrantlee_core.so:devel/grantlee | |||||
GRANTLEE5_LIB_DEPEND= libGrantlee_Templates.so:devel/grantlee5 | |||||
_grantlee_version= # | |||||
. for ver in ${GRANTLEE_SUPPORTED:O:u} | |||||
. if ${grantlee_ARGS:M${ver}} | |||||
. if empty(_grantlee_version) | |||||
_grantlee_version= ${ver} | |||||
. else | |||||
IGNORE= Incorrect USES=grantlee:${grantlee_ARGS} - multiple versions defined | |||||
. endif | |||||
. endif | |||||
. endfor | |||||
. if empty(_grantlee_version) | |||||
IGNORE= Incorrect USES=grantlee:${grantlee_ARGS} - no version defined | |||||
. endif | |||||
GRANTLEE_VERSION= ${GRANTLEE${_grantlee_version}_VER} | |||||
GRANTLEE_LIB_DEPEND= ${GRANTLEE${_grantlee_version}_LIB_DEPEND} | |||||
. if ${grantlee_ARGS:Mselfbuild} | |||||
Done Inline ActionsThis feels like being missnomed, it should only contain the library name *.so, or be called *_LIB_DEPEND or something. mat: This feels like being missnomed, it should only contain the library name `*.so`, or be called… | |||||
PLIST_SUB+= SHLIB_VER=${GRANTLEE_VERSION} | |||||
. else | |||||
LIB_DEPENDS+= ${GRANTLEE_LIB_DEPEND} | |||||
Done Inline ActionsMy first reaction was to say "use a more specifc term and not SHLIB_VER" but then, I read the grantlee 4 port. mat: My first reaction was to say "use a more specifc term and not SHLIB_VER" but then, I read the… | |||||
. endif | |||||
PLIST_SUB+= GRANTLEE_VER=${GRANTLEE_VERSION:R} | |||||
.endif |
Use english :-)