diff options
Diffstat (limited to 'net/libnids/Makefile')
-rw-r--r-- | net/libnids/Makefile | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/net/libnids/Makefile b/net/libnids/Makefile index f4531dc17985..8a64167ed394 100644 --- a/net/libnids/Makefile +++ b/net/libnids/Makefile @@ -6,8 +6,7 @@ # PORTNAME= libnids -PORTVERSION= 1.20 -PORTREVISION= 1 +PORTVERSION= 1.21 CATEGORIES= net security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -15,14 +14,30 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= roam@FreeBSD.org COMMENT= Network monitoring library with TCP/IP reassembly -.if defined(WITH_LIBNET_DEVEL) -BUILD_DEPENDS= libnet*>=1.1.2,1:${PORTSDIR}/net/libnet +OPTIONS= LIBNET "Include code requiring libnet" ON \ + GLIB2 "Use GLIB2 for multiprocessing support" ON + +GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \ + LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" + +MAKE_ENV= LDFLAGS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" + +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_LIBNET) +BUILD_DEPENDS+= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet +RUN_DEPENDS+= ${LOCALBASE}/lib/libnet.a:${PORTSDIR}/net/libnet .else -BUILD_DEPENDS= libnet*<=1.1.0,1:${PORTSDIR}/net/libnet10 +CONFIGURE_ARGS+= --disable-libnet .endif -GNU_CONFIGURE= yes -CONFIGURE_ENV+= CFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" +.if !defined(WITHOUT_GLIB2) +LIB_DEPENDS+= glib-2.0:${PORTSDIR}/devel/glib20 +.else +CONFIGURE_ARGS+= --disable-libglib +.endif MAN3= libnids.3 @@ -39,4 +54,4 @@ post-install: .endfor .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |