BUILD_ENCODERS="1"
BUILD_DISCS="1"
-if test ! -f "../src/main.mak"
+if test ! -f "../../contrib/src/main.mak"
then
echo "$0 must be run from a subdirectory"
exit 1
done
}
+check_macosx_sdk()
+{
+ [ -z "${OSX_VERSION}" ] && echo "OSX_VERSION not specified, assuming 10.5" && OSX_VERSION=10.5
+ SDK="/Developer/SDKs/MacOSX${OSX_VERSION}.sdk"
+ if [ ! -d "${SDK}" ]
+ then
+ echo "
+*** ${SDK} does not exist, please install required SDK, or use export OSX_VERSION=10.6 ***
+"
+ exit 1
+ fi
+ add_make "OSX_VERSION ?= ${OSX_VERSION}"
+}
+
+check_android_sdk()
+{
+ [ -z "${ANDROID_NDK}" ] && echo "You must set ANDROID_NDK environment variable" && exit 1
+ add_make "ANDROID_NDK := ${ANDROID_NDK}"
+ test -z "${NO_NEON}" && add_make_enabled "HAVE_NEON"
+}
+
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"
OS="${HOST#*-}" # strip architecture
case "${OS}" in
apple-darwin*)
+ check_macosx_sdk
add_make_enabled "HAVE_MACOSX" "HAVE_DARWIN_OS" "HAVE_BSD"
;;
*darwin*)
*bsd*)
add_make_enabled "HAVE_BSD"
;;
+ linux-androideabi)
+ check_android_sdk
+ add_make_enabled "HAVE_LINUX" "HAVE_ANDROID"
+ ;;
*linux*)
add_make_enabled "HAVE_LINUX"
;;
# Results output
#
test -e Makefile && unlink Makefile
-ln -sf ../src/main.mak Makefile
+ln -sf ../../contrib/src/main.mak Makefile
cat << EOF
Bootstrap completed.
-The following packages were selected:
-$PKGS
-
Run "make" to start compilation.
Other targets:
* make install same as "make"
+ * make prebuilt fetch and install prebuilt binaries
+ * make list list packages
* make fetch fetch required source tarballs
* make fetch-all fetch all source tarballs
* make distclean clean everything and undo bootstrap
* make mostlyclean clean everything except source tarballs
* make clean clean everything
- * make list list packages
+ * make package prepare prebuilt packages
EOF
+
+mkdir -p ../../contrib/tarballs