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.

61 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.3
  10. PKG_RELEASE:=2
  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_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. include $(INCLUDE_DIR)/nls.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. define Package/libspice-server/install
  30. $(INSTALL_DIR) $(1)/usr/lib
  31. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libspice-server.so* $(1)/usr/lib
  32. endef
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(INSTALL_DIR) $(1)/usr/include
  36. $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib
  38. endef
  39. # audio codec
  40. CONFIGURE_ARGS += \
  41. --disable-opus \
  42. --disable-celt051 \
  43. CONFIGURE_ARGS += \
  44. --disable-lz4 \
  45. --disable-manual \
  46. --disable-gstreamer \
  47. --disable-smartcard \
  48. --disable-statistics \
  49. --without-sasl \
  50. --disable-silent-rules \
  51. $(eval $(call BuildPackage,libspice-server))