2 # Copyright (C) 2011-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://miniupnp.tuxfamily.org
/files
16 PKG_HASH
:=e1aa9c4c4219bc06943d6b2130f664daee213fb262fcb94dd355815b8f4536b0
19 PKG_LICENSE
:=BSD-3-Clause
20 PKG_LICENSE_FILES
:=LICENSE
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
28 define Package
/libnatpmp
/Default
29 TITLE
:=NAT Port Mapping Protocol
(NAT-PMP
)
30 URL
:=https
://miniupnp.tuxfamily.org
/libnatpmp.html
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.
40 define Package
/libnatpmp
41 $(call Package
/libnatpmp
/Default
)
48 define Package
/libnatpmp
/description
49 $(call Package
/libnatpmp
/Default
/description
)
50 This package contains the shared library.
53 define Package
/natpmpc
54 $(call Package
/libnatpmp
/Default
)
62 define Package
/natpmpc
/description
63 $(call Package
/libnatpmp
/Default
/description
)
64 This package contains the natpmp client.
67 define Package
/libnatpmp
/install
68 $(INSTALL_DIR
) $(1)/usr
/lib
69 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libnatpmp.so.
* $(1)/usr
/lib
/
72 define Package
/natpmpc
/install
73 $(INSTALL_DIR
) $(1)/usr
/bin
74 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/natpmpc
$(1)/usr
/bin
/
77 $(eval
$(call BuildPackage
,libnatpmp
))
78 $(eval
$(call BuildPackage
,natpmpc
))