[proaudio] [2256] media-plugins/distrho: new package with thanks to Tina Cochet

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 2256
Author:   gavlee
Date:     2012-11-01 17:05:06 +0100 (Thu, 01 Nov 2012)
Log Message:
-----------
media-plugins/distrho: new package with thanks to Tina Cochet

Added Paths:
-----------
    trunk/overlays/proaudio/media-plugins/distrho/
    trunk/overlays/proaudio/media-plugins/distrho/ChangeLog
    trunk/overlays/proaudio/media-plugins/distrho/Manifest
    trunk/overlays/proaudio/media-plugins/distrho/distrho-20120518.ebuild
    trunk/overlays/proaudio/media-plugins/distrho/files/
    trunk/overlays/proaudio/media-plugins/distrho/files/distrho-20120518-verbose-makefiles.patch
    trunk/overlays/proaudio/media-plugins/distrho/metadata.xml

Added: trunk/overlays/proaudio/media-plugins/distrho/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-plugins/distrho/ChangeLog	                        (rev 0)
+++ trunk/overlays/proaudio/media-plugins/distrho/ChangeLog	2012-11-01 16:05:06 UTC (rev 2256)
@@ -0,0 +1,15 @@
+# ChangeLog for media-plugins/distrho
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*distrho-20120518 (01 Nov 2012)
+
+  01 Nov 2012; Gavin Pryke (gavlee) <gavinlee303@xxxxxxxxxxxxxx>
+  +distrho-20120518.ebuild, +files/distrho-20120518-verbose-makefiles.patch,
+  +metadata.xml:
+  Initial import. Attempted to merge my ebuild and the one created thanks to
+  Tina Cochet. Added patch for verbose makefiles and tried to sed out the
+  forced compiler flags and stripping. premake dep forced to 3.7 as this is
+  the only premake version that I could get distrho to build with, see bug
+  #435744. Big source package so no doubt needs more review/testing.
+

Added: trunk/overlays/proaudio/media-plugins/distrho/Manifest
===================================================================
--- trunk/overlays/proaudio/media-plugins/distrho/Manifest	                        (rev 0)
+++ trunk/overlays/proaudio/media-plugins/distrho/Manifest	2012-11-01 16:05:06 UTC (rev 2256)
@@ -0,0 +1,6 @@
+AUX distrho-20120518-verbose-makefiles.patch 569 SHA256 50ef90a3364d0f6c3e890fb94ad5ab854df746e08ddaeb5efbf06dced066ac27 SHA512 3400cb63d4e170e176b6071fb6113294ea78c84fee5cb3f24eb17b563c6d1a169f87ced5db76c0bd7646b4e267330978595691d882ae1ae2f7adc22a4cd97672 WHIRLPOOL 4e50e229187970634fc0d70cd3ea6a978884589a418af5c82ae991f2ea5e93a678f25b477adf6596f6b45943e65ba0213bdab4e27559ef597a20ded9d3aa2ecd
+DIST distrho-20120518.tar.bz2 31998710 SHA256 49777790a09367ff492f18c511ff1e9bbcd94a9f45645d26cdbc958104475476 SHA512 f23921eede871c98862366fb8b80305575ea3582b85ba5b794bec0de02f76f6fe5b3336da3e537f17ee91644b31c0994724642cdae8609541c6391b64eea9a46 WHIRLPOOL 5b5fba83eebfcd14ffd846b3016ca2ec591ed9c14b1f3f3a8ff71b92a4315f51e02268ccccab7e52bcde2a81f81b148395a7832acaf0da59dc49e03b48fc5e1a
+DIST distrho_20120518-0~precise2.debian.tar.gz 6728 SHA256 9bf697357f5fae7c151c655f7fc87ef2f0c98178208e988340bf4261d5e9384c SHA512 62dd73aa6d0a8d2e2a81b661e45d3d07e5f2607099724db52557926762149441076445654424bca485ce47e8ab1a96ef407279ed7e41d66a9356286a3fb8c3dc WHIRLPOOL 67e94c3ff23f1d033bf91166f4e1833bfc6aa34bfcdbd3a15f8fe3ffd93489152cbf99080c63d689dad6bc67de61df71c1be76859c904de50a4afa7ed527a85b
+EBUILD distrho-20120518.ebuild 2164 SHA256 3fb4997192b3cecf7dc67710e93071877cb05fd13faa1662cdefd6d65054386e SHA512 0e36c13630f58e79bf6c0139bd13c072a6660dc928f57572f37a9bb02e7e208d60dcadd4a58257bd8574484ea56c3ff3795fdfbac360d96cffa7b976ea829553 WHIRLPOOL 3adada27962de5e1f6e7357ef1341c7cb57f139252e80d2ded333292be8cb374b16191690ac1cabefc1196d919c725b14f68741e7eee401927e8aa129327c8b8
+MISC ChangeLog 686 SHA256 09d3c94315da7b5b2270d436cfa088b24655dc81b3f49c05202829a39805930b SHA512 b499214320c4a017c586bc5b150447035b77dd934a2d84cf185ef0f8ec1ff54730f67ea3d777e91381bdebec0bd814944acb338425b0ed88f9bdb861f47e3d4d WHIRLPOOL 5942143551c8afec190c5ca913ad79c569a084a8c37c8c90cfb8bccd75a6defca7ff11fee66e0d33e28b952304d91bff01dc75ac564adffcda9a86a51a7e0155
+MISC metadata.xml 400 SHA256 cc080022307ab7de64d00186f0afde4d0e1818f2b7169a6f495d39f84544fc72 SHA512 af40ccea865dacdfe62e6438acf392bc98fce82749c8818333dd0783dad3a18b619a368fe5f7d8dc8f36395e194fafa61005a0e635009e5fefb34ef2f8df24d9 WHIRLPOOL a166b05d164e9311b456e0cbb7a978e32df60b9ca7cdddac3044c9e62278875569c69affc2cd33b82029bc9cdd5323e70aa6da4138e7ad90ebda828053fbd2dd

