22 pushd "$1" > /dev/null
30 while getopts "h" OPTION
39 shift $(($OPTIND - 1))
41 if [ "x$1" != "x" ]; then
46 info "Building VLC for the Mac OS X"
48 spushd `dirname $0`/../../..
52 builddir="${vlcroot}/build-macosx"
54 export CC=/Developer/usr/bin/llvm-gcc-4.2
55 export CXX=/Developer/usr/bin/llvm-g++-4.2
56 export OBJC=/Developer/usr/bin/llvm-gcc-4.2
58 spushd "${vlcroot}/extras/contrib"
63 mkdir -p "${builddir}"
65 if ! [ -e "${vlcroot}/configure" ]; then
71 # Run configure only upon changes.
72 if [ "${vlcroot}/configure" -nt config.log ]; then
73 ${vlcroot}/configure \
77 core_count=`sysctl -n machdep.cpu.core_count`
78 let jobs=$core_count+1
80 info "Running make -j$jobs"