summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2011-01-24 11:55:39 +0000
committerAlexis Ballier <aballier@gentoo.org>2011-01-24 11:55:39 +0000
commitd0963bf9a69013e78cb0b9cdbf82f4ce280e734a (patch)
tree058a9aa39ea85fab951ead08481d613c3639f918 /media-plugins/ir_lv2/files
parentinitial import, ebuild by me (diff)
downloadgentoo-2-d0963bf9a69013e78cb0b9cdbf82f4ce280e734a.tar.gz
gentoo-2-d0963bf9a69013e78cb0b9cdbf82f4ce280e734a.tar.bz2
gentoo-2-d0963bf9a69013e78cb0b9cdbf82f4ce280e734a.zip
initial import, ebuild by me
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'media-plugins/ir_lv2/files')
-rw-r--r--media-plugins/ir_lv2/files/ir_lv2-1.1-makefile.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/media-plugins/ir_lv2/files/ir_lv2-1.1-makefile.patch b/media-plugins/ir_lv2/files/ir_lv2-1.1-makefile.patch
new file mode 100644
index 000000000000..ffe320663e24
--- /dev/null
+++ b/media-plugins/ir_lv2/files/ir_lv2-1.1-makefile.patch
@@ -0,0 +1,48 @@
+Index: ir.lv2/Makefile
+===================================================================
+--- ir.lv2.orig/Makefile
++++ ir.lv2/Makefile
+@@ -10,7 +10,7 @@ INSTDIR = $(PREFIX)/lib/lv2/ir.lv2
+ INST_FILES = ir.so ir_gui.so ir.ttl manifest.ttl
+
+ # change "-O2 -ffast-math" to "-g -O0" below if you want to debug the plugin
+-CPPFLAGS += -Wall -I. -I/usr/include `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gthread-2.0` -D__STDC_FORMAT_MACROS -O2 -ffast-math
++CPPFLAGS += -Wall -I. -I/usr/include `pkg-config --cflags gtk+-2.0` `pkg-config --cflags gthread-2.0` -D__STDC_FORMAT_MACROS
+ LIBS += -lc -lm -lzita-convolver -lsamplerate -lsndfile `pkg-config --libs gthread-2.0` `pkg-config --libs gtk+-2.0`
+
+ ifeq ($(shell pkg-config --atleast-version='2.20' gtk+-2.0; echo $$?), 0)
+@@ -23,31 +23,25 @@ C4LIBS = -lsndfile `pkg-config --libs gt
+ all: ir.so ir_gui.so
+
+ ir.o: ir.cc ir.h ir_utils.h
+- g++ ir.cc $(CPPFLAGS) -c -fPIC -o ir.o
+
+ ir_gui.o: ir_gui.cc ir.h ir_utils.h ir_wavedisplay.h
+- g++ ir_gui.cc $(CPPFLAGS) -c -fPIC -o ir_gui.o
+
+ ir_utils.o: ir_utils.cc ir_utils.h ir.h
+- g++ ir_utils.cc $(CPPFLAGS) -c -fPIC -o ir_utils.o
+
+ ir_meter.o: ir_meter.cc ir_meter.h ir.h ir_utils.h
+- g++ ir_meter.cc $(CPPFLAGS) -c -fPIC -o ir_meter.o
+
+ ir_modeind.o: ir_modeind.cc ir_modeind.h ir.h ir_utils.h
+- g++ ir_modeind.cc $(CPPFLAGS) -c -fPIC -o ir_modeind.o
+
+ ir_wavedisplay.o: ir_wavedisplay.cc ir_wavedisplay.h ir.h ir_utils.h
+- g++ ir_wavedisplay.cc $(CPPFLAGS) -c -fPIC -o ir_wavedisplay.o
+
+ ir.so: ir.o ir_utils.o
+- g++ ir.o ir_utils.o $(LIBS) -shared -o ir.so
++ $(CXX) $(LDFLAGS) ir.o ir_utils.o $(LIBS) -shared -o ir.so
+
+ ir_gui.so: ir_gui.o ir_utils.o ir_meter.o ir_modeind.o ir_wavedisplay.o
+- g++ ir_gui.o ir_utils.o ir_meter.o ir_modeind.o ir_wavedisplay.o $(LIBS) -shared -o ir_gui.so
++ $(CXX) $(LDFLAGS) ir_gui.o ir_utils.o ir_meter.o ir_modeind.o ir_wavedisplay.o $(LIBS) -shared -o ir_gui.so
+
+ convert4chan: convert4chan.c
+- gcc $(C4CFLAGS) convert4chan.c $(C4LIBS) -o convert4chan
++ $(CC) $(C4CFLAGS) convert4chan.c $(C4LIBS) -o convert4chan
+
+ install: all
+ mkdir -p $(INSTDIR)