summaryrefslogtreecommitdiff
path: root/x11-libs/libQGLViewer/libQGLViewer-2.7.1.ebuild
blob: 29150cce4bbbd6f824e75e58f1f70191b5f7b007 (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit qmake-utils multilib

DESCRIPTION="Simple 3D viewer class for Qt OpenGL applications"
HOMEPAGE="http://www.libqglviewer.com"
SRC_URI="http://www.libqglviewer.com/src/${PN}-${PV}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"


DEPEND="virtual/opengl
		dev-qt/qtopengl:5
		dev-qt/qtxml:5"

RDEPEND="${DEPEND}"

S=${WORKDIR}/${PN}-${PV}

src_configure() {
 	true
}
 
src_compile() {
	eqmake5 libQGLViewer-${PV}.pro -o Makefile \
		PREFIX=/usr \
		LIB_DIR=/usr/$(get_libdir)
 	emake || die "emake QGLViewer failed"
}
 
src_install() {
  	cd QGLViewer
  	INSTALL_ROOT="${D}" emake install_target install_include || die "install QGLViewer failed"
   
  	cd designerPlugin
  	INSTALL_ROOT="${D}" emake install_target || die "install QGLViewer failed"
  
  	dodoc ../README || die "installing README failed"
  
  	if use doc ; then
  		dohtml -r ../doc/* || die "installing html files failed"
  		docinto examples
  		dodoc ../examples/* || die "installing examples failed"
  	fi
}