aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMiguel Borges de Freitas <92enen@gmail.com>2022-12-14 15:20:41 +0000
committerMiguel Borges de Freitas <92enen@gmail.com>2022-12-14 20:58:59 +0000
commit5722d74e3bcd856df5ad1a74b90779ba89f1489e (patch)
tree693b88a1f2f73c21bd5135b230b9759218dd0e9d /tools
parentc48dbdd79edc8bef57b13886b9161529356abb55 (diff)
[discs] Allow compilation of darwin driver on apple silicon
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/target/libcdio-gplv3/Makefile2
-rw-r--r--tools/depends/target/libcdio-gplv3/osx.patch2
2 files changed, 3 insertions, 1 deletions
diff --git a/tools/depends/target/libcdio-gplv3/Makefile b/tools/depends/target/libcdio-gplv3/Makefile
index dfbc21d0b0..dc4bb4cd76 100644
--- a/tools/depends/target/libcdio-gplv3/Makefile
+++ b/tools/depends/target/libcdio-gplv3/Makefile
@@ -23,7 +23,9 @@ all: .installed-$(PLATFORM)
$(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS)
rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+ifeq ($(TARGET_PLATFORM),macosx)
cd $(PLATFORM); patch -p1 -i ../osx.patch
+endif
cd $(PLATFORM); patch -p1 -i ../01-fix-glob-on-android.patch
cd $(PLATFORM); $(AUTORECONF) -vif
cd $(PLATFORM); $(CONFIGURE)
diff --git a/tools/depends/target/libcdio-gplv3/osx.patch b/tools/depends/target/libcdio-gplv3/osx.patch
index b981f38e03..ab8415edd1 100644
--- a/tools/depends/target/libcdio-gplv3/osx.patch
+++ b/tools/depends/target/libcdio-gplv3/osx.patch
@@ -13,7 +13,7 @@
## [Define 1 if you have AIX CD-ROM support])
;;
- darwin[[6-9]].*|darwin[[1-9]][[0-9]].*)
-+ x86_64-apple-darwin*)
++ *-apple-darwin*)
AC_CHECK_HEADERS(IOKit/IOKitLib.h CoreFoundation/CFBase.h,
[have_iokit_h="yes"])
if test "x$have_iokit_h" = "xyes" ; then