Notably for libavcodec
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
echo " --enable-FOO configure to build package FOO"
echo " --disable-disc configure to not build optical discs packages"
echo " --disable-sout configure to not build stream output packages"
+ echo " --enable-small optimize libraries for size with slight speed decrease [DANGEROUS]"
}
BUILD=
--disable-sout)
BUILD_ENCODERS=
;;
+ --enable-small)
+ ENABLE_SMALL=1
+ ;;
--disable-*)
PKGS_DISABLE="${PKGS_DISABLE} ${1#--disable-}"
;;
test -z "$PREFIX" || add_make "PREFIX := $PREFIX"
test -z "$BUILD_DISCS" || add_make_enabled "BUILD_DISCS"
test -z "$BUILD_ENCODERS" || add_make_enabled "BUILD_ENCODERS"
+test -z "$ENABLE_SMALL" || add_make_enabled "ENABLE_SMALL"
#
# Checks
DEPS_ffmpeg += lame $(DEPS_lame) vpx $(DEPS_vpx)
else
FFMPEGCONF += --disable-encoders --disable-muxers
-# XXX: REVISIT --enable-small ?
+endif
+
+ifdef ENABLE_SMALL
+FFMPEGCONF += --enable-small --optflags=-O2
endif
# XXX: REVISIT