/[gentoo-x86]/x11-apps/mesa-progs/mesa-progs-8.2.0.ebuild
Gentoo

Contents of /x11-apps/mesa-progs/mesa-progs-8.2.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.14 - (show annotations) (download)
Sat Mar 14 13:55:51 2015 UTC (2 years, 11 months ago) by maekke
Branch: MAIN
CVS Tags: HEAD
Changes since 1.13: +2 -2 lines
arm stable, bug #530652

(Portage version: 2.2.18/cvs/Linux x86_64, RepoMan options: --include-arches="arm", signed Manifest commit with key 072AD062)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-apps/mesa-progs/mesa-progs-8.2.0.ebuild,v 1.13 2015/03/06 07:23:03 jer Exp $
4
5 EAPI=5
6
7 MY_PN=${PN/progs/demos}
8 MY_P=${MY_PN}-${PV}
9 EGIT_REPO_URI="git://anongit.freedesktop.org/${MY_PN/-//}"
10
11 if [[ ${PV} = 9999* ]]; then
12 GIT_ECLASS="git-r3"
13 EXPERIMENTAL="true"
14 fi
15
16 inherit base autotools toolchain-funcs ${GIT_ECLASS}
17
18 DESCRIPTION="Mesa's OpenGL utility and demo programs (glxgears and glxinfo)"
19 HOMEPAGE="http://mesa3d.sourceforge.net/"
20 if [[ ${PV} == 9999* ]]; then
21 SRC_URI=""
22 else
23 SRC_URI="ftp://ftp.freedesktop.org/pub/${MY_PN/-//}/${PV}/${MY_P}.tar.bz2"
24 fi
25
26 LICENSE="LGPL-2"
27 SLOT="0"
28 KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
29 IUSE="egl gles1 gles2"
30
31 RDEPEND="
32 media-libs/freeglut
33 media-libs/glew
34 media-libs/mesa[egl?,gles1?,gles2?]
35 virtual/opengl
36 x11-libs/libX11"
37 DEPEND="${RDEPEND}
38 virtual/glu
39 x11-proto/xproto"
40
41 S=${WORKDIR}/${MY_P}
42 EGIT_CHECKOUT_DIR=${S}
43
44 src_unpack() {
45 default
46 [[ $PV = 9999* ]] && git-r3_src_unpack
47 }
48
49 src_prepare() {
50 base_src_prepare
51
52 eautoreconf
53 }
54
55 src_compile() {
56 emake -C src/xdemos glxgears glxinfo
57
58 if use egl; then
59 emake LDLIBS="-lEGL" -C src/egl/opengl/ eglinfo
60 emake -C src/egl/eglut/ libeglut_screen.la libeglut_x11.la
61 emake LDLIBS="-lGL -lEGL -lX11 -lm" -C src/egl/opengl/ eglgears_x11
62 emake LDLIBS="-lGL -lEGL -lm" -C src/egl/opengl/ eglgears_screen
63
64 if use gles1; then
65 emake LDLIBS="-lGLESv1_CM -lEGL -lX11" -C src/egl/opengles1/ es1_info
66 emake LDLIBS="-lGLESv1_CM -lEGL -lX11 -lm" -C src/egl/opengles1/ gears_x11
67 emake LDLIBS="-lGLESv1_CM -lEGL -lm" -C src/egl/opengles1/ gears_screen
68 fi
69 if use gles2; then
70 emake LDLIBS="-lGLESv2 -lEGL -lX11" -C src/egl/opengles2/ es2_info
71 emake LDLIBS="-lGLESv2 -lEGL -lX11 -lm" -C src/egl/opengles2/ es2gears_x11
72 emake LDLIBS="-lGLESv2 -lEGL -lm" -C src/egl/opengles2/ es2gears_screen
73 fi
74 fi
75 }
76
77 src_install() {
78 dobin src/xdemos/{glxgears,glxinfo}
79 if use egl; then
80 dobin src/egl/opengl/egl{info,gears_{screen,x11}}
81
82 if use gles1; then
83 dobin src/egl/opengles1/es1_info
84 newbin src/egl/opengles1/gears_screen es1gears_screen
85 newbin src/egl/opengles1/gears_x11 es1gears_x11
86 fi
87
88 use gles2 && dobin src/egl/opengles2/es2{_info,gears_{screen,x11}}
89 fi
90 }

  ViewVC Help
Powered by ViewVC 1.1.20