summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-libs/SoQt/SoQt-1.4.1.ebuild')
-rw-r--r--media-libs/SoQt/SoQt-1.4.1.ebuild37
1 files changed, 29 insertions, 8 deletions
diff --git a/media-libs/SoQt/SoQt-1.4.1.ebuild b/media-libs/SoQt/SoQt-1.4.1.ebuild
index 0f9feaae184d..ab95ac4491b7 100644
--- a/media-libs/SoQt/SoQt-1.4.1.ebuild
+++ b/media-libs/SoQt/SoQt-1.4.1.ebuild
@@ -1,24 +1,45 @@
-# Copyright 1999-2008 Gentoo Foundation
+# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/SoQt/SoQt-1.4.1.ebuild,v 1.2 2008/12/15 19:05:07 angelos Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/SoQt/SoQt-1.4.1.ebuild,v 1.3 2009/04/09 19:54:32 tester Exp $
-DESCRIPTION="the glue between Coin3D and Qt3"
+EAPI="2"
+
+inherit flag-o-matic
+
+DESCRIPTION="The glue between Coin3D and Qt"
SRC_URI="ftp://ftp.coin3d.org/pub/coin/src/all/${P}.tar.gz"
HOMEPAGE="http://www.coin3d.org/"
SLOT="0"
LICENSE="|| ( GPL-2 PEL )"
KEYWORDS="~amd64 ~x86"
-IUSE="doc"
+IUSE="doc qt4"
-RDEPEND="=x11-libs/qt-3*
- >=media-libs/coin-2.4.4"
+RDEPEND=">=media-libs/coin-2.4.4
+ qt4? (
+ x11-libs/qt-gui:4[qt3support]
+ x11-libs/qt-opengl:4[qt3support]
+ x11-libs/qt-qt3support:4
+ )
+ !qt4? ( x11-libs/qt:3[opengl] )"
DEPEND="${RDEPEND}
+ dev-util/pkgconfig
doc? ( app-doc/doxygen )"
-src_compile() {
+src_configure() {
+ if use qt4; then
+ export PATH="/usr/bin/:${PATH}"
+ export QTDIR="/usr"
+ export CONFIG_QTLIBS="$(pkg-config --libs QtGui)"
+ fi
+
+ append-ldflags -Wl,--no-as-needed
+
econf --with-coin --disable-html-help $(use_enable doc html) htmldir=/usr/share/doc/${PF}/html
- emake || die "emake failed"
+}
+
+src_compile() {
+ emake -j1 || die "emake failed"
}
src_install() {