From e7cf3a7fba265a859e21ed1df7b8cea73bb28ec4 Mon Sep 17 00:00:00 2001 From: sem Date: Wed, 16 Nov 2005 16:34:57 +0000 Subject: - Fix build on 4.x (stdint.h -> inttypes.h) Submitted by: mnag --- net/libnet-devel/Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'net/libnet-devel') diff --git a/net/libnet-devel/Makefile b/net/libnet-devel/Makefile index 99282bfaad90..c9e690d1b2ad 100644 --- a/net/libnet-devel/Makefile +++ b/net/libnet-devel/Makefile @@ -17,6 +17,7 @@ COMMENT= A C library for creating IP packets (development version) CONFLICTS= libnet*-1.* +USE_REINPLACE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} @@ -27,6 +28,16 @@ DOCS= README doc/BUGS doc/CHANGELOG doc/CONTRIB doc/COPYING \ doc/RAWSOCKET_NON_SEQUITUR doc/TODO EXAMPLES= sample/*.c +.include + +post-patch: +.if ${OSVERSION} < 500000 + ${REINPLACE_CMD} -e "s|stdint.h|inttypes.h|g" \ + ${WRKSRC}/include/libnet/libnet-types.h +.else + ${DO_NADA} +.endif + post-install: ${INSTALL_SCRIPT} ${WRKSRC}/libnet-config ${PREFIX}/bin @${MKDIR} ${EXAMPLESDIR} @@ -36,4 +47,4 @@ post-install: cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} .endif -.include +.include -- cgit