xref: /OK3568_Linux_fs/buildroot/package/vde2/vde2.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# vde2
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunVDE2_VERSION = 2.3.2
8*4882a593SmuzhiyunVDE2_SOURCE = vde2-$(VDE2_VERSION).tar.bz2
9*4882a593SmuzhiyunVDE2_SITE = http://downloads.sourceforge.net/project/vde/vde2/$(VDE2_VERSION)
10*4882a593SmuzhiyunVDE2_LICENSE = GPL-2.0+, LGPL-2.1+, BSD-3-Clause
11*4882a593SmuzhiyunVDE2_LICENSE_FILES = COPYING COPYING.libvdeplug COPYING.slirpvde
12*4882a593SmuzhiyunVDE2_CPE_ID_VENDOR = vde_project
13*4882a593SmuzhiyunVDE2_CPE_ID_PRODUCT = vde
14*4882a593SmuzhiyunVDE2_INSTALL_STAGING = YES
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun# We touch configure.ac, so we need to autoreconf
17*4882a593SmuzhiyunVDE2_AUTORECONF = YES
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun# Reasons for enabling/disabling stuff:
20*4882a593Smuzhiyun# - tuntap is enabled in the hope we're using a recent-enough toolchain
21*4882a593Smuzhiyun#   that does have if_tun.h (virtually everything these days)
22*4882a593Smuzhiyun# - kvde_switch is disabled because it requires a patched kernel
23*4882a593Smuzhiyun# - cryptcab is disabled to not depend on openSSL
24*4882a593Smuzhiyun# - python is disabled to not depend on Python
25*4882a593Smuzhiyun# - pcap is disabled to not depend on libpcap
26*4882a593Smuzhiyun# - profiling is disabled because we do not want to debug/profile
27*4882a593Smuzhiyun#
28*4882a593Smuzhiyun# Note: disabled features can be added with corresponding dependencies
29*4882a593Smuzhiyun#       in future commits.
30*4882a593SmuzhiyunVDE2_CONF_OPTS = \
31*4882a593Smuzhiyun	--disable-cryptcab \
32*4882a593Smuzhiyun	--disable-experimental \
33*4882a593Smuzhiyun	--disable-kernel-switch \
34*4882a593Smuzhiyun	--disable-pcap \
35*4882a593Smuzhiyun	--disable-profile \
36*4882a593Smuzhiyun	--disable-python \
37*4882a593Smuzhiyun	--enable-tuntap
38*4882a593Smuzhiyun
39*4882a593Smuzhiyun# Package does not build in parallel due to improper make rules
40*4882a593SmuzhiyunVDE2_MAKE = $(MAKE1)
41*4882a593Smuzhiyun
42*4882a593SmuzhiyunHOST_VDE2_CONF_OPTS = \
43*4882a593Smuzhiyun	--disable-cryptcab \
44*4882a593Smuzhiyun	--disable-experimental \
45*4882a593Smuzhiyun	--disable-kernel-switch \
46*4882a593Smuzhiyun	--disable-pcap \
47*4882a593Smuzhiyun	--disable-profile \
48*4882a593Smuzhiyun	--disable-python \
49*4882a593Smuzhiyun	--enable-tuntap
50*4882a593Smuzhiyun
51*4882a593SmuzhiyunHOST_VDE2_MAKE = $(MAKE1)
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun$(eval $(autotools-package))
54*4882a593Smuzhiyun$(eval $(host-autotools-package))
55