openbsd-ports/net/ethereal/Makefile

63 lines
1.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.77 2003/10/08 19:35:30 jcs Exp $
2003-04-10 14:08:56 -04:00
COMMENT= "network protocol analyzer"
VERSION= 0.9.15
DISTNAME= ethereal-${VERSION}
CATEGORIES= net x11
MASTER_SITES= http://www.ethereal.com/distribution/all-versions/ \
http://ethereal.zing.org/distribution/all-versions/ \
http://ethereal.boehm.org/distribution/all-versions/
2000-12-19 11:20:59 -05:00
HOMEPAGE= http://www.ethereal.com/
2000-10-04 17:53:59 -04:00
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
1999-05-25 19:10:50 -04:00
2003-01-14 10:06:25 -05:00
# GPL
2000-03-05 13:30:21 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2000-03-05 05:38:41 -05:00
CONFIGURE_STYLE= gnu
USE_GMAKE= Yes
2002-03-22 08:40:00 -05:00
USE_LIBTOOL= Yes
SUBST_VARS+= VERSION
2003-01-14 10:06:25 -05:00
SEPARATE_BUILD= concurrent
2001-04-12 18:09:39 -04:00
FLAVORS= no_x11 snmp adns
FLAVOR?=
2001-10-07 15:18:16 -04:00
.if ${FLAVOR:L:Mno_x11}
LIB_DEPENDS+= glib.1.2,gmodule.1.2::devel/glib
2001-10-07 15:18:16 -04:00
CONFIGURE_ARGS+= --disable-ethereal
.else
USE_X11= Yes
LIB_DEPENDS+= gtk.1.2,gdk.1.2::x11/gtk+
2001-10-07 15:18:16 -04:00
CONFIGURE_ARGS+= --enable-ethereal
.endif
.if ${FLAVOR:L:Msnmp}
CONFIGURE_ARGS+= --with-ucd-snmp
2003-04-25 03:26:51 -04:00
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" LIBS="-lsnmp -lcrypto -ldes"
2001-05-23 04:38:40 -04:00
LIB_DEPENDS+= snmp::net/ucd-snmp
.else
CONFIGURE_ARGS+= --without-ucd-snmp
.endif
2001-10-07 14:49:28 -04:00
.if ${FLAVOR:L:Madns}
CONFIGURE_ARGS+= --with-adns=${LOCALBASE}
LIB_DEPENDS+= adns::net/adns
CFLAGS+= -I${LOCALBASE}/include
.else
CONFIGURE_ARGS+= --without-adns
.endif
2002-03-22 20:04:32 -05:00
pre-configure:
2002-03-22 08:40:00 -05:00
rm -f ${WRKSRC}/ltconfig ${WRKSRC}/ltmain.sh
2002-03-22 20:04:32 -05:00
rm -f ${WRKBUILD}/libtool
ln -s ${LIBTOOL} ${WRKBUILD}/libtool
.include <bsd.port.mk>