# $Header: /magellan-cvs/smage/beep-media-player/beep-media-player-0.9.7.1-r5.smage2,v 1.1 2008/04/05 09:15:35 niro Exp $ PNAME="beep-media-player" PVER="0.9.7.1" PBUILD="r5" PCATEGORIE="media-sound" STATE="unstable" DESCRIPTION="BMP is a multimedia player using gtk2+ and based on xmms." HOMEPAGE="http://beepmp.sourceforge.net/" DEPEND=">= dev-libs/glib2-2.16 >= x11-libs/gtk2+-2.12 >= x11-libs/pango-1.20 >= media-libs/freetype-2.3 >= gnome-base/libglade-2.6 >= media-libs/id3lib-3.8.3 >= media-libs/libvorbis-1.2 >= app-arch/unzip-5 >= media-libs/alsa-lib-1.0.16" SDEPEND=">= media-sound/esound-0.2.38 >= dev-util/pkgconfig-0.23 >= dev-util/intltool-0.37 >= x11-proto/xproto-7" SRCFILE="bmp-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/bmp-${PVER}" sminclude mtools SRC_URI=( mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-desktop-icon.patch mirror://${PNAME}/${PNAME}-0.9.7-alsa-as-default.patch mirror://${PNAME}/${PNAME}-0.9.7-visualization.patch mirror://${PNAME}/${PNAME}-0.9.7-unicode.patch mirror://${PNAME}/${PNAME}-0.9.7-seeking-playlist.patch mirror://${PNAME}/${PNAME}-0.9.7-drag-and-drop.patch mirror://${PNAME}/${PNAME}-0.9.7-window-focus.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix icon filename mpatch ${PNAME}-${PVER}-desktop-icon.patch || die # use alsa as default sound plugin mpatch ${PNAME}-0.9.7-alsa-as-default.patch || die # adds unicode support for id3v2 tags (may also prevent some crashes) # see: http://www.sosdg.org/~larne/bugs/show_bug.cgi?id=101 mpatch ${PNAME}-0.9.7-unicode.patch || die # fixes seeking in the playlist # see: http://www.sosdg.org/~larne/bugs/show_bug.cgi?id=104 mpatch ${PNAME}-0.9.7-seeking-playlist.patch || die # fixes drag and drop of m3us + pls # see: http://www.sosdg.org/~larne/bugs/show_bug.cgi?id=123 mpatch ${PNAME}-0.9.7-drag-and-drop.patch || die # fixes the windows behavior # see: http://www.sosdg.org/~larne/bugs/show_bug.cgi?id=94 mpatch ${PNAME}-0.9.7-window-focus.patch || die # fixes crashes when hiding the main window # see: http://www.sosdg.org/~larne/bugs/show_bug.cgi?id=103 cd ${SRCDIR}/beep mpatch ${PNAME}-0.9.7-visualization.patch || die } src_compile() { cd ${SRCDIR} mconfigure \ --with-dev-dsp=/dev/sound/dsp \ --with-dev-mixer=/dev/sound/mixer \ --includedir=/usr/include/beep-media-player \ --enable-nls \ --enable-simd \ --enable-mp3 \ --enable-alsa \ --enable-esd \ --enable-oss \ --enable-vorbis \ --disable-gconf \ --disable-gnome-vfs \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # missing icon minstallpixmap beep/beep_logo.xpm || die minstallpixmap icons/bmp.png || die # docs minstalldocs ABOUT-NLS AUTHORS COPYING ChangeLog FAQ NEWS README TODO || die } postinstall() { echo echo "You can use BMP also with esound." echo "All you need is to install 'media-sound/esound'." echo }