aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses/gettext-runtime.mk
blob: 5c0dc02f9b2a992c7131677dd63efd9e0768a3df (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# $FreeBSD$
#
# Handle dependency on the gettext-runtime (libintl) port
#
# Feature:  gettext-runtime
# Usage:    USES=gettext-runtime or USES=gettext-runtime:ARGS
# Valid ARGS:   lib (default), build, run
#
# MAINTAINER:   portmgr@FreeBSD.org

.if !defined(_INCLUDE_USES_GETTEXT_RUNTIME_MK)
_INCLUDE_USES_GETTEXT_RUNTIME_MK=   yes

.if empty(gettext-runtime_ARGS)
gettext-runtime_ARGS=   lib
.endif

.if ${gettext-runtime_ARGS:Mlib}
LIB_DEPENDS+=   libintl.so:${PORTSDIR}/devel/gettext-runtime
.endif
.if ${gettext-runtime_ARGS:Mbuild}
BUILD_DEPENDS+= gettext:${PORTSDIR}/devel/gettext-runtime
.endif
.if ${gettext-runtime_ARGS:Mrun}
RUN_DEPENDS+=   gettext:${PORTSDIR}/devel/gettext-runtime
.endif

.endif