aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2016-07-03 00:18:12 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2016-07-03 19:53:42 +0200
commit06015c7deb097ec97743835483d02329ca9bf210 (patch)
treeed5362f18cb6f7dddcb5aff479fb0ea8b930fec1 /package
parent7ccaec03557880f0ed6811e11661a6166c7c3a89 (diff)
downloadbuildroot-06015c7deb097ec97743835483d02329ca9bf210.tar.gz
buildroot-06015c7deb097ec97743835483d02329ca9bf210.tar.bz2
libnatpmp: New package
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package')
-rw-r--r--package/Config.in1
-rw-r--r--package/libnatpmp/Config.in16
-rw-r--r--package/libnatpmp/libnatpmp.hash2
-rw-r--r--package/libnatpmp/libnatpmp.mk31
4 files changed, 50 insertions, 0 deletions
diff --git a/package/Config.in b/package/Config.in
index fef626f447..3fdde256a1 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1178,6 +1178,7 @@ menu "Networking"
source "package/libminiupnpc/Config.in"
source "package/libmnl/Config.in"
source "package/libmodbus/Config.in"
+ source "package/libnatpmp/Config.in"
source "package/libndp/Config.in"
source "package/libnet/Config.in"
source "package/libnetfilter_acct/Config.in"
diff --git a/package/libnatpmp/Config.in b/package/libnatpmp/Config.in
new file mode 100644
index 0000000000..879e5ee1ac
--- /dev/null
+++ b/package/libnatpmp/Config.in
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_LIBNATPMP
+ bool "libnatpmp"
+ depends on !BR2_BINFMT_FLAT
+ depends on !BR2_STATIC_LIBS
+ help
+ libnatpmp is an attempt to make a portable and fully compliant
+ implementation of the NAT-PMP protocol for the client side. It
+ is based on non blocking sockets and all calls of the API are
+ asynchronous. It is therefore very easy to integrate the
+ NAT-PMP code to any event driven code.
+
+ http://miniupnp.free.fr/libnatpmp.html
+
+comment "libnatpmp needs a toolchain w/ dynamic library"
+ depends on BR2_STATIC_LIBS
+ depends on !BR2_BINFMT_FLAT
diff --git a/package/libnatpmp/libnatpmp.hash b/package/libnatpmp/libnatpmp.hash
new file mode 100644
index 0000000000..a5cab3ce26
--- /dev/null
+++ b/package/libnatpmp/libnatpmp.hash
@@ -0,0 +1,2 @@
+# Locally computed
+sha256 e1aa9c4c4219bc06943d6b2130f664daee213fb262fcb94dd355815b8f4536b0 libnatpmp-20150609.tar.gz
diff --git a/package/libnatpmp/libnatpmp.mk b/package/libnatpmp/libnatpmp.mk
new file mode 100644
index 0000000000..cdd65e96cd
--- /dev/null
+++ b/package/libnatpmp/libnatpmp.mk
@@ -0,0 +1,31 @@
+################################################################################
+#
+# libnatpmp
+#
+################################################################################
+
+LIBNATPMP_VERSION = 20150609
+LIBNATPMP_SITE = http://miniupnp.free.fr/files
+LIBNATPMP_INSTALL_STAGING = YES
+LIBNATPMP_LICENSE = BSD-3c
+LIBNATPMP_LICENSE_FILES = LICENSE
+
+define LIBNATPMP_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+ CC="$(TARGET_CC)"
+endef
+
+define LIBNATPMP_INSTALL_STAGING_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+ PREFIX=$(STAGING_DIR) \
+ HEADERS='declspec.h natpmp.h' \
+ $(TARGET_CONFIGURE_OPTS) install
+endef
+
+define LIBNATPMP_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+ PREFIX=$(TARGET_DIR) \
+ $(TARGET_CONFIGURE_OPTS) install
+endef
+
+$(eval $(generic-package))