Merge pull request #10399 from neheb/avr
[feed/packages.git] / libs / spice / Makefile
1 #
2 # Copyright (C) 2019 Yousong Zhou <yszhou4tech@gmail.com>
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=spice
11 PKG_VERSION:=0.14.2
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 PKG_SOURCE_URL:=https://www.spice-space.org/download/releases/spice-server
15 PKG_HASH:=b203b3882e06f4c7249a3150d90c84e1a90490d41ead255a3d2cede46f4a29a7
16 PKG_LICENSE:=LGPL-2.1-only
17 PKG_LICENSE_FILES:=COPYING
18 PKG_INSTALL:=1
19 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
20
21 PKG_BUILD_DEPENDS+=spice-protocol
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libspice-server
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=SPICE server library
29 URL:=https://www.spice-space.org/index.html
30 DEPENDS:=+glib2 +libjpeg +libopenssl +pixman +zlib
31 endef
32
33 define Package/libspice-server/install
34 $(INSTALL_DIR) $(1)/usr/lib
35 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspice-server.so* $(1)/usr/lib
36 endef
37
38 define Build/InstallDev
39 $(INSTALL_DIR) $(1)/usr/lib
40 $(INSTALL_DIR) $(1)/usr/include
41 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
43 endef
44
45 # audio codec
46 CONFIGURE_ARGS += \
47 --disable-opus \
48 --disable-celt051 \
49
50 CONFIGURE_ARGS += \
51 --disable-lz4 \
52 --disable-manual \
53 --disable-gstreamer \
54 --disable-smartcard \
55 --disable-statistics \
56
57 $(eval $(call BuildPackage,libspice-server))