You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.1 KiB

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