2008-03-26 21:09:43 +01:00
|
|
|
# $NetBSD: hacks.mk,v 1.4 2008/03/26 20:09:43 tron Exp $
|
2004-12-19 00:54:58 +01:00
|
|
|
|
|
|
|
# config.h #defines socklen_t if it is not defined, but libgcrypt does
|
|
|
|
# not propogate this to the installed gcrypt.h, so packages using it
|
|
|
|
# subsequently fail.
|
|
|
|
#
|
|
|
|
# hack around this by using the same #define (if present) in gcrypt.h.
|
|
|
|
post-configure:
|
2004-12-21 09:57:48 +01:00
|
|
|
socklen=`${GREP} '^#define socklen_t' ${WRKSRC}/config.h || ${TRUE}`; \
|
2004-12-19 00:54:58 +01:00
|
|
|
${MV} ${WRKSRC}/src/gcrypt.h ${WRKSRC}/src/gcrypt.h.old; \
|
|
|
|
${SED} -e "s,^/\* socklen_t \*/,$$socklen," \
|
|
|
|
${WRKSRC}/src/gcrypt.h.old > ${WRKSRC}/src/gcrypt.h
|