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.

57 lines
1.4 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.2
  10. PKG_RELEASE:=1
  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:=b203b3882e06f4c7249a3150d90c84e1a90490d41ead255a3d2cede46f4a29a7
  14. PKG_LICENSE:=LGPL-2.1-only
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_INSTALL:=1
  17. PKG_MAINTAINER:=Yousong Zhou <yszhou4tech@gmail.com>
  18. PKG_BUILD_DEPENDS+=spice-protocol
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libspice-server
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=SPICE server library
  24. URL:=https://www.spice-space.org/index.html
  25. DEPENDS:=+glib2 +libjpeg +libopenssl +pixman +zlib
  26. endef
  27. define Package/libspice-server/install
  28. $(INSTALL_DIR) $(1)/usr/lib
  29. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspice-server.so* $(1)/usr/lib
  30. endef
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/lib
  33. $(INSTALL_DIR) $(1)/usr/include
  34. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
  36. endef
  37. # audio codec
  38. CONFIGURE_ARGS += \
  39. --disable-opus \
  40. --disable-celt051 \
  41. CONFIGURE_ARGS += \
  42. --disable-lz4 \
  43. --disable-manual \
  44. --disable-gstreamer \
  45. --disable-smartcard \
  46. --disable-statistics \
  47. $(eval $(call BuildPackage,libspice-server))