aboutsummaryrefslogtreecommitdiff
path: root/tools/depends
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:52:40 +0000
commit19b0ac1c91e6dcef33e2f09da5860154d5109e94 (patch)
treef48c37a5f292113ea9009d43b21dbecfc141689e /tools/depends
parent57dd0d24260ee84d56731c69b02615a4e5b8b6b9 (diff)
[discs] Allow compilation of darwin driver on apple silicon
Diffstat (limited to 'tools/depends')
-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