Skip to content
Snippets Groups Projects
Commit 12c0980e authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

Remove our previous (previous) contrib system

Which was still meant to use VLC 2.0 & Qt 4.8
parent f3521d0d
No related branches found
No related tags found
No related merge requests found
#! /bin/sh
QT4_FILE="qt4-4.8-win32-bin.tar.bz2"
QT4_URL="http://rohityadav.in/files/contribs/qt4-4.8-win32-bin.tar.bz2"
VLC_VERSION_PREFIX="vlc-2.0.4"
VLC_FILE="${VLC_VERSION_PREFIX}-win32.7z"
VLC_URL="http://download.videolan.org/vlc/2.0.4/win32/${VLC_FILE}"
FREI0R_FILE="frei0r-plugins-1.2.1.tar.gz"
FREI0R_URL="http://www.piksel.no/frei0r/releases/frei0r-plugins-1.2.1.tar.gz"
FREI0R_EFFECTS_FILE="effects.7z"
FREI0R_EFFECTS_URL="http://people.videolan.org/~jb/vlmc/effects.7z"
ROOT_FOLDER=`pwd`
# Get the dependencies, aka VLC+Qt
mkdir -p src-dl/
cd src-dl/
if [ ! -f $QT4_FILE ]; then
wget $QT4_URL ;
else
echo "Qt4 OK";
fi
if [ ! -f $VLC_FILE ]; then
wget $VLC_URL ;
else
echo "VLC OK";
fi
if [ ! -f $FREI0R_FILE ]; then
wget $FREI0R_URL ;
else
echo "FREI0R OK";
fi
if [ ! -f $FREI0R_EFFECTS_FILE ]; then
wget $FREI0R_EFFECTS_URL ;
else
echo "FREI0R EFFECTS OK";
fi
cd $ROOT_FOLDER
# bin and dlls
mkdir bin && mkdir include && mkdir temp
7z e src-dl/$VLC_FILE "$VLC_VERSION_PREFIX/libvlc.dll" -otemp
7z e src-dl/$VLC_FILE "$VLC_VERSION_PREFIX/libvlccore.dll" -otemp
7z e src-dl/$VLC_FILE "$VLC_VERSION_PREFIX/plugins/*" -otemp/plugins
cd temp
for i in libvlc.dll libvlccore.dll; do
cp -v $i $ROOT_FOLDER/bin/
done
cd plugins
for i in libqt4_plugin.dll libskins2_plugin.dll libstream_out_raop_plugin.dll libvout_sdl_plugin.dll libaout_sdl_plugin.dll; do
rm -f $i
done
cd ..
cd ..
cp -r $ROOT_FOLDER/temp/plugins/ $ROOT_FOLDER/bin/
cd $ROOT_FOLDER
#VLC sdk
7z x src-dl/$VLC_FILE "$VLC_VERSION_PREFIX/sdk"
mv -fv $VLC_VERSION_PREFIX/sdk/include/vlc $ROOT_FOLDER/include/vlc
mv -fv $VLC_VERSION_PREFIX/sdk/lib/ $ROOT_FOLDER/
rm -frv $VLC_VERSION_PREFIX
# Qt
tar xvf src-dl/$QT4_FILE -C . --strip-components=1
lrelease -compress -silent -nounfinished ts/*.ts
cd include && ln -sf qt4/src && cd ..
#frei0r
tar xvf src-dl/$FREI0R_FILE -C $ROOT_FOLDER/temp/
mv `find $ROOT_FOLDER/temp | grep frei0r.h$ | head -1` $ROOT_FOLDER/include
7z x src-dl/$FREI0R_EFFECTS_FILE "effects"
mv -fv effects/ bin/
#Clean up
rm -rf temp
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment