pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/gnutls Makefile intended to be included by pa...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7b2270e33dd4
branches: trunk
changeset: 560881:7b2270e33dd4
user: tnn <tnn%pkgsrc.org@localhost>
date: Thu Jul 02 18:53:46 2009 +0000
description:
Makefile intended to be included by packages that need "libgnutls-config"
during build time.
Tested with net/lftp.
diffstat:
security/gnutls/libgnutls-config.mk | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r e97c2dbe51b7 -r 7b2270e33dd4 security/gnutls/libgnutls-config.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/gnutls/libgnutls-config.mk Thu Jul 02 18:53:46 2009 +0000
@@ -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}
Home |
Main Index |
Thread Index |
Old Index