summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-01-22 18:57:00 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-01-22 18:57:00 +0000
commit437ee71ae19b3a19486a8c9bbff83a604e22cc8b (patch)
tree3eff64ddc1e57c363cd53b8a719a5f09156712b8 /media-sound/hydrogen
parentsparc stable (diff)
downloadgentoo-2-437ee71ae19b3a19486a8c9bbff83a604e22cc8b.tar.gz
gentoo-2-437ee71ae19b3a19486a8c9bbff83a604e22cc8b.tar.bz2
gentoo-2-437ee71ae19b3a19486a8c9bbff83a604e22cc8b.zip
old
(Portage version: 2.2_rc61/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/hydrogen')
-rw-r--r--media-sound/hydrogen/Manifest11
-rw-r--r--media-sound/hydrogen/files/0.9.1-OSS.patch36
-rw-r--r--media-sound/hydrogen/files/hydrogen-0.9.2-configure.in.patch36
-rw-r--r--media-sound/hydrogen/files/hydrogen-0.9.3-automagic.patch21
-rw-r--r--media-sound/hydrogen/files/hydrogen-0.9.3-desktop-noexec.patch13
-rw-r--r--media-sound/hydrogen/files/hydrogen-0.9.3-flac113.patch45
-rw-r--r--media-sound/hydrogen/files/hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch11
-rw-r--r--media-sound/hydrogen/files/hydrogen-0.9.3-gcc43.patch75
-rw-r--r--media-sound/hydrogen/files/hydrogen-0.9.3-gcc43noalsa.patch12
-rw-r--r--media-sound/hydrogen/files/hydrogen-0.9.3-gcc44.patch20
-rw-r--r--media-sound/hydrogen/hydrogen-0.9.3-r4.ebuild100
11 files changed, 0 insertions, 380 deletions
diff --git a/media-sound/hydrogen/Manifest b/media-sound/hydrogen/Manifest
index 5baa1f1b5a5b..5181132da77d 100644
--- a/media-sound/hydrogen/Manifest
+++ b/media-sound/hydrogen/Manifest
@@ -1,15 +1,4 @@
-AUX 0.9.1-OSS.patch 995 RMD160 ab6d47d723b3ca262e65225bd04bf0fb1938108b SHA1 53ece944023dbd26cfa7ec5ae9e21a634082daa8 SHA256 8647ea8d0510f69292bb320d1206d2738e4be02fb34bfe1914d133ebf1638fd0
-AUX hydrogen-0.9.2-configure.in.patch 1346 RMD160 1dc980254521d44bf9413ae50fb61e4af2270ebe SHA1 98cbdd9934b47428622a2fb6ee3ea3857f973401 SHA256 c7c030d16087a2ec0b22f39181fc087e078c8cf0cf9d487b36f15c53e36b5be6
-AUX hydrogen-0.9.3-automagic.patch 751 RMD160 74d609894205b9edf52502ed9294c3f2485ac1de SHA1 281fc7cd9597dfd01e4abc6abffe2715b02d922c SHA256 0d63352c7269d07667735949f8be4637ec63a3b3bcdd46d2c764cb9d019721a7
-AUX hydrogen-0.9.3-desktop-noexec.patch 571 RMD160 55bdfa6c332d6a33241ae93bafcb20217273dbe4 SHA1 9731b76fd8264423d1f23e4cadce13a2903455a0 SHA256 345c929975b29e71b87588c2b43f6a57a55dbd6be0301c5cb308ca0ea14938de
-AUX hydrogen-0.9.3-flac113.patch 1065 RMD160 c49ee2d09aab98ea9f93639d86bc60e90fa595e0 SHA1 a4a034bab94b71f9d9dc9a546b05d9509a2411a0 SHA256 6c9024c257217d7b5cdcd8cfe50746274186435a82d1cda5d4bfd02a0ad70232
-AUX hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch 356 RMD160 0d45efab658cff07be032d36fc1523f373d0ef54 SHA1 b170e964748a42016e8f8d2b0fe058d0b3e758b9 SHA256 cc653b60dce63e709e318935790bd0f292edb6afb4114352cbcedc8573f085a4
-AUX hydrogen-0.9.3-gcc43.patch 2434 RMD160 3cae0403a3b41e52c593d94447ab5bfb8eadd131 SHA1 9d333eb4d4fe5e8b73b1cfbbc07db80b623bf479 SHA256 99093e4ed118353af79d1323f303cdd78e8a3b73b338584360183c7f3c1f488e
-AUX hydrogen-0.9.3-gcc43noalsa.patch 346 RMD160 99b3b287b912a207b834a49b39a7e004785489e9 SHA1 f98d51f15de1f25717e36c96780e05905933c1a2 SHA256 9ddf776a7d6627d2ce08d52ce7696a3f7a4802001064c974af0f085f48a95c98
-AUX hydrogen-0.9.3-gcc44.patch 602 RMD160 ff3690e5c5f9b783dd32b492f90766a3a36d1d92 SHA1 5cee2166883948a09ed3b4c77d0343d6b132edec SHA256 323287db15751c3846825871c37bfa06de7c754f20afa2c9cec7b0e3330a5c13
-DIST hydrogen-0.9.3.tar.gz 2771792 RMD160 224e7c99208f7e9ae8c70a6bab1a7c3b20d1eb56 SHA1 4c07d3d250922421182f0dd527965628588bcb4a SHA256 b570568b32a0be9ad2ef90538e3156de6a9c50d8dd5f2863d6955290d98c841a
DIST hydrogen-0.9.4.tar.gz 3808532 RMD160 9f1514462eaa756fe0a3e8fed3ff647a32ad033d SHA1 e988710f82af858c0c688cb1d1e19d789fca49ef SHA256 982b768b48e8402104949c64fac4d74d804f41b6ab1b90457711840da99685d7
-EBUILD hydrogen-0.9.3-r4.ebuild 2834 RMD160 7132f7af754d88d707f548feff72d232ee944fdf SHA1 17279ead3384d99b27b2fa55a05a111e740135ac SHA256 1e5d9ae93d13d02498894c80e25da70376b59b5d127f6c64475733fe31ec6122
EBUILD hydrogen-0.9.4.ebuild 1529 RMD160 a2c5e96f28031e6507a00156e4ab85b17d68ab31 SHA1 a41c12d3365be1b2050435e30aaf9c8e43566f85 SHA256 884db0b1194ae5e078d74c719636566767027a56a2d8682843708e71ad9fa9bf
MISC ChangeLog 14000 RMD160 80bb788e1dc7608179b18f3a34b2b8611e58b69f SHA1 ac890b199dfd7f3f234bbc4988cf1dc28f833432 SHA256 5cc429e236889408f88d8247f18fecef6a9f6d6dbbba27401f7ed82b47826b86
MISC metadata.xml 163 RMD160 c2b208c0913f8c5bd1148627b5c3c9e37b53060a SHA1 4195ac5ca8352b0f52be6ed92640e4365be5bf0d SHA256 39a67c65d2e7583b6ee9e20fcab1fd821e28c51134eb2f76a7fe0598a2c2b4cb
diff --git a/media-sound/hydrogen/files/0.9.1-OSS.patch b/media-sound/hydrogen/files/0.9.1-OSS.patch
deleted file mode 100644
index d47884187422..000000000000
--- a/media-sound/hydrogen/files/0.9.1-OSS.patch
+++ /dev/null
@@ -1,36 +0,0 @@
---- lib/drivers/OssDriver.cpp.bak 2005-05-07 20:13:45.000000000 -0400
-+++ lib/drivers/OssDriver.cpp 2005-05-07 20:16:06.000000000 -0400
-@@ -241,7 +241,9 @@
- // prepare the 2-channel array of short
- for (uint i = 0; i < (unsigned)oss_driver_bufferSize; i++) {
- audioBuffer[i * 2] = (short)(out_L[i] * 32768.0);
-+ be_swap_short(&audioBuffer[i * 2]);
- audioBuffer[i * 2 + 1] = (short)(out_R[i] * 32768.0);
-+ be_swap_short(&audioBuffer[i * 2 + 1]);
- }
-
- unsigned long written = ::write(fd, audioBuffer, size * 2);
-@@ -253,7 +255,13 @@
- }
-
-
-+void be_swap_short(short *s){
-+ unsigned char swap;
-
-+ swap = (char)(*s & 0xFF);
-+ *s = *s >> 8;
-+ *s = (swap << 8) | *s;
-+}
-
-
- int OssDriver::log2(int n) {
---- lib/drivers/OssDriver.h.bak 2005-05-07 20:28:24.000000000 -0400
-+++ lib/drivers/OssDriver.h 2005-05-07 20:29:09.000000000 -0400
-@@ -31,6 +31,7 @@
- // check if OSS support is enabled
- #ifdef OSS_SUPPORT
-
-+void be_swap_short(short *s);
-
- #ifdef __NetBSD__
- #include <soundcard.h>
diff --git a/media-sound/hydrogen/files/hydrogen-0.9.2-configure.in.patch b/media-sound/hydrogen/files/hydrogen-0.9.2-configure.in.patch
deleted file mode 100644
index c06ee8400f8b..000000000000
--- a/media-sound/hydrogen/files/hydrogen-0.9.2-configure.in.patch
+++ /dev/null
@@ -1,36 +0,0 @@
---- configure.in.orig 2006-05-07 04:59:45.000000000 +0300
-+++ configure.in 2006-05-07 05:28:24.000000000 +0300
-@@ -15,8 +15,8 @@
- -----------------------------------------------------------------
-
- "
--#ac_qmake_lflags="-static"
--#AC_SUBST(ac_qmake_lflags)
-+ac_qmake_lflags="${LDFLAGS}"
-+AC_SUBST(ac_qmake_lflags)
-
-
- # static build
-@@ -38,8 +38,9 @@
- AC_DEFINE_UNQUOTED(CONFIG_PREFIX, ["$ac_prefix"], [Default installation prefix.])
-
-
--AC_ARG_ENABLE(profile, [ --enable-profile enable profile info (default=no)], [useProfile="yes"], [useProfile="no"])
-+AC_ARG_ENABLE(profile, [ --enable-profile enable profile info (default=no)], [useProfile=$enableval])
- if test "x$useProfile" = "xyes"; then
-+ echo " * Profile mode enabled."
- ac_qmake_cflags="-pg"
- ac_qmake_cxxflags="-pg"
- ac_qmake_lflags="-pg"
-@@ -49,9 +50,9 @@
- fi
-
- dnl Enable debugging argument option.
--AC_ARG_ENABLE(debug, [ --enable-debug enable debugging (default=no)], [ac_debug="debug"], [ac_debug="release"])
-+AC_ARG_ENABLE(debug, [ --enable-debug enable debugging (default=no)], [debug_enabled=$enableval])
- AC_SUBST(ac_debug)
--if test "x$ac_debug" = "xdebug"; then
-+if test "x$ac_debug" = "xyes"; then
- AC_DEFINE(CONFIG_DEBUG, 1, [Define if debugging is enabled.])
- features_list="${features_list} (Debug)"
- echo " * Debug mode enabled."
diff --git a/media-sound/hydrogen/files/hydrogen-0.9.3-automagic.patch b/media-sound/hydrogen/files/hydrogen-0.9.3-automagic.patch
deleted file mode 100644
index 522c9bb79192..000000000000
--- a/media-sound/hydrogen/files/hydrogen-0.9.3-automagic.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-Index: hydrogen-0.9.3/configure.in
-===================================================================
---- hydrogen-0.9.3.orig/configure.in
-+++ hydrogen-0.9.3/configure.in
-@@ -368,6 +368,8 @@ echo ""
- echo "--- Checking for PortAudio -------------------------------------"
-
- portaudio_support=false
-+AC_ARG_ENABLE(portaudio, [ --disable-portaudio Compile without portaudio support], [want_portaudio=$enableval])
-+if test "x$want_portaudio" != "xno"; then
- AC_MSG_CHECKING([whether PORTAUDIOPATH environment variable is set])
- if test "x$PORTAUDIOPATH" = "x"; then
- AC_MSG_RESULT(PORTAUDIOPATH is not set. No PortAudio support.)
-@@ -390,6 +392,7 @@ fi
- echo "-----------------------------------------------------------------"
- echo ""
-
-+fi
-
-
-
diff --git a/media-sound/hydrogen/files/hydrogen-0.9.3-desktop-noexec.patch b/media-sound/hydrogen/files/hydrogen-0.9.3-desktop-noexec.patch
deleted file mode 100644
index abe15e331a6e..000000000000
--- a/media-sound/hydrogen/files/hydrogen-0.9.3-desktop-noexec.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Index: hydrogen-0.9.3/Makefile.in
-===================================================================
---- hydrogen-0.9.3.orig/Makefile.in
-+++ hydrogen-0.9.3/Makefile.in
-@@ -225,7 +225,7 @@ install:
- mkdir -p $(DESTDIR)$(prefix)/share/hydrogen/data/
- cp -R data $(DESTDIR)$(prefix)/share/hydrogen
- mkdir -p $(DESTDIR)$(prefix)/share/hydrogen/data/
-- @install -vD hydrogen.desktop $(DESTDIR)$(prefix)/share/applications/hydrogen.desktop
-+ @install -vD -m 644 hydrogen.desktop $(DESTDIR)$(prefix)/share/applications/hydrogen.desktop
- cd plugins;make install;cd ..
-
-
diff --git a/media-sound/hydrogen/files/hydrogen-0.9.3-flac113.patch b/media-sound/hydrogen/files/hydrogen-0.9.3-flac113.patch
deleted file mode 100644
index 29a263c26273..000000000000
--- a/media-sound/hydrogen/files/hydrogen-0.9.3-flac113.patch
+++ /dev/null
@@ -1,45 +0,0 @@
---- src/lib/FLACFile.cpp.old 2007-02-11 20:12:34.000000000 +0100
-+++ src/lib/FLACFile.cpp 2007-02-11 20:18:25.000000000 +0100
-@@ -33,6 +33,13 @@
- //#include "FLAC/file_decoder.h"
- #include <FLAC++/all.h>
-
-+#if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT < 8
-+#define LEGACY_FLAC
-+#else
-+#undef LEGACY_FLAC
-+#endif
-+
-+
- /// Reads a FLAC file...not optimized yet
- class FLACFile_real : public FLAC::Decoder::File, public Object
- {
-@@ -164,16 +171,28 @@
- }
-
- set_metadata_ignore_all();
-+
-+#ifdef LEGACY_FLAC
- set_filename( sFilename.c_str() );
-
- State s=init();
- if( s != FLAC__FILE_DECODER_OK ) {
-+#else
-+ FLAC__StreamDecoderInitStatus s=init(sFilename.c_str() );
-+ if(s!=FLAC__STREAM_DECODER_INIT_STATUS_OK) {
-+#endif
- errorLog( "[load] Error in init()" );
- }
-
-+#ifdef LEGACY_FLAC
- if ( process_until_end_of_file() == false ) {
- errorLog( "[load] Error in process_until_end_of_file()" );
- }
-+#else
-+ if ( process_until_end_of_stream() == false ) {
-+ errorLog( "[load] Error in process_until_end_of_stream()" );
-+ }
-+#endif
- }
-
-
diff --git a/media-sound/hydrogen/files/hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch b/media-sound/hydrogen/files/hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch
deleted file mode 100644
index e03d20fc0885..000000000000
--- a/media-sound/hydrogen/files/hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/lib/xml/tinyxml.h.orig 2006-05-13 00:39:24.000000000 +0300
-+++ src/lib/xml/tinyxml.h 2006-05-13 00:39:53.000000000 +0300
-@@ -823,7 +823,7 @@
- #endif
-
- /// Construct.
-- TiXmlDeclaration::TiXmlDeclaration( const char * _version,
-+ TiXmlDeclaration( const char * _version,
- const char * _encoding,
- const char * _standalone );
-
diff --git a/media-sound/hydrogen/files/hydrogen-0.9.3-gcc43.patch b/media-sound/hydrogen/files/hydrogen-0.9.3-gcc43.patch
deleted file mode 100644
index 6cfb40844d53..000000000000
--- a/media-sound/hydrogen/files/hydrogen-0.9.3-gcc43.patch
+++ /dev/null
@@ -1,75 +0,0 @@
-diff -NrU5 hydrogen-0.9.3.orig/src/gui/DrumkitManager.h hydrogen-0.9.3/src/gui/DrumkitManager.h
---- hydrogen-0.9.3.orig/src/gui/DrumkitManager.h 2008-04-19 16:48:03.000000000 +0200
-+++ hydrogen-0.9.3/src/gui/DrumkitManager.h 2008-04-19 16:48:46.000000000 +0200
-@@ -41,10 +41,11 @@
- #include <qtextedit.h>
- #include <qtimer.h>
- #include <qwidget.h>
-
- #include <vector>
-+#include <cstdlib>
-
- #include "UI/DrumkitManager_UI.h"
- #include "lib/Object.h"
- #include "lib/Song.h"
-
-diff -NrU5 hydrogen-0.9.3.orig/src/gui/main.cpp hydrogen-0.9.3/src/gui/main.cpp
---- hydrogen-0.9.3.orig/src/gui/main.cpp 2008-04-19 16:48:03.000000000 +0200
-+++ hydrogen-0.9.3/src/gui/main.cpp 2008-04-19 16:48:46.000000000 +0200
-@@ -41,10 +41,11 @@
- #include "lib/Preferences.h"
- #include "lib/DataPath.h"
- #include "lib/Exception.h"
-
- #include <iostream>
-+#include <cstdlib>
- using namespace std;
-
- void showInfo();
- void showUsage();
-
-diff -NrU5 hydrogen-0.9.3.orig/src/lib/drivers/OssDriver.cpp hydrogen-0.9.3/src/lib/drivers/OssDriver.cpp
---- hydrogen-0.9.3.orig/src/lib/drivers/OssDriver.cpp 2008-04-19 16:48:04.000000000 +0200
-+++ hydrogen-0.9.3/src/lib/drivers/OssDriver.cpp 2008-04-19 16:50:09.000000000 +0200
-@@ -28,10 +28,11 @@
- #ifdef OSS_SUPPORT
-
- #include "../Preferences.h"
-
- #include <pthread.h>
-+#include <cstring>
-
- audioProcessCallback ossDriver_audioProcessCallback;
- bool ossDriver_running;
- pthread_t ossDriverThread;
- int oss_driver_bufferSize = -1;
-diff -NrU5 hydrogen-0.9.3.orig/src/lib/FLACFile.cpp hydrogen-0.9.3/src/lib/FLACFile.cpp
---- hydrogen-0.9.3.orig/src/lib/FLACFile.cpp 2008-04-19 16:48:04.000000000 +0200
-+++ hydrogen-0.9.3/src/lib/FLACFile.cpp 2008-04-19 16:48:46.000000000 +0200
-@@ -25,10 +25,11 @@
- #include "FLACFile.h"
- #include "Sample.h"
-
- #include <vector>
- #include <fstream>
-+#include <cstring>
-
- #ifdef FLAC_SUPPORT
-
- //#include "FLAC/file_decoder.h"
- #include <FLAC++/all.h>
-diff -NrU5 hydrogen-0.9.3.orig/src/tools/HydrogenPlayer.cpp hydrogen-0.9.3/src/tools/HydrogenPlayer.cpp
---- hydrogen-0.9.3.orig/src/tools/HydrogenPlayer.cpp 2008-04-19 16:48:04.000000000 +0200
-+++ hydrogen-0.9.3/src/tools/HydrogenPlayer.cpp 2008-04-19 16:48:46.000000000 +0200
-@@ -26,10 +26,11 @@
- #include <qapplication.h>
-
- #include <iostream>
- #include <stdio.h>
- #include <string>
-+#include <cstdlib>
-
- #include "lib/Hydrogen.h"
- #include "lib/LocalFileMng.h"
- #include "lib/Preferences.h"
- #include "lib/fx/LadspaFX.h"
diff --git a/media-sound/hydrogen/files/hydrogen-0.9.3-gcc43noalsa.patch b/media-sound/hydrogen/files/hydrogen-0.9.3-gcc43noalsa.patch
deleted file mode 100644
index 460bc9c4e488..000000000000
--- a/media-sound/hydrogen/files/hydrogen-0.9.3-gcc43noalsa.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Index: hydrogen-0.9.3/src/lib/Hydrogen.cpp
-===================================================================
---- hydrogen-0.9.3.orig/src/lib/Hydrogen.cpp
-+++ hydrogen-0.9.3/src/lib/Hydrogen.cpp
-@@ -37,6 +37,7 @@
- #include <deque>
- #include <iostream>
- #include <ctime>
-+#include <cstdlib>
- #include <math.h>
- using std::cout;
- using std::cerr;
diff --git a/media-sound/hydrogen/files/hydrogen-0.9.3-gcc44.patch b/media-sound/hydrogen/files/hydrogen-0.9.3-gcc44.patch
deleted file mode 100644
index ee6bfd16bb4a..000000000000
--- a/media-sound/hydrogen/files/hydrogen-0.9.3-gcc44.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- hydrogen-0.9.3.orig/src/lib/drivers/JackDriver.cpp 2005-10-18 02:32:04.000000000 +0400
-+++ hydrogen-0.9.3/src/lib/drivers/JackDriver.cpp 2009-05-30 21:03:56.000000000 +0400
-@@ -27,6 +27,7 @@
-
- #include <sys/types.h>
- #include <unistd.h>
-+#include <cstdio>
- #include "lib/Hydrogen.h"
- #include "lib/Preferences.h"
-
---- hydrogen-0.9.3.orig/src/lib/Object.cpp 2005-10-18 02:32:04.000000000 +0400
-+++ hydrogen-0.9.3/src/lib/Object.cpp 2009-05-30 21:03:56.000000000 +0400
-@@ -25,6 +25,7 @@
- #include "Object.h"
- #include "config.h"
-
-+#include <cstdio>
- #include <pthread.h>
-
- #ifdef WIN32
diff --git a/media-sound/hydrogen/hydrogen-0.9.3-r4.ebuild b/media-sound/hydrogen/hydrogen-0.9.3-r4.ebuild
deleted file mode 100644
index e2315a7bf999..000000000000
--- a/media-sound/hydrogen/hydrogen-0.9.3-r4.ebuild
+++ /dev/null
@@ -1,100 +0,0 @@
-# Copyright 1999-2010 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/hydrogen/hydrogen-0.9.3-r4.ebuild,v 1.11 2010/01/11 18:50:00 abcd Exp $
-
-EAPI=2
-
-inherit eutils autotools multilib
-
-DESCRIPTION="Linux Drum Machine"
-HOMEPAGE="http://www.hydrogen-music.org/"
-SRC_URI="mirror://sourceforge/hydrogen/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc ppc64 sparc x86"
-IUSE="alsa debug doc +flac jack ladspa oss"
-
-RDEPEND="dev-libs/libxml2
- media-libs/libsndfile
- media-libs/audiofile
- x11-libs/qt:3
- flac? ( media-libs/flac[cxx] )
- alsa? ( media-libs/alsa-lib )
- jack? ( media-sound/jack-audio-connection-kit )
- ladspa? ( media-libs/liblrdf )"
-DEPEND="${RDEPEND}
- doc? ( app-text/docbook-sgml-utils )
- dev-util/pkgconfig"
-
-src_prepare() {
- if use ppc; then
- cd "${S}/src"
- epatch "${FILESDIR}/0.9.1-OSS.patch"
- fi
- cd "${S}"
-
- mv data/doc/man "${S}"
- # broken or portability issue
- find . -iname Makefile.in -exec sed -i -e "s:update-menus::" {} \;
- # find PortAudio/Midi files
- sed -e "s:pa_unix_oss:lib:g" -e "s:pa_common:include:g" \
- -e "s:pm_linux:lib:g" -e "s:pm_common:include:g" \
- -i configure.in
- sed -e "s:lib/hydrogen:$(get_libdir)/hydrogen:g" -i plugins/wasp/Makefile.in
- epatch "${FILESDIR}/hydrogen-0.9.2-configure.in.patch"
- epatch "${FILESDIR}/hydrogen-0.9.3-gcc-4.1-tinyxml.h.patch"
- epatch "${FILESDIR}/${P}-flac113.patch"
- epatch "${FILESDIR}/${P}-automagic.patch"
- epatch "${FILESDIR}/${P}-desktop-noexec.patch"
- epatch "${FILESDIR}/${P}-gcc43.patch"
- epatch "${FILESDIR}/${P}-gcc43noalsa.patch"
- epatch "${FILESDIR}/${P}-gcc44.patch"
- eautoreconf
-}
-
-src_configure() {
- export PORTAUDIOPATH="/usr"
- # PortMidi not yet in the repository
- # export PORTMIDIPATH="/usr"
-
- # Disable portaudio v18 support wrt #222841
- econf $(use_enable jack jack-support) \
- --disable-portaudio \
- $(use_enable alsa) \
- $(use_enable debug) \
- $(use_enable flac flac_support) \
- $(use_enable ladspa) \
- $(use_enable ladspa lrdf-support) \
- $(use_enable oss oss-support)
-}
-
-src_compile() {
- emake -j1 || die
-}
-
-src_install() {
- pushd data/i18n
- use doc && ./updateTranslations.sh
- rm *.ts updateTranslations.sh
- popd
-
- pushd data/doc
- use doc && ./updateManuals.sh
- rm *.docbook updateManuals.sh
- popd
-
- emake DESTDIR="${D}" install || die "make install failed"
- dodoc AUTHORS ChangeLog README
- dosym /usr/share/hydrogen/data/doc /usr/share/doc/${PF}/html
- doman man/C/hydrogen.1
-
- for N in 16 24 32 48 64 ; do
- dodir /usr/share/icons/hicolor/${N}x${N}/apps
- dosym /usr/share/hydrogen/data/img/gray/icon${N}.png \
- /usr/share/icons/hicolor/${N}x${N}/apps/hydrogen.png
- done
- dodir /usr/share/icons/hicolor/scalable/apps
- dosym /usr/share/hydrogen/data/img/gray/icon.svg \
- /usr/share/icons/hicolor/scalable/apps/hydrogen.svg
-}