summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-util/nvidia-cuda-npp/ChangeLog11
-rw-r--r--dev-util/nvidia-cuda-npp/files/nvidia-cuda-npp-3.2-asneeded.patch48
-rw-r--r--dev-util/nvidia-cuda-npp/metadata.xml9
-rw-r--r--dev-util/nvidia-cuda-npp/nvidia-cuda-npp-3.2.ebuild66
4 files changed, 134 insertions, 0 deletions
diff --git a/dev-util/nvidia-cuda-npp/ChangeLog b/dev-util/nvidia-cuda-npp/ChangeLog
new file mode 100644
index 000000000000..cdbbd00926d8
--- /dev/null
+++ b/dev-util/nvidia-cuda-npp/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-util/nvidia-cuda-npp
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/nvidia-cuda-npp/ChangeLog,v 1.1 2011/05/15 16:37:55 dilfridge Exp $
+
+*nvidia-cuda-npp-3.2 (15 May 2011)
+
+ 15 May 2011; Andreas K. Huettel <dilfridge@gentoo.org>
+ +nvidia-cuda-npp-3.2.ebuild, +files/nvidia-cuda-npp-3.2-asneeded.patch,
+ +metadata.xml:
+ New library, dependency of media-libs/opencv
+
diff --git a/dev-util/nvidia-cuda-npp/files/nvidia-cuda-npp-3.2-asneeded.patch b/dev-util/nvidia-cuda-npp/files/nvidia-cuda-npp-3.2-asneeded.patch
new file mode 100644
index 000000000000..96392bc93fba
--- /dev/null
+++ b/dev-util/nvidia-cuda-npp/files/nvidia-cuda-npp-3.2-asneeded.patch
@@ -0,0 +1,48 @@
+diff -ruN SDK.orig/samples/binarySegmentation/Makefile SDK/samples/binarySegmentation/Makefile
+--- SDK.orig/samples/binarySegmentation/Makefile 2010-09-17 22:12:00.000000000 +0200
++++ SDK/samples/binarySegmentation/Makefile 2011-05-14 20:00:00.000000000 +0200
+@@ -103,7 +103,7 @@
+ endif
+
+ all:
+- $(CXX) $(INC) $(LIB) -o binarySegmentation binarySegmentation.cpp -lUtilNPP$(LIBARCH) -lfreeimage$(FREEIMAGELIBARCH)
++ $(CXX) $(INC) -o binarySegmentation binarySegmentation.cpp -lUtilNPP$(LIBARCH) -lfreeimage$(FREEIMAGELIBARCH) $(LIB)
+
+ clean:
+ @rm -f binarySegmentation
+diff -ruN SDK.orig/samples/boxFilter/Makefile SDK/samples/boxFilter/Makefile
+--- SDK.orig/samples/boxFilter/Makefile 2010-09-17 20:07:19.000000000 +0200
++++ SDK/samples/boxFilter/Makefile 2011-05-14 19:58:34.000000000 +0200
+@@ -103,7 +103,7 @@
+ endif
+
+ all:
+- $(CXX) $(INC) $(LIB) -o boxFilter boxFilter.cpp -lUtilNPP$(LIBARCH) -lfreeimage$(FREEIMAGELIBARCH)
++ $(CXX) $(INC) -o boxFilter boxFilter.cpp -lUtilNPP$(LIBARCH) -lfreeimage$(FREEIMAGELIBARCH) $(LIB)
+
+ clean:
+ @rm -f boxFilter
+diff -ruN SDK.orig/samples/freeImageInterop/Makefile SDK/samples/freeImageInterop/Makefile
+--- SDK.orig/samples/freeImageInterop/Makefile 2010-09-17 20:26:32.000000000 +0200
++++ SDK/samples/freeImageInterop/Makefile 2011-05-14 19:59:21.000000000 +0200
+@@ -103,7 +103,7 @@
+ endif
+
+ all:
+- $(CXX) $(INC) $(LIB) -o freeImageInterop freeImageInterop.cpp -lUtilNPP$(LIBARCH) -lfreeimage$(FREEIMAGELIBARCH)
++ $(CXX) $(INC) -o freeImageInterop freeImageInterop.cpp -lUtilNPP$(LIBARCH) -lfreeimage$(FREEIMAGELIBARCH) $(LIB)
+
+ clean:
+ @rm -f freeImageInterop
+diff -ruN SDK.orig/samples/histEqualization/Makefile SDK/samples/histEqualization/Makefile
+--- SDK.orig/samples/histEqualization/Makefile 2010-09-17 22:05:24.000000000 +0200
++++ SDK/samples/histEqualization/Makefile 2011-05-14 20:00:23.000000000 +0200
+@@ -105,7 +105,7 @@
+
+
+ all:
+- $(CXX) $(INC) $(LIB) -o histEqualization histEqualization.cpp -lUtilNPP$(LIBARCH) -lfreeimage$(FREEIMAGELIBARCH)
++ $(CXX) $(INC) -o histEqualization histEqualization.cpp -lUtilNPP$(LIBARCH) -lfreeimage$(FREEIMAGELIBARCH) $(LIB)
+
+ clean:
+ @rm -f histEqualization
diff --git a/dev-util/nvidia-cuda-npp/metadata.xml b/dev-util/nvidia-cuda-npp/metadata.xml
new file mode 100644
index 000000000000..ee61ca45bb2a
--- /dev/null
+++ b/dev-util/nvidia-cuda-npp/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>dilfridge@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
+
diff --git a/dev-util/nvidia-cuda-npp/nvidia-cuda-npp-3.2.ebuild b/dev-util/nvidia-cuda-npp/nvidia-cuda-npp-3.2.ebuild
new file mode 100644
index 000000000000..13ed9d674201
--- /dev/null
+++ b/dev-util/nvidia-cuda-npp/nvidia-cuda-npp-3.2.ebuild
@@ -0,0 +1,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
+}