# $Header: /magellan-cvs/smage/freespace2-data/freespace2-data-20071116-r1.smage2,v 1.3 2008/02/07 14:23:37 niro Exp $ PNAME="freespace2-data" PVER="20071116" PBUILD="r1" PCATEGORIE="x11-games" STATE="testing" DESCRIPTION="Data files for Freespace2." HOMEPAGE="http://scp.indiegames.us/" DEPEND="" SDEPEND=">= app-arch/unrar-3 >= app-arch/unzip-5" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRCFILE_EFFECT_VP="mp-710_effects.rar" SRCFILE_MODELS_VP="mp-710_models.rar" SRCFILE_ZPACK_VP="mv_zpack.zip" sminclude mtools SRC_URI=( http://fs2source.warpcore.org/mvp368zeta/${SRCFILE_ZPACK_VP} http://fs2source.warpcore.org/mediavp/${SRCFILE_EFFECT_VP} http://fs2source.warpcore.org/mediavp/${SRCFILE_MODELS_VP} ) # note: xorg opengl headers should be used at compilation # ati or nvidia will fail to build !! src_prepare() { install -d ${SRCDIR}/addon-vp || die munpack ${SRCFILE_ZPACK_VP} ${SRCDIR}/addon-vp || die munpack ${SRCFILE_EFFECT_VP} ${SRCDIR}/addon-vp || die munpack ${SRCFILE_MODELS_VP} ${SRCDIR}/addon-vp || die } src_install() { cd ${SRCDIR} # needed directories minstalldir /usr/games/freespace2/mediavps || die # install addonvp's install -m0644 ${SRCDIR}/addon-vp/*.vp ${BINDIR}/usr/games/freespace2/mediavps || die # fix permissions mchown -R root:games /usr/games/freespace2 || die }