Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2389 - (show annotations)
Wed Jun 22 10:59:26 2011 UTC (23 months ago) by acrux
File size: 739 byte(s)
libxvid: updated to 1.3.2
1 # Description: An ISO MPEG-4 compliant video codec
2 # URL: http://www.xvid.org/
3 # Maintainer: acrux, acrux at linuxmail dot org
4 # Depends on:
5 # PPC!=
6
7 name=libxvid
8 version=1.3.2
9 release=1
10 source=(http://downloads.xvid.org/downloads/xvidcore-$version.tar.gz)
11
12 build() {
13 cd xvidcore
14 cd build/generic/
15
16 sed -i -e 's/powerpc/${HOSTTYPE}/' configure.in
17 export CFLAGS="$CFLAGS -funroll-loops -ffast-math -mno-mfcrf"
18 export CXXFLAGS="$CXXFLAGS -funroll-loops -ffast-math -mno-mfcrf"
19
20 ./bootstrap.sh ; autoreconf -i -f
21
22 if [ "`cat /proc/cpuinfo | grep altivec`" == "" ]; then
23 CONF="--disable-assembly"
24 fi
25
26 ./configure $CONF --prefix=/usr
27
28 make
29 make DESTDIR=$PKG install
30 ln -s libxvidcore.so.4.3 $PKG/usr/lib/libxvidcore.so
31 }