commit: 39d7c63b9cf79d9858905e1fef8e4a26328877d8 Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> AuthorDate: Thu Sep 17 09:46:15 2015 +0000 Commit: Jauhien Piatlicki <jauhien <AT> gentoo <DOT> org> CommitDate: Thu Sep 17 09:48:46 2015 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=39d7c63b
sci-visualization/forge: New package, ebuild written by me Package-Manager: portage-2.2.20.1 sci-visualization/forge/ChangeLog | 11 +++++ .../forge/files/forge-3.1-find-glm.patch | 32 +++++++++++++++ sci-visualization/forge/forge-3.1.ebuild | 48 ++++++++++++++++++++++ sci-visualization/forge/forge-9999.ebuild | 44 ++++++++++++++++++++ sci-visualization/forge/metadata.xml | 16 ++++++++ 5 files changed, 151 insertions(+) diff --git a/sci-visualization/forge/ChangeLog b/sci-visualization/forge/ChangeLog new file mode 100644 index 0000000..c467aba --- /dev/null +++ b/sci-visualization/forge/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sci-visualization/forge +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Id$ + +*forge-3.1 (17 Sep 2015) +*forge-9999 (17 Sep 2015) + + 17 Sep 2015; Marius Brehler <mar...@linux.sungazer.de> + +files/forge-3.1-find-glm.patch, +forge-3.1.ebuild, +forge-9999.ebuild, + +metadata.xml: + sci-visualization/forge: New package, ebuild written by me diff --git a/sci-visualization/forge/files/forge-3.1-find-glm.patch b/sci-visualization/forge/files/forge-3.1-find-glm.patch new file mode 100644 index 0000000..d353539 --- /dev/null +++ b/sci-visualization/forge/files/forge-3.1-find-glm.patch @@ -0,0 +1,32 @@ +From 25f7da5af693288f56897f772fbb6f89ab710197 Mon Sep 17 00:00:00 2001 +From: Marius Brehler <marius.breh...@tu-dortmund.de> +Date: Wed, 16 Sep 2015 17:37:56 +0200 +Subject: [PATCH] find_package GLM or glm (>=glm-0.9.7.0). Fixes #49. + +--- + src/CMakeLists.txt | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 5681e32..87cb3b0 100755 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -1,7 +1,14 @@ + CMAKE_MINIMUM_REQUIRED(VERSION 2.8) + + IF(USE_SYSTEM_GLM) +- FIND_PACKAGE(GLM REQUIRED) ++ # Prior to GLM 0.9.7.0, the package is found by the FindGLM.cmake module. ++ # This was removed with GLM 0.9.7.0, instead a glm-config.cmake configuration ++ # file is provided. Therefore, both FIND_PACKAGE calls are necessary. ++ FIND_PACKAGE(GLM QUIET) ++ FIND_PACKAGE(glm QUIET) ++ IF(NOT glm_FOUND AND NOT GLM_FOUND) ++ MESSAGE(FATAL_ERROR "GLM Not Found") ++ ENDIF() + ELSE(USE_SYSTEM_GLM) + INCLUDE("${CMAKE_MODULE_PATH}/build_glm.cmake") + ENDIF(USE_SYSTEM_GLM) +-- +2.4.6 + diff --git a/sci-visualization/forge/forge-3.1.ebuild b/sci-visualization/forge/forge-3.1.ebuild new file mode 100644 index 0000000..a1e79ed --- /dev/null +++ b/sci-visualization/forge/forge-3.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils + +DESCRIPTION="High Performance Visualizations for ArrayFire" +HOMEPAGE="http://www.arrayfire.com/" +SRC_URI="https://github.com/arrayfire/${PN}/archive/af${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +LICENSE="BSD" +SLOT="0" +IUSE="examples" + +RDEPEND=" + media-libs/glew + >=media-libs/glfw-3.1.1 + media-libs/freetype:2 + media-libs/fontconfig:1.0 + media-libs/glm + virtual/opengl + " +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${PN}-af${PV}" + +PATCHES=( "${FILESDIR}/${P}"-find-glm.patch ) + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ) ; then + die "Compilation with gcc older than 4.7 is not supported." + fi + fi +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_build examples EXAMPLES) + -DUSE_SYSTEM_GLM=ON + -DUSE_SYSTEM_FREETYPE=ON + ) + cmake-utils_src_configure +} + diff --git a/sci-visualization/forge/forge-9999.ebuild b/sci-visualization/forge/forge-9999.ebuild new file mode 100644 index 0000000..a3358e3 --- /dev/null +++ b/sci-visualization/forge/forge-9999.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit cmake-utils git-r3 + +DESCRIPTION="High Performance Visualizations for ArrayFire" +HOMEPAGE="http://www.arrayfire.com/" +EGIT_REPO_URI="https://github.com/arrayfire/${PN}.git git://github.com/arrayfire/${PN}.git" +KEYWORDS="" + +LICENSE="BSD" +SLOT="0" +IUSE="examples" + +RDEPEND=" + media-libs/glew + >=media-libs/glfw-3.1.1 + media-libs/freetype:2 + media-libs/fontconfig:1.0 + media-libs/glm + virtual/opengl + " +DEPEND="${RDEPEND}" + +pkg_pretend() { + if [[ ${MERGE_TYPE} != binary ]]; then + if [[ $(gcc-major-version) -lt 4 ]] || ( [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]] ) ; then + die "Compilation with gcc older than 4.7 is not supported." + fi + fi +} + +src_configure() { + local mycmakeargs=( + $(cmake-utils_use_build examples EXAMPLES) + -DUSE_SYSTEM_GLM=ON + -DUSE_SYSTEM_FREETYPE=ON + ) + cmake-utils_src_configure +} + diff --git a/sci-visualization/forge/metadata.xml b/sci-visualization/forge/metadata.xml new file mode 100644 index 0000000..58cc3ca --- /dev/null +++ b/sci-visualization/forge/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>sci</herd> + <maintainer> + <email>mar...@linux.sungazer.de</email> + <name>Marius Brehler</name> + </maintainer> + <longdescription> + A prototype of the OpenGL interop library that can be used with + ArrayFire. The goal of Forge is to provide high performance OpenGL + visualizations for C/C++ applications that use CUDA/OpenCL. Forge + uses OpenGL >=3.3 forward compatible contexts, so please make sure + you have capable hardware before trying it out. + </longdescription> +</pkgmetadata>