From eb81a88093e7d71530eebb2957f8ba4317b26ee6 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik 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-mgmt/gps/Makefile | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) (limited to 'net-mgmt/gps') diff --git a/net-mgmt/gps/Makefile b/net-mgmt/gps/Makefile index 20b231758f0d..3f268c97d6db 100644 --- a/net-mgmt/gps/Makefile +++ b/net-mgmt/gps/Makefile @@ -8,7 +8,7 @@ PORTNAME= gps PORTVERSION= 0.9.3 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net-mgmt MASTER_SITES= http://www.bsd-geek.de/FreeBSD/distfiles/ DISTNAME= ${PORTNAME}-${PORTVERSION}-FRC @@ -16,14 +16,24 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-FRC MAINTAINER= lars.engels@0x20.net COMMENT= Ghost Port Scan -BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10 +BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet10 GNU_CONFIGURE= yes -CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" USE_GMAKE= yes +LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet10-config + +.include + post-patch: - @${REINPLACE_CMD} -e "s,-Wall -O3,${CFLAGS},g" ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + 's|-Wall -O3|${CFLAGS}|; \ + s|-lnet|`${LIBNET_CONFIG} --libs`|' \ + ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} + @${REINPLACE_CMD} -e \ + 's|libnet-config|${LIBNET_CONFIG}|; \ + s|--defines|& --cflags|' \ + ${WRKSRC}/Makefile.in .if !defined(NOPORTDOCS) post-install: @@ -31,4 +41,4 @@ post-install: ${CP} ${WRKSRC}/docs/* ${DOCSDIR} .endif -.include +.include -- cgit v1.2.3