blob: 13ed9d674201bac83fdbd7bf36589fb576b8e778 (
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
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-npp/nvidia-cuda-npp-3.2.ebuild,v 1.1 2011/05/15 16:37:55 dilfridge Exp $
EAPI=4
inherit base
DESCRIPTION="NVIDIA CUDA Performance Primitives (NPP) library"
HOMEPAGE="http://developer.nvidia.com/cuda"
RESTRICT="binchecks bindist mirror primaryuri"
CUDA_V=${PV//_/-}
DIR_V=${CUDA_V//./_}
DIR_V=${DIR_V//beta/Beta}
BASE_URI="http://developer.download.nvidia.com/compute/cuda/${DIR_V}_prod/toolkit"
SRC_URI="amd64? ( ${BASE_URI}/npp_${CUDA_V}.16_linux_64.tar.gz )
x86? ( ${BASE_URI}/npp_${CUDA_V}.16_linux_32.tar.gz )"
LICENSE="NVIDIA-NPP"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples"
DEPEND="~dev-util/nvidia-cuda-toolkit-${PV}"
RDEPEND="${DEPEND}"
S="${WORKDIR}/SDK"
PATCHES=( "${FILESDIR}/${P}-asneeded.patch" )
src_compile() {
use examples && CUDA_INSTALL_PATH=/opt/cuda emake
}
src_install() {
if use doc ; then
dodoc common/npp/doc/NPP_Library_*.pdf
dohtml common/npp/doc/html/*
fi
if use examples ; then
dodoc samples/binarySegmentation/binarySegmentation.cpp
dodoc samples/boxFilter/boxFilter.cpp
dodoc samples/freeImageInterop/freeImageInterop.cpp
dodoc samples/histEqualization/histEqualization.cpp
dodoc data/*
fi
local DEST=/opt/cuda
into ${DEST}
dolib common/npp/lib/*
insinto ${DEST}/include
doins common/npp/include/*.h
if use examples ; then
dobin samples/binarySegmentation/binarySegmentation
dobin samples/boxFilter/boxFilter
dobin samples/freeImageInterop/freeImageInterop
dobin samples/histEqualization/histEqualization
fi
}
|