From 847532d74e1b6343007a84284015c83435b1812c Mon Sep 17 00:00:00 2001 From: tnn Date: Thu, 2 Jul 2009 18:53:46 +0000 Subject: Makefile intended to be included by packages that need "libgnutls-config" during build time. Tested with net/lftp. --- security/gnutls/libgnutls-config.mk | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 security/gnutls/libgnutls-config.mk (limited to 'security') diff --git a/security/gnutls/libgnutls-config.mk b/security/gnutls/libgnutls-config.mk new file mode 100644 index 00000000000..3fc414408de --- /dev/null +++ b/security/gnutls/libgnutls-config.mk @@ -0,0 +1,18 @@ +# $NetBSD: libgnutls-config.mk,v 1.1 2009/07/02 18:53:46 tnn Exp $ + +# Makefile intended to be included by packages that need "libgnutls-config" +# during build time. + +USE_TOOLS+= pkg-config + +pre-configure: ${WRAPPER_DIR}/bin/libgnutls-config + +${WRAPPER_DIR}/bin/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\ + " > ${.TARGET} + ${CHMOD} +x ${.TARGET} -- cgit v1.2.3