* [Buildroot] [PATCH v2 1/1] libcoap: new package
@ 2016-05-30 14:15 Joris Lijssens
2016-06-09 19:59 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Joris Lijssens @ 2016-05-30 14:15 UTC (permalink / raw)
To: buildroot
Signed-off-by: Joris Lijssens <joris.lijssens@gmail.com>
---
Changes v1 -> v2:
- Fix typo in libcoap.mk
package/Config.in | 1 +
package/libcoap/Config.in | 10 ++++++++++
package/libcoap/libcoap.hash | 2 ++
package/libcoap/libcoap.mk | 21 +++++++++++++++++++++
4 files changed, 34 insertions(+)
create mode 100644 package/libcoap/Config.in
create mode 100644 package/libcoap/libcoap.hash
create mode 100644 package/libcoap/libcoap.mk
diff --git a/package/Config.in b/package/Config.in
index 9d668bf..db78939 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1122,6 +1122,7 @@ menu "Networking"
source "package/ibrdtn/Config.in"
source "package/libcgi/Config.in"
source "package/libcgicc/Config.in"
+ source "package/libcoap/Config.in"
source "package/libcurl/Config.in"
source "package/libdnet/Config.in"
source "package/libeXosip2/Config.in"
diff --git a/package/libcoap/Config.in b/package/libcoap/Config.in
new file mode 100644
index 0000000..7aea348
--- /dev/null
+++ b/package/libcoap/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_LIBCOAP
+ bool "libcoap"
+ help
+ libcoap is a C implementation of a lightweight application-protocol
+ for devices that are constrained their resources such as computing
+ power, RF range, memory, bandwith, or network packet sizes. This
+ protocol, CoAP, is standardized by the IETF as RFC 7252. For further
+ information related to CoAP, see <http://coap.technology>.
+
+ https://github.com/obgm/libcoap
diff --git a/package/libcoap/libcoap.hash b/package/libcoap/libcoap.hash
new file mode 100644
index 0000000..dce491b
--- /dev/null
+++ b/package/libcoap/libcoap.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 f66e91742c2b027fcd7c575d8e7b53d79d3624aad1b3baba481dd88f6e2bc44d libcoap-c909bf802034b7762a2182848304b2530e58444f.tar.gz
diff --git a/package/libcoap/libcoap.mk b/package/libcoap/libcoap.mk
new file mode 100644
index 0000000..320582f
--- /dev/null
+++ b/package/libcoap/libcoap.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# libcoap
+#
+################################################################################
+
+LIBCOAP_VERSION = c909bf802034b7762a2182848304b2530e58444f
+LIBCOAP_SITE = $(call github,obgm,libcoap,$(LIBCOAP_VERSION))
+LIBCOAP_INSTALL_STAGING = YES
+LIBCOAP_LICENSE = GPLv2, BSD-2c
+LIBCOAP_LICENSE_FILES = LICENSE.GPL LICENSE.BSD
+LIBCOAP_CONF_OPTS += --with-shared --disable-examples
+
+# This package uses autoconf, but not automake, so we need to call
+# their special autogen.sh script.
+define LIBCOAP_RUN_AUTOGEN
+ cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
+endef
+LIBCOAP_PRE_CONFIGURE_HOOKS += LIBCOAP_RUN_AUTOGEN
+
+$(eval $(autotools-package))
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v2 1/1] libcoap: new package
2016-05-30 14:15 [Buildroot] [PATCH v2 1/1] libcoap: new package Joris Lijssens
@ 2016-06-09 19:59 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-06-09 19:59 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 30 May 2016 16:15:34 +0200, Joris Lijssens wrote:
> Signed-off-by: Joris Lijssens <joris.lijssens@gmail.com>
> ---
> Changes v1 -> v2:
> - Fix typo in libcoap.mk
I've applied the patch, after doing quite a few changes:
[Thomas:
- Adjust license: it is "GPLv2+ or BSD-2c" and not "GPLv2, BSD-2c"
- Add the COPYING file to the license files, since it indicates
explictly that the license is GPLv2+ or BSD-2c.
- Remove the --with-shared configure options, which doesn't exist.
- Use LIBCOAP_AUTORECONF = YES instead of calling the autogen.sh script
manually.
- Add patch to fix build with old gcc versions.]
Thanks for your contribution!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-06-09 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-30 14:15 [Buildroot] [PATCH v2 1/1] libcoap: new package Joris Lijssens
2016-06-09 19:59 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.