blob: 16fd75bbdb11227fad33e0a1cafbf50cc2aa349a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit cmake-utils eutils
DESCRIPTION="a set of cuda-enabled texture tools and compressors"
HOMEPAGE="http://developer.nvidia.com/object/texture_tools.html"
SRC_URI="http://nvidia-texture-tools.googlecode.com/files/${P}-1.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug"
DEPEND="x11-libs/libX11
media-libs/jpeg
media-libs/libpng
media-libs/tiff"
# optional:
# media-libs/glew
# media-gfx/nvidia-cg-toolkit
# dev-util/nvidia-cuda-toolkit
RDEPEND="${DEPEND}"
S="${WORKDIR}/${PN}"
src_configure() {
mycmakeargs=(
"--prefix=/usr"
)
if use debug; then
mycmakeargs+=(
"--debug"
)
else
mycmakeargs+=(
"--release"
)
fi
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_make
}
src_install() {
cmake-utils_src_install
}
|