summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-02-12 21:51:55 +0000
committerSam James <sam@gentoo.org>2022-02-15 19:50:20 +0000
commit150ec563107000945dfc9b1e6042c577a1ad0de0 (patch)
treed29dd281ee9a9928e92726364a36b14325bcc107 /media-gfx/mandelbulber
parentmedia-gfx/gmic: support OpenEXR 3 / imath (diff)
downloadgentoo-150ec563107000945dfc9b1e6042c577a1ad0de0.tar.gz
gentoo-150ec563107000945dfc9b1e6042c577a1ad0de0.tar.bz2
gentoo-150ec563107000945dfc9b1e6042c577a1ad0de0.zip
media-gfx/mandelbulber: support OpenEXR 3 / imath
Bug: https://bugs.gentoo.org/833158 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx/mandelbulber')
-rw-r--r--media-gfx/mandelbulber/files/mandelbulber-2.26-openexr-3-imath.patch32
-rw-r--r--media-gfx/mandelbulber/mandelbulber-2.26-r1.ebuild97
2 files changed, 129 insertions, 0 deletions
diff --git a/media-gfx/mandelbulber/files/mandelbulber-2.26-openexr-3-imath.patch b/media-gfx/mandelbulber/files/mandelbulber-2.26-openexr-3-imath.patch
new file mode 100644
index 000000000000..372b3e655536
--- /dev/null
+++ b/media-gfx/mandelbulber/files/mandelbulber-2.26-openexr-3-imath.patch
@@ -0,0 +1,32 @@
+https://github.com/buddhi1980/mandelbulber2/commit/4a90075d2ea3e7e3f1dd3430e6ba22b42d97b234.patch
+
+Slightly rebased.
+
+From 4a90075d2ea3e7e3f1dd3430e6ba22b42d97b234 Mon Sep 17 00:00:00 2001
+From: cagelight <cagelight@gmail.com>
+Date: Sat, 22 Jan 2022 00:13:52 -0500
+Subject: [PATCH] Upgrade build files for linking with OpenEXR 3
+
+---
+ mandelbulber2/qmake/common.pri | 7 +++----
+ 2 files changed, 6 insertions(+), 8 deletions(-)
+
+diff --git a/mandelbulber2/qmake/common.pri b/mandelbulber2/qmake/common.pri
+index 2e579c5c1..17242e702 100644
+--- a/makefiles/common.pri
++++ b/makefiles/common.pri
+@@ -26,11 +26,10 @@ qtHaveModule(gamepad){
+ message("Use QtGamepad module")
+ }
+
+-packagesExist(IlmBase){
+- PKGCONFIG += IlmBase
+- LIBS += -lIlmImf -lHalf
++packagesExist(OpenEXR){
++ PKGCONFIG += OpenEXR
+ DEFINES += USE_EXR
+- message("Use IlmBase library for EXR files")
++ message("Use OpenEXR libraries for EXR files")
+ }
+
+ packagesExist(libtiff-4){
diff --git a/media-gfx/mandelbulber/mandelbulber-2.26-r1.ebuild b/media-gfx/mandelbulber/mandelbulber-2.26-r1.ebuild
new file mode 100644
index 000000000000..ae58d3bf6c72
--- /dev/null
+++ b/media-gfx/mandelbulber/mandelbulber-2.26-r1.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_P="${PN}2-${PV}"
+inherit desktop qmake-utils toolchain-funcs xdg-utils
+
+DESCRIPTION="Tool to render 3D fractals"
+HOMEPAGE="https://www.mandelbulber.com"
+SRC_URI="https://github.com/buddhi1980/${PN}2/releases/download/${PV}/${MY_P}.tar.gz mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="CC-BY-4.0 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="joystick opencl openexr sndfile tiff"
+
+BDEPEND="
+ virtual/pkgconfig
+"
+RDEPEND="
+ dev-libs/lzo
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtmultimedia:5
+ dev-qt/qtnetwork:5
+ dev-qt/qttest:5
+ dev-qt/qtwidgets:5
+ media-libs/libpng:0=
+ sci-libs/gsl:=
+ joystick? ( dev-qt/qtgamepad:5 )
+ opencl? (
+ dev-libs/clhpp
+ virtual/opencl
+ )
+ openexr? (
+ dev-libs/imath:=
+ media-libs/openexr:=
+ )
+ sndfile? ( media-libs/libsndfile )
+ tiff? ( media-libs/tiff:0 )
+"
+DEPEND="${RDEPEND}
+ dev-qt/designer:5
+"
+
+S=${WORKDIR}/${MY_P}
+
+PATCHES=(
+ "${FILESDIR}"/${P}-openexr-3-imath.patch
+)
+
+pkg_pretend() {
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+}
+
+pkg_setup() {
+ [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
+}
+
+src_prepare() {
+ default
+
+ use joystick || sed -i -e "s/qtHaveModule(gamepad)/false/" makefiles/common.pri || die
+ use openexr || sed -i -e "s/packagesExist(OpenEXR)/false/" makefiles/common.pri || die
+ use sndfile || sed -i -e "s/packagesExist(sndfile)/false/" makefiles/common.pri || die
+ use tiff || sed -i -e "s/packagesExist(libtiff-4)/false/" makefiles/common.pri || die
+}
+
+src_configure() {
+ if use opencl; then
+ eqmake5 makefiles/${PN}-opencl.pro
+ else
+ eqmake5 makefiles/${PN}.pro
+ fi
+}
+
+src_install() {
+ dobin ${PN}2
+
+ dodoc README NEWS usr/share/doc/${PN}2/Mandelbulber_Manual.pdf
+
+ insinto /usr/share/${PN}2
+ doins -r usr/share/${PN}2/*
+
+ domenu ${PN}2.desktop
+
+ newicon -s 256 qt/icons/${PN}.png ${PN}2.png
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}