Added: trunk/overlays/proaudio/media-plugins/distrho/distrho-20120518.ebuild
===================================================================
--- trunk/overlays/proaudio/media-plugins/distrho/distrho-20120518.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-plugins/distrho/distrho-20120518.ebuild	2012-11-01 16:05:06 UTC (rev 2256)
@@ -0,0 +1,90 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+inherit base multilib toolchain-funcs
+
+DESCRIPTION="Open-source project that provides Cross-Platform Audio Plugins using Juce and Qt4"
+HOMEPAGE="http://distrho.sourceforge.net/";
+SRC_URI="mirror://sourceforge/${PN}/Source/${P}.tar.bz2
+https://launchpad.net/~kxstudio-team/+archive/plugins/+files/${PN}_${PV}-0~precise2.debian.tar.gz";
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="lv2 standalone"
+REQUIRED_USE="|| ( lv2 standalone )"
+
+RDEPEND="media-libs/alsa-lib
+	media-sound/jack-audio-connection-kit
+	sci-libs/fftw:3.0
+	x11-libs/libX11
+	x11-libs/libXext
+	x11-libs/qt-core:4
+	x11-libs/qt-gui:4"
+DEPEND="${RDEPEND}
+	=dev-util/premake-3.7
+	virtual/pkgconfig"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+	# kxstudio patches
+	epatch "${WORKDIR}"/debian/patches/*.patch
+
+	# turn on verbose Makefile generation so we can see compiler and flags used
+	epatch "${FILESDIR}"/${P}-verbose-makefiles.patch
+
+	base_src_prepare
+
+	# FIXME: try to remove forced compiler flags and prevent stripping
+	find . -type f -name premake.lua \
+		-exec sed -i -e "s/-O2//g" -e "s/-O3//g" \
+		-e "s/-mtune=generic//g" -e "s/-msse//g" \
+		-e "s/-fomit-frame-pointer//g" \
+		-e "s/\"no-symbols\",//g" -e "s/\"optimize-speed\"//g" '{}' \; || die
+}
+
+src_configure() {
+	./scripts/premake-update.sh linux || die
+}
+
+src_compile() {
+	tc-export CC CXX
+
+	use standalone && base_src_make standalone
+
+	if use lv2; then
+		base_src_make lv2
+
+		# work around failure generating HybridReverb2.lv2 ttl files
+		mkdir -p bin/lv2/HybridReverb2.lv2/ || die
+		cp "${WORKDIR}"/debian/HybridReverb2.lv2/*.ttl \
+			bin/lv2/HybridReverb2.lv2/ || die
+
+		base_src_make gen
+	fi
+
+	#use vst && base_src_make vst
+}
+
+src_install() {
+	use standalone && dobin bin/standalone/*
+
+	if use lv2; then
+		insinto /usr/$(get_libdir)/lv2
+		doins -r bin/lv2/*.lv2
+	fi
+
+	#if use vst; then
+	#	exeinto /usr/$(get_libdir)/vst
+	#	doexe bin/vst/*
+	#fi
+
+	insinto /etc/HybridReverb2
+	doins ports/hybridreverb2/data/HybridReverb2.conf
+
+	insinto /usr/share
+	doins -r ports/hybridreverb2/data/HybridReverb2
+}

Added: trunk/overlays/proaudio/media-plugins/distrho/files/distrho-20120518-verbose-makefiles.patch
===================================================================
--- trunk/overlays/proaudio/media-plugins/distrho/files/distrho-20120518-verbose-makefiles.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-plugins/distrho/files/distrho-20120518-verbose-makefiles.patch	2012-11-01 16:05:06 UTC (rev 2256)
@@ -0,0 +1,13 @@
+--- scripts/premake-update.sh.orig	2012-10-28 19:27:50.847236231 +0000
++++ scripts/premake-update.sh	2012-10-28 19:34:23.801184788 +0000
+@@ -42,8 +42,8 @@
+ 
+   if [ $LINUX = 1 ]; then
+ 
+-    echo premake --os linux --target gnu --cc gcc
+-    premake --os linux --target gnu --cc gcc
++    echo premake --verbose --os linux --target gnu --cc gcc
++    premake --verbose --os linux --target gnu --cc gcc
+ 
+     echo sed \""s/\\\$(LDFLAGS)/\\\$(LDFLAGS) \\\$(LDFLAGS)/\"" -i `find . -name \*.make`
+     sed "s/\$(LDFLAGS)/\$(LDFLAGS) \$(LDFLAGS)/" -i `find . -name \*.make`

Added: trunk/overlays/proaudio/media-plugins/distrho/metadata.xml
===================================================================
--- trunk/overlays/proaudio/media-plugins/distrho/metadata.xml	                        (rev 0)
+++ trunk/overlays/proaudio/media-plugins/distrho/metadata.xml	2012-11-01 16:05:06 UTC (rev 2256)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+	<maintainer>
+		<email>proaudio@xxxxxxxxxxxxx</email>
+		<name>pro-audio overlay team</name>
+	</maintainer>
+	<use>
+		<flag name="lv2">Build and install lv2 plugin bundles</flag>	
+		<flag name="standalone">Build and install standalone JACK plugins</flag>
+	</use>
+</pkgmetadata>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/