* [gentoo-commits] repo/gentoo:master commit in: media-gfx/flam3/, media-gfx/flam3/files/
@ 2021-06-03 21:11 Sam James
0 siblings, 0 replies; only message in thread
From: Sam James @ 2021-06-03 21:11 UTC (permalink / raw
To: gentoo-commits
commit: 3d369c261af7d3961d396701baae3f8a63f37f4f
Author: orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Thu May 27 01:08:47 2021 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 3 21:10:58 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d369c26
media-gfx/flam3: Fix for slibtool
Upstream-PR: https://github.com/scottdraves/flam3/pull/33
Closes: https://bugs.gentoo.org/779001
Signed-off-by: orbea <orbea <AT> riseup.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
media-gfx/flam3/files/flam3-3.1.1-slibtool.patch | 53 ++++++++++++++++++++++++
media-gfx/flam3/flam3-3.1.1.ebuild | 6 ++-
2 files changed, 57 insertions(+), 2 deletions(-)
diff --git a/media-gfx/flam3/files/flam3-3.1.1-slibtool.patch b/media-gfx/flam3/files/flam3-3.1.1-slibtool.patch
new file mode 100644
index 00000000000..084c1ba7782
--- /dev/null
+++ b/media-gfx/flam3/files/flam3-3.1.1-slibtool.patch
@@ -0,0 +1,53 @@
+From 78ea170715b57bbde0275447dbcc8b20a926b05d Mon Sep 17 00:00:00 2001
+From: orbea <orbea@riseup.net>
+Date: Sun, 28 Mar 2021 13:15:53 -0700
+Subject: [PATCH] build: Fix undefined libm references.
+
+---
+ Makefile.am | 11 ++++++-----
+ configure.ac | 2 ++
+ 2 files changed, 8 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index c3d0f42..78954e8 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -11,19 +11,20 @@ lib_LTLIBRARIES = libflam3.la
+ include_HEADERS = flam3.h isaac.h isaacs.h rect.c
+
+ libflam3_la_SOURCES = flam3.c filters.c parser.c variations.c interpolation.c palettes.c jpeg.c png.c isaac.c
+-libflam3_la_LDFLAGS = -no-undefined -ljpeg -lpng -lz -lpthread
++libflam3_la_LDFLAGS = -no-undefined
++libflam3_la_LIBADD = -ljpeg -lpng -lz -lpthread $(LIBM)
+
+ flam3_genome_SOURCES = flam3-genome.c docstring.c
+-flam3_genome_LDADD = libflam3.la -lm
++flam3_genome_LDADD = libflam3.la
+
+ flam3_animate_SOURCES = flam3-animate.c docstring.c
+-flam3_animate_LDADD = libflam3.la -lm
++flam3_animate_LDADD = libflam3.la
+
+ flam3_render_SOURCES = flam3-render.c docstring.c
+-flam3_render_LDADD = libflam3.la -lm
++flam3_render_LDADD = libflam3.la
+
+ flam3_convert_SOURCES = flam3-convert.c docstring.c
+-flam3_convert_LDADD = libflam3.la -lm
++flam3_convert_LDADD = libflam3.la
+
+ pkgdata_DATA = flam3-palettes.xml
+
+diff --git a/configure.ac b/configure.ac
+index c427bb5..f7f4839 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -28,6 +28,8 @@ AC_CHECK_LIB([z],[deflateInit_],,[AC_MSG_ERROR([zlib is required.])])
+ AC_CHECK_LIB([png],[png_write_image],,[AC_MSG_ERROR([The png library is required.])])
+ AC_CHECK_LIB([xml2],[xmlParseFile],,[AC_MSG_ERROR([The xml2 library is required.])])
+
++AC_CHECK_LIBM
++AC_SUBST([LIBM])
+
+ if test "${enable_atomic_ops}" = "" ; then
+ enable_atomic_ops=yes
diff --git a/media-gfx/flam3/flam3-3.1.1.ebuild b/media-gfx/flam3/flam3-3.1.1.ebuild
index 6a111b72cfe..98af333a4fa 100644
--- a/media-gfx/flam3/flam3-3.1.1.ebuild
+++ b/media-gfx/flam3/flam3-3.1.1.ebuild
@@ -1,7 +1,7 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
inherit autotools
DESCRIPTION="Tools and a library for creating flame fractal images"
@@ -21,9 +21,11 @@ DEPEND="${RDEPEND}"
DOCS=( README.txt )
+PATCHES=( "${FILESDIR}"/${P}-slibtool.patch )
+
src_prepare() {
+ default
eautoreconf
- eapply_user
}
src_configure() {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-03 21:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-03 21:11 [gentoo-commits] repo/gentoo:master commit in: media-gfx/flam3/, media-gfx/flam3/files/ Sam James
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox