blob: 97fcb4cda76422011b601cc12c139bc64565950d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-apps/mesa-progs/mesa-progs-8.0.1.ebuild,v 1.5 2011/02/23 16:23:02 jer Exp $
EAPI=3
MY_PN=${PN/progs/demos}
MY_P=${MY_PN}-${PV}
EGIT_REPO_URI="git://anongit.freedesktop.org/${MY_PN/-//}"
if [[ ${PV} = 9999* ]]; then
GIT_ECLASS="git"
fi
inherit toolchain-funcs ${GIT_ECLASS}
DESCRIPTION="Mesa's OpenGL utility and demo programs (glxgears and glxinfo)"
HOMEPAGE="http://mesa3d.sourceforge.net/"
if [[ ${PV} == 9999* ]]; then
SRC_URI=""
else
SRC_URI="ftp://ftp.freedesktop.org/pub/${MY_PN/-//}/${PV}/${MY_P}.tar.bz2"
fi
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm hppa ~ia64 ~mips ppc ~ppc64 ~sh ~sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
IUSE=""
RDEPEND="virtual/opengl"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${MY_P}
src_configure() {
# We're not using the complete buildsystem to avoid dependencies
# unnecessary for our two little tools.
:
}
src_compile() {
tc-export CC
emake LDLIBS='-lGL -lm' src/xdemos/{glxgears,glxinfo} || die
}
src_install() {
dobin src/xdemos/{glxgears,glxinfo} || die
}
|