Sync Mk with ports
[dports.git] / Mk / Uses / gettext-runtime.mk
1 # $FreeBSD$
2 #
3 # Handle dependency on the gettext-runtime (libintl) port
4 #
5 # Feature:      gettext-runtime
6 # Usage:        USES=gettext-runtime or USES=gettext-runtime:ARGS
7 # Valid ARGS:   lib (default), build, run
8 #
9 # MAINTAINER:   portmgr@FreeBSD.org
10
11 .if !defined(_INCLUDE_USES_GETTEXT_RUNTIME_MK)
12 _INCLUDE_USES_GETTEXT_RUNTIME_MK=       yes
13
14 .if empty(gettext-runtime_ARGS)
15 gettext-runtime_ARGS=   lib
16 .endif
17
18 .if ${gettext-runtime_ARGS:Mlib}
19 LIB_DEPENDS+=   libintl.so:devel/gettext-runtime
20 .endif
21 .if ${gettext-runtime_ARGS:Mbuild}
22 BUILD_DEPENDS+= gettext:devel/gettext-runtime
23 .endif
24 .if ${gettext-runtime_ARGS:Mrun}
25 RUN_DEPENDS+=   gettext:devel/gettext-runtime
26 .endif
27
28 .endif