feat: re-introduced MacOS support (#71)
* preparatory changes to make dvdisaster compilable under MacOS * Implemented workaround to macOS Test Unit Ready bug * fixed manual.pdf not opening on macOS * Added case for binary being in app bundle * updated locale files due to change in closure.c * added back mac app bundle specific files * reverted make-dist.sh to windows/linux only version and created separate mac script which uses dylibbundler * altered release.yml accordingly * chore: fix build under MacOS --------- Co-authored-by: Stéphane Lesimple <speed47_github@speed47.net> Co-authored-by: jlnbxn <julianboxan@gmail.com> Co-authored-by: wojas <github@m.wojas.nl>
This commit is contained in:
committed by
GitHub
parent
f38969c7c8
commit
eeb9f0705d
@@ -127,6 +127,15 @@ case "$cfg_uname" in
|
||||
}
|
||||
;;
|
||||
|
||||
Darwin*) cfg_system=darwin
|
||||
CFG_SYS_OPTIONS="-DSYS_DARWIN"
|
||||
CFG_SYS_NAME="-DSYS_NAME=\\\"Darwin\\\""
|
||||
CFG_EXE_SUFFIX=""
|
||||
function add_linker_flags()
|
||||
{ lflags_return="-L$1 -Wl,-rpath,$1 $2"
|
||||
}
|
||||
;;
|
||||
|
||||
FreeBSD*) cfg_system=freebsd-std
|
||||
CFG_SYS_OPTIONS="-DSYS_FREEBSD"
|
||||
CFG_SYS_NAME="-DSYS_NAME=\\\"FreeBSD\\\""
|
||||
@@ -348,6 +357,42 @@ function REQUIRE_GMAKE()
|
||||
exit 1;
|
||||
}
|
||||
|
||||
function REQUIRE_CLANG()
|
||||
{
|
||||
if test -n "$cfg_help_mode"; then
|
||||
return 0
|
||||
fi
|
||||
|
||||
echo -n "Checking for clang: "
|
||||
|
||||
# Try $CC first
|
||||
|
||||
if test -n "$CC" && $CC -v >/dev/null 2>&1; then
|
||||
if ($CC -v 2>&1 | grep "clang") > /dev/null 2>&1 ; then
|
||||
CC=`type -P $CC`
|
||||
echo "yes ($CC)"
|
||||
echo "CC = $CC" >>Makefile.config
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
|
||||
# Try clang binary
|
||||
|
||||
CC=clang
|
||||
if test -n "$CC" && $CC -v >/dev/null 2>&1; then
|
||||
if ($CC -v 2>&1 | grep "clang") > /dev/null 2>&1 ; then
|
||||
CC=`type -P $CC`
|
||||
echo "yes ($CC)"
|
||||
echo "CC = $CC" >>Makefile.config
|
||||
return 0
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "no"
|
||||
echo "This package requires the Clang C compiler (clang)."
|
||||
exit 1;
|
||||
}
|
||||
|
||||
function REQUIRE_GCC()
|
||||
{
|
||||
if test -n "$cfg_help_mode"; then
|
||||
|
||||
Reference in New Issue
Block a user