freebsd-ports/net/pkt-gen/Makefile
Robert Clausecker 289d41817b net/pkt-gen: fix on 32 bit platforms (again)
Exorcise -Werror for the third time.
Re-add patches needed to build on 32 bit platforms.
Please don't remove patches without understanding them first.

Fixes:		9305cd3f93
PR:		270440
See also:	PR 264561, 230623
Approved by:	portmgr (build fix blanket)
2023-04-20 13:49:22 +02:00

38 lines
1,008 B
Makefile

PORTNAME= pkt-gen
PORTVERSION= g2023.03.22
PORTREVISION= 1
CATEGORIES= net
MAINTAINER= olivier@FreeBSD.org
COMMENT= Packet sink/source using the netmap API
WWW= https://github.com/luigirizzo/netmap
LICENSE= BSD2CLAUSE
USES= gmake
USE_GITHUB= yes
GH_ACCOUNT= luigirizzo
GH_PROJECT= netmap
GH_TAGNAME= 0a53f85
MAKEFILE= GNUmakefile
OPTIONS_DEFINE= PCAP
PCAP_DESC= Support loading packets from pcap file
OPTIONS_DEFAULT= PCAP
PCAP_MAKE_ARGS= WITH_PCAP=1
PLIST_FILES= bin/pkt-gen \
bin/nmreplay
do-build:
cd ${WRKSRC}/libnetmap && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} ${MAKE_FLAGS} ${MAKEFILE}
cd ${WRKSRC}/apps/pkt-gen && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} ${MAKE_FLAGS} ${MAKEFILE}
cd ${WRKSRC}/apps/nmreplay && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_ARGS} ${MAKE_FLAGS} ${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/apps/pkt-gen/pkt-gen \
${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/apps/nmreplay/nmreplay \
${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>