diff options
-rw-r--r-- | security/gnutls/libgnutls-extra-config.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/security/gnutls/libgnutls-extra-config.mk b/security/gnutls/libgnutls-extra-config.mk new file mode 100644 index 00000000000..b9b30645b8a --- /dev/null +++ b/security/gnutls/libgnutls-extra-config.mk @@ -0,0 +1,18 @@ +# $NetBSD: libgnutls-extra-config.mk,v 1.1 2009/07/03 11:00:05 drochner Exp $ + +# Makefile intended to be included by packages that need +# "libgnutls-extra-config" during build time. + +USE_TOOLS+= pkg-config + +pre-configure: ${WRAPPER_DIR}/bin/libgnutls-extra-config + +${WRAPPER_DIR}/bin/libgnutls-extra-config: + ${PRINTF} "#! ${SH}\\n\ + case \$$1 in\\n\ + --cflags|--libs) pkg-config \$$1 gnutls-extra;;\\n\ + --version) pkg-config --modversion gnutls-extra;;\\n\ + *) exit 1;;\\n\ + esac\\n\ + " > ${.TARGET} + ${CHMOD} +x ${.TARGET} |