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.

74 lines
1.6 KiB

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.0.20161216
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_URL:=http://miniupnp.free.fr/files
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=01e14408d6fc628de9afabc4417b84adeaba4c0ec517e7b8e278cb2993dafd3e
  14. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/miniupnpc/Default
  18. TITLE:=Lightweight UPnP
  19. URL:=http://miniupnp.tuxfamily.org/
  20. endef
  21. define Package/miniupnpc
  22. $(call Package/miniupnpc/Default)
  23. SECTION:=net
  24. CATEGORY:=Network
  25. SUBMENU:=Firewall
  26. TITLE+= client
  27. DEPENDS:=+libminiupnpc
  28. endef
  29. define Package/libminiupnpc
  30. $(call Package/miniupnpc/Default)
  31. SECTION:=libs
  32. CATEGORY:=Libraries
  33. TITLE+= library
  34. endef
  35. TARGET_CFLAGS += $(FPIC)
  36. MAKE_FLAGS += \
  37. OS="Linux" \
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include/miniupnpc
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/include/miniupnpc/*.h \
  42. $(1)/usr/include/miniupnpc/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a} \
  46. $(1)/usr/lib/
  47. endef
  48. define Package/miniupnpc/install
  49. $(INSTALL_DIR) $(1)/usr/bin
  50. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/upnpc $(1)/usr/bin/
  51. $(INSTALL_BIN) $(PKG_BUILD_DIR)/listdevices $(1)/usr/bin/
  52. endef
  53. define Package/libminiupnpc/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(INSTALL_BIN) \
  56. $(PKG_INSTALL_DIR)/usr/lib/libminiupnpc.so.* \
  57. $(1)/usr/lib/
  58. endef
  59. $(eval $(call BuildPackage,miniupnpc))
  60. $(eval $(call BuildPackage,libminiupnpc))