Skip to content

Commit 0d114a0

Browse files
committed
Make small (rather than fast) build an option
1 parent 7d0268c commit 0d114a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build-ffmpeg

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ MACOS_M1=false
1717
CONFIGURE_OPTIONS=()
1818
NONFREE_AND_GPL=false
1919
LATEST=false
20+
MANPAGES=1
2021

2122
# Check for Apple Silicon
2223
if [[ ("$(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 \

0 commit comments

Comments
 (0)