From 4615dd51d6be3284a01df50fd236abd2a43811c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Miroslav=20=C5=A0ulc?= Date: Tue, 26 May 2020 09:03:13 +0200 Subject: [PATCH] media-sound/jack_capture: updated patch for 9999 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/725116 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Miroslav Å ulc --- .../jack_capture-0.9.73-r1-Makefile.patch | 43 +++++++++++++++++++ .../jack_capture/jack_capture-9999.ebuild | 4 +- 2 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 media-sound/jack_capture/files/jack_capture-0.9.73-r1-Makefile.patch diff --git a/media-sound/jack_capture/files/jack_capture-0.9.73-r1-Makefile.patch b/media-sound/jack_capture/files/jack_capture-0.9.73-r1-Makefile.patch new file mode 100644 index 000000000000..c4909fbde8e3 --- /dev/null +++ b/media-sound/jack_capture/files/jack_capture-0.9.73-r1-Makefile.patch @@ -0,0 +1,43 @@ +diff --git a/Makefile b/Makefile +index 6e1fef9..d75ebfb 100644 +--- a/Makefile ++++ b/Makefile +@@ -3,16 +3,16 @@ bindir = $(PREFIX)/bin + + VERSION=0.9.73 + +-CC=gcc +-CPP=g++ ++CC ?= gcc ++CXX ?= g++ + + # Needed on OSX + CFLAGS += -I/opt/local/include + +-OPTIMIZE=-O3 ++#OPTIMIZE=-O3 + #OPTIMIZE=-O0 -g + +-COMPILEFLAGS=$(CFLAGS) $(OPTIMIZE) -DVERSION=\"$(VERSION)\" -Wall -Wextra -Wno-unused ++COMPILEFLAGS=$(CFLAGS) -DVERSION=\"$(VERSION)\" -Wall -Wextra -Wno-unused + LINKFLAGS=$(LDFLAGS) -ljack -lsndfile -lm -lpthread -latomic + + OS := $(shell uname) +@@ -41,7 +41,7 @@ check_dependencies: + which install + which pkg-config + which $(CC) +- which $(CPP) ++ which $(CXX) + $(CC) $(CFLAGS) -E testsndfile.c >/dev/null + @echo "All seems good " + @echo +@@ -64,7 +64,7 @@ jack_capture: setformat.c jack_capture.c vringbuffer.c upwaker.c osc.c Makefile + + + jack_capture_gui2: jack_capture_gui2.cpp +- $(CPP) $(CPPFLAGS) $(OPTIMIZE) jack_capture_gui2.cpp $(LDFLAGS) `pkg-config --libs --cflags gtk+-2.0` -o jack_capture_gui2 ++ $(CXX) $(CXXFLAGS) jack_capture_gui2.cpp $(LDFLAGS) `pkg-config --libs --cflags gtk+-2.0` -o jack_capture_gui2 + + config_flags: Makefile das_config.h + cat das_config.h |grep COMPILEFLAGS|sed s/\\/\\/COMPILEFLAGS//|tr '\n' ' ' >config_flags diff --git a/media-sound/jack_capture/jack_capture-9999.ebuild b/media-sound/jack_capture/jack_capture-9999.ebuild index d6cc0bd70915..f0073414466d 100644 --- a/media-sound/jack_capture/jack_capture-9999.ebuild +++ b/media-sound/jack_capture/jack_capture-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -25,7 +25,7 @@ RDEPEND="${CDEPEND}" DEPEND="${CDEPEND}" PATCHES=( - "${FILESDIR}/${PN}-0.9.73-Makefile.patch" + "${FILESDIR}/${PN}-0.9.73-r1-Makefile.patch" ) DOCS=( README config ) -- 2.26.2