# Requires mozilla-devel and mplayer while compiling.

NAME=mplayerplug-in
VERSION=3.21
SOURCE=http://dl.sf.net/mplayerplug-in/mplayerplug-in-$VERSION.tar.gz
BUILD=${BUILD:-1}
OPTIMIZE=${OPTIMIZE:-"-O2 -pipe"}

build() {
	_explode 0
	export CPLUS_INCLUDE_PATH=$(ls -d $INCLUDEDIR/mozilla-*)
	cd mplayerplug-in
	[ "$ARCH" = "x86_64" ] && foo=--enable-x86_64 || foo=
	$CONFIGURE \
		--enable-wmp \
		--enable-qt \
		--enable-rm \
		--enable-gmp \
		$foo
	make
	make DESTDIR=$PKG install
	_new 0 ${SYSCONFDIR#/}/mplayerplug-in.conf
	_doc 0 mplayerplug-in-$VERSION  ChangeLog INSTALL LICENSE README TODO
	_chfix
	_chgrp_bin
}
