From eb81a88093e7d71530eebb2957f8ba4317b26ee6 Mon Sep 17 00:00:00 2001
From: Pav Lucistnik <pav@FreeBSD.org>
Date: Wed, 31 Jan 2007 14:09:55 +0000
Subject: - 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
---
 net/arprelease/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

(limited to 'net/arprelease')

diff --git a/net/arprelease/Makefile b/net/arprelease/Makefile
index 71fa99e54495..9e7d92bc7bc8 100644
--- a/net/arprelease/Makefile
+++ b/net/arprelease/Makefile
@@ -7,7 +7,7 @@
 
 PORTNAME=	arprelease
 PORTVERSION=	1.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	net
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -15,19 +15,19 @@ MASTER_SITE_SUBDIR=	${PORTNAME}
 MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Libnet tool to flush arp cache entries from devices (eg. routers)
 
-BUILD_DEPENDS=	libnet*>=1.1.2,1:${PORTSDIR}/net/libnet
+BUILD_DEPENDS=	${LIBNET_CONFIG}:${PORTSDIR}/net/libnet
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
 PLIST_FILES=	bin/arprelease
 
-LIBNET_CONFIG?=	${LOCALBASE}/bin/libnet-config
+LIBNET_CONFIG?=	${LOCALBASE}/bin/libnet11-config
 
 do-build:
 	(cd ${WRKSRC} && \
-		${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
-		-o arprelease arprelease.c \
-		`${LIBNET_CONFIG} --defines` `${LIBNET_CONFIG} --libs`)
+		${CC} ${CFLAGS} `${LIBNET_CONFIG} --defines` \
+		`${LIBNET_CONFIG} --cflags` -o arprelease arprelease.c \
+		`${LIBNET_CONFIG} --libs`)
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/arprelease ${PREFIX}/bin
-- 
cgit debian/1.2.3+git2.25.1-1-2-gaceb0