summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-08-21 02:53:34 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-08-21 02:53:34 +0000
commit966c17963f01cd3a7cdcb69a76a9923abb3a6dae (patch)
tree8b4ed86ce052a4bbd21464aa727c5d3156660276 /media-sound
parentBump the experimental binary package. Fixes bug #333269 by Mike Gilbert <flop... (diff)
downloadgentoo-2-966c17963f01cd3a7cdcb69a76a9923abb3a6dae.tar.gz
gentoo-2-966c17963f01cd3a7cdcb69a76a9923abb3a6dae.tar.bz2
gentoo-2-966c17963f01cd3a7cdcb69a76a9923abb3a6dae.zip
Respect LDFLAGS wrt #333727 by Diego E. Pettenò.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/freebirth/ChangeLog6
-rw-r--r--media-sound/freebirth/files/freebirth-0.3.2-gentoo-2.patch61
-rw-r--r--media-sound/freebirth/freebirth-0.3.2-r1.ebuild25
3 files changed, 57 insertions, 35 deletions
diff --git a/media-sound/freebirth/ChangeLog b/media-sound/freebirth/ChangeLog
index c4e748fa8d65..37798ea50adf 100644
--- a/media-sound/freebirth/ChangeLog
+++ b/media-sound/freebirth/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-sound/freebirth
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/freebirth/ChangeLog,v 1.17 2010/06/12 20:12:07 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/freebirth/ChangeLog,v 1.18 2010/08/21 02:53:34 ssuominen Exp $
+
+ 21 Aug 2010; Samuli Suominen <ssuominen@gentoo.org>
+ freebirth-0.3.2-r1.ebuild, files/freebirth-0.3.2-gentoo-2.patch:
+ Respect LDFLAGS wrt #333727 by Diego E. Pettenò.
12 Jun 2010; Alexis Ballier <aballier@gentoo.org>
freebirth-0.3.2-r1.ebuild, +files/freebirth-0.3.2-segfault.patch:
diff --git a/media-sound/freebirth/files/freebirth-0.3.2-gentoo-2.patch b/media-sound/freebirth/files/freebirth-0.3.2-gentoo-2.patch
index 081e8ce74709..52b184b04b2f 100644
--- a/media-sound/freebirth/files/freebirth-0.3.2-gentoo-2.patch
+++ b/media-sound/freebirth/files/freebirth-0.3.2-gentoo-2.patch
@@ -1,6 +1,5 @@
-diff -ur freebirth-0.3.2.orig/freebirth.c freebirth-0.3.2/freebirth.c
---- freebirth-0.3.2.orig/freebirth.c 2000-01-13 20:42:26.000000000 +0200
-+++ freebirth-0.3.2/freebirth.c 2007-07-24 17:36:41.000000000 +0300
+--- freebirth.c
++++ freebirth.c
@@ -248,15 +248,15 @@
//bass_e = env_new(1025,10000,(sample_producer *)osc_blender);
sl = g_slist_append(sl, bass_e);
@@ -40,9 +39,8 @@ diff -ur freebirth-0.3.2.orig/freebirth.c freebirth-0.3.2/freebirth.c
gtk_window_set_title(GTK_WINDOW (sample_freq_window), "Sample Pitch");
sample_freq_box = gtk_vbox_new(TRUE,10);
gtk_widget_set_style(sample_freq_window,window_style);
-diff -ur freebirth-0.3.2.orig/fuse_loops.c freebirth-0.3.2/fuse_loops.c
---- freebirth-0.3.2.orig/fuse_loops.c 1999-02-27 04:02:23.000000000 +0200
-+++ freebirth-0.3.2/fuse_loops.c 2007-07-24 17:36:41.000000000 +0300
+--- fuse_loops.c
++++ fuse_loops.c
@@ -122,7 +122,18 @@
fprintf(file, "/* generated file -- don't edit */\n");
fprintf(file, "#include <unistd.h>\n");
@@ -72,9 +70,8 @@ diff -ur freebirth-0.3.2.orig/fuse_loops.c freebirth-0.3.2/fuse_loops.c
fprintf(file, " write(fd, buffer, 2 * TBASS_BUFF_SIZE * sizeof(short));\n");
fprintf(file, "\n");
-diff -ur freebirth-0.3.2.orig/gtkdial.c freebirth-0.3.2/gtkdial.c
---- freebirth-0.3.2.orig/gtkdial.c 1999-02-16 01:58:31.000000000 +0200
-+++ freebirth-0.3.2/gtkdial.c 2007-07-24 17:36:41.000000000 +0300
+--- gtkdial.c
++++ gtkdial.c
@@ -75,8 +75,6 @@
sizeof (GtkDialClass),
(GtkClassInitFunc) gtk_dial_class_init,
@@ -84,25 +81,44 @@ diff -ur freebirth-0.3.2.orig/gtkdial.c freebirth-0.3.2/gtkdial.c
};
dial_type = gtk_type_unique (gtk_widget_get_type (), &dial_info);
-diff -ur freebirth-0.3.2.orig/Makefile freebirth-0.3.2/Makefile
---- freebirth-0.3.2.orig/Makefile 2000-01-13 01:37:14.000000000 +0200
-+++ freebirth-0.3.2/Makefile 2007-07-24 17:36:41.000000000 +0300
-@@ -2,9 +2,9 @@
+--- Makefile
++++ Makefile
+@@ -1,10 +1,9 @@
+ # Makefile for Freebirth
#
- CC=gcc
+-CC=gcc
-LOADLIBES=-lm $(shell gtk-config --libs)
-CFLAGS=-g -O6 -Wall $(shell gtk-config --cflags)
-LDFLAGS=
-+LOADLIBES=-lm -L/usr/lib -lgtk-x11-2.0
-+CFLAGS=-g -Wall $(shell pkg-config --cflags gtk+-2.0)
-+LDFLAGS=$(shell pkg-config --libs gtk+-2.0)
++CC?=gcc
++CFLAGS+=-Wall $(shell pkg-config --cflags gtk+-2.0)
++LIBS=-lm $(shell pkg-config --libs gtk+-2.0)
OFILES=\
oscillator.o sequencer.o envelope.o filter.o gtkdial.o mixer.o \
-diff -ur freebirth-0.3.2.orig/raw_wave.c freebirth-0.3.2/raw_wave.c
---- freebirth-0.3.2.orig/raw_wave.c 2000-01-13 01:40:33.000000000 +0200
-+++ freebirth-0.3.2/raw_wave.c 2007-07-24 17:36:41.000000000 +0300
+@@ -22,16 +21,18 @@
+ -rm -f *.o freebirth fusebirth fused_loop.c Makefile.deps *~
+
+ freebirth: $(OFILES) fused_loop.o freebirth.o
++ $(CC) $(LDFLAGS) $(CFLAGS) -o freebirth $(OFILES) fused_loop.o freebirth.o $(LIBS)
+
+ fused_loop.c: fusebirth
+ ./fusebirth > fused_loop.c 2>/dev/null
+
+ fusebirth: $(OFILES) fuse_loops.o fusebirth.o
++ $(CC) $(LDFLAGS) $(CFLAGS) -o fusebirth $(OFILES) fuse_loops.o fusebirth.o $(LIBS)
+
+ fusebirth.o: freebirth.c
+ $(CC) -c $(CFLAGS) -DFUSE_LOOPS -o fusebirth.o freebirth.c
+
+ Makefile.deps:
+- gcc -MM $(CFLAGS) $(CFILES) > Makefile.deps
++ $(CC) -MM $(CFLAGS) $(CFILES) > Makefile.deps
+
+ include Makefile.deps
+--- raw_wave.c
++++ raw_wave.c
@@ -21,18 +21,36 @@
#include "raw_wave.h"
#include <stdio.h>
@@ -185,9 +201,8 @@ diff -ur freebirth-0.3.2.orig/raw_wave.c freebirth-0.3.2/raw_wave.c
raw_wave_set_sample_file(out, filename);
out->buffer = (sample *)malloc(sizeof(sample) * TBASS_BUFF_SIZE);
-diff -ur freebirth-0.3.2.orig/raw_wave.h freebirth-0.3.2/raw_wave.h
---- freebirth-0.3.2.orig/raw_wave.h 2000-01-13 20:44:05.000000000 +0200
-+++ freebirth-0.3.2/raw_wave.h 2007-07-24 17:41:14.000000000 +0300
+--- raw_wave.h
++++ raw_wave.h
@@ -62,7 +62,7 @@
event *event_pitch_change_new(int seq_handle, double pitch);
diff --git a/media-sound/freebirth/freebirth-0.3.2-r1.ebuild b/media-sound/freebirth/freebirth-0.3.2-r1.ebuild
index 7bccd851ddb9..7cdb2413fe81 100644
--- a/media-sound/freebirth/freebirth-0.3.2-r1.ebuild
+++ b/media-sound/freebirth/freebirth-0.3.2-r1.ebuild
@@ -1,7 +1,8 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/freebirth/freebirth-0.3.2-r1.ebuild,v 1.9 2010/06/12 20:12:07 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/freebirth/freebirth-0.3.2-r1.ebuild,v 1.10 2010/08/21 02:53:34 ssuominen Exp $
+EAPI=2
inherit eutils toolchain-funcs
DESCRIPTION="Free software bass synthesizer step sequencer"
@@ -13,26 +14,28 @@ SLOT="0"
KEYWORDS="amd64 ~ppc sparc x86"
IUSE=""
-RDEPEND=">=x11-libs/gtk+-2"
+RDEPEND="x11-libs/gtk+:2"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-gentoo-2.patch
- epatch "${FILESDIR}"/${P}-segfault.patch
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gentoo-2.patch \
+ "${FILESDIR}"/${P}-segfault.patch
}
src_compile() {
- emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} $(pkg-config --cflags gtk+-2.0)" || die "emake failed."
+ tc-export CC
+ emake || die
}
src_install() {
- dobin ${PN}
+ dobin ${PN} || die
+
insinto /usr/share/${PN}/raw
- doins raw/*.raw
+ doins raw/*.raw || die
+
dodoc CHANGES NEXT_VERSION README
+
doicon xpm/${PN}.xpm
- make_desktop_entry ${PN} ${PN} ${PN}
+ make_desktop_entry ${PN} ${PN}
}