pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/gnutls also add a makefile snippet to fake up...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/251936b5b398
branches:  trunk
changeset: 395044:251936b5b398
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Fri Jul 03 11:00:05 2009 +0000

description:
also add a makefile snippet to fake up a "libgnutls-extra-config"
script which disappeared in gnutls-2.8, similar to "libgnutls-config.mk"

diffstat:

 security/gnutls/libgnutls-extra-config.mk |  18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diffs (22 lines):

diff -r b202ce06c44e -r 251936b5b398 security/gnutls/libgnutls-extra-config.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/gnutls/libgnutls-extra-config.mk Fri Jul 03 11:00:05 2009 +0000
@@ -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}



Home | Main Index | Thread Index | Old Index