aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/knowlan
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2007-01-31 22:09:55 +0800
committerpav <pav@FreeBSD.org>2007-01-31 22:09:55 +0800
commitccd12ccd577604add511aad4ea4e71c32b3e2f06 (patch)
tree25b833c135dd7f2323045f819dc7121e621103fc /net-mgmt/knowlan
parente2f15954f8960a944e8d5b2c28982257d8c6e91f (diff)
downloadfreebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.tar.gz
freebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.tar.zst
freebsd-ports-gnome-ccd12ccd577604add511aad4ea4e71c32b3e2f06.zip
- Patch net/libnet* to versioned libraries and header files, so they can
coexist PR: ports/103861 Submitted by: alepulver Tested by: pointyhat With hat: portmgr
Diffstat (limited to 'net-mgmt/knowlan')
-rw-r--r--net-mgmt/knowlan/Makefile15
1 files changed, 13 insertions, 2 deletions
diff --git a/net-mgmt/knowlan/Makefile b/net-mgmt/knowlan/Makefile
index 96f932070dde..acf8be08d61a 100644
--- a/net-mgmt/knowlan/Makefile
+++ b/net-mgmt/knowlan/Makefile
@@ -7,17 +7,28 @@
PORTNAME= knowlan
PORTVERSION= 0.1.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= http://www.enderunix.org/knowlan/
MAINTAINER= ofsen@enderunix.org
COMMENT= ARP-based LAN IP and MAC Address Extractor
-BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10
+BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10
HAS_CONFIGURE= yes
CONFIGURE_ENV= PREFIX="${PREFIX}" LOCALBASE="${LOCALBASE}"
+CFLAGS+= `${LIBNET_CONFIG} --cflags`
+
+LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ '95d; 102d; 116,117d; \
+ s|libnet-config|${LIBNET_CONFIG}|; \
+ s|$${LOCALBASE}/lib/libnet.a|`${LIBNET_CONFIG} --libs`|; \
+ s|gcc|${CC}|' \
+ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/knowlan ${PREFIX}/sbin