You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.3 KiB
62 lines
1.3 KiB
4 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
11 years ago
|
|
||
4 years ago
|
inherit desktop wrapper
|
||
11 years ago
|
|
||
|
DESCRIPTION="Combines elements of adventure, jump&run and physical puzzles"
|
||
|
HOMEPAGE="http://www.tinyandbig.com/"
|
||
|
SRC_URI="tinyandbig_grandpasleftovers-retail-linux-${PV}_1370968537.tar.bz2"
|
||
4 years ago
|
S="${WORKDIR}"/tinyandbig
|
||
11 years ago
|
|
||
|
LICENSE="all-rights-reserved"
|
||
|
SLOT="0"
|
||
7 years ago
|
KEYWORDS="-* ~amd64 ~x86"
|
||
11 years ago
|
IUSE="bundled-libs"
|
||
4 years ago
|
|
||
11 years ago
|
RESTRICT="bindist fetch bundled-libs? ( splitdebug )"
|
||
|
|
||
3 years ago
|
MYGAMEDIR=/opt/${PN}
|
||
11 years ago
|
QA_PREBUILT="${MYGAMEDIR#/}/bin32/*
|
||
|
${MYGAMEDIR#/}/bin64/*"
|
||
|
|
||
4 years ago
|
# TODO: unbundle media-libs/cal3d, lib hacked or old version
|
||
11 years ago
|
RDEPEND="
|
||
|
media-libs/openal
|
||
4 years ago
|
virtual/opengl
|
||
11 years ago
|
x11-libs/libX11
|
||
|
!bundled-libs? (
|
||
|
media-gfx/nvidia-cg-toolkit
|
||
4 years ago
|
)
|
||
|
"
|
||
|
BDEPEND="app-arch/bzip2"
|
||
11 years ago
|
|
||
|
pkg_nofetch() {
|
||
|
einfo "Please buy & download ${SRC_URI} from:"
|
||
|
einfo " ${HOMEPAGE}"
|
||
6 years ago
|
einfo "and move it to your DISTDIR directory."
|
||
11 years ago
|
einfo
|
||
|
}
|
||
|
|
||
|
src_prepare() {
|
||
3 years ago
|
default
|
||
|
|
||
4 years ago
|
if ! use bundled-libs ; then
|
||
11 years ago
|
rm -v $(usex amd64 "bin64" "bin32")/libCg{,GL}.so || die "unbundling libs failed!"
|
||
|
fi
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
local bindir=$(usex amd64 "bin64" "bin32")
|
||
|
|
||
4 years ago
|
insinto ${MYGAMEDIR}
|
||
11 years ago
|
doins -r assets ${bindir}
|
||
|
|
||
4 years ago
|
make_wrapper ${PN} "./${bindir}/tinyandbig" "${MYGAMEDIR}" "${MYGAMEDIR}/${bindir}"
|
||
11 years ago
|
make_desktop_entry ${PN} "Tiny & Big"
|
||
|
dodoc readme.txt
|
||
|
|
||
4 years ago
|
fperms +x ${MYGAMEDIR}/${bindir}/tinyandbig
|
||
11 years ago
|
}
|