xref: /OK3568_Linux_fs/buildroot/package/usbredir/usbredir.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# usbredir
4#
5################################################################################
6
7USBREDIR_VERSION = 0.11.0
8USBREDIR_SOURCE = usbredir-$(USBREDIR_VERSION).tar.xz
9USBREDIR_SITE = http://spice-space.org/download/usbredir
10USBREDIR_LICENSE = LGPL-2.1+ (libraries)
11USBREDIR_LICENSE_FILES = COPYING.LIB
12USBREDIR_INSTALL_STAGING = YES
13USBREDIR_DEPENDENCIES = host-pkgconf libusb
14USBREDIR_CONF_OPTS = \
15	-Dgit_werror=disabled \
16	-Dstack_protector=disabled \
17	-Dtests=disabled \
18	-Dtools=disabled
19
20ifeq ($(BR2_PACKAGE_USBREDIR_SERVER),y)
21
22USBREDIR_LICENSE += , GPL-2.0+ (program)
23USBREDIR_LICENSE_FILES += COPYING
24
25else # BR2_PACKAGE_USBREDIR_SERVER != y
26
27define USBREDIR_POST_INSTALL_TARGET_RM_SERVER
28	rm -f $(TARGET_DIR)/usr/sbin/usbredirserver
29endef
30USBREDIR_POST_INSTALL_TARGET_HOOKS += USBREDIR_POST_INSTALL_TARGET_RM_SERVER
31
32endif # BR2_PACKAGE_USBREDIR_SERVER
33
34$(eval $(meson-package))
35