44 lines
1.1 KiB
Makefile
44 lines
1.1 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 \
|
|
SSL_CFLAGS="-I${OPENSSLINC}" \
|
|
SSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto"
|
|
USES= autoreconf gmake pkgconfig python
|
|
USE_OPENSSL= 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
|
|
|
|
post-patch:
|
|
.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>
|