# Description: MPEG1/MPEG2 decoder (includes libmpeg2) # URL: http://libmpeg2.sourceforge.net/ # Packager: acrux, acrux at linuxmail dot org # Maintainer: Thomas Penteker, tek at serverop dot de # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu # Depends on: libsdl xorg-libxv xorg-libsm name=libmpeg2 version=0.5.1 release=1 source=(http://$name.sourceforge.net/files/$name-$version.tar.gz) build () { cd $name-$version export LIBVO_CFLAGS="-I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" export LIBVO_LIBS="-L$CLFS/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread" ./configure --build=$CHOST \ --host=$CTARGET \ --prefix=/usr \ --mandir=/usr/man \ --with-gnu-ld \ --enable-shared \ --disable-nls \ --x-includes=$CLFS/usr/include/X11 \ --x-libraries=$CLFS/usr/lib/X11 make make DESTDIR=$PKG install }