# SHORT DESC: Free MPEG2 Video Stream Decoder # LONG DESC: The mpeg2dec utility is used to decode MPEG video streams. This package also includes libmpeg2, a free (GPLed) library for decoding MPEG2 and MPEG1 video streams. OLDVERSION="`slapt-get --show mpeg2dec 2>/dev/null | grep 'Package Version:' | grep -v 'rsk$'`" if [ -n "${OLDVERSION}" ]; then slapt-get --show mpeg2dec 2>/dev/null echo 'Existing base mpeg2dec found, ignoring.' exit 1 fi if [ "$TARGETARCH" = "x86_64" ]; then acceldetect="disable" else acceldetect="enable" fi ## Build static libraries first ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir="$libdir" --enable-static --disable-shared --${acceldetect}-accel-detect || exit 1 sed 's@^#define HAVE_IO_H.*@/* #undef HAVE_IO_H */@' include/config.h > include/config.h.1 cat include/config.h.1 > include/config.h rm -f include/config.h.1 make && \ make install || exit 1 ## Perform cleanup make clean make distclean ## Then shared libraries ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir="$libdir" --disable-static --enable-shared --${acceldetect}-accel-detect || exit 1 sed 's@^#define HAVE_IO_H.*@/* #undef HAVE_IO_H */@' include/config.h > include/config.h.1 cat include/config.h.1 > include/config.h rm -f include/config.h.1 sed 's@-prefer-non-pic@-fPIC -DPIC@' libmpeg2/Makefile > libmpeg2/Makefile.1 cat libmpeg2/Makefile.1 > libmpeg2/Makefile rm -f libmpeg2/Makefile.1 make && \ make install || exit 1 |