Subject: pkg/13920: buildlinking net/nmap
To: None <gnats-bugs@gnats.netbsd.org>
From: Stoned Elipot <Stoned.Elipot@script.jussieu.fr>
List: netbsd-bugs
Date: 09/10/2001 18:49:25
>Number:         13920
>Category:       pkg
>Synopsis:       use net/libpcap/buildlink.mk in net/nmap/Makefile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 10 09:50:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Stoned Elipot
>Release:        pkgsrc-current
>Organization:
SCRIPT, Paris VII University, France
>Environment:
System: NetBSD bandsept 1.5.1 NetBSD 1.5.1 (GENERIC) #0: Mon Jul 9 22:42:32 CST 2001 toor@proxima:/usr/src/sys/arch/sparc/compile/GENERIC sparc

>Description:
Using net/libpcap/buildlink.mk is IMHO better than 
'.if ${OPSYS} ... DEPENDS+=... .endif'

>How-To-Repeat:
>Fix:

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/nmap/Makefile,v
retrieving revision 1.15
diff -u -r1.15 Makefile
--- Makefile	2001/08/24 11:23:16	1.15
+++ Makefile	2001/09/10 16:44:32
@@ -12,15 +12,13 @@
 
 GNU_CONFIGURE=	YES
 CONFIGURE_ENV+=	INSTALL=${INSTALL}
+CONFIGURE_ARGS+=--with-libpcap=${BUILDLINK_DIR}
 
 .include "../../mk/bsd.prefs.mk"
 
 .if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
 MAKE_ENV+=	CPPFLAGS=""
-DEPENDS+=	libpcap>=0.4:../../net/libpcap
-CONFIGURE_ARGS+=--with-libpcap=${LOCALBASE}
-.else
-CONFIGURE_ARGS+=--with-libpcap
 .endif
 
+.include "../../net/libpcap/buildlink.mk"
 .include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
>Unformatted: