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