aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/libudfread/Makefile
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/depends/target/libudfread/Makefile
parent7573261375e2bf069195993184c5c33b2ebc2ed2 (diff)
[depends] add libudfread
Diffstat (limited to 'tools/depends/target/libudfread/Makefile')
-rw-r--r--tools/depends/target/libudfread/Makefile33
1 files changed, 33 insertions, 0 deletions
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)