summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-05-18 17:08:44 +0000
committerTim Harder <radhermit@gentoo.org>2011-05-18 17:08:44 +0000
commit62429ddb39ebad68f2fec8d0053fdd1442a5b73a (patch)
tree7105121b3c9f4b9852d8a8f4fdef61aa0d9fe196 /media-sound/pianobooster
parentDon't try to apply non-existing patch wrt #367923 by Adrian Frith. (diff)
downloadgentoo-2-62429ddb39ebad68f2fec8d0053fdd1442a5b73a.tar.gz
gentoo-2-62429ddb39ebad68f2fec8d0053fdd1442a5b73a.tar.bz2
gentoo-2-62429ddb39ebad68f2fec8d0053fdd1442a5b73a.zip
Initial import. Ebuild based on work by Nao Nakashima (bug #316449).
(Portage version: 2.2.0_alpha33/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/pianobooster')
-rw-r--r--media-sound/pianobooster/ChangeLog10
-rw-r--r--media-sound/pianobooster/files/pianobooster-0.6.4b-cmake.patch44
-rw-r--r--media-sound/pianobooster/metadata.xml8
-rw-r--r--media-sound/pianobooster/pianobooster-0.6.4b.ebuild39
4 files changed, 101 insertions, 0 deletions
diff --git a/media-sound/pianobooster/ChangeLog b/media-sound/pianobooster/ChangeLog
new file mode 100644
index 000000000000..7b0b290fed6e
--- /dev/null
+++ b/media-sound/pianobooster/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-sound/pianobooster
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pianobooster/ChangeLog,v 1.1 2011/05/18 17:08:44 radhermit Exp $
+
+*pianobooster-0.6.4b (18 May 2011)
+
+ 18 May 2011; Tim Harder <radhermit@gentoo.org> +pianobooster-0.6.4b.ebuild,
+ +files/pianobooster-0.6.4b-cmake.patch, +metadata.xml:
+ Initial import. Ebuild based on work by Nao Nakashima (bug #316449).
+
diff --git a/media-sound/pianobooster/files/pianobooster-0.6.4b-cmake.patch b/media-sound/pianobooster/files/pianobooster-0.6.4b-cmake.patch
new file mode 100644
index 000000000000..8cdd8738e2b3
--- /dev/null
+++ b/media-sound/pianobooster/files/pianobooster-0.6.4b-cmake.patch
@@ -0,0 +1,44 @@
+--- pianobooster-src-0.6.4b/src/CMakeLists.txt.orig
++++ pianobooster-src-0.6.4b/src/CMakeLists.txt
+@@ -2,12 +2,6 @@
+ # for the debug build type cmake -DCMAKE_BUILD_TYPE=Debug
+ SET(CMAKE_BUILD_TYPE Release)
+ SET(CMAKE_VERBOSE_MAKEFILE OFF)
+-SET(USE_FLUIDSYNTH OFF)
+-
+-# The inplace directory is mainly for windows builds
+-# SET(FLUIDSYNTH_INPLACE_DIR C:/download/misc/ljb/fluidsynth-1.0.9)
+-SET(FLUIDSYNTH_INPLACE_DIR /home/louis/build/fluidsynth-1.0.9)
+-
+
+ # Testing precompiled headers it does not work -- leave as OFF.
+ SET(USE_PCH OFF)
+@@ -78,18 +72,7 @@
+ ADD_DEFINITIONS(-DPB_USE_FLUIDSYNTH)
+ MESSAGE("Building using fluidsynth")
+ SET( PB_BASE_SRCS MidiDeviceFluidSynth.cpp )
+-
+- IF(FLUIDSYNTH_INPLACE_DIR)
+- INCLUDE_DIRECTORIES(${FLUIDSYNTH_INPLACE_DIR}/include/)
+- IF(WIN32)
+- LINK_LIBRARIES( ${FLUIDSYNTH_INPLACE_DIR}/src/.libs/libfluidsynth.dll.a)
+- ENDIF(WIN32)
+- IF(UNIX)
+- LINK_LIBRARIES(${FLUIDSYNTH_INPLACE_DIR}/src/.libs/libfluidsynth.so)
+- ENDIF(UNIX)
+- ELSEIF(FLUIDSYNTH_INPLACE_DIR)
+- LINK_LIBRARIES( fluidsynth)
+- ENDIF(FLUIDSYNTH_INPLACE_DIR)
++ LINK_LIBRARIES(fluidsynth)
+ ENDIF(USE_FLUIDSYNTH)
+
+
+@@ -214,8 +197,6 @@
+ INSTALL(TARGETS pianobooster RUNTIME DESTINATION bin)
+ #INSTALL( index.docbook INSTALL_DESTINATION ${HTML_INSTALL_DIR}/en SUBDIR kmidimon )
+
+-INSTALL( FILES ../README.txt DESTINATION share/doc/pianobooster )
+-
+ INSTALL ( FILES images/pianobooster.png DESTINATION share/pixmaps )
+
+
diff --git a/media-sound/pianobooster/metadata.xml b/media-sound/pianobooster/metadata.xml
new file mode 100644
index 000000000000..69a97e974adb
--- /dev/null
+++ b/media-sound/pianobooster/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sound</herd>
+ <use>
+ <flag name="fluidsynth">Enable Fluidsynth MIDI software synthesis</flag>
+ </use>
+</pkgmetadata>
diff --git a/media-sound/pianobooster/pianobooster-0.6.4b.ebuild b/media-sound/pianobooster/pianobooster-0.6.4b.ebuild
new file mode 100644
index 000000000000..dd1976fbbf33
--- /dev/null
+++ b/media-sound/pianobooster/pianobooster-0.6.4b.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-sound/pianobooster/pianobooster-0.6.4b.ebuild,v 1.1 2011/05/18 17:08:44 radhermit Exp $
+
+EAPI="4"
+
+inherit cmake-utils
+
+MY_P=${PN}-src-${PV}
+DESCRIPTION="A MIDI file player that teaches how to play the piano"
+HOMEPAGE="http://pianobooster.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="fluidsynth"
+
+DEPEND="fluidsynth? ( media-sound/fluidsynth )
+ media-libs/alsa-lib
+ virtual/opengl
+ x11-libs/qt-core:4
+ x11-libs/qt-gui:4
+ x11-libs/qt-opengl:4"
+RDEPEND="${DEPEND}"
+
+DOCS="ReleaseNote.txt ../README.txt"
+
+PATCHES=( "${FILESDIR}"/${P}-cmake.patch )
+
+S=${WORKDIR}/${MY_P}/src
+
+src_configure() {
+ mycmakeargs=(
+ $(cmake-utils_use_use fluidsynth)
+ )
+
+ cmake-utils_src_configure
+}