# $Header: /magellan-cvs/smage/ultrastar-ng/ultrastar-ng-0.1.4-r2.smage2,v 1.2 2008/02/07 14:23:54 niro Exp $ PNAME="ultrastar-ng" PVER="0.1.4" PBUILD="r2" PCATEGORIE="x11-games" STATE="testing" DESCRIPTION="UltraStar-ng: The free Linux karaoke game." HOMEPAGE="http://ultrastar-ng.sourceforge.net/" DEPEND=">= media-libs/alsa-lib-1 >= media-libs/gstreamer-0.10 >= media-libs/gst-plugins-base-0.10 >= media-libs/gst-plugins-good-0.10 >= media-libs/gst-plugins-fluendo-mp3-0.10 >= media-libs/libsdl-1.2 >= media-libs/sdl-image-1.2 >= media-libs/sdl-gfx-2.0 >= media-libs/smpeg-0.4.4 >= x11-libs/cairo-1.4 >= gnome-base/librsvg-2 >= sci-libs/fftw3-3" SRCFILE="UltraStar-ng-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/UltraStar-ng-${PVER}" GAME_EXEC="${PNAME/-/}" sminclude games mtools SRC_URI=( sourceforge://${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_compile() { cd ${SRCDIR} games_configure \ --with-video=smpeg \ --with-svg=librsvg \ --with-audio=gstreamer \ --with-graphic-driver=sdl \ --disable-debug \ || die # fix broken datadir; there is a "/" at the end: # /usr/local/ultrastar-ng/share/ultrastar-ng//songs mmake DDATA_DIR="\${datarootdir}/ultrastar-ng" || die } src_install() { games_src_install || die # missing songs directory mkeepdir /usr/games/${PNAME}/share/${PNAME}/songs || die mchown root:games /usr/games/${PNAME}/share/${PNAME}/songs || die mchmod 775 /usr/games/${PNAME}/share/${PNAME}/songs || die } postinstall() { echo echo "To run this game, you must copy some songs to the." echo "'/usr/games/${PNAME}/songs' first." echo }