| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/x11-libs/qt-opengl/qt-opengl-4.8.1.ebuild,v 1.11 2012/09/21 06:55:54 johu Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
inherit qt4-build |
| 8 |
|
| 9 |
DESCRIPTION="The OpenGL module for the Qt toolkit" |
| 10 |
SLOT="4" |
| 11 |
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ~ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" |
| 12 |
IUSE="egl qt3support" |
| 13 |
|
| 14 |
DEPEND=" |
| 15 |
virtual/opengl |
| 16 |
~x11-libs/qt-core-${PV}[aqua=,c++0x=,debug=,qpa=,qt3support=] |
| 17 |
~x11-libs/qt-gui-${PV}[aqua=,c++0x=,debug=,egl=,qpa=,qt3support=] |
| 18 |
" |
| 19 |
RDEPEND="${DEPEND}" |
| 20 |
|
| 21 |
pkg_setup() { |
| 22 |
QT4_TARGET_DIRECTORIES=" |
| 23 |
src/opengl |
| 24 |
src/plugins/graphicssystems/opengl" |
| 25 |
|
| 26 |
QT4_EXTRACT_DIRECTORIES=" |
| 27 |
include/QtCore |
| 28 |
include/QtGui |
| 29 |
include/QtOpenGL |
| 30 |
src/corelib |
| 31 |
src/gui |
| 32 |
src/opengl |
| 33 |
src/plugins |
| 34 |
src/3rdparty" |
| 35 |
|
| 36 |
QCONFIG_ADD="opengl" |
| 37 |
QCONFIG_DEFINE="QT_OPENGL" |
| 38 |
|
| 39 |
qt4-build_pkg_setup |
| 40 |
} |
| 41 |
|
| 42 |
src_configure() { |
| 43 |
myconf+=" |
| 44 |
-opengl |
| 45 |
$(qt_use qt3support) |
| 46 |
$(qt_use egl)" |
| 47 |
|
| 48 |
qt4-build_src_configure |
| 49 |
|
| 50 |
# Not building tools/designer/src/plugins/tools/view3d as it's |
| 51 |
# commented out of the build in the source |
| 52 |
} |
| 53 |
|
| 54 |
src_install() { |
| 55 |
qt4-build_src_install |
| 56 |
|
| 57 |
# touch the available graphics systems |
| 58 |
dodir /usr/share/qt4/graphicssystems |
| 59 |
echo "experimental" > "${ED}"/usr/share/qt4/graphicssystems/opengl || die |
| 60 |
} |