aboutsummaryrefslogtreecommitdiffstats
path: root/net/openvswitch/Makefile
blob: 2119f7db40a86035951da7d572e2ad777c9134e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
# $FreeBSD$

PORTNAME=   openvswitch
DISTVERSION=    2.10.1
CATEGORIES= net
MASTER_SITES=   http://openvswitch.org/releases/

MAINTAINER= koue@chaosophia.net
COMMENT=    Production quality, multilayer virtual switch

LICENSE=    APACHE20

BROKEN_mips64=      fails to compile: ofp-actions.h:486: flexible array member in otherwise empty struct

BUILD_DEPENDS=  ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

USES=       compiler:c++14-lang cpe gmake libtool perl5 pkgconfig python:2.7 shebangfix ssl
SHEBANG_FILES=  ovn/utilities/ovndb-servers.ocf \
        utilities/bugtool/ovs-bugtool-ovs-ofctl-loop-over-bridges \
        utilities/ovs-docker \
        utilities/ovs-appctl-bashcomp.bash \
        vtep/ovs-vtep.in

USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-shared --disable-static --localstatedir=/var \
        --with-dbdir=/var/db/${PORTNAME} \
        --with-openssl=${OPENSSLBASE}
USE_RC_SUBR=    ovs-vswitchd ovsdb-server
LDFLAGS+=   -lpthread
INSTALL_TARGET=install-strip

post-install:
    @${MKDIR} ${STAGEDIR}/var/run/openvswitch
    @${MKDIR} ${STAGEDIR}/var/log/openvswitch
    ${INSTALL_DATA} ${WRKSRC}/vswitchd/vswitch.ovsschema ${STAGEDIR}${PREFIX}/share/openvswitch/

.include <bsd.port.mk>