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.

60 lines
1.5 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:=4
  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_FIXUP:=autoreconf
  19. PKG_BUILD_DEPENDS+=spice-protocol
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/libspice-server
  22. SECTION:=libs
  23. CATEGORY:=Libraries
  24. TITLE:=SPICE server library
  25. URL:=https://www.spice-space.org/index.html
  26. DEPENDS:=+glib2 +libjpeg +libopenssl +pixman +zlib
  27. endef
  28. define Package/libspice-server/install
  29. $(INSTALL_DIR) $(1)/usr/lib
  30. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspice-server.so* $(1)/usr/lib
  31. endef
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(INSTALL_DIR) $(1)/usr/include
  35. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
  37. endef
  38. # audio codec
  39. CONFIGURE_ARGS += \
  40. --disable-opus \
  41. --disable-celt051 \
  42. CONFIGURE_ARGS += \
  43. --disable-lz4 \
  44. --disable-manual \
  45. --disable-gstreamer \
  46. --disable-smartcard \
  47. --disable-statistics \
  48. --without-sasl \
  49. --disable-silent-rules \
  50. $(eval $(call BuildPackage,libspice-server))