blob: 49f228b34aac9301361e3db560441efe32c67151 (
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
49
50
51
52
53
54
55
56
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
PYTHON_DEPEND="2"
inherit python waf-utils
DESCRIPTION="Opengl test suite"
HOMEPAGE="https://launchpad.net/glmark2"
SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gles2"
RDEPEND="media-libs/libpng
media-libs/mesa[gles2?]
x11-libs/libX11"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/newvoidp.patch"
}
src_prepare() {
rm -rf ${S}/src/libpng
sed -i -e 's#libpng12#libpng#g' ${S}/wscript ${S}/src/wscript_build || die
}
src_configure() {
: ${WAF_BINARY:="${S}/waf"}
local myconf
if use gles2; then
myconf += "--enable-glesv2"
fi
# it does not know --libdir specification, dandy huh
CCFLAGS="${CFLAGS}" LINKFLAGS="${LDFLAGS}" "${WAF_BINARY}" \
--prefix=/usr \
--enable-gl \
${myconf} \
configure || die "configure failed"
}
|