Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

zynaddsubfx power in your hands now 9999

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

0 notes on commit fa30832

Please sign in to comment.
Something went wrong with that request. Please try again.