18 lines
571 B
Makefile
18 lines
571 B
Makefile
# $NetBSD: libgnutls-extra-config.mk,v 1.2 2009/11/26 14:18:26 joerg Exp $
|
|
|
|
# Makefile intended to be included by packages that need
|
|
# "libgnutls-extra-config" during build time.
|
|
|
|
USE_TOOLS+= pkg-config
|
|
|
|
pre-configure: hack-libgnutls-extra-config
|
|
|
|
hack-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\
|
|
" > ${BUILDLINK_DIR}/bin/libgnutls-extra-config
|
|
${CHMOD} +x ${BUILDLINK_DIR}/bin/libgnutls-extra-config
|