Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Uses/pkgconfig.mk
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# handle dependency on the pkgconf port | # handle dependency on the pkgconf port | ||||
# | # | ||||
# Feature: pkgconfig | # Feature: pkgconfig | ||||
# Usage: USES=pkgconfig or USES=pkgconfig:ARGS | # Usage: USES=pkgconfig or USES=pkgconfig:ARGS | ||||
# Valid ARGS: build (default, implicit), run, both | # Valid ARGS: build (default, implicit), run, both | ||||
# | # | ||||
# MAINTAINER: portmgr@FreeBSD.org | # MAINTAINER: portmgr@FreeBSD.org | ||||
.if !defined(_INCLUDE_USES_PKGCONFIG_MK) | .if !defined(_INCLUDE_USES_PKGCONFIG_MK) | ||||
_INCLUDE_USES_PKGCONFIG_MK= yes | _INCLUDE_USES_PKGCONFIG_MK= yes | ||||
_PKGCONFIG_DEPENDS= pkgconf:${PORTSDIR}/devel/pkgconf | _PKGCONFIG_DEPENDS= pkgconf:devel/pkgconf | ||||
.if empty(pkgconfig_ARGS) | .if empty(pkgconfig_ARGS) | ||||
pkgconfig_ARGS= build | pkgconfig_ARGS= build | ||||
.endif | .endif | ||||
.if ${pkgconfig_ARGS} == "build" | .if ${pkgconfig_ARGS} == "build" | ||||
BUILD_DEPENDS+= ${_PKGCONFIG_DEPENDS} | BUILD_DEPENDS+= ${_PKGCONFIG_DEPENDS} | ||||
CONFIGURE_ENV+= PKG_CONFIG=pkgconf | CONFIGURE_ENV+= PKG_CONFIG=pkgconf | ||||
Show All 11 Lines |