--enable-hardcoded-tables use hardcoded tables instead of runtime generation
--enable-memalign-hack emulate memalign, interferes with memory debuggers
--enable-beos-netserver enable BeOS netserver
+ --disable-everything disable all components listed below
--disable-encoder=NAME disable encoder NAME
--enable-encoder=NAME enable encoder NAME
--disable-encoders disable all encoders
done
}
+map(){
+ m=$1
+ shift
+ for _; do eval $m; done
+}
+
set_all(){
value=$1
shift
rdft_select="fft"
# decoders / encoders / hardware accelerators
-aac_decoder_select="mdct aac_parser"
+aac_decoder_select="mdct rdft aac_parser"
aac_encoder_select="mdct"
ac3_decoder_select="mdct ac3_parser"
alac_encoder_select="lpc"
# protocols
gopher_protocol_deps="network"
http_protocol_deps="network"
+http_protocol_select="tcp_protocol"
rtmp_protocol_deps="tcp_protocol"
rtp_protocol_deps="udp_protocol"
tcp_protocol_deps="network"
;;
--enable-debug=*) debuglevel="$optval"
;;
+ --disable-everything)
+ map 'eval disable \${$(toupper ${_%s})_LIST}' $COMPONENT_LIST
+ ;;
--enable-*=*|--disable-*=*)
eval $(echo "${opt%%=*}" | sed 's/--/action=/;s/-/ thing=/')
is_in "${thing}s" $COMPONENT_LIST || die_unknown "$opt"
mips|mipsel|IP*)
arch="mips"
;;
- mips64)
+ mips64*)
arch="mips"
subarch="mips64"
;;
"Power Macintosh"|ppc|powerpc)
arch="ppc"
;;
- ppc64)
+ ppc64|powerpc64)
arch="ppc"
subarch="ppc64"
;;
netbsd)
oss_indev_extralibs="-lossaudio"
oss_outdev_extralibs="-lossaudio"
+ add_cppflags -D_XOPEN_SOURCE=600
;;
openbsd)
enable malloc_aligned
elif enabled gcc; then
check_cflags -fno-tree-vectorize
check_cflags -Werror=implicit
+ check_cflags -Werror=missing-prototypes
elif enabled clang; then
check_cflags -Qunused-arguments
elif enabled armcc; then
libpostproc/Makefile
libswscale/Makefile
"
- for dir in $DIRS ; do
- mkdir -p $dir
- done
- for f in $FILES ; do
- $ln_s "$source_path/$f" $f
- done
+ map 'mkdir -p $_' $DIRS;
+ map '$ln_s "$source_path/$_" $_' $FILES
fi
enabled stripping || strip="echo skipping strip"
LIB_INSTALL_EXTRA_CMD=$LIB_INSTALL_EXTRA_CMD
EXTRALIBS=$extralibs
INSTALL=install
+LIBTARGET=${LIBTARGET}
+SLIBNAME=${SLIBNAME}
+SLIBNAME_WITH_VERSION=${SLIBNAME_WITH_VERSION}
+SLIBNAME_WITH_MAJOR=${SLIBNAME_WITH_MAJOR}
+SLIB_CREATE_DEF_CMD=${SLIB_CREATE_DEF_CMD}
+SLIB_EXTRA_CMD=${SLIB_EXTRA_CMD}
+SLIB_INSTALL_EXTRA_CMD=${SLIB_INSTALL_EXTRA_CMD}
+SLIB_UNINSTALL_EXTRA_CMD=${SLIB_UNINSTALL_EXTRA_CMD}
EOF
get_version(){
get_version LIBAVUTIL libavutil/avutil.h
get_version LIBAVFILTER libavfilter/avfilter.h
-enabled shared && cat >> config.mak <<EOF
-LIBTARGET=${LIBTARGET}
-SLIBNAME=${SLIBNAME}
-SLIBNAME_WITH_VERSION=${SLIBNAME_WITH_VERSION}
-SLIBNAME_WITH_MAJOR=${SLIBNAME_WITH_MAJOR}
-SLIB_CREATE_DEF_CMD=${SLIB_CREATE_DEF_CMD}
-SLIB_EXTRA_CMD=${SLIB_EXTRA_CMD}
-SLIB_INSTALL_EXTRA_CMD=${SLIB_INSTALL_EXTRA_CMD}
-SLIB_UNINSTALL_EXTRA_CMD=${SLIB_UNINSTALL_EXTRA_CMD}
-EOF
-
enabled asmalign_pot || align_shift="1 <<"
cat > $TMPH <<EOF
echo "#define MALLOC_PREFIX $malloc_prefix" >>$TMPH
if enabled small || disabled optimizations; then
+ echo "#undef av_always_inline" >> $TMPH
echo "#define av_always_inline" >> $TMPH
fi