diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-10-31 10:59:28 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-10-31 10:59:28 -0300 |
commit | 36f1b1bb12934e4fd9012c0ee5d4e3c885a2d433 (patch) | |
tree | 397141926cac78871a3e9d53cd8fb824bc1b9cd3 /community/cuda | |
parent | 0858e3f6c7deaae69a94818c0d317a767aa3d481 (diff) | |
parent | 5827948456201df72a1bd73e87977c569129fb27 (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community/percona-server/PKGBUILD
community/xmlrpc-c/PKGBUILD
core/util-linux/PKGBUILD
extra/colord/PKGBUILD
extra/epiphany/PKGBUILD
extra/evolution-data-server/PKGBUILD
extra/evolution/PKGBUILD
extra/gcr/PKGBUILD
extra/gdm/PKGBUILD
extra/gnome-color-manager/PKGBUILD
extra/gnome-control-center/PKGBUILD
extra/gnome-dictionary/PKGBUILD
extra/gnome-font-viewer/PKGBUILD
extra/gnome-screenshot/PKGBUILD
extra/gnome-search-tool/PKGBUILD
extra/gnome-system-log/PKGBUILD
extra/gobject-introspection/PKGBUILD
extra/grilo/PKGBUILD
extra/gtkmm3/PKGBUILD
extra/gvfs/PKGBUILD
extra/json-glib/PKGBUILD
extra/libgnome-keyring/PKGBUILD
extra/nautilus-open-terminal/PKGBUILD
extra/pidgin/PKGBUILD
extra/pygobject/PKGBUILD
extra/rest/PKGBUILD
extra/rhythmbox/PKGBUILD
extra/seahorse/PKGBUILD
extra/totem/PKGBUILD
extra/xorg-xinit/PKGBUILD
extra/yelp/PKGBUILD
Diffstat (limited to 'community/cuda')
-rw-r--r-- | community/cuda/PKGBUILD | 59 | ||||
-rw-r--r-- | community/cuda/cuda.conf | 2 | ||||
-rw-r--r-- | community/cuda/cuda.install | 11 | ||||
-rw-r--r-- | community/cuda/cuda.sh | 1 |
4 files changed, 73 insertions, 0 deletions
diff --git a/community/cuda/PKGBUILD b/community/cuda/PKGBUILD new file mode 100644 index 000000000..5ff98a12d --- /dev/null +++ b/community/cuda/PKGBUILD @@ -0,0 +1,59 @@ +# $Id: PKGBUILD 69719 2012-04-23 02:56:20Z svenstaro $ +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +pkgname=cuda +pkgver=5.0.35 +pkgrel=3 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('i686' 'x86_64') +url="http://www.nvidia.com/object/cuda_home.html" +license=('custom') +depends=('gcc-libs' 'opencl-nvidia') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb') +options=(!strip) +if [ "$CARCH" = "i686" ]; then + _arch=32 + md5sums=('40c514acb750902c54656b97a6deded6' + '7e5990e03eea90075f5a500e91a0c3d3' + 'ffe1e6fb7f97b23da28fd94a5fd7356d') +else + _arch=64 + md5sums=('df796fb9ab66075b5c346b3fd0bf596b' + '7e5990e03eea90075f5a500e91a0c3d3' + 'ffe1e6fb7f97b23da28fd94a5fd7356d') +fi +install=cuda.install +source=(http://developer.download.nvidia.com/compute/cuda/5_0/rel-update-1/installers/cuda_${pkgver}_linux_${_arch}_fedora16-1.run + cuda.sh + cuda.conf) + +build() { + cd "$srcdir" +} + +package() { + sh cuda_${pkgver}_linux_${_arch}_fedora16-1.run -toolkitpath=$PWD -samplespath=$PWD -extract=$srcdir + ./cudatoolkit_${pkgver}_linux_${_arch}_fedora16.run -prefix=$pkgdir/opt/cuda -noprompt + ./cuda-samples_${pkgver}_linux.run -cudaprefix=$pkgdir/opt/cuda -prefix=$pkgdir/opt/cuda/samples -noprompt + + # allow gcc 4.7 to work + sed -i "/unsupported GNU/d" $pkgdir/opt/cuda/include/host_config.h + + # fix nvidia path fuckup + sed -i "s|/build/pkg||g" $pkgdir/opt/cuda/bin/nvvp + sed -i "s|/build/pkg||g" $pkgdir/opt/cuda/bin/nsight + + install -Dm755 $srcdir/cuda.sh $pkgdir/etc/profile.d/cuda.sh + install -Dm644 $srcdir/cuda.conf $pkgdir/etc/ld.so.conf.d/cuda.conf + install -Dm644 $pkgdir/opt/cuda/doc/EULA.txt $pkgdir/usr/share/licenses/$pkgname/LICENSE + + # correct cuda path in samples + cd $pkgdir/opt/cuda/samples + find . -type f | egrep -v '(ppm|pgm)' | xargs grep -lI "$pkgdir/opt/cuda" | xargs sed -i "s|$pkgdir/opt/cuda|/opt/cuda|g" + + # make cuda-gdk work + mkdir -p $pkgdir/usr/lib + cd $pkgdir/usr/lib + ln -s /usr/lib/libncurses.so.5 libtinfo.so.5 +} diff --git a/community/cuda/cuda.conf b/community/cuda/cuda.conf new file mode 100644 index 000000000..6161bb0da --- /dev/null +++ b/community/cuda/cuda.conf @@ -0,0 +1,2 @@ +/opt/cuda/lib64 +/opt/cuda/lib diff --git a/community/cuda/cuda.install b/community/cuda/cuda.install new file mode 100644 index 000000000..fb341b1dd --- /dev/null +++ b/community/cuda/cuda.install @@ -0,0 +1,11 @@ +post_install() { + echo "The cuda binaries are in /opt/cuda/bin" + echo "The cuda samples are in /opt/cuda/samples" + echo "The cuda docs are in /opt/cuda/doc" + echo "You need to relogin in order for the cuda binaries to appear in your PATH" + post_upgrade +} + +post_upgrade() { + ldconfig -r . +} diff --git a/community/cuda/cuda.sh b/community/cuda/cuda.sh new file mode 100644 index 000000000..6de59ddd5 --- /dev/null +++ b/community/cuda/cuda.sh @@ -0,0 +1 @@ +export PATH=$PATH:/opt/cuda/bin |