1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-30 01:15:52 +00:00
freebsd-ports/Mk/Uses/gettext.mk
Jason Helfman a81cf14346 Introduces USES= gettext to replace USE_GETTEXT
It can take 3 arguments:
  build to add gettext into both RUN and BUILD DEPENDS
  run to add gettext into RUN_DEPENDS
  lib (default,implicit) to add gettext into LIB_DEPENDS

  This deprecates USE_GETTEXT. Please convert your ports.
  USE_GETTEXT will be removed as soon as it is no longer used in
  the ports tree

Approved by:	portmgr (bapt)
2013-04-23 07:27:18 +00:00

32 lines
688 B
Makefile

# $FreeBSD$
#
# handle dependency on the gettext (libintl) port
#
# MAINTAINER: portmgr@FreeBSD.org
#
# Feature: gettext
# Usage: USES=gettext or USES=gettext:ARGS
# Valid ARGS: build, run, lib (default, implicit)
#
#
.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+= intl:${PORTSDIR}/devel/gettext
.else
IGNORE= USES=gettext - invalid args: [${gettext_ARGS}] specifed
.endif
.endif