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.

79 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.14.3
  10. PKG_RELEASE:=3
  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:=551d4be4a07667cf0543f3c895beb6da8a93ef5a9829f2ae47817be5e616a114
  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 ../../devel/meson/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
  28. endef
  29. # audio codec
  30. MESON_ARGS += \
  31. -Dcelt051=disabled \
  32. -Dopus=disabled \
  33. MESON_ARGS += \
  34. -Dgstreamer=no \
  35. -Dlz4=false \
  36. -Dsasl=false \
  37. -Dsmartcard=disabled \
  38. -Dalignment-checks=false \
  39. -Dextra-checks=false \
  40. -Dstatistics=false \
  41. -Dmanual=false \
  42. -Dinstrumentation=no \
  43. MESON_ARGS += \
  44. -Dspice-common:alignment-checks=false \
  45. -Dspice-common:extra-checks=false \
  46. -Dspice-common:celt051=disabled \
  47. -Dspice-common:opus=disabled \
  48. -Dspice-common:instrumentation=no \
  49. -Dspice-common:smartcard=disabled \
  50. -Dspice-common:python-checks=false \
  51. -Dspice-common:manual=false \
  52. -Dspice-common:generate-code=none \
  53. -Dspice-common:tests=false \
  54. define Build/InstallDev
  55. $(INSTALL_DIR) $(1)/usr/include/spice-server
  56. $(CP) $(PKG_INSTALL_DIR)/usr/include/spice-server/*.h $(1)/usr/include/spice-server
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspice-server.* $(1)/usr/lib
  59. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/spice-server.pc $(1)/usr/lib/pkgconfig
  61. endef
  62. define Package/libspice-server/install
  63. $(INSTALL_DIR) $(1)/usr/lib
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspice-server.so* $(1)/usr/lib
  65. endef
  66. $(eval $(call BuildPackage,libspice-server))