aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libmesode/10-patch-configure.patch
diff options
context:
space:
mode:
authorGalen Abell <galen@galenabell.com>2019-11-26 13:16:23 +0100
committerLeo <thinkabit.ukim@gmail.com>2019-11-26 16:29:06 +0100
commit42ccc2c6bf2dfe475edeebb07558180a9d5ce6b5 (patch)
treece522e60eedf6fc08c43a16c6f3e3626f4a398fd /testing/libmesode/10-patch-configure.patch
parent45f69fa2107bb3415c5321e1bbafb16783133a15 (diff)
downloadaports-42ccc2c6bf2dfe475edeebb07558180a9d5ce6b5.tar.bz2
aports-42ccc2c6bf2dfe475edeebb07558180a9d5ce6b5.tar.xz
testing/libmesode: new aport
https://github.com/profanity-im/libmesode Fork of libstrophe for use with Profanity XMPP Client testing/
Diffstat (limited to 'testing/libmesode/10-patch-configure.patch')
-rw-r--r--testing/libmesode/10-patch-configure.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/testing/libmesode/10-patch-configure.patch b/testing/libmesode/10-patch-configure.patch
new file mode 100644
index 0000000000..38a82cd887
--- /dev/null
+++ b/testing/libmesode/10-patch-configure.patch
@@ -0,0 +1,32 @@
+From 2cd7621d4ca4a3f78dbfb6b15779cbf57770670a Mon Sep 17 00:00:00 2001
+From: Stuart McLaren <stuart.mclaren@hp.com>
+Date: Sun, 12 Mar 2017 21:21:43 +0000
+Subject: [PATCH] Allow configure to run on netbsd
+
+NetBSD's shell (/bin/sh) doesn't support '+='. Removing '+=' allows
+configure to run and the library to compile.
+
+This matches configure.ac in boothj5/profanity which also doesn't
+use '+='.
+---
+ configure.ac | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 6d19f2e..34a5fe4 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -18,11 +18,11 @@ AS_CASE([$host_os],
+ [PLATFORM="nix"])
+
+ PKG_CHECK_MODULES([expat], [expat >= 2.0.0],
+- [PC_REQUIRES+=(expat)],
++ [PC_REQUIRES="expat ${PC_REQUIRES}"],
+ [AC_CHECK_HEADER([expat.h],
+ [
+ expat_LIBS="-lexpat"
+- PC_LIBS+=($expat_LIBS)
++ PC_LIBS="${expat_LIBS} ${PC_LIBS}"
+ ],
+ [AC_MSG_ERROR([expat not found; expat required.])]
+ )