# Description: X Video extension client library
# URL: http://xorg.freedesktop.org
# Maintainer: Tilman Sauerbeck tilman at crux dot nu
# Arch Maintainer System Team devel at crux-arm dot nu
# Depends on: xorg-libx11 xorg-libxext xorg-videoproto

name=xorg-libxv
version=1.0.5
release=1
source=(http://xorg.freedesktop.org/releases/individual/lib/libXv-$version.tar.bz2)

build() {
  cd libXv-$version

  export XV_LIBS="-L\$CLFS/lib -L$CLFS/usr/lib -L$CLFS/usr/lib/xorg -L$CLFS/usr/lib/xorg/modules -lX11 -lXext"
  export XV_CFLAGS="-I$CLFS/usr/include -I$CLFS/usr/include/X11 -I$CLFS/usr/include/X11/extensions"
  
  ./configure --build=$CHOST \
              --host=$CTARGET \
              --prefix=/usr \
              --mandir=/usr/man \
              --enable-malloc0returnsnull

  make
  make DESTDIR=$PKG install
}