Avifile ist gerade in Arbeit..
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/ViitorMake@5114 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
057362860b
commit
ade3a4ab5c
@ -68,104 +68,103 @@
|
||||
#
|
||||
|
||||
#Pfad zum Basis-Sourcetree eintragen !
|
||||
SRCPATH=X11/MultiMedia
|
||||
SRCPATH=MultiMedia/Lib
|
||||
|
||||
#Funktion wird nach dem Entpacken der Sourcen, im Tree der Sourcen
|
||||
#ausgeführt (sprich unpack src; cd src; premk)
|
||||
#Hier kann z.B. das Makefile gepatcht werden (SED lässt grüssen
|
||||
|
||||
premk() {
|
||||
X11R7_Fix
|
||||
STQTDIR=$QTDIR
|
||||
#STQTDIR=$QTDIR
|
||||
mkdir ../build-avifile
|
||||
cd ../build-avifile
|
||||
}
|
||||
|
||||
mk32() {
|
||||
export QTDIR=`echo $STQTDIR|sed -e "s/lib64/lib/"`
|
||||
#export QTDIR=`echo $STQTDIR|sed -e "s/lib64/lib/"`
|
||||
CC="gcc $BUILDOPTIONS32" \
|
||||
CXX="g++ $BUILDOPTIONS32" \
|
||||
LDFLAGS="-L/usr/lib/qt/lib -L/lib -L/usr/lib -L/usr/X11R7/lib" \
|
||||
../avifile*/configure --target=$TARGET32 \
|
||||
--prefix=/usr \
|
||||
--enable-freetype2 \
|
||||
--enable-xft \
|
||||
--enable-xv \
|
||||
--enable-oss \
|
||||
--enable-a52 \
|
||||
--enable-lame=no \
|
||||
--enable-x86opt \
|
||||
--enable-vorbis \
|
||||
--enable-libmad \
|
||||
--enable-xvid \
|
||||
--enable-samples \
|
||||
--with-x \
|
||||
--with-qt \
|
||||
--with-qt-prefix=/usr/lib/qt \
|
||||
--with-qt-includes=/usr/lib/qt/include \
|
||||
--with-qt-libraries=/usr/lib/qt/lib \
|
||||
--with-sdl \
|
||||
--with-zlib
|
||||
USE_ARCH=32 \
|
||||
LDFLAGS="-L/opt/qt-4/lib -L/lib -L/usr/lib -L/usr/X11R7/lib" \
|
||||
../avifile*/configure --prefix=/usr \
|
||||
--enable-freetype2 \
|
||||
--enable-xft \
|
||||
--enable-xv \
|
||||
--enable-oss \
|
||||
--enable-a52 \
|
||||
--enable-lame=no \
|
||||
--enable-x86opt \
|
||||
--enable-vorbis \
|
||||
--enable-libmad \
|
||||
--enable-xvid \
|
||||
--enable-samples \
|
||||
--with-x \
|
||||
--with-qt \
|
||||
--with-qt-prefix=/opt/qt-4 \
|
||||
--with-qt-includes=/opt/qt-4/include \
|
||||
--with-qt-libraries=/opt/qt-4/lib \
|
||||
--with-sdl \
|
||||
--with-zlib
|
||||
for i in `find . -name "Makefile"`; do
|
||||
sed -e "s/^LIBS.*$/LIBS = -lnsl -ldl -liconv/" $i >/tmp/Makefile
|
||||
mv /tmp/Makefile $i
|
||||
done
|
||||
make -j $NUMCPU
|
||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||
ClearHostSysNameing32 $TMPROOT
|
||||
cd ../avifile*
|
||||
rm -r ../build-avifile
|
||||
mkdir ../build-avifile
|
||||
cd ../build-avifile
|
||||
sed -i "s/-laviplay/-laviplay -liconv/" $TMPROOT/usr/bin/avifile-config
|
||||
mv $TMPROOT/usr/bin/avifile-config{,-32}
|
||||
}
|
||||
|
||||
#Hier wird der Make Prozess der Sourcen definiert
|
||||
mk() {
|
||||
export QTDIR=$STQTDIR
|
||||
#export QTDIR=$STQTDIR
|
||||
if [ "$MK64BIT" == "true" ];then
|
||||
ADDOPTIONS="--libdir=\${prefix}/lib64"
|
||||
fi
|
||||
CC="gcc $BUILDOPTIONS" \
|
||||
CXX="g++ $BUILDOPTIONS" \
|
||||
LDFLAGS="-L/usr/lib/qt/lib64 -L/lib64 -L/usr/lib64 -L/usr/X11R7/lib64" \
|
||||
../avifile*/configure --target=$TARGET \
|
||||
--prefix=/usr \
|
||||
$ADDOPTIONS \
|
||||
--enable-freetype2 \
|
||||
--enable-xft \
|
||||
--enable-xv \
|
||||
--enable-oss \
|
||||
--enable-a52 \
|
||||
--enable-lame=no \
|
||||
--enable-x86opt \
|
||||
--enable-vorbis \
|
||||
--enable-libmad \
|
||||
--enable-xvid \
|
||||
--enable-samples \
|
||||
--with-x \
|
||||
--with-qt \
|
||||
--with-qt-prefix=/usr/$LIBDIR/qt \
|
||||
--with-qt-includes=/usr/$LIBDIR/qt/include \
|
||||
--with-qt-libraries=/usr/$LIBDIR/qt/lib \
|
||||
--with-sdl \
|
||||
--with-zlib
|
||||
LDFLAGS="-L/opt/qt-4/lib64 -L/lib64 -L/usr/lib64 -L/usr/X11R7/lib64" \
|
||||
USE_ARCH=$UARCH \
|
||||
../avifile*/configure --prefix=/usr \
|
||||
$ADDOPTIONS \
|
||||
--enable-freetype2 \
|
||||
--enable-xft \
|
||||
--enable-xv \
|
||||
--enable-oss \
|
||||
--enable-a52 \
|
||||
--enable-lame=no \
|
||||
--enable-x86opt \
|
||||
--enable-vorbis \
|
||||
--enable-libmad \
|
||||
--enable-xvid \
|
||||
--enable-samples \
|
||||
--with-x \
|
||||
--with-qt \
|
||||
--with-qt-prefix=/opt/qt-4 \
|
||||
--with-qt-includes=/opt/qt-4/include \
|
||||
--with-qt-libraries=/opt/qt-4/$LIBDIR \
|
||||
--with-sdl \
|
||||
--with-zlib
|
||||
for i in `find . -name "Makefile"`; do
|
||||
sed -e "s/^LIBS.*$/LIBS = -lnsl -ldl -liconv/" $i >/tmp/Makefile
|
||||
mv /tmp/Makefile $i
|
||||
done
|
||||
make -j $NUMCPU
|
||||
make -j $NUMCPU DESTDIR=$TMPROOT install
|
||||
sed -i "s/-laviplay/-laviplay -liconv/" $TMPROOT/usr/bin/avifile-config
|
||||
}
|
||||
|
||||
#Funktion wird nach Ablauf des Make Prozesses ausgeführt, und kann
|
||||
#in $TMPROOT noch einiges korrigieren
|
||||
postmk() {
|
||||
cd $TMPROOT/usr/bin
|
||||
sed -e "s/-laviplay/-laviplay -liconv/" avifile-config >/tmp/avifile-config
|
||||
mv /tmp/avifile-config .
|
||||
chmod 755 avifile-config
|
||||
cd -
|
||||
ClearHostSysNameing $TMPROOT
|
||||
if [ "$MK64BIT" == "true" ]; then
|
||||
mv $TMPROOT/usr/bin/avifile-config{,-64}
|
||||
ln -s /usr/bin/multiarch_wrapper $TMPROOT/usr/bin/avifile-config
|
||||
fi
|
||||
cd ../avifile*
|
||||
rm -r ../build-avifile
|
||||
}
|
Loading…
Reference in New Issue
Block a user