# $Id$ PNAME="mplayerplug-in" PVER="3.55" PBUILD="r2" PCATEGORIE="media-video" STATE="unstable" DESCRIPTION="mplayerplug-in is a browser plugin that uses mplayer to play digital media from websites." HOMEPAGE="http://mplayerplug-in.sourceforge.net/" DEPEND=">= x11-libs/libXpm-3.5 >= x11-libs/gtk2+-2.18 >= dev-libs/atk-1.28 >= dev-libs/glib2-2.22 >= x11-libs/pango-1.26 >= media-video/mplayer-1" # mozilla-firefox is needed to build; replaces gecko engine tarball SDEPEND=">= net-www/mozilla-firefox-3.5 >= dev-util/pkgconfig-0.23 >= xproto/xextproto-1" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd_sourceforge ${PNAME}" src_compile() { cd ${SRCDIR} mconfigure \ --enable-gtk2 \ --enable-wmp \ --enable-qt \ --enable-rm \ --enable-gmp \ --enable-dvx \ || die mmake || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /etc || die minstalldir /opt/netscape/plugins || die minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die # confs minstalletc ${SRCDIR}/mplayerplug-in.conf || die # install all plugins for i in "" -dvx -gmp -qt -rm -wmp do # install bins minstallexec mplayerplug-in${i}.so /opt/netscape/plugins || die minstallexec mplayerplug-in${i}.xpt /opt/netscape/plugins || die # update plugin symlink mlink /opt/netscape/plugins/mplayerplug-in${i}.so \ /usr/$(mlibdir)/nsbrowser/plugins || die done # docs minstalldocs ChangeLog INSTALL LICENSE README || die }