updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / pspvc / install.patch
blob6ca9597a699e3a2ed43204d7758d8b8639e786ca
1 --- src/pspvc-install-0.3/install.sh.old 2011-08-06 18:38:49.298535433 +0100
2 +++ src/pspvc-install-0.3/install.sh 2011-08-06 18:39:38.238538266 +0100
3 @@ -7,8 +7,10 @@
5 if [ $# -gt 0 ]; then
6 INSTALLDIR=$1
7 + MENUDIR=$2
8 else
9 - INSTALLDIR=/usr/local/
10 + echo "Invalid package directory"
11 + exit 1
13 INST_X264=1;
14 INST_FFMPEG=1;
15 @@ -25,7 +27,7 @@
16 if [ $INST_X264 -eq 1 ]; then
17 tar xjvf ../archives/x264-svn-20061014.tar.bz2
18 cd x264-svn/
19 - ./configure --enable-pthread --prefix=$INSTALLDIR/share/pspvc
20 + ./configure --enable-pthread --enable-shared --prefix=$INSTALLDIR/share/pspvc
21 if [ $? -eq 0 ]; then
22 make install
23 if [ $? -eq 0 ]; then
24 @@ -53,6 +55,7 @@
25 cd ffmpeg/
26 # patch -p1 < ../../archives/ffmpeg-mh-unix.patch
27 # patch -p1 < ../../archives/ffmpeg-lrintf.patch
28 + patch -p1 < ../../../grab.patch
29 ./configure --enable-a52 --enable-faac --enable-x264 --enable-gpl --enable-xvid --enable-pthreads --prefix=$INSTALLDIR/share/pspvc --disable-debug --extra-cflags=-I$INSTALLDIR/share/pspvc/include --extra-ldflags="-L$INSTALLDIR/share/pspvc/lib -lX11"
30 if [ $? -eq 0 ]; then
31 make install
32 @@ -83,6 +86,6 @@
33 echo -e "\E[01;31mERROR during configure PSPVC"; tput sgr0
35 cd ../..
36 -cp archives/pspvc.desktop /usr/share/applications
37 +cp archives/pspvc.desktop $MENUDIR
38 rm -rf work