SDK_MIN=6.1
SIXTYFOURBIT_SDK_MIN=7.0
ARCH=armv7
+SCARY=yes
usage()
{
-a <arch> Specify which arch to use (current: ${ARCH})
-d Enable debug
-v Enable verbose command-line output
+ -w Build a limited stack of non-scary libraries only
EOF
}
echo "[${blue}info${normal}] $1"
}
-while getopts "hvdsk:a:" OPTION
+while getopts "hvwdsk:a:" OPTION
do
case $OPTION in
h)
d)
DEBUG=yes
;;
+ w)
+ SCARY=no
+ ;;
k)
SDK_VERSION=$OPTARG
;;
DEBUGFLAG="--disable-debug"
fi
+if [ "$SCARY" = "yes" ]; then
+ SCARYFLAG="--enable-dvbpsi --enable-avcodec"
+else
+ SCARYFLAG="--disable-dca --disable-dvbpsi --disable-avcodec --disable-avformat --disable-zvbi"
+fi
+
# Run configure only upon changes.
if [ "${VLCROOT}/configure" -nt config.log -o \
"${THIS_SCRIPT_PATH}" -nt config.log ]; then
--with-contrib="${VLCROOT}/contrib/${TARGET}-${ARCH}" \
--enable-static \
${DEBUGFLAG} \
+ ${SCARYFLAG} \
--disable-macosx \
--disable-macosx-dialog-provider \
--disable-macosx-qtkit \
--disable-audioqueue \
--disable-shared \
--enable-macosx-quartztext \
- --enable-avcodec \
--enable-mkv \
--enable-opus \
--disable-sout \
--disable-notify \
--enable-live555 \
--enable-realrtsp \
- --enable-dvbpsi \
--enable-swscale \
--disable-projectm \
--enable-libass \
antiflicker
anaglyph
remap
+oldmovie
+vhs
+demuxdump
+fingerprinter
"
+if [ "$SCARY" = "no" ]; then
+blacklist="${blacklist}
+dts
+dvbsub
+svcd
+hevc
+packetizer_mlp
+a52
+vc1
+uleaddvaudio
+librar
+libvoc
+avio
+chorus_flanger
+smooth
+cvdsub
+libmod
+libdash
+libmpgv
+dolby_surround
+mpeg_audio"
+fi
+
+echo ${blacklist}
+
for i in ${blacklist}
do
find ${PREFIX}/lib/vlc/plugins -name *$i* -type f -exec rm '{}' \;