# $Header: /magellan-cvs/smage/supertux/supertux-0.1.3-r4.smage2,v 1.6 2008/02/07 14:23:54 niro Exp $ PNAME="supertux" PVER="0.1.3" PBUILD="r4" PCATEGORIE="x11-games" STATE="testing" DESCRIPTION="SuperTux is a classic 2D jump'n run sidescroller game in a style similar to the original SuperMario games." HOMEPAGE="http://supertux.berlios.de/" DEPEND=">= x11-libs/libXt-1 >= media-libs/libsdl-1.2 >= media-libs/sdl-mixer-1.2 >= media-libs/sdl-image-1.2" SDEPEND=">= dev-util/desktop-file-utils-0.10" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools xdg SRC_URI=( http://download.berlios.de/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-gcc41.patch ) UP2DATE="updatecmd_berlios ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes compilation with gcc-4.1 mpatch ${PNAME}-${PVER}-gcc41.patch || die } src_compile() { cd ${SRCDIR} mconfigure \ --prefix=/usr/games/${PNAME} \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --datadir=/usr/games/${PNAME}/share \ --disable-dependency-tracking \ --disable-debug \ --enable-opengl \ || die mmake || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /usr/bin || die minstalldir /usr/share/applications || die make DESTDIR=${BINDIR} install || die # symlink binary to /usr/bin mlink ../games/${PNAME}/bin/${PNAME} /usr/bin/${PNAME} || die # desktop icon minstallpixmap data/images/icon.xpm ${PNAME}.xpm || die minstallpixmap ${SRCDIR}/supertux.png || die minstall_desktop_icon --categories "Game,ArcadeGame" || die # docs minstalldocs AUTHORS COPYING ChangeLog LEVELDESIGN NEWS README TODO || die # fix permissions mchown root:games /usr/bin/${PNAME} || die mchown -R root:games /usr/games/${PNAME} || die mchmod 0754 /usr/bin/${PNAME} || die mchmod 0754 /usr/games/${PNAME}/bin/${PNAME} || die }