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.

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