diff options
author | Kacper Kowalik <xarthisius@gentoo.org> | 2016-02-12 16:43:17 -0600 |
---|---|---|
committer | Kacper Kowalik <xarthisius@gentoo.org> | 2016-02-12 16:43:17 -0600 |
commit | 31291e49771f2376b4fdafd44a3846fd7fcc622f (patch) | |
tree | ac831645144c632c5a97896022988b256b4c8d42 /media-libs/embree | |
parent | dev-python/keyring: bup (diff) | |
download | gentoo-31291e49771f2376b4fdafd44a3846fd7fcc622f.tar.gz gentoo-31291e49771f2376b4fdafd44a3846fd7fcc622f.tar.bz2 gentoo-31291e49771f2376b4fdafd44a3846fd7fcc622f.zip |
media-libs/embree: Initial import, ebuild written by me.
Package-Manager: portage-2.2.27
Diffstat (limited to 'media-libs/embree')
-rw-r--r-- | media-libs/embree/Manifest | 1 | ||||
-rw-r--r-- | media-libs/embree/embree-2.8.0.ebuild | 60 | ||||
-rw-r--r-- | media-libs/embree/metadata.xml | 15 |
3 files changed, 76 insertions, 0 deletions
diff --git a/media-libs/embree/Manifest b/media-libs/embree/Manifest new file mode 100644 index 000000000000..d6f46d9a81ac --- /dev/null +++ b/media-libs/embree/Manifest @@ -0,0 +1 @@ +DIST embree-2.8.0.tar.gz 1728824 SHA256 5d070241141161d7ec46fcc7fb9998226738c37e1c4a16b93420dba7d9068b81 SHA512 df9e9a66a8f5972bf22eb7d03d8d6cd17f06a10105f7f42cb6866d76cd203c94496df808558e9aad8b407e7e7d962c0f543d49cd86784f877206654414f3d162 WHIRLPOOL 9685a525d4ee9788ddce3f5e6e20729f619484790e412d22e8e58aac825ad70dbb825b48bf515f10ca8e1c330899fa565912cc4aefe2844c9ec8dea22387ac68 diff --git a/media-libs/embree/embree-2.8.0.ebuild b/media-libs/embree/embree-2.8.0.ebuild new file mode 100644 index 000000000000..6f6926dd376b --- /dev/null +++ b/media-libs/embree/embree-2.8.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +inherit cmake-utils multilib toolchain-funcs flag-o-matic + +DESCRIPTION="Collection of high-performance ray tracing kernels" +HOMEPAGE="https://embree.github.io" +SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="imagemagick ispc jpeg openexr png static-libs" + +RDEPEND="dev-cpp/tbb + media-libs/freeglut + imagemagick? ( + || ( media-gfx/imagemagick[cxx] media-gfx/graphicsmagick[cxx] ) + ) + ispc? ( dev-lang/ispc ) + jpeg? ( virtual/jpeg:0 ) + openexr? ( media-libs/openexr ) + png? ( media-libs/libpng:0 )" +DEPEND="${RDEPEND}" + +src_prepare() { + filter-flags "-march=*" + sed -e "s:PREFIX}/lib:PREFIX}/$(get_libdir):g" \ + -e "s:lib/cmake:$(get_libdir)/cmake:g" \ + -e "/LICENSE.txt/d" \ + -e "/DIRECTORY tutorials/d" \ + -i common/cmake/package.cmake || die + sed -e "s/gcc/$(tc-getCC)/" \ + -e "s/g++/$(tc-getCXX)/" \ + -e "s/-fPIC/${CXXFLAGS} &/" \ + -i common/cmake/gcc.cmake || die + sed -e "/COMPONENT lib/ s/\(DESTINATION \)lib/\1$(get_libdir)/g" \ + -i kernels/xeon/CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DENABLE_TUTORIALS=OFF + $(cmake-utils_use_enable static-libs STATIC_LIB) + $(cmake-utils_use_enable ispc ISPC_SUPPORT) + $(cmake-utils_use_use jpeg LIBJPEG) + $(cmake-utils_use_use png LIBPNG) + $(cmake-utils_use_use imagemagick IMAGE_MAGICK) + $(cmake-utils_use_use openexr OPENEXR) + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so +} diff --git a/media-libs/embree/metadata.xml b/media-libs/embree/metadata.xml new file mode 100644 index 000000000000..b4dc96f8ab86 --- /dev/null +++ b/media-libs/embree/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>xarthisius@gentoo.org</email> + <name>Kacper Kowalik</name> + </maintainer> + <use> + <flag name="ispc">Enables support for the Intel SPMD Program Compiler.</flag> + <flag name="imagemagick">Enables BMP, GIF, PNG, TGA, TIFF image codecs.</flag> + <flag name="png">Enables PNG image codecs.</flag> + <flag name="jpeg">Enables JPEG image codecs.</flag> + <flag name="openexr">Enables OpenEXR image codecs.</flag> + </use> +</pkgmetadata> |