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
24 include $(INCLUDE_DIR
)/package.mk
25 include $(INCLUDE_DIR
)/cmake.mk
27 define Package
/libnatpmp
/Default
28 TITLE
:=NAT Port Mapping Protocol
(NAT-PMP
)
29 URL
:=https
://miniupnp.tuxfamily.org
/libnatpmp.html
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.
39 define Package
/libnatpmp
40 $(call Package
/libnatpmp
/Default
)
47 define Package
/libnatpmp
/description
48 $(call Package
/libnatpmp
/Default
/description
)
49 This package contains the shared library.
52 define Package
/natpmpc
53 $(call Package
/libnatpmp
/Default
)
61 define Package
/natpmpc
/description
62 $(call Package
/libnatpmp
/Default
/description
)
63 This package contains the natpmp client.
66 define Package
/libnatpmp
/install
67 $(INSTALL_DIR
) $(1)/usr
/lib
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libnatpmp.so.
* $(1)/usr
/lib
/
71 define Package
/natpmpc
/install
72 $(INSTALL_DIR
) $(1)/usr
/bin
73 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/natpmpc
$(1)/usr
/bin
/
76 $(eval
$(call BuildPackage
,libnatpmp
))
77 $(eval
$(call BuildPackage
,natpmpc
))