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
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')
-rw-r--r--media-plugins/ir_lv2/ChangeLog10
-rw-r--r--media-plugins/ir_lv2/files/ir_lv2-1.1-makefile.patch48
-rw-r--r--media-plugins/ir_lv2/ir_lv2-1.1.ebuild39
-rw-r--r--media-plugins/ir_lv2/metadata.xml5
4 files changed, 102 insertions, 0 deletions
diff --git a/media-plugins/ir_lv2/ChangeLog b/media-plugins/ir_lv2/ChangeLog
new file mode 100644
index 000000000000..77d151c702d5
--- /dev/null
+++ b/media-plugins/ir_lv2/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-plugins/ir_lv2
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/ir_lv2/ChangeLog,v 1.1 2011/01/24 11:55:39 aballier Exp $
+
+*ir_lv2-1.1 (24 Jan 2011)
+
+ 24 Jan 2011; Alexis Ballier <aballier@gentoo.org> +ir_lv2-1.1.ebuild,
+ +files/ir_lv2-1.1-makefile.patch, +metadata.xml:
+ initial import, ebuild by me
+
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)
diff --git a/media-plugins/ir_lv2/ir_lv2-1.1.ebuild b/media-plugins/ir_lv2/ir_lv2-1.1.ebuild
new file mode 100644
index 000000000000..b9809247e949
--- /dev/null
+++ b/media-plugins/ir_lv2/ir_lv2-1.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/ir_lv2/ir_lv2-1.1.ebuild,v 1.1 2011/01/24 11:55:39 aballier Exp $
+
+EAPI=3
+
+inherit base toolchain-funcs flag-o-matic multilib
+
+MY_P="${P/_/.}"
+DESCRIPTION="LV2 convolver plugin especially for creating reverb effects"
+HOMEPAGE="http://factorial.hu/plugins/lv2/ir"
+SRC_URI="http://factorial.hu/system/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND="media-libs/zita-convolver
+ x11-libs/gtk+:2
+ media-libs/libsndfile
+ media-libs/libsamplerate"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${PN/_/.}
+
+PATCHES=( "${FILESDIR}/${P}-makefile.patch" )
+
+src_compile() {
+ tc-export CC CXX
+ append-cxxflags -fPIC
+ emake || die
+}
+
+src_install() {
+ emake INSTDIR="${D}/usr/$(get_libdir)/lv2/ir.lv2" install || die
+ dodoc README ChangeLog || die
+}
diff --git a/media-plugins/ir_lv2/metadata.xml b/media-plugins/ir_lv2/metadata.xml
new file mode 100644
index 000000000000..0dc3775f83d7
--- /dev/null
+++ b/media-plugins/ir_lv2/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proaudio</herd>
+</pkgmetadata>