net/fonulator: Unbreak build on FreeBSD >= 12.0

/usr/lib/libpcap.a(pcap-rdmasniff.o): In function `rdmasniff_create':
/usr/src/contrib/libpcap/pcap-rdmasniff.c:370: undefined reference to `ibv_get_device_list'
/usr/src/contrib/libpcap/pcap-rdmasniff.c:405: undefined reference to `ibv_free_device_list'

http://beefy5.nyi.freebsd.org/data/120i386-default/499228/logs/errors/fonulator-2.0.1_2.log
http://beefy14.nyi.freebsd.org/data/120mips-quarterly/499227/logs/errors/fonulator-2.0.1_2.log
This commit is contained in:
Tobias Kortkamp 2019-04-19 10:49:17 +00:00
parent b4a71d38bb
commit 15c30d408e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=499344

View File

@ -27,6 +27,10 @@ post-patch:
-e 's,/usr/lib/libargtable2.a,${LOCALBASE}/lib/libargtable2.a,'\
-e 's,/usr/lib/libnet.a,${LOCALBASE}/lib/libnet.a,'\
${WRKSRC}/Makefile.in ${WRKSRC}/configure
.if exists(/usr/lib/libibverbs.a)
@${REINPLACE_CMD} -e 's,^fonulator_LDADD.*,& /usr/lib/libibverbs.a,' \
${WRKSRC}/Makefile.in
.endif
@${REINPLACE_CMD} -e 's,/etc/redfone.conf,${LOCALBASE}/etc/redfone.conf,'\
${WRKSRC}/fonulator.c ${WRKSRC}/fonulator.1