3be3d2df5c
during build time. Tested with net/lftp.
18 lines
495 B
Makefile
18 lines
495 B
Makefile
# $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}
|