summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2008-06-28 14:42:46 +0000
committerMarkus Meier <maekke@gentoo.org>2008-06-28 14:42:46 +0000
commit8a27c32d451ba09b9d8dff61279d4dd4a184a28c (patch)
tree6c5a9611246aa8face5c5f6cae3b8d442899f72d /media-gfx
parentAdd gcc-4.3 patch, thanks to Nikolay Orlyuk <virkony at gmail dot com>, bug #... (diff)
downloadgentoo-2-8a27c32d451ba09b9d8dff61279d4dd4a184a28c.tar.gz
gentoo-2-8a27c32d451ba09b9d8dff61279d4dd4a184a28c.tar.bz2
gentoo-2-8a27c32d451ba09b9d8dff61279d4dd4a184a28c.zip
use cmake-utils eclass
(Portage version: 2.2_rc1/cvs/Linux 2.6.26-rc7 i686)
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/aqsis/ChangeLog6
-rw-r--r--media-gfx/aqsis/aqsis-1.3.0_p20080627.ebuild42
2 files changed, 19 insertions, 29 deletions
diff --git a/media-gfx/aqsis/ChangeLog b/media-gfx/aqsis/ChangeLog
index bc40ee77823f..4c09c3199c64 100644
--- a/media-gfx/aqsis/ChangeLog
+++ b/media-gfx/aqsis/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-gfx/aqsis
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/aqsis/ChangeLog,v 1.12 2008/06/28 06:17:50 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/aqsis/ChangeLog,v 1.13 2008/06/28 14:42:46 maekke Exp $
+
+ 28 Jun 2008; Markus Meier <maekke@gentoo.org>
+ aqsis-1.3.0_p20080627.ebuild:
+ use cmake-utils eclass
*aqsis-1.3.0_p20080627 (28 Jun 2008)
diff --git a/media-gfx/aqsis/aqsis-1.3.0_p20080627.ebuild b/media-gfx/aqsis/aqsis-1.3.0_p20080627.ebuild
index 67426fbdc077..82d68cc1f86b 100644
--- a/media-gfx/aqsis/aqsis-1.3.0_p20080627.ebuild
+++ b/media-gfx/aqsis/aqsis-1.3.0_p20080627.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/aqsis/aqsis-1.3.0_p20080627.ebuild,v 1.2 2008/06/28 14:19:39 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/aqsis/aqsis-1.3.0_p20080627.ebuild,v 1.3 2008/06/28 14:42:46 maekke Exp $
EAPI="1"
-inherit versionator multilib eutils
+inherit versionator multilib eutils cmake-utils
DESCRIPTION="Open source RenderMan-compliant 3D rendering solution"
HOMEPAGE="http://www.aqsis.org"
@@ -41,41 +41,27 @@ src_compile() {
# (upstream doesn't autodetect the gentoo install path for fltk)
fltk_version="$(get_version_component_range 1-2 \
$(best_version x11-libs/fltk | sed -e 's/^x11-libs\/fltk//'))"
- fltk_flags="
+ mycmakeargs="${mycmakeargs}
-DAQSIS_USE_FLTK:BOOL=ON
-DAQSIS_FLTK_INCLUDE_DIR:PATH=/usr/include/fltk-${fltk_version}
-DAQSIS_FLTK_LIBRARIES_DIR:PATH=/usr/$(get_libdir)/fltk-${fltk_version}"
else
- fltk_flags="-DAQSIS_USE_FLTK:BOOL=OFF"
+ mycmakeargs="${mycmakeargs} -DAQSIS_USE_FLTK:BOOL=OFF"
fi
- if use openexr ; then
- exr_flags="-DAQSIS_USE_OPENEXR:BOOL=ON"
- else
- exr_flags="-DAQSIS_USE_OPENEXR:BOOL=OFF"
- fi
-
- # The aqsis build system prevents in-source builds, so we make a seperate
- # directory inside ${S} to perform the build.
- mkdir _build
- cd _build
-
- cmake -DAQSIS_BOOST_LIB_SUFFIX:STRING=-mt \
- ${fltk_flags} \
- ${exr_flags} \
- -DAQSIS_USE_RPATH:BOOL=OFF \
- -DLIBDIR:STRING=$(get_libdir) \
- -DSYSCONFDIR:STRING=/etc \
- -DCMAKE_INSTALL_PREFIX:PATH=/usr \
- "${S}"
+ mycmakeargs="${mycmakeargs}
+ -DAQSIS_BOOST_LIB_SUFFIX:STRING=-mt
+ -DAQSIS_USE_OPENEXR:BOOL=$(use openexr && echo ON || echo OFF)
+ -DAQSIS_USE_RPATH:BOOL=OFF
+ -DLIBDIR:STRING=$(get_libdir)
+ -DSYSCONFDIR:STRING=/etc
+ -DCMAKE_INSTALL_PREFIX:PATH=/usr"
- emake || die "Compilation failed"
+ cmake-utils_src_compile
}
src_install() {
- cd _build
- emake install DESTDIR="${D}"
- cd ..
- dodoc AUTHORS INSTALL README ReleaseNotes
+ DOCS="AUTHORS INSTALL README ReleaseNotes"
+ cmake-utils_src_install
# TODO: Make sure examples are installed.
}