games-racing/stuntrally - 9999 (chloverlay)

Search

Install

Install this version:

emerge -a =games-racing/stuntrally-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =games-racing/stuntrally-9999

Or alternatively:

emerge --autounmask-write -a =games-racing/stuntrally-9999

Package Information

Description:
3D racing game with Sci-Fi elements and own Track Editor. The main repository with sources and data. Using Ogre-Next 3.0 and VDrift.
Homepage:
https://cryham.org/stuntrally/
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
EAPI=8
inherit cmake git-r3 alternatives desktop
DESCRIPTION="3D racing game with Sci-Fi elements and own Track Editor. The main repository with sources and data. Using Ogre-Next 3.0 and VDrift."
HOMEPAGE="https://cryham.org/stuntrally/"
EGIT_REPO_URI="https://github.com/stuntrally/stuntrally3.git"
EGIT_MIN_CLONE_TYPE=shallow
LICENSE="GPL-3"
SLOT="0"
IUSE=""
#RESTRICT="strip"
RDEPEND="
	dev-games/ogre-next
	dev-games/mygui-next
	sci-physics/bullet[extras]
	dev-libs/tinyxml2
	net-libs/enet
	media-libs/libogg
	media-libs/libvorbis
	media-libs/openal
	dev-libs/boost
	"
#DEPEND="${RDEPEND}"
#BDEPEND="virtual/pkgconfig"

PATCHES=(
	${FILESDIR}/0001-Gentoo-cmake-fix.patch
	${FILESDIR}/0002-More-Gentoo-cmake-fixes.patch
)

src_unpack() {
        git-r3_src_unpack
        mkdir -v ${WORKDIR}/${P}/data/tracks || die
        git-r3_fetch "https://github.com/stuntrally/tracks3.git"
        git-r3_checkout "https://github.com/stuntrally/tracks3.git" ${WORKDIR}/${P}/data/tracks
}


#src_prepare() {}

src_configure() {
	local mycmakeargs=(
		-DOGRE_ENABLE_PRECOMPILED_HEADERS=OFF
		-DCMAKE_BUILD_TYPE=Release
		-DCMAKE_MODULE_PATH=/usr/lib64/OGRE/cmake
	)
	cmake_src_configure
}

#src_compile() {}

src_install() {
	into /usr/share/sr3
	insinto /usr/share/sr3

	insopts -m777
	doins bin/RelWithDebInfo/stuntrally3
	doins bin/RelWithDebInfo/sr-translator
	doins bin/RelWithDebInfo/sr-editor3

	doins bin/RelWithDebInfo/plugins.cfg
	doins -r data
	doins -r config

	into /usr
	dodir /usr/bin
	cp -v ${FILESDIR}/stuntrally3.sh ${D}"/usr/bin/stuntrally3"
	# the binary is dumb...
	dodir /usr/lib64/OGRE
	for i in /usr/lib64/OGRE/*.so.*
	do
        	b=$(basename "$i")
        	ln -sv "$i" "${D}/usr/share/sr3/${b%.*}.0"
	done
	ln -sv /usr/share/sr3/sr-translator ${D}"/usr/bin/sr-translator"
	ln -sv /usr/share/sr3/sr-editor3 ${D}"/usr/bin/sr-editor3"
	make_desktop_entry /usr/bin/stuntrally3
}

Inherited Eclasses

Dependencies

RDEPEND

	dev-games/ogre-next
	dev-games/mygui-next
	sci-physics/bullet[extras]
	dev-libs/tinyxml2
	net-libs/enet
	media-libs/libogg
	media-libs/libvorbis
	media-libs/openal
	dev-libs/boost