mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
5b4f2ad658
make things a bit more consistent. Approved by: portmgr (bapt)
31 lines
692 B
Makefile
31 lines
692 B
Makefile
# $FreeBSD$
|
|
#
|
|
# handle dependency on the gettext (libintl) port
|
|
#
|
|
# Feature: gettext
|
|
# Usage: USES=gettext or USES=gettext:ARGS
|
|
# Valid ARGS: build, run, lib (default, implicit)
|
|
#
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
|
|
.if !defined(_INCLUDE_USES_GETTEXT_MK)
|
|
_INCLUDE_USES_GETTEXT_MK= yes
|
|
|
|
_GETTEXT_DEPENDS= xgettext:${PORTSDIR}/devel/gettext
|
|
|
|
.if !defined(gettext_ARGS)
|
|
gettext_ARGS= lib
|
|
.endif
|
|
|
|
.if ${gettext_ARGS} == "build"
|
|
BUILD_DEPENDS+= ${_GETTEXT_DEPENDS}
|
|
.elif ${gettext_ARGS} == "run"
|
|
RUN_DEPENDS+= ${_GETTEXT_DEPENDS}
|
|
.elif ${gettext_ARGS} == "lib"
|
|
LIB_DEPENDS+= libintl.so:${PORTSDIR}/devel/gettext
|
|
.else
|
|
IGNORE= USES=gettext - invalid args: [${gettext_ARGS}] specified
|
|
.endif
|
|
|
|
.endif
|