1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/Mk/Uses/pkgconfig.mk
Tijl Coosemans 5bc688d3c8 Require at least version 0.9.10 of pkgconf. This version fixed a problem
with parsing comments.

Several users reported a problem building security/gnutls because
hogweed.pc (provided by security/nettle) contains the following line:

Requires: # nettle

Older versions of pkgconf try to look for a package named "#" and fail.
2016-04-24 19:20:10 +00:00

34 lines
801 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>=0.9.10: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