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.

52 lines
1.4 KiB

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