|
|
@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
# SET BUILD OPTIONS |
|
|
|
# SET BUILD OPTIONS |
|
|
|
ASM_OPTIONS="" |
|
|
|
ASM_OPTIONS="" |
|
|
|
|
|
|
|
DEBUG_OPTIONS="" |
|
|
|
case ${ARCH} in |
|
|
|
case ${ARCH} in |
|
|
|
i386 | x86-64*) |
|
|
|
i386 | x86-64*) |
|
|
|
ASM_OPTIONS="--disable-asm" |
|
|
|
ASM_OPTIONS="--disable-asm" |
|
|
@ -14,6 +15,9 @@ i386 | x86-64*) |
|
|
|
export AS="$(command -v nasm)" |
|
|
|
export AS="$(command -v nasm)" |
|
|
|
;; |
|
|
|
;; |
|
|
|
esac |
|
|
|
esac |
|
|
|
|
|
|
|
if [[ -n ${FFMPEG_KIT_DEBUG} ]]; then |
|
|
|
|
|
|
|
DEBUG_OPTIONS="--enable-debug" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# ALWAYS CLEAN THE PREVIOUS BUILD |
|
|
|
# ALWAYS CLEAN THE PREVIOUS BUILD |
|
|
|
make distclean 2>/dev/null 1>/dev/null |
|
|
|
make distclean 2>/dev/null 1>/dev/null |
|
|
@ -37,6 +41,7 @@ ${SED_INLINE} 's/\-arch arm64//g' "${BASEDIR}"/src/"${LIB_NAME}"/configure 1>>"$ |
|
|
|
--enable-static \ |
|
|
|
--enable-static \ |
|
|
|
--disable-cli \ |
|
|
|
--disable-cli \ |
|
|
|
${ASM_OPTIONS} \ |
|
|
|
${ASM_OPTIONS} \ |
|
|
|
|
|
|
|
${DEBUG_OPTIONS} \ |
|
|
|
--host="${HOST}" || return 1 |
|
|
|
--host="${HOST}" || return 1 |
|
|
|
|
|
|
|
|
|
|
|
make -j$(get_cpu_count) || return 1 |
|
|
|
make -j$(get_cpu_count) || return 1 |
|
|
|