aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2022-03-14 10:46:25 +1000
committerfuzzard <fuzzard@kodi.tv>2022-03-16 18:34:27 +1000
commit5943a62e524f8b5e2d7cff5cb62c3cb0e9c33d41 (patch)
treed7547d14b71fcf24ecbce48051ac556f41be816a /tools/depends/target
parent88aefdad803f49cedde13fea74d09a889fc3c5dd (diff)
[toosl/depends][target] libxml2 use cmake
Diffstat (limited to 'tools/depends/target')
-rw-r--r--tools/depends/target/Makefile1
-rw-r--r--tools/depends/target/libxml2/LIBXML2-VERSION5
-rw-r--r--tools/depends/target/libxml2/Makefile39
3 files changed, 25 insertions, 20 deletions
diff --git a/tools/depends/target/Makefile b/tools/depends/target/Makefile
index 883915f9fd..5ba20d5bc8 100644
--- a/tools/depends/target/Makefile
+++ b/tools/depends/target/Makefile
@@ -159,6 +159,7 @@ libplist: $(ZLIB)
libpng: $(ZLIB)
spdlog: fmt
libva: libdrm $(LIBVA_DEPS)
+libxml2: $(ZLIB)
libxslt: libgcrypt libxml2
libzip: bzip2 gnutls $(ZLIB)
mariadb: openssl $(ICONV) $(ZLIB)
diff --git a/tools/depends/target/libxml2/LIBXML2-VERSION b/tools/depends/target/libxml2/LIBXML2-VERSION
new file mode 100644
index 0000000000..3a3ef085a2
--- /dev/null
+++ b/tools/depends/target/libxml2/LIBXML2-VERSION
@@ -0,0 +1,5 @@
+LIBNAME=libxml2
+VERSION=2.9.12
+ARCHIVE=$(LIBNAME)-$(VERSION).tar.gz
+SHA512=df1c6486e80f0fcf3c506f3599bcfb94b620c00d0b5d26831bc983daa78d58ec58b5057b1ec7c1a26c694f40199c6234ee2a6dcabf65abfa10c447cb5705abbd
+BYPRODUCT=libxml2.a
diff --git a/tools/depends/target/libxml2/Makefile b/tools/depends/target/libxml2/Makefile
index dc0d9dfcd4..3f1704feb9 100644
--- a/tools/depends/target/libxml2/Makefile
+++ b/tools/depends/target/libxml2/Makefile
@@ -1,38 +1,37 @@
-include ../../Makefile.include
-DEPS = ../../Makefile.include Makefile ../../download-files.include
-
-# lib name, version
-LIBNAME=libxml2
-VERSION=2.9.12
-SOURCE=$(LIBNAME)-$(VERSION)
-ARCHIVE=$(SOURCE).tar.gz
-SHA512=df1c6486e80f0fcf3c506f3599bcfb94b620c00d0b5d26831bc983daa78d58ec58b5057b1ec7c1a26c694f40199c6234ee2a6dcabf65abfa10c447cb5705abbd
-include ../../download-files.include
+include ../../Makefile.include LIBXML2-VERSION ../../download-files.include
+DEPS = ../../Makefile.include Makefile LIBXML2-VERSION ../../download-files.include
# configuration settings
-CONFIGURE=./configure --prefix=$(PREFIX) --without-python --without-iconv --disable-shared
-
-LIBDYLIB=$(PLATFORM)/.libs/$(LIBNAME).a
+CMAKE_OPTIONS=-DBUILD_SHARED_LIBS=OFF \
+ -DLIBXML2_WITH_DEBUG=OFF \
+ -DLIBXML2_WITH_DOCB=OFF \
+ -DLIBXML2_WITH_ICONV=OFF \
+ -DLIBXML2_WITH_LZMA=OFF \
+ -DLIBXML2_WITH_MODULES=OFF \
+ -DLIBXML2_WITH_PYTHON=OFF \
+ -DLIBXML2_WITH_RUN_DEBUG=OFF \
+ -DLIBXML2_WITH_PROGRAMS=OFF \
+ -DLIBXML2_WITH_TESTS=OFF
+
+LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-
$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
- cd $(PLATFORM); ./autogen.sh
- cd $(PLATFORM); $(CONFIGURE)
+ cd $(PLATFORM); mkdir -p build
+ cd $(PLATFORM)/build; $(CMAKE) $(CMAKE_OPTIONS) ..
$(LIBDYLIB): $(PLATFORM)
- $(MAKE) -C $(PLATFORM)
+ $(MAKE) -C $(PLATFORM)/build
.installed-$(PLATFORM): $(LIBDYLIB)
- $(MAKE) -C $(PLATFORM) install
- touch $(LIBDYLIB)
+ $(MAKE) -C $(PLATFORM)/build install
touch $@
clean:
- $(MAKE) -C $(PLATFORM) clean
+ $(MAKE) -C $(PLATFORM)/build clean
rm -f .installed-$(PLATFORM)
distclean::