Commit 6ae6e222 authored by Antoine Cellerier's avatar Antoine Cellerier

Add optional first arg to specify contrib directory.

parent f7637422
if [ -z $CONTRIBS ]
then
CONTRIBS=/usr/win32
fi
$CONFIG \ $CONFIG \
--without-contrib \ --without-contrib \
--enable-update-check \ --enable-update-check \
...@@ -15,15 +20,15 @@ ...@@ -15,15 +20,15 @@
--enable-x264 \ --enable-x264 \
--enable-schroedinger \ --enable-schroedinger \
--enable-realrtsp \ --enable-realrtsp \
--enable-live555 --with-live555-tree=/usr/win32/live.com \ --enable-live555 --with-live555-tree=$CONTRIBS/live.com \
--enable-dvdread --with-dvdnav-config-path=/usr/win32/bin \ --enable-dvdread --with-dvdnav-config-path=$CONTRIBS/bin \
--enable-shout \ --enable-shout \
--enable-goom \ --enable-goom \
--enable-caca \ --enable-caca \
--enable-portaudio \ --enable-portaudio \
--enable-sdl --with-sdl-config-path=/usr/win32/bin \ --enable-sdl --with-sdl-config-path=$CONTRIBS/bin \
--enable-qt4 \ --enable-qt4 \
--enable-mozilla --with-mozilla-sdk-path=/usr/win32/gecko-sdk \ --enable-mozilla --with-mozilla-sdk-path=$CONTRIBS/gecko-sdk \
--enable-activex \ --enable-activex \
--enable-sse --enable-mmx \ --enable-sse --enable-mmx \
--enable-libcddb \ --enable-libcddb \
......
...@@ -2,10 +2,18 @@ ...@@ -2,10 +2,18 @@
root=$(echo $0|sed 's#extras/package/win32/configure-mingw.sh##')./ root=$(echo $0|sed 's#extras/package/win32/configure-mingw.sh##')./
PATH="/usr/win32/bin:$PATH" \ if [ -n $1 ]
PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \ then
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \ CONTRIBS="$1"
LDFLAGS="-L/usr/win32/lib" \ else
CONTRIBS="/usr/win32"
fi
export CONTRIBS
PATH="$CONTRIBS/bin:$PATH" \
PKG_CONFIG_LIBDIR=$CONTRIBS/lib/pkgconfig \
CPPFLAGS="-I$CONTRIBS/include -I$CONTRIBS/include/ebml" \
LDFLAGS="-L$CONTRIBS/lib" \
CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \ CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \
CONFIG="${root}configure --host=i586-mingw32msvc --build=i386-linux CONFIG="${root}configure --host=i586-mingw32msvc --build=i386-linux
--enable-dirac --enable-mkv --enable-taglib --enable-debug --enable-projectm" \ --enable-dirac --enable-mkv --enable-taglib --enable-debug --enable-projectm" \
......
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