summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Kortkamp <tobik@FreeBSD.org>2019-04-19 10:49:17 +0000
committerTobias Kortkamp <tobik@FreeBSD.org>2019-04-19 10:49:17 +0000
commit15c30d408e9b50c022528e975c3d938f1090f35d (patch)
treef9706f1757e49775968ca96687ba8ce9f6008936
parent- Fix LICENSE (diff)
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
-rw-r--r--net/fonulator/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/fonulator/Makefile b/net/fonulator/Makefile
index ac23bc2648b5..dec2effa74a4 100644
--- a/net/fonulator/Makefile
+++ b/net/fonulator/Makefile
@@ -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