summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gst-plugins-good.mk2
-rw-r--r--src/libsoup-1-fixes.patch57
-rw-r--r--src/libsoup-test.c17
-rw-r--r--src/libsoup.mk30
4 files changed, 105 insertions, 1 deletions
diff --git a/src/gst-plugins-good.mk b/src/gst-plugins-good.mk
index f65b3ef..f62ad02 100644
--- a/src/gst-plugins-good.mk
+++ b/src/gst-plugins-good.mk
@@ -9,7 +9,7 @@ $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
$(PKG)_URL := http://gstreamer.freedesktop.org/src/$(PKG)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc cairo flac glib gst-plugins-base gstreamer jpeg \
- liboil libpng libshout libxml2 speex taglib wavpack
+ liboil libpng libshout libsoup libxml2 speex taglib wavpack
$(PKG)_UPDATE = $(subst gstreamer/refs,gst-plugins-good/refs,$(gstreamer_UPDATE))
diff --git a/src/libsoup-1-fixes.patch b/src/libsoup-1-fixes.patch
new file mode 100644
index 0000000..5611038
--- /dev/null
+++ b/src/libsoup-1-fixes.patch
@@ -0,0 +1,57 @@
+This file is part of MXE.
+See index.html for further information.
+
+diff -Naur libsoup-2.54.0.1.orig/autogen.sh libsoup-2.54.0.1/autogen.sh
+--- libsoup-2.54.0.1.orig/autogen.sh 2016-03-23 15:19:17.000000000 +0300
++++ libsoup-2.54.0.1/autogen.sh 2016-04-09 18:29:05.799748895 +0300
+@@ -19,13 +19,6 @@
+ exit 1
+ fi
+
+-GTKDOCIZE=`which gtkdocize`
+-if test -z $GTKDOCIZE; then
+- echo "*** No GTK-Doc found, please install it ***"
+- exit 1
+-fi
+-
+-gtkdocize || exit $?
+ intltoolize --automake --copy
+ autoreconf --force --install --verbose
+
+diff -Naur libsoup-2.54.0.1.orig/docs/reference/Makefile.am libsoup-2.54.0.1/docs/reference/Makefile.am
+--- libsoup-2.54.0.1.orig/docs/reference/Makefile.am 2016-03-23 15:19:17.000000000 +0300
++++ libsoup-2.54.0.1/docs/reference/Makefile.am 2016-04-09 18:30:33.644569273 +0300
+@@ -77,7 +77,6 @@
+ $(GLIB_LIBS)
+
+ # include common portion ...
+-include $(top_srcdir)/gtk-doc.make
+
+ # kludges
+ $(srcdir)/tmpl/*.sgml:
+diff -Naur libsoup-2.54.0.1.orig/Makefile.am libsoup-2.54.0.1/Makefile.am
+--- libsoup-2.54.0.1.orig/Makefile.am 2016-03-23 15:19:17.000000000 +0300
++++ libsoup-2.54.0.1/Makefile.am 2016-04-09 22:41:40.604386782 +0300
+@@ -1,7 +1,7 @@
+ ## Process this file with automake to produce Makefile.in
+ ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+-SUBDIRS = libsoup po tests examples docs build/win32
++SUBDIRS = libsoup tests docs build/win32
+
+ EXTRA_DIST = \
+ data/effective_tld_names.dat \
+diff -Naur libsoup-2.54.0.1.orig/tests/test-utils.c libsoup-2.54.0.1/tests/test-utils.c
+--- libsoup-2.54.0.1.orig/tests/test-utils.c 2016-03-23 15:19:17.000000000 +0300
++++ libsoup-2.54.0.1/tests/test-utils.c 2016-04-09 18:31:51.741646290 +0300
+@@ -215,10 +215,6 @@
+ return;
+ apache_running = FALSE;
+
+- if (pid) {
+- while (kill (pid, 0) == 0)
+- g_usleep (100);
+- }
+ }
+
+ #endif /* HAVE_APACHE */
diff --git a/src/libsoup-test.c b/src/libsoup-test.c
new file mode 100644
index 0000000..140d604
--- /dev/null
+++ b/src/libsoup-test.c
@@ -0,0 +1,17 @@
+/*
+ * This file is part of MXE.
+ * See index.html for further information.
+ */
+
+#include <libsoup/soup.h>
+
+int main()
+{
+ SoupServer *server;
+ GError *error;
+
+ server = soup_server_new (SOUP_SERVER_SERVER_HEADER, "simple-httpd ", SOUP_SERVER_TLS_CERTIFICATE, NULL, NULL);
+ soup_server_listen_all (server, 1234, SOUP_SERVER_LISTEN_HTTPS, &error);
+
+ return 0;
+}
diff --git a/src/libsoup.mk b/src/libsoup.mk
new file mode 100644
index 0000000..d748694
--- /dev/null
+++ b/src/libsoup.mk
@@ -0,0 +1,30 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := libsoup
+$(PKG)_IGNORE := libsoup-pre%
+$(PKG)_VERSION := 2.54.0.1
+$(PKG)_APIVER := 2.4
+$(PKG)_CHECKSUM := b466c68e6575ca5ed170da60cc316c562a96db5dba5345a6043f740201afa8f4
+$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := https://github.com/GNOME/$(PKG)/archive/$($(PKG)_VERSION).tar.gz
+$(PKG)_DEPS := gcc glib libxml2 sqlite
+
+define $(PKG)_UPDATE
+ $(call MXE_GET_GITHUB_TAGS, GNOME/libsoup)
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && NOCONFIGURE=1 ./autogen.sh
+ cd '$(1)' && ./configure \
+ $(MXE_CONFIGURE_OPTS) \
+ --disable-vala
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j 1 install
+
+ $(TARGET)-gcc \
+ -W -Wall -Werror -ansi \
+ '$(2).c' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \
+ `$(TARGET)-pkg-config $(PKG)-$($(PKG)_APIVER) --cflags --libs`
+endef