Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/gettext-runtime.mk
# Handle dependency on the gettext-runtime (libintl) port | # Handle dependency on the gettext-runtime (libintl) port | ||||
# | # | ||||
# Feature: gettext-runtime | # Feature: gettext-runtime | ||||
# Usage: USES=gettext-runtime or USES=gettext-runtime:ARGS | # Usage: USES=gettext-runtime or USES=gettext-runtime:ARGS | ||||
# Valid ARGS: lib (default), build, run | # Valid ARGS: lib (default), build, run | ||||
# | # | ||||
# MAINTAINER: tijl@FreeBSD.org | # MAINTAINER: tijl@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_GETTEXT_RUNTIME_MK) | .if !defined(_INCLUDE_USES_GETTEXT_RUNTIME_MK) | ||||
_INCLUDE_USES_GETTEXT_RUNTIME_MK= yes | _INCLUDE_USES_GETTEXT_RUNTIME_MK= yes | ||||
.if empty(gettext-runtime_ARGS) | . if empty(gettext-runtime_ARGS) | ||||
gettext-runtime_ARGS= lib | gettext-runtime_ARGS= lib | ||||
.endif | . endif | ||||
.if ${gettext-runtime_ARGS:Mlib} | . if ${gettext-runtime_ARGS:Mlib} | ||||
LIB_DEPENDS+= libintl.so:devel/gettext-runtime | LIB_DEPENDS+= libintl.so:devel/gettext-runtime | ||||
.endif | . endif | ||||
.if ${gettext-runtime_ARGS:Mbuild} | . if ${gettext-runtime_ARGS:Mbuild} | ||||
BUILD_DEPENDS+= gettext:devel/gettext-runtime | BUILD_DEPENDS+= gettext:devel/gettext-runtime | ||||
.endif | . endif | ||||
.if ${gettext-runtime_ARGS:Mrun} | . if ${gettext-runtime_ARGS:Mrun} | ||||
RUN_DEPENDS+= gettext:devel/gettext-runtime | RUN_DEPENDS+= gettext:devel/gettext-runtime | ||||
.endif | . endif | ||||
.endif | .endif |