/[gentoo-x86]/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.0.8-r2.ebuild
Gentoo

Contents of /media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.0.8-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon May 20 08:38:27 2013 UTC (6 years, 4 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +2 -2 lines
Stable for x86, wrt bug #470498

(Portage version: 2.1.11.63/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-gfx/nvidia-texture-tools/nvidia-texture-tools-2.0.8-r2.ebuild,v 1.4 2013/05/19 09:58:17 ago Exp $
4
5 EAPI=4
6 inherit cmake-utils eutils multilib toolchain-funcs
7
8 DESCRIPTION="A set of cuda-enabled texture tools and compressors"
9 HOMEPAGE="http://developer.nvidia.com/object/texture_tools.html"
10 SRC_URI="http://${PN}.googlecode.com/files/${P}-1.tar.gz
11 http://dev.gentoo.org/~ssuominen/${P}-patchset-1.tar.xz"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE="cg cuda glew glut openexr"
17
18 RDEPEND="media-libs/libpng:0
19 media-libs/ilmbase
20 media-libs/tiff:0
21 sys-libs/zlib
22 virtual/jpeg
23 virtual/opengl
24 x11-libs/libX11
25 cg? ( media-gfx/nvidia-cg-toolkit )
26 cuda? ( dev-util/nvidia-cuda-toolkit )
27 glew? ( media-libs/glew )
28 glut? ( media-libs/freeglut )
29 openexr? ( media-libs/openexr )
30 "
31 DEPEND="${RDEPEND}
32 virtual/pkgconfig"
33
34 S=${WORKDIR}/${PN}
35
36 pkg_setup() {
37 if use cuda; then
38 if [[ $(( $(gcc-major-version) * 10 + $(gcc-minor-version) )) -gt 44 ]] ; then
39 eerror "gcc 4.5 and up are not supported for useflag cuda!"
40 die "gcc 4.5 and up are not supported for useflag cuda!"
41 fi
42 fi
43 }
44
45 src_prepare() {
46 edos2unix cmake/*
47 EPATCH_SUFFIX=patch epatch "${WORKDIR}"/patches
48 # fix bug #414509
49 epatch "${FILESDIR}"/${P}-cg.patch
50 # fix bug #423965
51 epatch "${FILESDIR}"/${P}-gcc-4.7.patch
52 # fix bug #462494
53 epatch "${FILESDIR}"/${P}-openexr.patch
54 # fix clang build
55 epatch "${FILESDIR}"/${P}-clang.patch
56 }
57
58 src_configure() {
59 local mycmakeargs=(
60 -DLIBDIR=$(get_libdir)
61 -DNVTT_SHARED=TRUE
62 $(cmake-utils_use cg CG)
63 $(cmake-utils_use cuda CUDA)
64 $(cmake-utils_use glew GLEW)
65 $(cmake-utils_use glut GLUT)
66 $(cmake-utils_use openexr OPENEXR)
67 )
68
69 cmake-utils_src_configure
70 }
71
72 src_install() {
73 cmake-utils_src_install
74
75 dodoc ChangeLog
76 }

  ViewVC Help
Powered by ViewVC 1.1.20