96 lines
2.3 KiB
Makefile
96 lines
2.3 KiB
Makefile
# $OpenBSD: Makefile,v 1.87 2004/04/02 19:07:05 sturm Exp $
|
|
|
|
COMMENT= "network protocol analyzer"
|
|
COMMENT-x11= "network protocol analyzer (X11 GUI)"
|
|
|
|
VERSION= 0.10.3
|
|
DISTNAME= ethereal-${VERSION}
|
|
CATEGORIES= net x11
|
|
|
|
FULLPKGNAME= tethereal-${VERSION}${FLAVOR_EXT}
|
|
FULLPKGNAME-x11= ethereal-${VERSION}${FLAVOR_EXT}
|
|
|
|
MASTER_SITES= http://www.ethereal.com/distribution/all-versions/ \
|
|
http://ethereal.zing.org/distribution/all-versions/ \
|
|
http://ethereal.boehm.org/distribution/all-versions/
|
|
|
|
HOMEPAGE= http://www.ethereal.com/
|
|
|
|
MAINTAINER= Jakob Schlyter <jakob@openbsd.org>
|
|
|
|
# GPL
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
USE_GMAKE= Yes
|
|
USE_LIBTOOL= Yes
|
|
SUBST_VARS+= VERSION
|
|
SEPARATE_BUILD= concurrent
|
|
|
|
FLAVORS= snmp adns gtk1
|
|
FLAVOR?=
|
|
SUBPACKAGE?=
|
|
|
|
USE_X11= Yes
|
|
MULTI_PACKAGES+= -x11
|
|
|
|
CONFIGURE_ARGS+= --enable-ethereal \
|
|
--with-pcre=${LOCALBASE} \
|
|
--with-glib-prefix=${LOCALBASE} \
|
|
--with-gtk-prefix=${LOCALBASE}
|
|
|
|
MODULES+= iconv
|
|
LIB_DEPENDS+= pcre::devel/pcre
|
|
|
|
.if ${FLAVOR:L:Mgtk1}
|
|
CONFIGURE_ARGS+= --enable-gtk1
|
|
LIB_DEPENDS+= glib.1.2,gmodule.1.2::devel/glib
|
|
BUILD_DEPENDS+= glib.1.2,gmodule.1.2::devel/glib
|
|
.else
|
|
CONFIGURE_ARGS+= --enable-gtk2
|
|
LIB_DEPENDS+= glib-2.0.0.0,gthread-2.0.0.0::devel/glib2
|
|
BUILD_DEPENDS+= gdk_pixbuf-2.0.0.0,gdk-x11-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2 \
|
|
:pkgconfig-*:devel/pkgconfig
|
|
.endif
|
|
|
|
.if ${SUBPACKAGE} == "-x11"
|
|
.if ${FLAVOR:L:Mgtk1}
|
|
LIB_DEPENDS+= gtk.1.2::x11/gtk+
|
|
.else
|
|
LIB_DEPENDS+= gdk_pixbuf-2.0.0.0,gdk-x11-2.0.0.0,gtk-x11-2.0.0.0::x11/gtk+2
|
|
.endif
|
|
RUN_DEPENDS+= :tethereal-${VERSION}${FLAVOR_EXT}:net/ethereal
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Msnmp}
|
|
CONFIGURE_ARGS+= --with-ucd-snmp
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" LIBS="-lsnmp -lcrypto -ldes"
|
|
LIB_DEPENDS+= snmp::net/ucd-snmp
|
|
.else
|
|
CONFIGURE_ARGS+= --without-ucd-snmp
|
|
.endif
|
|
|
|
.if ${FLAVOR:L:Madns}
|
|
CONFIGURE_ARGS+= --with-adns=${LOCALBASE}
|
|
LIB_DEPENDS+= adns::net/adns
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
.else
|
|
CONFIGURE_ARGS+= --without-adns
|
|
.endif
|
|
|
|
pre-configure:
|
|
rm -f ${WRKSRC}/ltconfig ${WRKSRC}/ltmain.sh
|
|
rm -f ${WRKBUILD}/libtool
|
|
ln -s ${LIBTOOL} ${WRKBUILD}/libtool
|
|
|
|
post-configure:
|
|
rm -f ${WRKBUILD}/epan/libtool
|
|
rm -f ${WRKBUILD}/wiretap/libtool
|
|
ln -s ${LIBTOOL} ${WRKBUILD}/epan/libtool
|
|
ln -s ${LIBTOOL} ${WRKBUILD}/wiretap/libtool
|
|
|
|
.include <bsd.port.mk>
|