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.

77 lines
1.9 KiB

  1. #
  2. # Copyright (C) 2011-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:=libnatpmp
  9. PKG_VERSION:=20150609
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://miniupnp.tuxfamily.org/files
  13. PKG_HASH:=e1aa9c4c4219bc06943d6b2130f664daee213fb262fcb94dd355815b8f4536b0
  14. PKG_MAINTAINER:=
  15. PKG_LICENSE:=BSD-3-Clause
  16. PKG_LICENSE_FILES:=LICENSE
  17. CMAKE_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. include $(INCLUDE_DIR)/cmake.mk
  20. define Package/libnatpmp/Default
  21. TITLE:=NAT Port Mapping Protocol (NAT-PMP)
  22. URL:=https://miniupnp.tuxfamily.org/libnatpmp.html
  23. endef
  24. define Package/libnatpmp/Default/description
  25. libnatpmp is an attempt to make a portable and fully compliant implementation
  26. of the protocol for the client side. It is based on non blocking sockets and
  27. all calls of the API are asynchronous. It is therefore very easy to integrate
  28. the NAT-PMP code to any event driven code.
  29. endef
  30. define Package/libnatpmp
  31. $(call Package/libnatpmp/Default)
  32. SECTION:=libs
  33. CATEGORY:=Libraries
  34. TITLE+= library
  35. ABI_VERSION:=1
  36. endef
  37. define Package/libnatpmp/description
  38. $(call Package/libnatpmp/Default/description)
  39. This package contains the shared library.
  40. endef
  41. define Package/natpmpc
  42. $(call Package/libnatpmp/Default)
  43. SECTION:=net
  44. CATEGORY:=Network
  45. SUBMENU:=Firewall
  46. TITLE+= client
  47. DEPENDS:=+libnatpmp
  48. endef
  49. define Package/natpmpc/description
  50. $(call Package/libnatpmp/Default/description)
  51. This package contains the natpmp client.
  52. endef
  53. define Package/libnatpmp/install
  54. $(INSTALL_DIR) $(1)/usr/lib
  55. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnatpmp.so.* $(1)/usr/lib/
  56. endef
  57. define Package/natpmpc/install
  58. $(INSTALL_DIR) $(1)/usr/bin
  59. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/natpmpc $(1)/usr/bin/
  60. endef
  61. $(eval $(call BuildPackage,libnatpmp))
  62. $(eval $(call BuildPackage,natpmpc))