diff options
author | Ctibor Brančík <ctibor@brancik.cz> | 2014-05-14 19:36:17 +0200 |
---|---|---|
committer | Ctibor Brančík <ctibor@brancik.cz> | 2014-05-14 19:36:17 +0200 |
commit | 7136231fc334844e184d675d6d1f1dbd4c96e9c3 (patch) | |
tree | 10e81ba99f128ba54cccbb448c7b59d94f022169 /x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild | |
parent | 9b117aff12c897fe9df359a56d45e1222802876e (diff) | |
download | brancik-overlay-7136231fc334844e184d675d6d1f1dbd4c96e9c3.tar.gz brancik-overlay-7136231fc334844e184d675d6d1f1dbd4c96e9c3.tar.bz2 |
Add x11-libs/libqglviewer 2.3.1 from sunrise overlay
Diffstat (limited to 'x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild')
-rw-r--r-- | x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild b/x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild new file mode 100644 index 0000000..64f1599 --- /dev/null +++ b/x11-libs/libqglviewer/libqglviewer-2.3.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit qt4-r2 + +MY_P="libQGLViewer-${PV}" + +DESCRIPTION="Simple 3D viewer class for Qt OpenGL applications" +HOMEPAGE="http://www.libqglviewer.com" +SRC_URI="http://www.libqglviewer.com/src/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +DEPEND="virtual/opengl + dev-qt/qtgui:4" +RDEPEND="${DEPEND}" + +S=${WORKDIR}/${MY_P}/QGLViewer + +src_configure() { + true +} + +src_compile() { + eqmake4 QGLViewer.pro -o Makefile PREFIX=/usr + emake || die "emake QGLViewer failed" + + cd ../designerPlugin + eqmake4 designerPlugin.pro -o Makefile \ + INCLUDE_DIR=.. \ + LIB_DIR=../QGLViewer + emake || die "emake designerPlugin failed" +} + +src_install() { + 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 +} |