| 1 | # Description: MPEG1/MPEG2 decoder (includes libmpeg2) |
| 2 | # URL: http://libmpeg2.sourceforge.net/ |
| 3 | # Packager: acrux, acrux at linuxmail dot org |
| 4 | # Maintainer: Thomas Penteker, tek at serverop dot de |
| 5 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 6 | # Depends on: libsdl xorg-libxv xorg-libsm |
| 7 | |
| 8 | name=libmpeg2 |
| 9 | version=0.5.1 |
| 10 | release=1 |
| 11 | source=(http://$name.sourceforge.net/files/$name-$version.tar.gz) |
| 12 | |
| 13 | build () { |
| 14 | cd $name-$version |
| 15 | export LIBVO_CFLAGS="-I$CLFS/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT" |
| 16 | export LIBVO_LIBS="-L$CLFS/usr/lib -Wl,-rpath,/usr/lib -lSDL -lpthread" |
| 17 | ./configure --build=$CHOST \ |
| 18 | --host=$CTARGET \ |
| 19 | --prefix=/usr \ |
| 20 | --mandir=/usr/man \ |
| 21 | --with-gnu-ld \ |
| 22 | --enable-shared \ |
| 23 | --disable-nls \ |
| 24 | --x-includes=$CLFS/usr/include/X11 \ |
| 25 | --x-libraries=$CLFS/usr/lib/X11 |
| 26 | |
| 27 | make |
| 28 | make DESTDIR=$PKG install |
| 29 | } |