2014-01-16 11:14:09 +01:00
|
|
|
# $NetBSD: libgnutls-config.mk,v 1.3 2014/01/16 10:14:09 wiz Exp $
|
2009-07-02 20:53:46 +02:00
|
|
|
|
|
|
|
# Makefile intended to be included by packages that need "libgnutls-config"
|
|
|
|
# during build time.
|
|
|
|
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
|
2009-09-01 19:48:14 +02:00
|
|
|
pre-configure: hack-libgnutls-config
|
2009-07-02 20:53:46 +02:00
|
|
|
|
2014-01-16 11:14:09 +01:00
|
|
|
.PHONY: hack-libgnutls-config
|
2009-09-01 19:48:14 +02:00
|
|
|
hack-libgnutls-config:
|
2009-07-02 20:53:46 +02:00
|
|
|
${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\
|
2009-09-01 19:48:14 +02:00
|
|
|
" > ${BUILDLINK_DIR}/bin/libgnutls-config
|
|
|
|
${CHMOD} +x ${BUILDLINK_DIR}/bin/libgnutls-config
|