/[gentoo-x86]/media-gfx/aqsis/aqsis-1.6.0.ebuild
Gentoo

Contents of /media-gfx/aqsis/aqsis-1.6.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Nov 5 08:45:07 2011 UTC (3 years, 9 months ago) by ssuominen
Branch: MAIN
Changes since 1.4: +2 -2 lines
Revert part of last commit.

(Portage version: 2.2.0_alpha72/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/aqsis/aqsis-1.6.0.ebuild,v 1.4 2011/11/05 08:40:16 ssuominen Exp $
4
5 EAPI=2
6
7 patch_level=8
8
9 inherit versionator multilib eutils cmake-utils
10
11 DESCRIPTION="Open source RenderMan-compliant 3D rendering solution"
12 HOMEPAGE="http://www.aqsis.org"
13 if [[ "${P}" == *_p* ]] ; then
14 # snapshot
15 _PV=($(get_version_components ${PV}))
16 DATE="${_PV[3]/p/}"
17 DATE="${DATE:0:4}-${DATE:4:2}-${DATE:6:2}"
18 MY_P="${PN}-$(get_version_component_range 1-3)-${DATE}"
19 SRC_URI="http://download.aqsis.org/builds/testing/source/tar/${MY_P}.tar.gz"
20 S="${WORKDIR}/${PN}-$(get_version_component_range 1-3)"
21 else
22 SRC_URI="mirror://sourceforge/aqsis/${P}.tar.gz
23 mirror://debian/pool/main/a/${PN}/${PN}_${PV}-${patch_level}.debian.tar.gz"
24 fi
25
26 LICENSE="GPL-2"
27 SLOT="0"
28 KEYWORDS="~amd64 ~ppc ~x86"
29 IUSE="+fltk openexr"
30
31 RDEPEND="
32 >=dev-libs/boost-1.34.0
33 >=media-libs/tiff-3.7.1
34 >=sys-libs/zlib-1.1.4
35 fltk? ( >=x11-libs/fltk-1.1.10-r2:1 )
36 openexr? ( media-libs/openexr )"
37
38 DEPEND="
39 ${RDEPEND}
40 dev-libs/libxslt
41 >=dev-util/cmake-2.6.3
42 >=sys-devel/bison-1.35
43 >=sys-devel/flex-2.5.4"
44
45 src_prepare() {
46 epatch "${WORKDIR}"/debian/patches/*ftbfs*
47 }
48
49 src_compile() {
50 if use fltk ; then
51 # hack to get fltk library/include paths
52 # (upstream doesn't autodetect the gentoo install path for fltk)
53 fltk_version="$(get_version_component_range 1 \
54 $(best_version x11-libs/fltk | sed -e 's/^x11-libs\/fltk//'))"
55 mycmakeargs="${mycmakeargs}
56 -DAQSIS_USE_FLTK:BOOL=ON
57 -DAQSIS_FLTK_INCLUDE_DIR:PATH=$(fltk-config --includedir)
58 -DAQSIS_FLTK_LIBRARIES_DIR:PATH=/usr/$(get_libdir)/fltk-${fltk_version}"
59 else
60 mycmakeargs="${mycmakeargs} -DAQSIS_USE_FLTK:BOOL=OFF"
61 fi
62
63 mycmakeargs="${mycmakeargs}
64 -DAQSIS_BOOST_LIB_SUFFIX:STRING=-mt
65 -DAQSIS_USE_OPENEXR:BOOL=$(use openexr && echo ON || echo OFF)
66 -DAQSIS_USE_RPATH:BOOL=OFF
67 -DLIBDIR:STRING=$(get_libdir)
68 -DSYSCONFDIR:STRING=/etc
69 -DCMAKE_INSTALL_PREFIX:PATH=/usr"
70
71 cmake-utils_src_compile
72 }
73
74 src_install() {
75 DOCS="AUTHORS INSTALL README"
76 newdoc "release-notes/1.6/summary-1.6.0.txt" ReleaseNotes
77 cmake-utils_src_install
78 }

  ViewVC Help
Powered by ViewVC 1.1.20