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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Thu May 3 20:51:48 2012 UTC (7 years, 5 months ago) by hasufell
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
force shared libs, cause static is broken

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

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.ebuild,v 1.3 2012/05/03 20:18:47 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 }
50
51 src_configure() {
52 local mycmakeargs=(
53 -DLIBDIR=$(get_libdir)
54 $(cmake-utils_use cg CG)
55 $(cmake-utils_use cuda CUDA)
56 $(cmake-utils_use glew GLEW)
57 $(cmake-utils_use glut GLUT)
58 $(cmake-utils_use openexr OPENEXR)
59 )
60
61 cmake-utils_src_configure
62 }
63
64 src_install() {
65 cmake-utils_src_install
66
67 dodoc ChangeLog
68 }

  ViewVC Help
Powered by ViewVC 1.1.20