# Description: Plugin mplayer pour navigateur
# URL: http://www.mplayerhq.hu
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
# Depends on:

name=mplayerplug-in
version=20091122
release=1

source=(http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.1.3/sdk/xulrunner-1.9.1.3.en-US.linux-i686.sdk.tar.bz2)

build() {
	 cvs -z3  -d:pserver:anonymous@mplayerplug-in.cvs.sourceforge.net:/cvsroot/mplayerplug-in  co mplayerplug-in

	cd $name
        mkdir -p $PKG/usr/lib/firefox/{plugins,components}

	./configure --with--gecko-sdk=/srv/sources/gecko-sdk --enable-x \
	--enable-qt --enable-wmp --enable-rm --enable-gtk2

        make
	cp mplayerplug-in*.so $PKG/usr/lib/firefox/plugins/
	cp mplayerplug-in*.xpt $PKG/usr/lib/firefox/components/
}