diff options
author | pav <pav@FreeBSD.org> | 2007-01-31 22:09:55 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-01-31 22:09:55 +0800 |
commit | ccd12ccd577604add511aad4ea4e71c32b3e2f06 (patch) | |
tree | 25b833c135dd7f2323045f819dc7121e621103fc /net-mgmt/scdp | |
parent | e2f15954f8960a944e8d5b2c28982257d8c6e91f (diff) | |
download | freebsd-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/scdp')
-rw-r--r-- | net-mgmt/scdp/Makefile | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/net-mgmt/scdp/Makefile b/net-mgmt/scdp/Makefile index 1e225ffc565f..1d209646614e 100644 --- a/net-mgmt/scdp/Makefile +++ b/net-mgmt/scdp/Makefile @@ -6,7 +6,7 @@ PORTNAME= scdp PORTVERSION= 1.0.b -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= scdp @@ -15,13 +15,19 @@ DISTNAME= scdp-${PORTVERSION:S/.b/b/} MAINTAINER= arved@FreeBSD.org COMMENT= "Tool that sends CDP (CISCO Discovery Protocol) Packets" -BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10 +BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10 -PLIST_FILES= bin/scdp -GNU_CONFIGURE= yes USE_GMAKE= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= libnet_config="${LIBNET_CONFIG}" +CFLAGS+= `${LIBNET_CONFIG} --cflags` +PLIST_FILES= bin/scdp + +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config post-patch: ${REINPLACE_CMD} -e 's,malloc.h,stdlib.h,' ${WRKSRC}/scdp.c + ${REINPLACE_CMD} -e 's|libnet-config|${LIBNET_CONFIG}|' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} .include <bsd.port.mk> |