aboutsummaryrefslogtreecommitdiff
path: root/tools/depends
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2022-04-18 03:52:18 +1000
committerfuzzard <fuzzard@kodi.tv>2022-04-18 03:52:18 +1000
commit4e0ca0e3b0fc5ea2ad7b176f76575e046d265372 (patch)
tree1472722fde7b1a4acb2a5afdb812daab24302382 /tools/depends
parentd89c10711a535e572db1f093dbed9da0eed9fb6a (diff)
[tools/depends][target] liblzo2 use cmake build system
Diffstat (limited to 'tools/depends')
-rw-r--r--tools/depends/target/liblzo2/LIBLZO2-VERSION6
-rw-r--r--tools/depends/target/liblzo2/Makefile37
2 files changed, 19 insertions, 24 deletions
diff --git a/tools/depends/target/liblzo2/LIBLZO2-VERSION b/tools/depends/target/liblzo2/LIBLZO2-VERSION
new file mode 100644
index 0000000000..05008a9694
--- /dev/null
+++ b/tools/depends/target/liblzo2/LIBLZO2-VERSION
@@ -0,0 +1,6 @@
+LIBNAME=lzo
+VERSION=2.10
+SOURCE=$(LIBNAME)-$(VERSION)
+ARCHIVE=$(SOURCE).tar.gz
+SHA512=a3dae5e4a6b93b1f5bf7435e8ab114a9be57252e9efc5dd444947d7a2d031b0819f34bcaeb35f60b5629a01b1238d738735a64db8f672be9690d3c80094511a4
+BYPRODUCT=liblzo2.a
diff --git a/tools/depends/target/liblzo2/Makefile b/tools/depends/target/liblzo2/Makefile
index 993b623fc9..08eeb2671b 100644
--- a/tools/depends/target/liblzo2/Makefile
+++ b/tools/depends/target/liblzo2/Makefile
@@ -1,39 +1,28 @@
-include ../../Makefile.include
-DEPS = ../../Makefile.include Makefile ../../download-files.include
+include ../../Makefile.include LIBLZO2-VERSION ../../download-files.include
+DEPS = ../../Makefile.include Makefile LIBLZO2-VERSION ../../download-files.include
-# lib name, version
-LIBNAME=lzo
-VERSION=2.10
-SOURCE=$(LIBNAME)-$(VERSION)
-ARCHIVE=$(SOURCE).tar.gz
-SHA512=a3dae5e4a6b93b1f5bf7435e8ab114a9be57252e9efc5dd444947d7a2d031b0819f34bcaeb35f60b5629a01b1238d738735a64db8f672be9690d3c80094511a4
-include ../../download-files.include
+# configuration options
+CMAKE_OPTIONS=-DCMAKE_BUILD_TYPE=Release \
+ -DENABLE_STATIC=ON \
+ -DENABLE_SHARED=OFF \
+ -DCMAKE_INSTALL_PREFIX=$(PREFIX)
-# configuration settings
-CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) autoconf/; \
- ./configure --prefix=$(PREFIX)
-
-LIBDYLIB=$(PLATFORM)/src/.libs/lib$(LIBNAME)2.a
+LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT)
all: .installed-$(PLATFORM)
-
$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
- rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
+ rm -rf $(PLATFORM); mkdir -p $(PLATFORM)/build
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
- cd $(PLATFORM); $(CONFIGURE)
+ cd $(PLATFORM)/build; $(CMAKE) $(CMAKE_OPTIONS) ..
-$(LIBDYLIB): $(PLATFORM)
- $(MAKE) -C $(PLATFORM)
-
-.installed-$(PLATFORM): $(LIBDYLIB)
- $(MAKE) -C $(PLATFORM) install
+.installed-$(PLATFORM): $(PLATFORM)
+ $(MAKE) -C $(PLATFORM)/build install
touch $@
clean:
- $(MAKE) -C $(PLATFORM) clean
+ $(MAKE) -C $(PLATFORM)/build clean
rm -f .installed-$(PLATFORM)
distclean::
rm -rf $(PLATFORM) .installed-$(PLATFORM)
-