# fss-0002

main:
  sed -i -e 's|mozilla-plugin|seamonkey-plugin|g' configure
  ./configure $CONF --with-plugin-dir=/lib/seamonkey/plugins
  sed -i -e "s|DEFAULT_INCLUDES = |& -I${TC}include/seamonkey -I${TC}include/nss -I${TC}include/nspr |" src/Makefile
  sed -i -e 's|^CFLAGS = |& -pthread -O2 -ffast-math |' Makefile */Makefile
  sed -i -e 's|NPNVSupportsWindowless|17|g' src/plugin.c
  make pkgconfigdir=${TC}lib/pkgconfig/
  make pkgconfigdir=${TC}lib/pkgconfig/ install

old_0.6:
  sed -i -e 's|mozilla-plugin|seamonkey-plugin|g' configure
  ./configure $CONF --with-audio=alsa --enable-ffmpeg --disable-gstreamer --disable-gnome-vfs --with-plugin-dir=/lib/seamonkey/plugins
  sed -i -e "s|DEFAULT_INCLUDES = |& -I${TC}include/seamonkey -I${TC}include/nss -I${TC}include/nspr |" src/Makefile
  sed -i -e 's|^CFLAGS = |& -pthread -O2 -ffast-math |' Makefile */Makefile
  sed -i -e 's|NPNVSupportsWindowless|17|g' src/plugin.c
  sed -i -e 's|Shockwave Flash 9.0 r100|Shockwave Flash 9.0 r999|' src/plugin.c
  make pkgconfigdir=${TC}lib/pkgconfig/ FFMPEG_CFLAGS="-I${TC}include/ffmpeg -I${TC}include"
  make pkgconfigdir=${TC}lib/pkgconfig/ install
  rm -Rf /lib/mozilla
