blob: 078db1d5333df0e48cd13e6fbe578a3be0aa7c83 (
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-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
inherit qt4-r2 multilib flag-o-matic
DESCRIPTION="C++ library based on Qt that eases the creation of OpenGL 3D viewers"
HOMEPAGE="http://www.libqglviewer.com"
SRC_URI="http://www.libqglviewer.com/src/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm"
IUSE="designer examples"
DEPEND="virtual/opengl
virtual/glu
dev-qt/qtopengl:4
dev-qt/qtgui:4"
RDEPEND="${DEPEND}
designer? ( dev-qt/designer:4 )"
src_configure() {
append-ldflags "-L${S}/QGLViewer"
sed -e 's#designerPlugin##' -i ${P}.pro || die
use examples || sed -e 's#examples examples/contribs##' -i ${P}.pro || die
eqmake4 ${P}.pro \
PREFIX="${EPREFIX}/usr" \
LIB_DIR="${EPREFIX}/usr/$(get_libdir)" \
DOC_DIR="${EPREFIX}/usr/share/doc/${PF}/html"
if use designer ; then
cd "${S}/designerPlugin"
eqmake4 designerPlugin.pro
fi
}
src_install() {
emake INSTALL_ROOT="${D}" install
dodoc README
if use designer ; then
cd "${S}/designerPlugin"
emake INSTALL_ROOT="${D}" install
fi
if use examples ; then
exeinto /usr/bin/${PN}-examples
doexe $(find "${S}/examples" -type f -executable ! -name '*.vcproj')
fi
}
|