2 # Copyright (C) 2019 Yousong Zhou <yszhou4tech@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
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
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
23 PKG_BUILD_DEPENDS
:=spice-protocol
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/nls.mk
27 include $(INCLUDE_DIR
)/meson.mk
29 define Package
/libspice-server
32 TITLE
:=SPICE server library
33 URL
:=https
://www.spice-space.org
/index.html
34 DEPENDS
:=+glib2
+libjpeg
+libopenssl
+pixman
+zlib
+libstdcpp
45 -Dsmartcard
=disabled \
46 -Dalignment-checks
=false \
47 -Dextra-checks
=false \
50 -Dinstrumentation
=no \
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 \
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
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
78 $(eval
$(call BuildPackage
,libspice-server
))