summaryrefslogtreecommitdiff
path: root/security/gnutls/libgnutls-config.mk
blob: ac5d3152524477a31d07470f34a326553867e66c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# $NetBSD: libgnutls-config.mk,v 1.3 2014/01/16 10:14:09 wiz Exp $

# Makefile intended to be included by packages that need "libgnutls-config"
# during build time.

USE_TOOLS+=	pkg-config

pre-configure: hack-libgnutls-config

.PHONY: hack-libgnutls-config
hack-libgnutls-config:
	${PRINTF} "#! ${SH}\\n\
	  case \$$1 in\\n\
	  --cflags|--libs) pkg-config \$$1 gnutls;;\\n\
	  --version) pkg-config --modversion gnutls;;\\n\
	  *) exit 1;;\\n\
	  esac\\n\
	" > ${BUILDLINK_DIR}/bin/libgnutls-config
	${CHMOD} +x ${BUILDLINK_DIR}/bin/libgnutls-config