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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Wed Dec 31 16:00:50 2014 UTC (4 years, 9 months ago) by kensington
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 0x06B1F38DCA45A1EC!)

1 # Copyright 1999-2012 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-r1.ebuild,v 1.4 2012/06/29 08:26:26 hasufell 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 DEPEND="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 RDEPEND="${DEPEND}"
32
33 S=${WORKDIR}/${PN}
34
35 pkg_setup() {
36 if use cuda; then
37 if [[ $(( $(gcc-major-version) * 10 + $(gcc-minor-version) )) -gt 44 ]] ; then
38 eerror "gcc 4.5 and up are not supported for useflag cuda!"
39 die "gcc 4.5 and up are not supported for useflag cuda!"
40 fi
41 fi
42 }
43
44 src_prepare() {
45 edos2unix cmake/*
46 EPATCH_SUFFIX=patch epatch "${WORKDIR}"/patches
47 # fix bug #414509
48 epatch "${FILESDIR}"/${P}-cg.patch
49 # fix bug #423965
50 epatch "${FILESDIR}"/${P}-gcc-4.7.patch
51 }
52
53 src_configure() {
54 local mycmakeargs=(
55 -DLIBDIR=$(get_libdir)
56 -DNVTT_SHARED=TRUE
57 $(cmake-utils_use cg CG)
58 $(cmake-utils_use cuda CUDA)
59 $(cmake-utils_use glew GLEW)
60 $(cmake-utils_use glut GLUT)
61 $(cmake-utils_use openexr OPENEXR)
62 )
63
64 cmake-utils_src_configure
65 }
66
67 src_install() {
68 cmake-utils_src_install
69
70 dodoc ChangeLog
71 }

  ViewVC Help
Powered by ViewVC 1.1.20