mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
607697382c
- Bump PORTREVISION for package change PR: 216308 [1], 217093 [2] Submitted by: <ganbold-freebsd@ateamsystems.com> [1], Eugene Grosbein <ports@grosbein.net> [2]
56 lines
1.3 KiB
Makefile
56 lines
1.3 KiB
Makefile
# Created by: shipley@dis.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libnet
|
|
PORTVERSION= 1.1.6
|
|
PORTREVISION= 5
|
|
PORTEPOCH= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= SF/libnet-dev
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= C library for creating IP packets
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/doc/COPYING
|
|
|
|
OPTIONS_DEFINE= BPF DOCS EXAMPLES
|
|
OPTIONS_DEFAULT=BPF
|
|
BPF_DESC= link layer bpf
|
|
|
|
GNU_CONFIGURE= yes
|
|
INSTALL_TARGET= install-strip
|
|
USE_CSTD= gnu89
|
|
USE_LDCONFIG= yes
|
|
USES= libtool
|
|
|
|
DOCS= CHANGELOG CONTRIB DESIGN_NOTES MIGRATION PACKET_BUILDING PORTED RAWSOCKET_NON_SEQUITUR README TODO
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
BPF_CONFIGURE_OFF= --with-link-layer=none
|
|
BPF_CONFIGURE_ON= --with-link-layer=bpf
|
|
|
|
post-patch:
|
|
@${MV} ${WRKSRC}/README ${WRKSRC}/doc/
|
|
@${REINPLACE_CMD} \
|
|
-e 's|@LIBNET_CONFIG_LIBS@|@LIBNET_CONFIG_LIBS@ -L@prefix@/lib|' \
|
|
-e 's|@LIBNET_CONFIG_CFLAGS@|@LIBNET_CONFIG_CFLAGS@ -I@prefix@/include|' \
|
|
${WRKSRC}/libnet-config.in
|
|
|
|
post-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
|
cd ${WRKSRC}/doc/ && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}/
|
|
|
|
post-install-EXAMPLES-on:
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/sample/*.c ${STAGEDIR}${EXAMPLESDIR}/
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100030
|
|
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-configure
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|