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.

56 lines
1.5 KiB

  1. #
  2. # Copyright (C) 2016 OpenWrt.org
  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:=libupnpp
  9. PKG_VERSION:=0.19.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://www.lesbonscomptes.com/upmpdcli/downloads
  13. PKG_HASH:=29d1d07d44c8f79573e64e093ad8f0f883b11ef9eb3642a67aa703c1dde60576
  14. PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com>
  15. PKG_LICENSE:=LGPL-2.1-or-later
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libupnpp
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. URL:=https://www.lesbonscomptes.com/upmpdcli
  24. DEPENDS+=+libnpupnp
  25. TITLE:=The libupnpp C++ library wraps libupnp for easier use by upmpdcli and upplay
  26. endef
  27. define Package/libupnpp/description
  28. libupnpp defines useful objects over libupnp and can be used to create both devices
  29. and control points. It is shared by upmpdcli and upplay.
  30. endef
  31. TARGET_LDFLAGS += $(if $(CONFIG_USE_GLIBC),-lm)
  32. define Build/InstallDev
  33. $(INSTALL_DIR) $(1)/usr/include
  34. $(CP) $(PKG_INSTALL_DIR)/usr/include/libupnpp $(1)/usr/include/
  35. $(INSTALL_DIR) $(1)/usr/lib
  36. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.{la,so*} $(1)/usr/lib/
  37. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libupnpp.pc $(1)/usr/lib/pkgconfig/
  39. endef
  40. define Package/libupnpp/install
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.so.* $(1)/usr/lib/
  43. endef
  44. $(eval $(call BuildPackage,libupnpp))