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

commit:     29a386375d3ad67151ace74d595e1ce9f4cf2417
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  4 20:22:24 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Feb  4 20:22:49 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29a38637

media-sound/specimen: Add $PTHREAD_CFLAGS to $LIBS to prevent underlinking

Gentoo-Bug: 561562
* EAPI=6

Package-Manager: portage-2.2.27

 .../files/specimen-0.5.2_rc3-underlinking.patch    | 48 +++++++++++++-------
 media-sound/specimen/specimen-0.5.2_rc3-r2.ebuild  | 52 ++++++++++++++++++++++
 2 files changed, 83 insertions(+), 17 deletions(-)

diff --git a/media-sound/specimen/files/specimen-0.5.2_rc3-underlinking.patch b/media-sound/specimen/files/specimen-0.5.2_rc3-underlinking.patch
index 6267d7a..db0df85 100644
--- a/media-sound/specimen/files/specimen-0.5.2_rc3-underlinking.patch
+++ b/media-sound/specimen/files/specimen-0.5.2_rc3-underlinking.patch
@@ -1,5 +1,11 @@
---- configure.ac
-+++ configure.ac
+* Remove hardcoded CFLAGS
+* Fix underlinking issues
+  - missing -lm linkage (sin)
+  - missing -pthread linkage
+    -> https://bugs.gentoo.org/show_bug.cgi?id=561562
+
+--- specimen-0.5.2-rc3/configure.ac
++++ specimen-0.5.2-rc3/configure.ac
 @@ -1,10 +1,10 @@
  # -*- autoconf -*-
  # Process this file with autoconf to produce a configure script.
@@ -22,7 +28,7 @@
 -if test x$with_debug = xno; then
 -    CFLAGS="-O3"
 -else
-+if test x$with_debug != xno; then
++if test x$with_debug = xyes; then
      AC_DEFINE(DEBUG, 1, [[whether to display debugging output or not]])
  fi
  
@@ -45,21 +51,18 @@
  config_error="no"
  
  # gtk			   
-
---- src/Makefile.am
-+++ src/Makefile.am
-@@ -11,7 +11,7 @@
- specimen_SOURCES += lashdriver.c lashdriver.h                                                                                                                           
- endif
+@@ -122,7 +121,8 @@
+   fi
+ fi
  
--INCLUDES = \
-+AM_CPPFLAGS = \
- 	@ALSA_CFLAGS@ \
- 	@JACK_CFLAGS@ \
- 	@LIBSAMPLERATE_CFLAGS@ \
-
---- src/gui/Makefile.am
-+++ src/gui/Makefile.am
+-CC="$PTHREAD_CC"
++CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
++LIBS="$LIBS $PTHREAD_CFLAGS"
+ 
+ # print build summary
+ AC_CONFIG_COMMANDS_POST([
+--- specimen-0.5.2-rc3/src/gui/Makefile.am
++++ specimen-0.5.2-rc3/src/gui/Makefile.am
 @@ -12,14 +12,14 @@
  paramselector.c paramselector.h patchlist.c patchlist.h midisection.c	\
  midisection.h channelsection.c channelsection.h
@@ -77,3 +80,14 @@
  endif
  
  libgui_a_CFLAGS = $(CFLAGS) -I.. -DINSTALLDIR=\"$(datadir)\"
+--- specimen-0.5.2-rc3/src/Makefile.am
++++ specimen-0.5.2-rc3/src/Makefile.am
+@@ -11,7 +11,7 @@
+ specimen_SOURCES += lashdriver.c lashdriver.h                                                                                                                           
+ endif
+ 
+-INCLUDES = \
++AM_CPPFLAGS = \
+ 	@ALSA_CFLAGS@ \
+ 	@JACK_CFLAGS@ \
+ 	@LIBSAMPLERATE_CFLAGS@ \

diff --git a/media-sound/specimen/specimen-0.5.2_rc3-r2.ebuild b/media-sound/specimen/specimen-0.5.2_rc3-r2.ebuild
new file mode 100644
index 0000000..d344339
--- /dev/null
+++ b/media-sound/specimen/specimen-0.5.2_rc3-r2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools versionator
+
+MY_PV="$(replace_version_separator 3 -)"
+
+DESCRIPTION="A Midi Controllable Audio Sampler"
+HOMEPAGE="http://zhevny.com/specimen"
+SRC_URI="http://zhevny.com/${PN}/files/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="lash"
+
+RDEPEND=">=media-sound/jack-audio-connection-kit-0.109.2
+	>=media-libs/alsa-lib-0.9
+	media-libs/libsamplerate
+	media-libs/libsndfile
+	>=media-libs/phat-0.4
+	dev-libs/libxml2:2
+	x11-libs/gtk+:2
+	gnome-base/libgnomecanvas
+	lash? ( media-sound/lash )"
+DEPEND="${RDEPEND}
+	virtual/pkgconfig"
+
+PATCHES=(
+	"${FILESDIR}/${P}-jackmidi.patch"
+	"${FILESDIR}/${P}-underlinking.patch"
+)
+S="${WORKDIR}"/${PN}-${MY_PV}
+
+src_prepare() {
+	default
+	eautoreconf
+}
+
+src_configure() {
+	econf \
+		$(use_enable lash)
+}
+
+src_install() {
+	default
+	doicon pixmaps/${PN}.png
+	make_desktop_entry ${PN} Specimen ${PN}
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-02-04 20:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-04 20:23 [gentoo-commits] repo/gentoo:master commit in: media-sound/specimen/, media-sound/specimen/files/ David Seifert

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