mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-08 20:43:38 +02:00
* Added slim cuda sdk version
This commit is contained in:
parent
ad99c0021f
commit
66feb7108f
2 changed files with 64 additions and 0 deletions
2
dev-util/nvidia-cuda-sdk/Manifest
Normal file
2
dev-util/nvidia-cuda-sdk/Manifest
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
DIST cuda-sdk-linux-2.10.1215.2015-3233425.run 46618139 RMD160 bfbadee2b669d72e038abf34cb200343a3826465 SHA1 3ef64ffd9d1bc0afe351c80f07d5c2a87e7e044a SHA256 5d9521f049312fc00fef9e9ed6fa2bd8475e0d309dab109da4b663461d9855bb
|
||||
EBUILD nvidia-cuda-sdk-2.10.1215.2015.ebuild 1391 RMD160 3570a4a5941384c34b8096fd5b8daeca525a515c SHA1 986277e5d8d6ce6244ff78ef6301017610ec270e SHA256 faa6df177a16b86f3b4a13e212ac9a0c4afb37568eece9abe8f1dee8623096e8
|
||||
|
|
@ -0,0 +1,62 @@
|
|||
# Copyright 1999-2008 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-2.10.1215.2015.ebuild,v 1.1 2009/01/21 14:38:52 spock Exp $
|
||||
|
||||
inherit eutils
|
||||
|
||||
DESCRIPTION="NVIDIA CUDA Software Development Kit"
|
||||
HOMEPAGE="http://developer.nvidia.com/cuda"
|
||||
|
||||
SRC_URI="http://developer.download.nvidia.com/compute/cuda/2_1/SDK/cuda-sdk-linux-${PV}-3233425.run"
|
||||
LICENSE="CUDPP"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="debug emulation livecd"
|
||||
|
||||
RDEPEND=">=dev-util/nvidia-cuda-toolkit-2.1
|
||||
!livecd? ( >=x11-drivers/nvidia-drivers-180.22 )
|
||||
virtual/glut"
|
||||
DEPEND="${RDEPEND}"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_unpack() {
|
||||
unpack_makeself
|
||||
cd "${S}"
|
||||
sed -i -e 's:CUDA_INSTALL_PATH ?= .*:CUDA_INSTALL_PATH ?= /opt/cuda:' sdk/common/common.mk
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myopts=""
|
||||
|
||||
if use emulation; then
|
||||
myopts="emu=1"
|
||||
fi
|
||||
|
||||
if use debug; then
|
||||
myopts="${myopts} dbg=1"
|
||||
fi
|
||||
|
||||
cd "${S}/sdk"
|
||||
rm -rf projects bin tools doc
|
||||
emake cuda-install=/opt/cuda ${myopts} || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cd "${S}/sdk"
|
||||
|
||||
for f in $(find .); do
|
||||
local t="$(dirname ${f})"
|
||||
if [[ "${t/obj\/}" != "${t}" || "${t##*.}" == "a" ]]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
if [[ -x "${f}" && ! -d "${f}" ]]; then
|
||||
exeinto "/opt/cuda/sdk/$(dirname ${f})"
|
||||
doexe "${f}"
|
||||
else
|
||||
insinto "/opt/cuda/sdk/$(dirname ${f})"
|
||||
doins "${f}"
|
||||
fi
|
||||
done
|
||||
}
|
||||
Loading…
Reference in a new issue