mirror of
https://github.com/levogevo/ffmpeg-av1-builder.git
synced 2026-01-15 16:56:18 +00:00
fix macos build
This commit is contained in:
@@ -25,15 +25,6 @@ BUILD_LTO='Y'
|
|||||||
# options for ffmpeg configure
|
# options for ffmpeg configure
|
||||||
FFMPEG_CONFIGURE_OPT=""
|
FFMPEG_CONFIGURE_OPT=""
|
||||||
|
|
||||||
# compilation job count
|
|
||||||
THREADS="$(nproc)"
|
|
||||||
|
|
||||||
# for MacOs / Darwin
|
|
||||||
if [ "$(uname)" == "Darwin" ] ; then
|
|
||||||
FFMPEG_CONFIGURE_OPT+="--enable-rpath "
|
|
||||||
THREADS="$(sysctl -n hw.ncpu)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
GREP_FILTER="av1"
|
GREP_FILTER="av1"
|
||||||
OPTS='hAsvorlO:'
|
OPTS='hAsvorlO:'
|
||||||
NUM_OPTS=$(echo -n $OPTS | wc -m)
|
NUM_OPTS=$(echo -n $OPTS | wc -m)
|
||||||
@@ -168,7 +159,6 @@ fi
|
|||||||
|
|
||||||
# architecture/cpu compile flags
|
# architecture/cpu compile flags
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
COMP_FLAGS="-I${PREFIX}/include"
|
|
||||||
COMP_FLAGS=""
|
COMP_FLAGS=""
|
||||||
if [[ "$ARCH" == "x86_64" ]]
|
if [[ "$ARCH" == "x86_64" ]]
|
||||||
then
|
then
|
||||||
@@ -177,6 +167,19 @@ elif [[ "$ARCH" == "aarch64" || "$ARCH" == "arm64" ]]
|
|||||||
then
|
then
|
||||||
COMP_FLAGS+=" -mcpu=native"
|
COMP_FLAGS+=" -mcpu=native"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# compilation job count
|
||||||
|
if commmand -v nproc 2> /dev/null ; then
|
||||||
|
THREADS="$(nproc)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# for MacOs / Darwin
|
||||||
|
if [ "$(uname)" == "Darwin" ] ; then
|
||||||
|
COMP_FLAGS+=" -I${PREFIX}/include"
|
||||||
|
FFMPEG_CONFIGURE_OPT+="--enable-rpath "
|
||||||
|
THREADS="$(sysctl -n hw.ncpu)"
|
||||||
|
fi
|
||||||
|
|
||||||
echo "COMP_FLAGS: [${COMP_FLAGS}]"
|
echo "COMP_FLAGS: [${COMP_FLAGS}]"
|
||||||
|
|
||||||
# for ccache
|
# for ccache
|
||||||
|
|||||||
Reference in New Issue
Block a user