Skip to contentSkip to conversation

libstrophe: new package

PATCH New Denis Bodor 2 participants 2 messages Mar 12, 2014 – Mar 29, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libstrophe: new package

---
 package/Config.in                                     |  1 +
 package/libstrophe/Config.in                          | 11 +++++++++++
 .../libstrophe-01-make-autoreconfable.patch           | 13 +++++++++++++
 package/libstrophe/libstrophe.mk                      | 19 +++++++++++++++++++
 4 files changed, 44 insertions(+)
 create mode 100644 package/libstrophe/Config.in
 create mode 100644 package/libstrophe/libstrophe-01-make-autoreconfable.patch
 create mode 100644 package/libstrophe/libstrophe.mk
package/Config.in +1 -0
index 70e5a7f..a53f4ba 100644
@@ -723,6 +723,7 @@ source "package/librsync/Config.in"
 source "package/libsocketcan/Config.in"
 source "package/libshairplay/Config.in"
 source "package/libsoup/Config.in"
+source "package/libstrophe/Config.in"
 source "package/libtirpc/Config.in"
 source "package/libtorrent/Config.in"
 source "package/libupnp/Config.in"
package/libstrophe/Config.in new file +11 -0
new file mode 100644
index 0000000..ac02a66
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBSTROPHE
+	bool "libstrophe"
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_EXPAT
+	help
+	  libstrophe is a lightweight XMPP client library written in C.
+	  It has minimal dependencies and is configurable for various
+	  environments. It runs well on both Linux, Unix, and Windows
+	  based platforms.
+
+	  https://github.com/strophe/libstrophe
package/libstrophe/libstrophe-01-make-autoreconfable.patch new file +13 -0
new file mode 100644
index 0000000..98da3f4
@@ -0,0 +1,13 @@
+Make the package autoreconfigurable
+
+Signed-off-by: Denis Bodor <[email protected]>
+
+diff -ur libstrophe.orig/Makefile.am libstrophe/Makefile.am
+--- libstrophe.orig/Makefile.am	2014-03-02 18:58:36.219753865 +0100
++++ libstrophe/Makefile.am	2014-03-02 18:58:02.739752477 +0100
+@@ -1,4 +1,4 @@
+-AUTOMAKE_OPTIONS = subdir-objects
++AUTOMAKE_OPTIONS = subdir-objects foreign
+ 
+ CFLAGS = -g -Wall
+ 
package/libstrophe/libstrophe.mk new file +19 -0
new file mode 100644
index 0000000..2a12a1d
@@ -0,0 +1,19 @@
+################################################################################
+# 
+# libstrophe
+#
+################################################################################
+
+LIBSTROPHE_VERSION = d408eaf2bbfe5ff5c56eab01463c278f9891c08e
+LIBSTROPHE_SITE = $(call github,strophe,libstrophe,$(LIBSTROPHE_VERSION))
+LIBSTROPHE_DEPENDENCIES = expat openssl host-pkgconf
+LIBSTROPHE_AUTORECONF = YES
+LIBSTROPHE_LICENSE = MIT GPLv3
+LIBSTROPHE_LICENSE_FILES = MIT-LICENSE.txt GPL-LICENSE.txt
+LIBSTROPHE_INSTALL_STAGING = YES
+LIBSTROPHE_INSTALL_TARGET = NO
+
+# This package only consists of header and static lib that need 
+# to be copied over to the sysroot for compile time use
+
+$(eval $(autotools-package))
Signature · 1 line
1.9.0
#1 lore raw

PATCH 1/1 libstrophe: new package

Dear Denis Bodor,

package/libstrophe/Config.in line 4

Quoted 4 lines · Denis Bodor
package/libstrophe/Config.in new file +4 -0
+config BR2_PACKAGE_LIBSTROPHE
+	bool "libstrophe"
+	select BR2_PACKAGE_OPENSSL
+	select BR2_PACKAGE_EXPAT

In fact it can work with either libxml2 or expat. So I've change this to:

select BR2_PACKAGE_LIBXML2 if !BR2_PACKAGE_EXPAT

Quoted 6 lines
package/libstrophe/libstrophe.mk new file +0 -0
new file mode 100644
index 0000000..2a12a1d

package/libstrophe/libstrophe.mk line 9

Quoted 9 lines
package/libstrophe/libstrophe.mk new file +9 -0
@@ -0,0 +1,19 @@
+################################################################################
+# 
+# libstrophe
+#
+################################################################################
+
+LIBSTROPHE_VERSION = d408eaf2bbfe5ff5c56eab01463c278f9891c08e
+LIBSTROPHE_SITE = $(call github,strophe,libstrophe,$(LIBSTROPHE_VERSION))
+LIBSTROPHE_DEPENDENCIES = expat openssl host-pkgconf

I've also adapted the dependencies to allow building against either expat or libxml2.

package/libstrophe/libstrophe.mk line 11

Quoted 2 lines
package/libstrophe/libstrophe.mk new file +2 -0
+LIBSTROPHE_AUTORECONF = YES
+LIBSTROPHE_LICENSE = MIT GPLv3

The license is actually MIT *or* GPLv2.

package/libstrophe/libstrophe.mk line 19

Quoted 8 lines
package/libstrophe/libstrophe.mk new file +8 -0
+LIBSTROPHE_LICENSE_FILES = MIT-LICENSE.txt GPL-LICENSE.txt
+LIBSTROPHE_INSTALL_STAGING = YES
+LIBSTROPHE_INSTALL_TARGET = NO
+
+# This package only consists of header and static lib that need 
+# to be copied over to the sysroot for compile time use
+
+$(eval $(autotools-package))

Committed with those changes, see
http://git.buildroot.net/buildroot/commit/?id=1acff22d5e34a91ed6e2f87312962160612fbd3d.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com