aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/udfread
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2022-03-01 13:44:52 +1000
committerfuzzard <fuzzard@kodi.tv>2022-03-07 19:46:40 +1000
commitd74fdeafac85cf94e573e7c0579dac048a742957 (patch)
treeb5f773ef577cf8c82cecbca42a0c12b2395d3bd8 /tools/depends/target/udfread
parentf16c0d9765f0ded661bb9f605097199c5b374f44 (diff)
[tools/depends] rename libudfread to udfread
rename libudfread to just udfread. This brings some consistency to naming in other parts of kodi cmake (eg target udfread)
Diffstat (limited to 'tools/depends/target/udfread')
-rw-r--r--tools/depends/target/udfread/Makefile43
-rw-r--r--tools/depends/target/udfread/UDFREAD-VERSION4
2 files changed, 47 insertions, 0 deletions
diff --git a/tools/depends/target/udfread/Makefile b/tools/depends/target/udfread/Makefile
new file mode 100644
index 0000000000..682f782b5a
--- /dev/null
+++ b/tools/depends/target/udfread/Makefile
@@ -0,0 +1,43 @@
+-include ../../Makefile.include
+include UDFREAD-VERSION
+DEPS = Makefile UDFREAD-VERSION ../../download-files.include ../../download-files.include
+
+ifeq ($(CROSS_COMPILING), yes)
+ DEPS += ../../Makefile.include
+else
+ ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
+ TARBALLS_LOCATION ?= $(ROOT_DIR)
+ BASE_URL ?= http://mirrors.kodi.tv/build-deps/sources
+ RETRIEVE_TOOL := curl -Ls --retry 10 --retry-delay 3 -o $(ARCHIVE)
+ ARCHIVE_TOOL := tar --strip-components=1 -xf
+endif
+
+include ../../download-files.include
+
+# configuration settings
+CONFIGURE = ./configure --prefix=$(PREFIX) --disable-shared --enable-static
+
+LIBDYLIB=$(PLATFORM)/.libs/$(LIBNAME).a
+
+all: .installed-$(PLATFORM)
+download: $(TARBALLS_LOCATION)/$(ARCHIVE)
+
+$(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); $(AUTORECONF) -vif
+ cd $(PLATFORM); $(CONFIGURE)
+
+$(LIBDYLIB): $(PLATFORM)
+ $(MAKE) -C $(PLATFORM)
+
+.installed-$(PLATFORM): $(LIBDYLIB)
+ $(MAKE) -C $(PLATFORM) install
+ touch $@
+
+clean:
+ $(MAKE) -C $(PLATFORM) clean
+ rm -f .installed-$(PLATFORM)
+
+distclean:
+ rm -rf $(PLATFORM) .installed-$(PLATFORM)
diff --git a/tools/depends/target/udfread/UDFREAD-VERSION b/tools/depends/target/udfread/UDFREAD-VERSION
new file mode 100644
index 0000000000..a76ccdedfb
--- /dev/null
+++ b/tools/depends/target/udfread/UDFREAD-VERSION
@@ -0,0 +1,4 @@
+LIBNAME=udfread
+VERSION=1.1.2
+ARCHIVE=lib$(LIBNAME)-$(VERSION).tar.gz
+SHA512=3069feb5db40288beb5b112b285186162a704f0fdd3cf67a17fd4eeea015f2cfcfbb455b7aa7c3d79d00fd095a3fd11cffc7b121dce94d99c3b06a509a8977d2