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.1.3
  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:=74703d49be52d29b52f59342ec7359178b127568399551d9d3f56bb7950fcc02
  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))