summaryrefslogtreecommitdiffstats
path: root/src/libsoup.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsoup.mk')
-rw-r--r--src/libsoup.mk30
1 files changed, 30 insertions, 0 deletions
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