aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2020-04-03 15:12:59 -0700
committerLukas Rusak <lorusak@gmail.com>2020-04-15 17:21:16 -0700
commit419627e55038f9375aff617da0b0393a411177fe (patch)
treeefd2ecd84e0014cb9a81c64c237c64e88cc1a1fe /tools
parent7573261375e2bf069195993184c5c33b2ebc2ed2 (diff)
[depends] add libudfread
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/target/Makefile2
-rw-r--r--tools/depends/target/libudfread/Makefile33
-rw-r--r--tools/depends/target/libudfread/UDFREAD-VERSION3
3 files changed, 37 insertions, 1 deletions
diff --git a/tools/depends/target/Makefile b/tools/depends/target/Makefile
index 840c1a7111..41b39a2735 100644
--- a/tools/depends/target/Makefile
+++ b/tools/depends/target/Makefile
@@ -14,7 +14,7 @@ DEPENDS = \
libplist libcec libbluray tinyxml \
taglib libusb libnfs meson-cross-file \
pythonmodule-pil pythonmodule-pycryptodome pythonmodule-setuptools \
- libxslt ffmpeg crossguid \
+ libxslt ffmpeg crossguid libudfread \
libdvdread libdvdnav libdvdcss p8-platform flatbuffers dav1d
ifeq ($(ENABLE_GPLV3),yes)
diff --git a/tools/depends/target/libudfread/Makefile b/tools/depends/target/libudfread/Makefile
new file mode 100644
index 0000000000..1e2c67b712
--- /dev/null
+++ b/tools/depends/target/libudfread/Makefile
@@ -0,0 +1,33 @@
+include ../../Makefile.include
+include UDFREAD-VERSION
+DEPS = ../../Makefile.include Makefile UDFREAD-VERSION
+
+# configuration settings
+CONFIGURE = ./configure --prefix=$(PREFIX) --disable-shared --enable-static
+
+LIBDYLIB=$(PLATFORM)/lib/lib$(LIBNAME).a
+
+all: .installed-$(PLATFORM)
+
+$(TARBALLS_LOCATION)/$(ARCHIVE):
+ cd $(TARBALLS_LOCATION); $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
+
+$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(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/libudfread/UDFREAD-VERSION b/tools/depends/target/libudfread/UDFREAD-VERSION
new file mode 100644
index 0000000000..9a13b55e1e
--- /dev/null
+++ b/tools/depends/target/libudfread/UDFREAD-VERSION
@@ -0,0 +1,3 @@
+LIBNAME=libudfread
+VERSION=1.0.0
+ARCHIVE=$(LIBNAME)-$(VERSION).tar.gz