diff options
author | fuzzard <fuzzard@kodi.tv> | 2022-05-03 19:17:03 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2022-05-06 11:32:39 +1000 |
commit | ad2d2e8fe1e66ff118bb284e1dbe13fa9944b67b (patch) | |
tree | e97460ae89cafc178b890573daad2903dc6fcd88 /tools/depends/target/zlib/Makefile | |
parent | 23f6ad9a069123438ceff7d096e5a524528b877b (diff) |
[tools/depends][target] zlib build using cmake
Diffstat (limited to 'tools/depends/target/zlib/Makefile')
-rw-r--r-- | tools/depends/target/zlib/Makefile | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/tools/depends/target/zlib/Makefile b/tools/depends/target/zlib/Makefile index 9e0b5e7bb5..b7f6d41e6e 100644 --- a/tools/depends/target/zlib/Makefile +++ b/tools/depends/target/zlib/Makefile @@ -1,38 +1,32 @@ -include ../../Makefile.include -DEPS = ../../Makefile.include Makefile visibility.patch remove_fixe_ar_osx.patch ../../download-files.include - -# lib name, version -LIBNAME=zlib -VERSION=1.2.11 -SOURCE=$(LIBNAME)-$(VERSION) -ARCHIVE=$(SOURCE).tar.gz -SHA512=73fd3fff4adeccd4894084c15ddac89890cd10ef105dd5e1835e1e9bbb6a49ff229713bd197d203edfa17c2727700fce65a2a235f07568212d820dca88b528ae -include ../../download-files.include +include ../../Makefile.include ZLIB-VERSION ../../download-files.include +DEPS = ../../Makefile.include Makefile ZLIB-VERSION ../../download-files.include \ + 01-all-disable_tests.patch \ + 02-all-static_only.patch # configuration settings -CONFIGURE= RANLIB="$(RANLIB)" LD="$(LD)" AR="$(AR)" CC="$(CC)" CFLAGS="$(CFLAGS)" ./configure --prefix=$(PREFIX) --static +CMAKE_OPTIONS=-DCMAKE_INSTALL_PREFIX=$(PREFIX) \ + -DINSTALL_PKGCONFIG_DIR=$(PREFIX)/lib/pkgconfig -LIBDYLIB=$(PLATFORM)/$(LIBNAME).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); patch -p1 -i ../visibility.patch - cd $(PLATFORM); patch -p1 -i ../remove_fixe_ar_osx.patch - cd $(PLATFORM); $(CONFIGURE) + cd $(PLATFORM); patch -p1 -i ../01-all-disable_tests.patch + cd $(PLATFORM); patch -p1 -i ../02-all-static_only.patch + 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:: |