summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authortnn <tnn>2009-07-02 18:53:46 +0000
committertnn <tnn>2009-07-02 18:53:46 +0000
commit3366ae508703267c6c5545710f0c973f33474710 (patch)
tree1a146e60d5b057cd55701ba45cbed628071b35b7 /security
parent66ea54f2b1a7a104136a12f12e4ddec631458f5b (diff)
downloadpkgsrc-3366ae508703267c6c5545710f0c973f33474710.tar.gz
Makefile intended to be included by packages that need "libgnutls-config"
during build time. Tested with net/lftp.
Diffstat (limited to 'security')
-rw-r--r--security/gnutls/libgnutls-config.mk18
1 files changed, 18 insertions, 0 deletions
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}