# fss-0002
# -Os seems to be required by some of their mmx asm code

main:
  ./configure $CONF --enable-ipv6 --enable-directfb --disable-optimizations --with-external-ffmpeg=/ --with-external-a52dec=/ --with-external-libmad=/ --enable-modplug --with-external-a52dec --with-external-libmad --with-wavpack --enable-antialiasing --enable-mmap --with-libflac ${DOCDIR}html/xine/ --disable-samba $TARGET LIBS="-ldl -lm"
  #sed -i -e 's|^LIBS = |& -lm|' src/demuxers/Makefile
  sed -i -e 's|include <postprocess.h>|include <postproc/postprocess.h>|' src/post/planar/pp.c src/combined/ffmpeg/ff_video_decoder.c
  sed -i -e 's|include <avcodec.h>|include <libavcodec/avcodec.h>|' src/combined/ffmpeg/ffmpeg_decoder.h src/combined/ffmpeg/{ffmpeg_encoder.c,ff_dvaudio_decoder.c}
  make pkgconfigdir=${TC}lib/pkgconfig/ LDFLAGS="-lintl"
  make pkgconfigdir=${TC}lib/pkgconfig/ install
  mv -v /share/aclocal/xine.m4 ${TC}share/aclocal/
  mv -v /bin/xine-config ${TC}bin/
  chmod ugo-x /lib/libxine.la
  mv -v /lib/libxine.la ${TC}lib/
  chgrp -R e_video /share/xine /lib/{xine,libxine.so*}
  rm -Rf /share/{locale,aclocal} /bin/xine-list-*
