diff --git a/net-mgmt/dhcdrop/Makefile b/net-mgmt/dhcdrop/Makefile index 7af6cd58b932..f9b60cf2ae69 100644 --- a/net-mgmt/dhcdrop/Makefile +++ b/net-mgmt/dhcdrop/Makefile @@ -3,7 +3,7 @@ PORTNAME= dhcdrop PORTVERSION= 0.5 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net-mgmt sysutils MASTER_SITES= http://www.netpatch.ru/projects/dhcdrop/ @@ -22,6 +22,16 @@ PLIST_FILES= sbin/dhcdrop man/man8/dhcdrop.8.gz \ OPTIONS_DEFINE= STATIC STATIC_DESC= Build a static version of dhcdrop -STATIC_CONFIGURE_ENABLE= static-build +# --disable-static-build is broken and has the same effect as +# --enable-static-build, so do not use STATIC_CONFIGURE_ENABLE +# here. +STATIC_CONFIGURE_ON= --enable-static-build + +.if exists(/usr/lib/libibverbs.a) +# Link with libibverbs too needed by static libpcap +post-patch-STATIC-on: + @${REINPLACE_CMD} -e 's,^dhcdrop_LDADD.*,& -libverbs,' \ + ${WRKSRC}/src/Makefile.am +.endif .include