Commit a62a3ce0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: add bootstrap options for sout and optical discs support

parent c8a5d5fc
...@@ -26,6 +26,8 @@ usage() ...@@ -26,6 +26,8 @@ usage()
echo " --prefix=PREFIX install files in PREFIX" echo " --prefix=PREFIX install files in PREFIX"
echo " --disable-FOO configure to not build package FOO" echo " --disable-FOO configure to not build package FOO"
echo " --enable-FOO configure to build package FOO" 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"
} }
BUILD= BUILD=
...@@ -33,6 +35,8 @@ HOST= ...@@ -33,6 +35,8 @@ HOST=
PREFIX= PREFIX=
PKGS_ENABLE= PKGS_ENABLE=
PKGS_DISABLE= PKGS_DISABLE=
BUILD_ENCODERS="1"
BUILD_DISCS="1"
if test ! -f "../src/main.mak" if test ! -f "../src/main.mak"
then then
...@@ -56,6 +60,12 @@ do ...@@ -56,6 +60,12 @@ do
--prefix=*) --prefix=*)
PREFIX="${1#--prefix=}" PREFIX="${1#--prefix=}"
;; ;;
--disable-disc)
BUILD_DISCS=
;;
--disable-sout)
BUILD_ENCODERS=
;;
--disable-*) --disable-*)
PKGS_DISABLE="${PKGS_DISABLE} ${1#--disable-}" PKGS_DISABLE="${PKGS_DISABLE} ${1#--disable-}"
;; ;;
...@@ -134,6 +144,9 @@ add_make_enabled() ...@@ -134,6 +144,9 @@ add_make_enabled()
done done
} }
test -z "$BUILD_DISCS" || add_make_enabled "BUILD_DISCS"
test -z "$BUILD_ENCODERS" || add_make_enabled "BUILD_ENCODERS"
# #
# Checks # Checks
# #
...@@ -158,7 +171,6 @@ case "${OS}" in ...@@ -158,7 +171,6 @@ case "${OS}" in
add_make_enabled "HAVE_WINCE" add_make_enabled "HAVE_WINCE"
;; ;;
esac esac
add_make_enabled "BUILD_ENCODERS"
# #
# Results output # Results output
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment