diff options
author | sem <sem@FreeBSD.org> | 2005-11-17 00:34:57 +0800 |
---|---|---|
committer | sem <sem@FreeBSD.org> | 2005-11-17 00:34:57 +0800 |
commit | e7cf3a7fba265a859e21ed1df7b8cea73bb28ec4 (patch) | |
tree | e03d89fe5c2c4c3dd2e185f8266bf17bff0d8b4d /net/libnet-devel | |
parent | 13d37c2f1c9d5ed5a6417ad716ffac13ff87ff70 (diff) | |
download | freebsd-ports-gnome-e7cf3a7fba265a859e21ed1df7b8cea73bb28ec4.tar.gz freebsd-ports-gnome-e7cf3a7fba265a859e21ed1df7b8cea73bb28ec4.tar.zst freebsd-ports-gnome-e7cf3a7fba265a859e21ed1df7b8cea73bb28ec4.zip |
- Fix build on 4.x (stdint.h -> inttypes.h)
Submitted by: mnag
Diffstat (limited to 'net/libnet-devel')
-rw-r--r-- | net/libnet-devel/Makefile | 13 |
1 files changed, 12 insertions, 1 deletions
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 <bsd.port.pre.mk> + +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 <bsd.port.mk> +.include <bsd.port.post.mk> |