treewide: remove AUTORELEASE
[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.15.0
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://www.spice-space.org/download/releases/spice-server
16 PKG_HASH:=b320cf8f4bd2852750acb703c15b72856027e5a8554f8217dfbb3cc09deba0f5
17
18 PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
19 PKG_LICENSE:=LGPL-2.1-only
20 PKG_LICENSE_FILES:=COPYING
21
22 PKG_BUILD_DEPENDS:=spice-protocol
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/nls.mk
26 include $(INCLUDE_DIR)/meson.mk
27
28 define Package/libspice-server
29 SECTION:=libs
30 CATEGORY:=Libraries
31 TITLE:=SPICE server library
32 URL:=https://www.spice-space.org/index.html
33 DEPENDS:=+glib2 +libjpeg +libopenssl +pixman +zlib +libstdcpp
34 endef
35
36 # audio codec
37 MESON_ARGS += \
38 -Dopus=disabled
39
40 MESON_ARGS += \
41 -Dgstreamer=no \
42 -Dlz4=false \
43 -Dsasl=false \
44 -Dsmartcard=disabled \
45 -Dalignment-checks=false \
46 -Dextra-checks=false \
47 -Dstatistics=false \
48 -Dmanual=false \
49 -Dinstrumentation=no \
50 -Dtests=false
51
52 MESON_ARGS += \
53 -Dspice-common:alignment-checks=false \
54 -Dspice-common:extra-checks=false \
55 -Dspice-common:opus=disabled \
56 -Dspice-common:instrumentation=no \
57 -Dspice-common:smartcard=disabled \
58 -Dspice-common:python-checks=false \
59 -Dspice-common:manual=false \
60 -Dspice-common:generate-code=none \
61 -Dspice-common:tests=false \
62
63 define Build/InstallDev
64 $(INSTALL_DIR) $(1)/usr/include/spice-server
65 $(CP) $(PKG_INSTALL_DIR)/usr/include/spice-server/*.h $(1)/usr/include/spice-server
66 $(INSTALL_DIR) $(1)/usr/lib
67 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspice-server.* $(1)/usr/lib
68 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/spice-server.pc $(1)/usr/lib/pkgconfig
70 endef
71
72 define Package/libspice-server/install
73 $(INSTALL_DIR) $(1)/usr/lib
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspice-server.so* $(1)/usr/lib
75 endef
76
77 $(eval $(call BuildPackage,libspice-server))