# Description: XviD is an open source MPEG-4 video codec
# URL: http://xvid.org
# Packager: pierre at nutyx dot org
# Depends on: yasm 
name=xvid
version=1.3.3
release=1

source=( http://downloads.xvid.org/downloads/xvidcore-$version.tar.gz )
build() {
cd xvidcore/build/generic
./configure --prefix=/usr
make
make DESTDIR=$PKG install
chmod -v 755 $PKG/usr/lib/libxvidcore.so.4.3
ln -v -sf libxvidcore.so.4.3 $PKG/usr/lib/libxvidcore.so.4
ln -v -sf libxvidcore.so.4   $PKG/usr/lib/libxvidcore.so
install -v -m755 -d $PKG/usr/share/doc/xvidcore-$version/examples
install -v -m644 ../../doc/* $PKG/usr/share/doc/xvidcore-$version
install -v -m644 ../../examples/* \
$PKG/usr/share/doc/xvidcore-$version/examples
}
