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.

51 lines
1.4 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=libnpupnp
  3. PKG_VERSION:=4.0.12
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://www.lesbonscomptes.com/upmpdcli/downloads
  7. PKG_HASH:=746ab66f19b96ce539c118ad6a0a2f3bee7d472f30ed075e0b385ddc9b33ae55
  8. PKG_MAINTAINER:=
  9. PKG_LICENSE:=LGPL-2.1-or-later
  10. PKG_LICENSE_FILES:=COPYING
  11. PKG_INSTALL:=1
  12. PKG_BUILD_PARALLEL:=1
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/libnpupnp
  15. SECTION:=libs
  16. CATEGORY:=Libraries
  17. DEPENDS:=+libstdcpp +libexpat +libcurl +libmicrohttpd
  18. TITLE:=A C++ base UPnP library
  19. URL:=https://framagit.org/medoc92/npupnp
  20. endef
  21. define Package/libnpupnp/description
  22. npupnp (new pupnp or not pupnp ?) is an UPnP library derived from the
  23. venerable pupnp (https://github.com/pupnp/pupnp), based on its 1.6.x
  24. branch (around 1.6.25).
  25. endef
  26. TARGET_CFLAGS += -flto
  27. TARGET_LDFLAGS += -flto
  28. define Build/InstallDev
  29. $(INSTALL_DIR) $(1)/usr/include/npupnp
  30. $(CP) $(PKG_INSTALL_DIR)/usr/include/npupnp/* $(1)/usr/include/npupnp/
  31. $(INSTALL_DIR) $(1)/usr/lib
  32. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnpupnp.so* $(1)/usr/lib/
  33. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  34. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libnpupnp.pc $(1)/usr/lib/pkgconfig/
  35. endef
  36. define Package/libnpupnp/install
  37. $(INSTALL_DIR) $(1)/usr/lib
  38. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnpupnp.so.* $(1)/usr/lib/
  39. endef
  40. $(eval $(call BuildPackage,libnpupnp))