mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-23 20:51:43 +00:00
- Fix build on 4.x (stdint.h -> inttypes.h)
Submitted by: mnag
This commit is contained in:
parent
f02fd0fdf0
commit
b73497debe
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=148491
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user