public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-libs/phat/, media-libs/phat/files/
@ 2016-02-04 20:23 David Seifert
  0 siblings, 0 replies; 2+ messages in thread
From: David Seifert @ 2016-02-04 20:23 UTC (permalink / raw
  To: gentoo-commits

commit:     381859713aa94bc36e5e4dffe65671e4f3f3adf5
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  4 19:35:02 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Feb  4 20:22:47 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38185971

media-libs/phat: Fix underlinking with x11-libs/libX11

* EAPI=6
* Change SRC_URI and HOMEPAGE (Gentoo-Bug: 537756)
* Add missing dev-util/gtk-doc for autoreconf

Package-Manager: portage-2.2.27

 .../phat/files/phat-0.4.1-underlinking.patch       | 27 ++++++++++++++
 media-libs/phat/phat-0.4.1-r1.ebuild               | 43 ++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/media-libs/phat/files/phat-0.4.1-underlinking.patch b/media-libs/phat/files/phat-0.4.1-underlinking.patch
new file mode 100644
index 0000000..d841cd0
--- /dev/null
+++ b/media-libs/phat/files/phat-0.4.1-underlinking.patch
@@ -0,0 +1,27 @@
+- Remove hardcoded CFLAGS and -Werror flags
+- Fix underlinking caused by missing x11 dependency:
+* ../phat/.libs/libphat.so: error: undefined reference to 'XWarpPointer'
+
+--- phat-0.4.1/configure.ac
++++ phat-0.4.1/configure.ac
+@@ -17,7 +17,6 @@
+     [if test x$enable_debug = xyes; then with_debug=yes ; fi])
+ 
+ if test x$with_debug = xno; then
+-    CFLAGS="-O3"
+     AC_DEFINE(DEBUG, 0, [[whether to display debugging output or not]])
+ else
+     AC_DEFINE(DEBUG, 1, [[whether to display debugging output or not]])
+@@ -46,10 +45,10 @@
+ GTK_DOC_CHECK(1.0)
+ 
+ # misc checks
+-PKG_CHECK_MODULES(MISC, libgnomecanvas-2.0)
++PKG_CHECK_MODULES(MISC, libgnomecanvas-2.0 x11)
+ 
+ # set compilation flags
+-CFLAGS="$CFLAGS $GTK_CFLAGS $MISC_CFLAGS -Wall -Werror"
++CFLAGS="$CFLAGS $GTK_CFLAGS $MISC_CFLAGS -Wall"
+ LIBS="$LIBS $GTK_LIBS $MISC_LIBS"
+ 
+ # print build summary

diff --git a/media-libs/phat/phat-0.4.1-r1.ebuild b/media-libs/phat/phat-0.4.1-r1.ebuild
new file mode 100644
index 0000000..cabb3f3
--- /dev/null
+++ b/media-libs/phat/phat-0.4.1-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools eutils
+
+DESCRIPTION="PHAT is a collection of GTK+ widgets geared toward pro-audio apps"
+HOMEPAGE="https://sourceforge.net/projects/phat.berlios/"
+SRC_URI="mirror://sourceforge/phat.berlios/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="debug"
+
+RDEPEND="x11-libs/gtk+:2
+	x11-libs/libX11
+	gnome-base/libgnomecanvas"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig
+	dev-util/gtk-doc"
+
+PATCHES=(
+	"${FILESDIR}/${P}-underlinking.patch"
+)
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+		--disable-static \
+		$(use_enable debug)
+}
+
+src_install() {
+	default
+	prune_libtool_files --all
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: media-libs/phat/, media-libs/phat/files/
@ 2022-01-13  6:02 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2022-01-13  6:02 UTC (permalink / raw
  To: gentoo-commits

commit:     832c88a650fc794fd5105723656f8dee55488cf8
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 13 06:02:22 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jan 13 06:02:28 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=832c88a6

media-libs/phat: update EAPI 6 -> 8, build with lld

Was underlinking libm for e.g. exp().

Closes: https://bugs.gentoo.org/740162
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../phat/files/phat-0.4.1-libm-underlinking.patch  | 16 ++++++++
 media-libs/phat/phat-0.4.1-r2.ebuild               | 43 ++++++++++++++++++++++
 2 files changed, 59 insertions(+)

diff --git a/media-libs/phat/files/phat-0.4.1-libm-underlinking.patch b/media-libs/phat/files/phat-0.4.1-libm-underlinking.patch
new file mode 100644
index 000000000000..f6e55b9fa18b
--- /dev/null
+++ b/media-libs/phat/files/phat-0.4.1-libm-underlinking.patch
@@ -0,0 +1,16 @@
+From: Sam James <sam@gentoo.org>
+Date: Thu, 13 Jan 2022 06:00:11 +0000
+Subject: [PATCH] Fix underlinking against libm
+
+Bug: https://bugs.gentoo.org/740162
+--- a/configure.ac
++++ b/configure.ac
+@@ -47,6 +47,8 @@ GTK_DOC_CHECK(1.0)
+ # misc checks
+ PKG_CHECK_MODULES(MISC, libgnomecanvas-2.0 x11)
+ 
++AC_SEARCH_LIBS(exp, m)
++
+ # set compilation flags
+ CFLAGS="$CFLAGS $GTK_CFLAGS $MISC_CFLAGS -Wall"
+ LIBS="$LIBS $GTK_LIBS $MISC_LIBS"

diff --git a/media-libs/phat/phat-0.4.1-r2.ebuild b/media-libs/phat/phat-0.4.1-r2.ebuild
new file mode 100644
index 000000000000..206b47e5d396
--- /dev/null
+++ b/media-libs/phat/phat-0.4.1-r2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="PHAT is a collection of GTK+ widgets geared toward pro-audio apps"
+HOMEPAGE="https://sourceforge.net/projects/phat.berlios/"
+SRC_URI="mirror://sourceforge/phat.berlios/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="debug"
+
+RDEPEND="gnome-base/libgnomecanvas
+	x11-libs/gtk+:2
+	x11-libs/libX11"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-util/gtk-doc
+	virtual/pkgconfig"
+
+PATCHES=(
+	"${FILESDIR}/${P}-underlinking.patch"
+	"${FILESDIR}/${P}-libm-underlinking.patch"
+)
+
+src_prepare() {
+	default
+
+	eautoreconf
+}
+
+src_configure() {
+	econf $(use_enable debug)
+}
+
+src_install() {
+	default
+
+	find "${ED}" -name '*.la' -delete || die
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-13  6:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-13  6:02 [gentoo-commits] repo/gentoo:master commit in: media-libs/phat/, media-libs/phat/files/ Sam James
  -- strict thread matches above, loose matches on Subject: below --
2016-02-04 20:23 David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox