mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
e42841c8a6
PR: 192103 Submitted by: Ed Maste
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= openvswitch
|
|
PORTVERSION= 1.7.1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://openvswitch.org/releases/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Production quality, multilayer virtual switch
|
|
|
|
LICENSE= APACHE20
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= PERL=${PREFIX}/bin/perl
|
|
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
|
|
|
|
OPTIONS_DEFINE= THREADED
|
|
THREADED_DESC= Experimental high-performance threading patch
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.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 ${STAGEDIR}${PREFIX}/share/openvswitch/
|
|
|
|
#regression-test: build
|
|
# @cd ${WRKSRC} && ${MAKE_CMD} check
|
|
|
|
.include <bsd.port.post.mk>
|