Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.14.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://www.lesbonscomptes.com/upmpdcli/downloads
  13. PKG_MD5SUM:=1b10905a365fc6277e1d8ced77278666
  14. PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libupnpp
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. URL:=http://www.lesbonscomptes.com/upmpdcli
  23. DEPENDS+= +libstdcpp +libexpat +librt +libcurl +libupnp
  24. TITLE:=The libupnpp C++ library wraps libupnp for easier use by upmpdcli and upplay
  25. endef
  26. define Package/libupnpp/description
  27. libupnpp defines useful objects over libupnp and can be used to create both devices
  28. and control points. It is shared by upmpdcli and upplay.
  29. endef
  30. define Build/InstallDev
  31. $(INSTALL_DIR) $(1)/usr/include
  32. $(CP) $(PKG_INSTALL_DIR)/usr/include/libupnpp $(1)/usr/include/
  33. $(INSTALL_DIR) $(1)/usr/lib
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.so* $(1)/usr/lib/
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.la $(1)/usr/lib/
  36. endef
  37. define Package/libupnpp/install
  38. $(INSTALL_DIR) $(1)/usr/lib
  39. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.so.* $(1)/usr/lib/
  40. endef
  41. $(eval $(call BuildPackage,libupnpp))