File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ MACOS_M1=false
1717CONFIGURE_OPTIONS=()
1818NONFREE_AND_GPL=false
1919LATEST=false
20+ MANPAGES=1
2021
2122# Check for Apple Silicon
2223if [[ (" $( uname -m) " == " arm64" ) && (" $OSTYPE " == " darwin" * ) ]]; then
@@ -206,6 +207,7 @@ usage() {
206207 echo " -c, --cleanup Remove all working dirs"
207208 echo " --latest Build latest version of dependencies if newer available"
208209 echo " --full-static Build a full static FFmpeg binary (eg. glibc, pthreads etc...) **only Linux**"
210+ echo " --small Prioritize small size over speed and usability; don't build manpages"
209211 echo " Note: Because of the NSS (Name Service Switch), glibc does not recommend static links."
210212 echo " "
211213}
@@ -247,6 +249,10 @@ while (($# > 0)); do
247249 if [[ " $1 " == " --latest" ]]; then
248250 LATEST=true
249251 fi
252+ if [[ " $1 " == " --small" ]]; then
253+ CONFIGURE_OPTIONS+=(" --enable-small" " --disable-doc" )
254+ MANPAGES=0
255+ fi
250256 shift
251257 ;;
252258 * )
@@ -925,7 +931,6 @@ download "https://github.com/FFmpeg/FFmpeg/archive/refs/heads/release/$FFMPEG_VE
925931# shellcheck disable=SC2086
926932./configure " ${CONFIGURE_OPTIONS[@]} " \
927933 --disable-debug \
928- --disable-doc \
929934 --disable-shared \
930935 --enable-pthreads \
931936 --enable-static \
You can’t perform that action at this time.
0 commit comments