summaryrefslogtreecommitdiffstats
path: root/src/xmlrpc-c.mk
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmlrpc-c.mk')
-rw-r--r--src/xmlrpc-c.mk14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/xmlrpc-c.mk b/src/xmlrpc-c.mk
index f49f6d0..b046d40 100644
--- a/src/xmlrpc-c.mk
+++ b/src/xmlrpc-c.mk
@@ -5,7 +5,7 @@ $(PKG)_WEBSITE := https://xmlrpc-c.sourceforge.io/
$(PKG)_IGNORE :=
$(PKG)_VERSION := d4364f4
$(PKG)_CHECKSUM := fbd79d86020a87ed61dfdf00f78873c0fd925f477a8705f415b9fee0d6d64b19
-$(PKG)_SUBDIR := mirror-$(PKG)-$($(PKG)_VERSION)/advanced
+$(PKG)_SUBDIR := mirror-$(PKG)-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := https://github.com/mirror/$(PKG)/tarball/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc curl pthreads
@@ -26,9 +26,9 @@ $(PKG)_MAKE_OPTS = \
MUST_BUILD_SHLIB=@xmlrpc-c-must-build-shlib@
define $(PKG)_BUILD_COMMON
- $(SED) -i 's,curl-config,$(TARGET)-curl-config,g' '$(1)/lib/curl_transport/Makefile'
- $(SED) -i 's,curl-config,$(TARGET)-curl-config,g' '$(1)/src/Makefile'
- cd '$(1)' && ./configure \
+ $(SED) -i 's,curl-config,$(TARGET)-curl-config,g' '$(1)/advanced/lib/curl_transport/Makefile'
+ $(SED) -i 's,curl-config,$(TARGET)-curl-config,g' '$(1)/advanced/src/Makefile'
+ cd '$(1)/advanced' && ./configure \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--enable-abyss-server=no \
@@ -36,12 +36,12 @@ define $(PKG)_BUILD_COMMON
--enable-cplusplus \
--enable-curl-client \
CURL_CONFIG='$(PREFIX)/$(TARGET)/bin/curl-config'
- $(MAKE) -C '$(1)' -j '$(JOBS)' $($(PKG)_MAKE_OPTS)
- $(MAKE) -C '$(1)' -j 1 install $($(PKG)_MAKE_OPTS)
+ $(MAKE) -C '$(1)/advanced' -j '$(JOBS)' $($(PKG)_MAKE_OPTS)
+ $(MAKE) -C '$(1)/advanced' -j 1 install $($(PKG)_MAKE_OPTS)
'$(TARGET)-g++' \
-W -Wall -Werror -ansi -pedantic \
- '$(1)/examples/cpp/asynch_client.cpp' -o '$(PREFIX)/$(TARGET)/bin/test-xmlrpc-c.exe' \
+ '$(1)/advanced/examples/cpp/asynch_client.cpp' -o '$(PREFIX)/$(TARGET)/bin/test-xmlrpc-c.exe' \
`'$(PREFIX)/$(TARGET)/bin/xmlrpc-c-config' c++2 client --libs` \
`'$(TARGET)-pkg-config' libcurl --cflags --libs`
endef