Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/grantlee.mk
Show All 14 Lines | |||||
# | # | ||||
# Using USES=grantlee:ARGS will export some usesful variables and plist subs | # Using USES=grantlee:ARGS will export some usesful variables and plist subs | ||||
# Variables: | # Variables: | ||||
# GRANTLEE_VERSION - the version of the chosen grantlee | # GRANTLEE_VERSION - the version of the chosen grantlee | ||||
# Subs: | # Subs: | ||||
# GRANTLEE_VERSION_FULL - full version of the chosen grantlee | # GRANTLEE_VERSION_FULL - full version of the chosen grantlee | ||||
# GRANTLEE_VERSION_SHORT - short version of the chosen grantlee | # GRANTLEE_VERSION_SHORT - short version of the chosen grantlee | ||||
# GRANTLEE_DEBUG_SUFFIX - a suffix to the library name depending | # GRANTLEE_DEBUG_SUFFIX - a suffix to the library name depending | ||||
# the buildtype (WITH_DEBUG) that gets | # the buildtype (DEBUG option) that gets | ||||
# appended to library names of plugins | # appended to library names of plugins | ||||
# for grantlee5. | # for grantlee5. | ||||
# | # | ||||
# Further it will also append the proper LIB_DEPENDS line. | # Further it will also append the proper LIB_DEPENDS line. | ||||
# | # | ||||
# MAINTAINER: kde@FreeBSD.org | # MAINTAINER: kde@FreeBSD.org | ||||
# | # | ||||
Show All 33 Lines | |||||
# Export the plist substitutions | # Export the plist substitutions | ||||
PLIST_SUB+= GRANTLEE_VERSION_FULL=${GRANTLEE_VERSION} \ | PLIST_SUB+= GRANTLEE_VERSION_FULL=${GRANTLEE_VERSION} \ | ||||
GRANTLEE_VERSION_SHORT=${GRANTLEE_VERSION:R} | GRANTLEE_VERSION_SHORT=${GRANTLEE_VERSION:R} | ||||
# GrantleeMacros.cmake provides grantlee_adjust_plugin_name() which appends a | # GrantleeMacros.cmake provides grantlee_adjust_plugin_name() which appends a | ||||
# letter 'd' to the library name in Debug mode. Provide a PLIST_SUB which can be | # letter 'd' to the library name in Debug mode. Provide a PLIST_SUB which can be | ||||
# appended in the plist. | # appended in the plist. | ||||
. if defined(WITH_DEBUG) | . if defined(_WITH_DEBUG) | ||||
PLIST_SUB+= GRANTLEE_DEBUG_SUFFIX=d | PLIST_SUB+= GRANTLEE_DEBUG_SUFFIX=d | ||||
. else | . else | ||||
PLIST_SUB+= GRANTLEE_DEBUG_SUFFIX="" | PLIST_SUB+= GRANTLEE_DEBUG_SUFFIX="" | ||||
. endif | . endif | ||||
.endif | .endif |