treewide: assign PKG_CPE_ID
[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 PKG_CPE_ID:=cpe:/a:spice_project:spice
22
23 PKG_BUILD_DEPENDS:=spice-protocol
24
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/nls.mk
27 include $(INCLUDE_DIR)/meson.mk
28
29 define Package/libspice-server
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=SPICE server library
33 URL:=https://www.spice-space.org/index.html
34 DEPENDS:=+glib2 +libjpeg +libopenssl +pixman +zlib +libstdcpp
35 endef
36
37 # audio codec
38 MESON_ARGS += \
39 -Dopus=disabled
40
41 MESON_ARGS += \
42 -Dgstreamer=no \
43 -Dlz4=false \
44 -Dsasl=false \
45 -Dsmartcard=disabled \
46 -Dalignment-checks=false \
47 -Dextra-checks=false \
48 -Dstatistics=false \
49 -Dmanual=false \
50 -Dinstrumentation=no \
51 -Dtests=false
52
53 MESON_ARGS += \
54 -Dspice-common:alignment-checks=false \
55 -Dspice-common:extra-checks=false \
56 -Dspice-common:opus=disabled \
57 -Dspice-common:instrumentation=no \
58 -Dspice-common:smartcard=disabled \
59 -Dspice-common:python-checks=false \
60 -Dspice-common:manual=false \
61 -Dspice-common:generate-code=none \
62 -Dspice-common:tests=false \
63
64 define Build/InstallDev
65 $(INSTALL_DIR) $(1)/usr/include/spice-server
66 $(CP) $(PKG_INSTALL_DIR)/usr/include/spice-server/*.h $(1)/usr/include/spice-server
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspice-server.* $(1)/usr/lib
69 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
70 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/spice-server.pc $(1)/usr/lib/pkgconfig
71 endef
72
73 define Package/libspice-server/install
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspice-server.so* $(1)/usr/lib
76 endef
77
78 $(eval $(call BuildPackage,libspice-server))