diff options
author | 2014-11-16 01:21:38 +0300 | |
---|---|---|
committer | 2014-11-16 01:21:38 +0300 | |
commit | a4187f0ae94473acc4d21bbcd56f148bb8e27824 (patch) | |
tree | 425dbb88ce8dd0d40832ff80201c2c1614bcef80 | |
parent | Update ebuild to multilib support (diff) | |
download | alexxy-a4187f0ae94473acc4d21bbcd56f148bb8e27824.tar.gz alexxy-a4187f0ae94473acc4d21bbcd56f148bb8e27824.tar.bz2 alexxy-a4187f0ae94473acc4d21bbcd56f148bb8e27824.zip |
Add beignet
Package-Manager: portage-2.2.14
-rw-r--r-- | dev-libs/intel-beignet/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/intel-beignet/intel-beignet-1.0.0.ebuild | 68 | ||||
-rw-r--r-- | dev-libs/intel-beignet/intel-beignet-9999.ebuild | 68 | ||||
-rw-r--r-- | dev-libs/intel-beignet/metadata.xml | 8 |
4 files changed, 145 insertions, 0 deletions
diff --git a/dev-libs/intel-beignet/Manifest b/dev-libs/intel-beignet/Manifest new file mode 100644 index 0000000..de095ae --- /dev/null +++ b/dev-libs/intel-beignet/Manifest @@ -0,0 +1 @@ +DIST intel-beignet-1.0.0.tar.gz 827800 SHA256 e30c4d0f4c8917fa0df2467b2d70a4ee524f28d54c42c582262d5f08928ea543 SHA512 5a2f4734315d67847e64173f33cc7625a1f808ff845a73d9c782a13d3934e2126b3191e34e1066bb5c7340f6d92efec9e9303fcda9106707a3e301f7e0f4ea5e WHIRLPOOL efefd0fe175a313bcb9e0e0624ac403e4a677d4a8fd54895b2cb15211d556763a9cb650687169f377ca3f2942e263ecec3e72d03beb1edf920543fae6a895199 diff --git a/dev-libs/intel-beignet/intel-beignet-1.0.0.ebuild b/dev-libs/intel-beignet/intel-beignet-1.0.0.ebuild new file mode 100644 index 0000000..bd54e34 --- /dev/null +++ b/dev-libs/intel-beignet/intel-beignet-1.0.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit python-any-r1 cmake-utils +CMAKE_BUILD_TYPE="Release" + +DESCRIPTION="The Beignet GPGPU System for Intel Ivybridge GPUs" +HOMEPAGE="http://wiki.freedesktop.org/www/Software/Beignet/" + +LICENSE="GPL-2" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="git://anongit.freedesktop.org/beignet" + KEYWORDS="" +else + KEYWORDS="~amd64 ~x86" + SRC_URI="https://01.org/sites/default/files/${P/intel-/}-source.tar.gz -> ${P}.tar.gz" + S=${WORKDIR}/Beignet-${PV}-Source +fi + +DEPEND=">=sys-devel/gcc-4.6 + ${PYTHON_DEPS}" +RDEPEND="app-admin/eselect-opencl + media-libs/mesa + sys-devel/clang + >=sys-devel/llvm-3.3 + x11-libs/libdrm + x11-libs/libXext + x11-libs/libXfixes" + +pkg_setup() { + python_setup +} +IBEIGNET_DIR=/usr/$(get_libdir)/OpenCL/vendors/intel-beignet + +src_prepare() { + # disable tests for now + sed -i "s/ADD_SUBDIRECTORY(utests)/#ADD_SUBDIRECTORY(utests)/" CMakeLists.txt || die "sed failed" + + echo "${IBEIGNET_DIR}/lib/beignet/libcl.so" > intelbeignet.icd + cmake-utils_src_prepare +} +src_configure() { + + local mycmakeargs=( -DCMAKE_INSTALL_PREFIX="${IBEIGNET_DIR}/" ) + + cmake-utils_src_configure +} +src_install() { + cmake-utils_src_install + + insinto /etc/OpenCL/vendors/ + doins intelbeignet.icd + + dodoc -r docs + + dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libOpenCL.so.1 + dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libOpenCL.so + dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libcl.so.1 + dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libcl.so +} diff --git a/dev-libs/intel-beignet/intel-beignet-9999.ebuild b/dev-libs/intel-beignet/intel-beignet-9999.ebuild new file mode 100644 index 0000000..bd54e34 --- /dev/null +++ b/dev-libs/intel-beignet/intel-beignet-9999.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit python-any-r1 cmake-utils +CMAKE_BUILD_TYPE="Release" + +DESCRIPTION="The Beignet GPGPU System for Intel Ivybridge GPUs" +HOMEPAGE="http://wiki.freedesktop.org/www/Software/Beignet/" + +LICENSE="GPL-2" +SLOT="0" + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="git://anongit.freedesktop.org/beignet" + KEYWORDS="" +else + KEYWORDS="~amd64 ~x86" + SRC_URI="https://01.org/sites/default/files/${P/intel-/}-source.tar.gz -> ${P}.tar.gz" + S=${WORKDIR}/Beignet-${PV}-Source +fi + +DEPEND=">=sys-devel/gcc-4.6 + ${PYTHON_DEPS}" +RDEPEND="app-admin/eselect-opencl + media-libs/mesa + sys-devel/clang + >=sys-devel/llvm-3.3 + x11-libs/libdrm + x11-libs/libXext + x11-libs/libXfixes" + +pkg_setup() { + python_setup +} +IBEIGNET_DIR=/usr/$(get_libdir)/OpenCL/vendors/intel-beignet + +src_prepare() { + # disable tests for now + sed -i "s/ADD_SUBDIRECTORY(utests)/#ADD_SUBDIRECTORY(utests)/" CMakeLists.txt || die "sed failed" + + echo "${IBEIGNET_DIR}/lib/beignet/libcl.so" > intelbeignet.icd + cmake-utils_src_prepare +} +src_configure() { + + local mycmakeargs=( -DCMAKE_INSTALL_PREFIX="${IBEIGNET_DIR}/" ) + + cmake-utils_src_configure +} +src_install() { + cmake-utils_src_install + + insinto /etc/OpenCL/vendors/ + doins intelbeignet.icd + + dodoc -r docs + + dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libOpenCL.so.1 + dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libOpenCL.so + dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libcl.so.1 + dosym lib/beignet/libcl.so "${IBEIGNET_DIR}"/libcl.so +} diff --git a/dev-libs/intel-beignet/metadata.xml b/dev-libs/intel-beignet/metadata.xml new file mode 100644 index 0000000..bfcb697 --- /dev/null +++ b/dev-libs/intel-beignet/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>mrueg@gentoo.org</email> + <name>Manuel Rüger</name> + </maintainer> +</pkgmetadata> |