# $Header: /magellan-cvs/smage/wormux/wormux-0.7.9-r2.smage2,v 1.2 2008/02/07 14:23:55 niro Exp $ PNAME="wormux" PVER="0.7.9" PBUILD="r2" PCATEGORIE="x11-games" STATE="testing" DESCRIPTION="Wormux is free software clone of WORMS developed by Team17." HOMEPAGE="http://www.wormux.org/" DEPEND=">= dev-games/clanlib-0.7.8 >= media-libs/libsdl-1.2.7 >= media-libs/sdl-gfx-2.0.13 >= media-libs/sdl-net-1.2 >= media-libs/libvorbis-1.0.1 >= dev-cpp/libxmlpp-1.0.4 >= dev-cpp/glibmm-2.8" SDEPEND=">= sys-dev/gettext-0.12.1" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mtools SRC_URI=( http://download.gna.org/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fix nls install dir sed -i "/^localedir =/s:=.*:=/usr/games/${PNAME}/share/locale:" po/Makefile.in || die } src_compile() { cd ${SRCDIR} ./configure \ --prefix=/usr/games/${PNAME} \ --datadir=/usr/games/${PNAME}/share \ --host=${CHOST} \ --enable-nls \ --disable-debug \ || die mmake || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /usr/bin || die make DESTDIR=${BINDIR} install || die minstalldocs AUTHORS COPYING README || die # symlink binary to /usr/bin mlink ../games/${PNAME}/bin/${PNAME} /usr/bin/${PNAME} || 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 }