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.

67 lines
1.6 KiB

11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
11 years ago
  1. #
  2. # Copyright (C) 2010-2012 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:=miniupnpc
  9. PKG_VERSION:=2.1.20190824
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://miniupnp.tuxfamily.org/files
  13. PKG_HASH:=1fadefea0ecdceb3e35bb5d901f0db880c826740e93148ddfb087b4b4389e165
  14. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. PKG_CPE_ID:=cpe:/a:miniupnp_project:miniupnp
  18. CMAKE_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. include $(INCLUDE_DIR)/cmake.mk
  22. define Package/miniupnpc/Default
  23. TITLE:=Lightweight UPnP
  24. URL:=https://miniupnp.tuxfamily.org
  25. endef
  26. define Package/miniupnpc
  27. $(call Package/miniupnpc/Default)
  28. SECTION:=net
  29. CATEGORY:=Network
  30. SUBMENU:=Firewall
  31. TITLE+= client
  32. DEPENDS:=+libminiupnpc
  33. endef
  34. define Package/libminiupnpc
  35. $(call Package/miniupnpc/Default)
  36. SECTION:=libs
  37. CATEGORY:=Libraries
  38. TITLE+= library
  39. endef
  40. CMAKE_OPTIONS += -DUPNPC_BUILD_TESTS=OFF
  41. TARGET_CFLAGS += $(FPIC)
  42. TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
  43. define Package/miniupnpc/install
  44. $(INSTALL_DIR) $(1)/usr/bin
  45. $(INSTALL_BIN) $(PKG_BUILD_DIR)/upnpc-shared $(1)/usr/bin/upnpc
  46. $(INSTALL_BIN) $(PKG_BUILD_DIR)/listdevices $(1)/usr/bin/
  47. endef
  48. define Package/libminiupnpc/install
  49. $(INSTALL_DIR) $(1)/usr/lib
  50. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libminiupnpc.so.* $(1)/usr/lib/
  51. endef
  52. $(eval $(call BuildPackage,miniupnpc))
  53. $(eval $(call BuildPackage,libminiupnpc))