HOMEPAGE="http://mesa3d.sourceforge.net/"
if [[ ${PV} == 9999* ]]; then
SRC_URI=""
+ KEYWORDS=""
else
SRC_URI="ftp://ftp.freedesktop.org/pub/${MY_PN/-//}/${PV}/${MY_P}.tar.bz2"
+ KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
fi
LICENSE="LGPL-2"
SLOT="0"
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~mips ppc ppc64 ~sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~ia64-linux ~x86-linux"
IUSE="egl gles1 gles2"
RDEPEND="
- media-libs/freeglut
- media-libs/glew
media-libs/mesa[egl?,gles1?,gles2?]
virtual/opengl
x11-libs/libX11"
DEPEND="${RDEPEND}
+ egl? ( media-libs/glew )
+ gles1? ( media-libs/glew )
+ gles2? ( media-libs/glew )
virtual/glu
x11-proto/xproto"
src_prepare() {
base_src_prepare
- eautoreconf
+ [[ $PV = 9999* ]] && eautoreconf
}
src_compile() {
IUSE="egl gles1 gles2"
RDEPEND="
- egl? ( media-libs/glew )
- gles1? ( media-libs/glew )
- gles2? ( media-libs/glew )
media-libs/mesa[egl?,gles1?,gles2?]
virtual/opengl
x11-libs/libX11"
DEPEND="${RDEPEND}
+ egl? ( media-libs/glew )
+ gles1? ( media-libs/glew )
+ gles2? ( media-libs/glew )
virtual/glu
x11-proto/xproto"
src_prepare() {
base_src_prepare
- eautoreconf
-}
-
-src_configure() {
- # We're not using the complete buildsystem if we only want to build
- # glxinfo and glxgears.
- if use egl || use gles1 || use gles2; then
- default_src_configure
- fi
+ [[ $PV = 9999* ]] && eautoreconf
}
src_compile() {
- if ! use egl && ! use gles1 && ! use gles2; then
- tc-export CC
- emake LDLIBS='-lX11 -lGL' src/xdemos/glxinfo
- emake LDLIBS='-lX11 -lGL -lm' src/xdemos/glxgears
- else
- emake -C src/xdemos glxgears glxinfo
- fi
+ emake -C src/xdemos glxgears glxinfo
if use egl; then
emake LDLIBS="-lEGL" -C src/egl/opengl/ eglinfo