33 lines
829 B
Makefile
33 lines
829 B
Makefile
# $NetBSD: Makefile,v 1.33 2020/03/20 11:58:09 nia Exp $
|
|
|
|
DISTNAME= ngrep-1.45
|
|
PKGREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ngrep/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://ngrep.sourceforge.net/
|
|
COMMENT= Network grep
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
USE_TOOLS+= gmake
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --with-pcre
|
|
# ngrep's configure use --includedir/$includedir in a weird way!
|
|
CONFIGURE_ARGS+= --includedir=${BUILDLINK_PREFIX.libpcap}/include
|
|
CONFIGURE_ARGS+= --enable-ipv6
|
|
BUILD_TARGET= ngrep
|
|
|
|
CONFIGURE_ARGS.FreeBSD+= --disable-pcap-restart
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux"
|
|
do-configure:
|
|
cd ${WRKSRC} && ./configure --prefix=${PREFIX}
|
|
.endif
|
|
|
|
.include "../../net/libpcap/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|