421767bd88
The infrastructure Makefiles PR: 206569 Exp run by: antoine Differential Revision: D5047
34 lines
793 B
Makefile
34 lines
793 B
Makefile
# $FreeBSD$
|
|
#
|
|
# handle dependency on the pkgconf port
|
|
#
|
|
# Feature: pkgconfig
|
|
# Usage: USES=pkgconfig or USES=pkgconfig:ARGS
|
|
# Valid ARGS: build (default, implicit), run, both
|
|
#
|
|
# MAINTAINER: portmgr@FreeBSD.org
|
|
|
|
.if !defined(_INCLUDE_USES_PKGCONFIG_MK)
|
|
_INCLUDE_USES_PKGCONFIG_MK= yes
|
|
|
|
_PKGCONFIG_DEPENDS= pkgconf:devel/pkgconf
|
|
|
|
.if empty(pkgconfig_ARGS)
|
|
pkgconfig_ARGS= build
|
|
.endif
|
|
|
|
.if ${pkgconfig_ARGS} == "build"
|
|
BUILD_DEPENDS+= ${_PKGCONFIG_DEPENDS}
|
|
CONFIGURE_ENV+= PKG_CONFIG=pkgconf
|
|
.elif ${pkgconfig_ARGS} == "run"
|
|
RUN_DEPENDS+= ${_PKGCONFIG_DEPENDS}
|
|
.elif ${pkgconfig_ARGS} == "both"
|
|
CONFIGURE_ENV+= PKG_CONFIG=pkgconf
|
|
BUILD_DEPENDS+= ${_PKGCONFIG_DEPENDS}
|
|
RUN_DEPENDS+= ${_PKGCONFIG_DEPENDS}
|
|
.else
|
|
IGNORE= USES=pkgconfig - invalid args: [${pkgconfig_ARGS}] specified
|
|
.endif
|
|
|
|
.endif
|