Permalink
Browse files

zynaddsubfx power in your hands now 9999

  • Loading branch information...
1 parent ae59765 commit fa30832a7bbaaca5150c61a2a0fe825f1aced968 @yermandu committed Mar 21, 2012
View
2 app-office/pinpoint/Manifest
@@ -1 +1 @@
-EBUILD pinpoint-9999.ebuild 1366 RMD160 712cfaf8e1032ccce3d26e66cfa263a3f979161a SHA1 3003d2383306fbfd9dc9a7b49397d6fd9f7f9a57 SHA256 6995bc8ce7c5f1b57ecf8c9a2d6d0de5d0aff0a9ff5cc39c41254fdb5df6810f
+EBUILD pinpoint-9999.ebuild 1367 RMD160 23c03d27d340c48982e4dc3404ce038cdf593bb1 SHA1 12c5be8765f02c77e5d805b554e2708dcb1169d0 SHA256 bae44c2f1d0201d6427067071b0ae9b0fd18b8876c27bbc0e7c0f415a6178843
View
4 media-sound/zynaddsubfx/Manifest
@@ -0,0 +1,4 @@
+AUX zynaddsubfx-2.4.1-docs.patch 420 RMD160 4a47f9fbcd150c19e8e0cb208694cf82e998e5a3 SHA1 ff748a72f2bbac27a4117052ddfb4fb2287fb038 SHA256 379c61a8f911d4794f3369f5b12b46142b46fb771d2cd2877e220c33e6891ec2
+AUX zynaddsubfx-2.4.1-fltk.patch 1492 RMD160 4abefa4db84b5a7663cc4e97e2d119db19773159 SHA1 2a4a8c4eb23bd5093c68a6fcf3f4d5afb5a81c58 SHA256 b4fab50f4fd3f91d655e9c613973b2a50750b73577044301cf6b7017d0714c47
+AUX zynaddsubfx-2.4.1-fltk13.patch 1978 RMD160 9a81931bc5d9fefb045c2d09e29b21f22b2cbbd8 SHA1 a91a54d02e65e271bde6c3b4fca5d66c92cc33a8 SHA256 34b328ae07ec901e0508914ae76f0b9b38cb0cf2e12afed585900eaee7048d22
+EBUILD zynaddsubfx-9999.ebuild 2076 RMD160 4eb34c448a71e6f3e14768411b60d9deb5629a5a SHA1 fe65f1bf2f5df46cb84c37390c16897fed8f4cb6 SHA256 a57757bb16691ab7a8baea68f3f58de6cc3f22e698747a284317ad3276d8ae35
View
12 media-sound/zynaddsubfx/files/zynaddsubfx-2.4.1-docs.patch
@@ -0,0 +1,12 @@
+Index: ZynAddSubFX-2.4.1/CMakeLists.txt
+===================================================================
+--- ZynAddSubFX-2.4.1.orig/CMakeLists.txt
++++ ZynAddSubFX-2.4.1/CMakeLists.txt
+@@ -5,7 +5,3 @@ project(zynaddsubfx)
+ enable_testing()
+ #Currently the only directory that uses cmake
+ add_subdirectory(src)
+-
+-install(FILES AUTHORS.txt COPYING FAQ.txt HISTORY.txt README.txt
+- DESTINATION share/doc/zynaddsubfx
+- )
View
38 media-sound/zynaddsubfx/files/zynaddsubfx-2.4.1-fltk.patch
@@ -0,0 +1,38 @@
+Index: ZynAddSubFX-2.4.1/src/CMakeLists.txt
+===================================================================
+--- ZynAddSubFX-2.4.1.orig/src/CMakeLists.txt
++++ ZynAddSubFX-2.4.1/src/CMakeLists.txt
+@@ -96,24 +96,7 @@ if(FltkGui)
+ #message(STATUS "FLTK_LIBRARIES: ${FLTK_LIBRARIES}")
+ #message(STATUS "FLTK_MATH_LIBRARY: ${FLTK_MATH_LIBRARY}")
+
+- #UGLY WORKAROUND
+- find_program (MYFLTK_CONFIG fltk-config)
+- if (MYFLTK_CONFIG)
+- execute_process (COMMAND ${MYFLTK_CONFIG} --ldflags OUTPUT_VARIABLE MYFLTK_LDFLAGS)
+- string(STRIP ${MYFLTK_LDFLAGS} MYFLTK_LIBRARIES)
+- endif()
+- mark_as_advanced(FORCE FLTK_BASE_LIBRARY)
+- mark_as_advanced(FORCE FLTK_CONFIG_SCRIPT)
+- mark_as_advanced(FORCE FLTK_DIR)
+- mark_as_advanced(FORCE FLTK_FLUID_EXECUTABLE)
+- mark_as_advanced(FORCE FLTK_FORMS_LIBRARY)
+- mark_as_advanced(FORCE FLTK_GL_LIBRARY)
+- mark_as_advanced(FORCE FLTK_IMAGES_LIBRARY)
+- mark_as_advanced(FORCE FLTK_INCLUDE_DIR)
+- mark_as_advanced(FORCE FLTK_MATH_LIBRARY)
+-
+-
+- set(GUI_LIBRARIES ${FLTK_LIBRARIES} ${MYFLTK_LIBRARIES} ${OPENGL_LIBRARIES} zynaddsubfx_gui)
++ set(GUI_LIBRARIES ${FLTK_LIBRARIES} ${OPENGL_LIBRARIES} zynaddsubfx_gui)
+ add_definitions(-DFLTK_GUI)
+
+ message(STATUS "Will build fltk gui")
+@@ -121,6 +104,7 @@ if(FltkGui)
+ include_directories(
+ "${CMAKE_CURRENT_SOURCE_DIR}/UI"
+ "${CMAKE_CURRENT_BINARY_DIR}/UI"
++ ${FLTK_INCLUDE_DIR}
+ )
+
+ add_subdirectory(UI)
View
58 media-sound/zynaddsubfx/files/zynaddsubfx-2.4.1-fltk13.patch
@@ -0,0 +1,58 @@
+Sounds hackish but that's the only way I found to force it to generate the
+functions in the .cxx files with fluid 1.3...
+
+Index: ZynAddSubFX-2.4.1/src/UI/BankUI.fl
+===================================================================
+--- ZynAddSubFX-2.4.1.orig/src/UI/BankUI.fl
++++ ZynAddSubFX-2.4.1/src/UI/BankUI.fl
+@@ -32,7 +32,7 @@ decl {\#include "../Misc/Config.h"} {pub
+
+ class BankProcess_ {} {
+ Function {process()} {open return_type {virtual void}
+- } {}
++ } {code{;}}
+ decl {Bank *bank;} {public
+ }
+ }
+Index: ZynAddSubFX-2.4.1/src/UI/OscilGenUI.fl
+===================================================================
+--- ZynAddSubFX-2.4.1.orig/src/UI/OscilGenUI.fl
++++ ZynAddSubFX-2.4.1/src/UI/OscilGenUI.fl
+@@ -129,7 +129,7 @@ delete [] spc;} {selected
+
+ class PSlider {: {public Fl_Slider}
+ } {
+- Function {PSlider(int x,int y, int w, int h, const char *label=0):Fl_Slider(x,y,w,h,label)} {} {}
++ Function {PSlider(int x,int y, int w, int h, const char *label=0):Fl_Slider(x,y,w,h,label)} {} {code{;}}
+ Function {handle(int event)} {return_type int
+ } {
+ code {int X=x(),Y=y(),W=w(),H=h();
+Index: ZynAddSubFX-2.4.1/src/UI/PartUI.fl
+===================================================================
+--- ZynAddSubFX-2.4.1.orig/src/UI/PartUI.fl
++++ ZynAddSubFX-2.4.1/src/UI/PartUI.fl
+@@ -85,7 +85,7 @@ end();} {}
+
+ class PartUI_ {} {
+ Function {showparameters(int kititem,int engine)} {return_type virtual
+- } {}
++ } {code{;}}
+ }
+
+ class PartKitItem {: {public Fl_Group}
+Index: ZynAddSubFX-2.4.1/src/UI/PresetsUI.fl
+===================================================================
+--- ZynAddSubFX-2.4.1.orig/src/UI/PresetsUI.fl
++++ ZynAddSubFX-2.4.1/src/UI/PresetsUI.fl
+@@ -18,9 +18,9 @@ decl {\#include "../Params/Presets.h"} {
+
+ class PresetsUI_ {} {
+ Function {refresh()} {open return_type {virtual void}
+- } {}
++ } {code{;}}
+ Function {~PresetsUI_()} {open return_type virtual
+- } {}
++ } {code{;}}
+ }
+
+ class PresetsUI {} {
View
72 media-sound/zynaddsubfx/zynaddsubfx-9999.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/zynaddsubfx/zynaddsubfx-2.4.2.ebuild,v 1.1 2012/03/07 10:06:10 aballier Exp $
+
+EAPI=4
+inherit eutils cmake-utils git-2 autotools
+
+MY_P=ZynAddSubFX-${PV}
+
+DESCRIPTION="ZynAddSubFX is an opensource software synthesizer."
+HOMEPAGE="http://zynaddsubfx.sourceforge.net/"
+SRC_URI="mirror://sourceforge/zynaddsubfx/${MY_P}.tar.bz2
+ http://download.tuxfamily.org/proaudio/distfiles/zynaddsubfx-presets-0.1.tar.bz2"
+SRC_URI=""
+EGIT_REPO_URI="git://zynaddsubfx.git.sourceforge.net/gitroot/zynaddsubfx/zynaddsubfx"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="alsa +fltk jack lash"
+
+DEPEND=">=x11-libs/fltk-1.1.2
+ =sci-libs/fftw-3*
+ >=dev-libs/mini-xml-2.2.1
+ alsa? ( media-libs/alsa-lib )
+ jack? ( media-sound/jack-audio-connection-kit )
+ lash? ( media-sound/lash )"
+# portaudio? ( media-libs/portaudio )"
+
+RDEPEND="${RDEPEND}
+ dev-util/pkgconfig"
+# Upstream uses the following preferences: alsa > jack > portaudio
+# At least one of them must be enabled
+# We do not support portaudio, so if alsa is disabled force jack.
+REQUIRED_USE="!alsa? ( jack )"
+
+S=${WORKDIR}/${MP}
+
+#PATCHES=(
+# "${FILESDIR}"/${PN}-2.4.1-docs.patch
+#)
+
+DOCS="ChangeLog FAQ.txt HISTORY.txt README.txt ZynAddSubFX.lsm bugs.txt"
+
+src_unpack() {
+ git-2_src_unpack
+ # unpack ${A}
+ cd "${S}"
+
+ # add our CXXFLAGS
+ cd src/
+ esed_check -i "s@\(CXXFLAGS.\+=.*OS_PORT.*\)@\1 ${CXXFLAGS}@g" Makefile
+
+ cd "${S}"
+}
+
+src_configure() {
+ use lash || sed -i -e 's/lash-1.0/lash_disabled/' "${S}"/src/CMakeLists.txt
+ mycmakeargs=(
+ `use fltk && echo "-DGuiModule=fltk" || echo "-DGuiModule=off"`
+ `use alsa && echo "-DOutputModule=alsa" || echo "-DOutputModule=jack"`
+ `use alsa && echo "-DAlsaMidiOutput=TRUE" || echo "-DAlsaMidiOutput=FALSE"`
+ `use jack && echo "-DJackOutput=TRUE" || echo "-DJackOutput=FALSE"`
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ insinto /usr/share/${PN}
+ doins -r "${S}"/banks "${S}"/examples
+}

0 comments on commit fa30832

Please sign in to comment.