openbsd-ports/net/ettercap/Makefile
okan 9da3b1852c update to 0.7.3 from brad@
testing and ok brad@ and merdely@
2008-04-23 20:49:46 +00:00

58 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.38 2008/04/23 20:49:46 okan Exp $
SHARED_ONLY= Yes
COMMENT= multi-purpose sniffer/interceptor/logger
VER= 0.7.3
DISTNAME= ettercap-NG-${VER}
PKGNAME= ettercap-${VER}
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ettercap/}
HOMEPAGE= http://ettercap.sourceforge.net/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB+= c crypto form menu ncurses panel pcap pthread ssl z
LIB_DEPENDS= lib/libnet-1.1/net.=11:libnet-1.1*:net/libnet/1.1 \
ltdl::devel/libtool,-ltdl \
pcre::devel/pcre
FLAVORS= no_x11
FLAVOR?=
USE_LIBTOOL= Yes
LIBTOOL_FLAGS= --tag=disable-static
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.59
CONFIGURE_ARGS+= --with-libnet=${LOCALBASE} \
--with-libpcre=${LOCALBASE}
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
.if ${FLAVOR:L:Mno_x11}
CONFIGURE_ARGS+= --enable-gtk=no
.else
LIB_DEPENDS+= gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::x11/gtk+2
WANTLIB+= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes Xi \
Xinerama Xrandr Xrender atk-1.0 cairo expat fontconfig \
freetype glib-2.0 glitz gmodule-2.0 gthread-2.0 \
gobject-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0 png
MODULES= devel/gettext
USE_X11= Yes
.endif
NO_REGRESS= Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ettercap
${INSTALL_DATA} ${WRKINST}${SYSCONFDIR}/etter.conf \
${PREFIX}/share/examples/ettercap
.include <bsd.port.mk>