shairplay: remove
[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 CMAKE_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25 include $(INCLUDE_DIR)/cmake.mk
26
27 define Package/libnatpmp/Default
28 TITLE:=NAT Port Mapping Protocol (NAT-PMP)
29 URL:=https://miniupnp.tuxfamily.org/libnatpmp.html
30 endef
31
32 define Package/libnatpmp/Default/description
33 libnatpmp is an attempt to make a portable and fully compliant implementation
34 of the protocol for the client side. It is based on non blocking sockets and
35 all calls of the API are asynchronous. It is therefore very easy to integrate
36 the NAT-PMP code to any event driven code.
37 endef
38
39 define Package/libnatpmp
40 $(call Package/libnatpmp/Default)
41 SECTION:=libs
42 CATEGORY:=Libraries
43 TITLE+= library
44 ABI_VERSION:=1
45 endef
46
47 define Package/libnatpmp/description
48 $(call Package/libnatpmp/Default/description)
49 This package contains the shared library.
50 endef
51
52 define Package/natpmpc
53 $(call Package/libnatpmp/Default)
54 SECTION:=net
55 CATEGORY:=Network
56 SUBMENU:=Firewall
57 TITLE+= client
58 DEPENDS:=+libnatpmp
59 endef
60
61 define Package/natpmpc/description
62 $(call Package/libnatpmp/Default/description)
63 This package contains the natpmp client.
64 endef
65
66 define Package/libnatpmp/install
67 $(INSTALL_DIR) $(1)/usr/lib
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libnatpmp.so.* $(1)/usr/lib/
69 endef
70
71 define Package/natpmpc/install
72 $(INSTALL_DIR) $(1)/usr/bin
73 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/natpmpc $(1)/usr/bin/
74 endef
75
76 $(eval $(call BuildPackage,libnatpmp))
77 $(eval $(call BuildPackage,natpmpc))