pkgsrc/security/gnutls/libgnutls-extra-config.mk
drochner f619581511 also add a makefile snippet to fake up a "libgnutls-extra-config"
script which disappeared in gnutls-2.8, similar to "libgnutls-config.mk"
2009-07-03 11:00:05 +00:00

18 lines
536 B
Makefile

# $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}