# Created by: Edward Tomasz Napierala # $FreeBSD$ PORTNAME= openvswitch PORTVERSION= 1.7.1 CATEGORIES= net MASTER_SITES= http://openvswitch.org/releases/ MAINTAINER= emaste@FreeBSD.org COMMENT= A production quality, multilayer virtual switch LICENSE= AL2 GNU_CONFIGURE= yes CONFIGURE_ARGS= SSL_LIBS=-lssl SSL_CFLAGS=-I/usr/include/openssl USE_AUTOTOOLS= autoconf automake USES= gmake pkgconfig USE_PYTHON= yes USE_RC_SUBR= ovs-vswitchd ovsdb-server MAN1= ovs-benchmark.1 ovs-pcap.1 ovs-tcpundump.1 ovsdb-client.1 \ ovsdb-server.1 ovsdb-tool.1 MAN5= ovs-vswitchd.conf.db.5 MAN8= ovs-appctl.8 ovs-brcompatd.8 ovs-bugtool.8 ovs-controller.8 \ ovs-ctl.8 ovs-dpctl.8 ovs-ofctl.8 ovs-parse-leaks.8 ovs-pki.8 \ ovs-test.8 ovs-vsctl.8 ovs-vswitchd.8 \ ovs-vlan-bug-workaround.8 ovs-vlan-test.8 OPTIONS_DEFINE= THREADED THREADED_DESC= Experimental high-performance threading patch NO_STAGE= yes .include .if ${PORT_OPTIONS:MTHREADED} CONFIGURE_ARGS+=--enable-threaded=yes .endif AUTOTOOLSFILES= aclocal.m4 post-patch: @${REINPLACE_CMD} -e 's|1.11.3|%%AUTOMAKE_APIVER%%|g' \ -e 's|2.68|%%AUTOCONF_VERSION%%|g' \ ${WRKSRC}/aclocal.m4 .if ${PORT_OPTIONS:MTHREADED} @# We can't use EXTRA_PATCHES, since we need to apply this one @# after files/patch-bsd-netdef.diff, not before. ${PATCH} ${PATCH_ARGS} < ${FILESDIR}/threaded.diff .endif post-install: ${INSTALL_DATA} ${WRKSRC}/vswitchd/vswitch.ovsschema ${PREFIX}/share/openvswitch/ #regression-test: build # @cd ${WRKSRC} && ${GMAKE} check .include