summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2011-02-26 14:46:50 +0000
committerAlexis Ballier <aballier@gentoo.org>2011-02-26 14:46:50 +0000
commit5a00b7f1b90b71a0a93cf24c25731ba8688674ae (patch)
tree78c320efe6ddd009597527765e22f1bfc9e9a71c
parentdepend virtual/jpeg (diff)
downloadgentoo-2-5a00b7f1b90b71a0a93cf24c25731ba8688674ae.tar.gz
gentoo-2-5a00b7f1b90b71a0a93cf24c25731ba8688674ae.tar.bz2
gentoo-2-5a00b7f1b90b71a0a93cf24c25731ba8688674ae.zip
Un-embed fltk for the zynaddsubfx plugin.
(Portage version: 2.2.0_alpha25/cvs/Linux x86_64)
-rw-r--r--media-sound/lmms/ChangeLog8
-rw-r--r--media-sound/lmms/files/lmms-unembedfltk.patch50
-rw-r--r--media-sound/lmms/lmms-0.4.9-r1.ebuild57
3 files changed, 114 insertions, 1 deletions
diff --git a/media-sound/lmms/ChangeLog b/media-sound/lmms/ChangeLog
index ac4d9ecbbdf9..06852fffd1cf 100644
--- a/media-sound/lmms/ChangeLog
+++ b/media-sound/lmms/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/lmms
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/lmms/ChangeLog,v 1.15 2011/01/02 13:14:39 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lmms/ChangeLog,v 1.16 2011/02/26 14:46:50 aballier Exp $
+
+*lmms-0.4.9-r1 (26 Feb 2011)
+
+ 26 Feb 2011; Alexis Ballier <aballier@gentoo.org> +lmms-0.4.9-r1.ebuild,
+ +files/lmms-unembedfltk.patch:
+ Un-embed fltk for the zynaddsubfx plugin.
02 Jan 2011; Alexis Ballier <aballier@gentoo.org> -lmms-0.4.5.ebuild,
-lmms-0.4.6.ebuild, -lmms-0.4.7.ebuild:
diff --git a/media-sound/lmms/files/lmms-unembedfltk.patch b/media-sound/lmms/files/lmms-unembedfltk.patch
new file mode 100644
index 000000000000..c54708b6a01e
--- /dev/null
+++ b/media-sound/lmms/files/lmms-unembedfltk.patch
@@ -0,0 +1,50 @@
+Index: lmms-0.4.9/plugins/zynaddsubfx/CMakeLists.txt
+===================================================================
+--- lmms-0.4.9.orig/plugins/zynaddsubfx/CMakeLists.txt
++++ lmms-0.4.9/plugins/zynaddsubfx/CMakeLists.txt
+@@ -47,7 +47,8 @@ IF(LMMS_BUILD_WIN32)
+ ADD_DEFINITIONS(-DPTW32_STATIC_LIB)
+ ENDIF(LMMS_BUILD_WIN32)
+
+-INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/fltk/ ${CMAKE_CURRENT_SOURCE_DIR} ${FFTW3F_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} )
++FIND_PACKAGE(FLTK)
++INCLUDE_DIRECTORIES(${FLTK_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${FFTW3F_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_BINARY_DIR} )
+
+ set(ZASF_CORE_LIBS
+ zynaddsubfx_input
+@@ -100,7 +101,7 @@ SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL
+ SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
+ ADD_EXECUTABLE(RemoteZynAddSubFx RemoteZynAddSubFx.cpp ${ZYN_SRC_GUI} ${WINRC})
+ INSTALL(TARGETS RemoteZynAddSubFx RUNTIME DESTINATION ${PLUGIN_DIR})
+-TARGET_LINK_LIBRARIES(RemoteZynAddSubFx -lpthread -L${CMAKE_CURRENT_BINARY_DIR} -lZynAddSubFxCore ${CMAKE_CURRENT_BINARY_DIR}/fltk/lib/libfltk.a)
++TARGET_LINK_LIBRARIES(RemoteZynAddSubFx -lpthread -L${CMAKE_CURRENT_BINARY_DIR} -lZynAddSubFxCore ${FLTK_LIBRARIES})
+ ADD_DEPENDENCIES(RemoteZynAddSubFx ZynAddSubFxCore)
+
+ # link system libraries when on win32
+@@ -108,26 +109,9 @@ IF(LMMS_BUILD_WIN32)
+ TARGET_LINK_LIBRARIES(RemoteZynAddSubFx ${QT_LIBRARIES} -lole32 -luuid -lcomctl32 -lgdi32 -lws2_32)
+ ENDIF(LMMS_BUILD_WIN32)
+
+-# FLTK needs X
+-IF(LMMS_BUILD_LINUX)
+- FIND_PACKAGE(X11)
+- FIND_PACKAGE(Freetype)
+- TARGET_LINK_LIBRARIES(RemoteZynAddSubFx -ldl ${X11_LIBRARIES} ${X11_Xft_LIB} ${X11_Xinerama_LIB} ${FREETYPE_LIBRARY} -lfontconfig)
+-ENDIF(LMMS_BUILD_LINUX)
+-
+-
+ IF(LMMS_BUILD_WIN32)
+ ADD_CUSTOM_COMMAND(TARGET RemoteZynAddSubFx POST_BUILD COMMAND ${STRIP} ${CMAKE_CURRENT_BINARY_DIR}/RemoteZynAddSubFx.exe)
+ ENDIF(LMMS_BUILD_WIN32)
+
+-# build FLTK
+-IF(LMMS_BUILD_WIN64)
+- SET(FLTK_EXTRA_FLAGS "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/cmake/modules/Win64Toolchain.cmake")
+-ELSEIF(LMMS_BUILD_WIN32)
+- SET(FLTK_EXTRA_FLAGS "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/cmake/modules/Win32Toolchain.cmake")
+-ENDIF(LMMS_BUILD_WIN64)
+-ADD_CUSTOM_TARGET(libfltk COMMAND mkdir -p ${CMAKE_CURRENT_BINARY_DIR}/fltk && cd ${CMAKE_CURRENT_BINARY_DIR}/fltk && ${CMAKE_COMMAND} ${CMAKE_CURRENT_SOURCE_DIR}/fltk ${FLTK_EXTRA_FLAGS} -DCMAKE_MODULE_PATH=${CMAKE_SOURCE_DIR}/cmake/modules/ -DFLTK_USE_SYSTEM_ZLIB:BOOL=ON -DFLTK_USE_SYSTEM_JPEG:BOOL=ON -DFLTK_USE_SYSTEM_PNG:BOOL=ON -DOPTION_BUILD_EXAMPLES:BOOL=OFF -DCMAKE_BUILD_TYPE=release && ${CMAKE_BUILD_TOOL})
+-
+-ADD_DEPENDENCIES(RemoteZynAddSubFx libfltk)
+ ENDIF(LMMS_HAVE_FFTW3F)
+
diff --git a/media-sound/lmms/lmms-0.4.9-r1.ebuild b/media-sound/lmms/lmms-0.4.9-r1.ebuild
new file mode 100644
index 000000000000..d0f0f4660ef1
--- /dev/null
+++ b/media-sound/lmms/lmms-0.4.9-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/lmms/lmms-0.4.9-r1.ebuild,v 1.1 2011/02/26 14:46:50 aballier Exp $
+
+EAPI="2"
+
+inherit eutils cmake-utils
+
+DESCRIPTION="free alternative to popular programs such as Fruityloops, Cubase and Logic"
+HOMEPAGE="http://lmms.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="alsa debug fftw fluidsynth jack ogg pulseaudio sdl stk vst"
+
+RDEPEND="x11-libs/qt-core:4
+ x11-libs/qt-gui:4[accessibility]
+ >=media-libs/libsndfile-1.0.11
+ >=media-libs/libsamplerate-0.1.7
+ x11-libs/libXinerama
+ alsa? ( media-libs/alsa-lib )
+ fftw? ( =sci-libs/fftw-3* >=x11-libs/fltk-1.3.0_rc:1.1 )
+ jack? ( >=media-sound/jack-audio-connection-kit-0.99.0 )
+ ogg? ( media-libs/libvorbis
+ media-libs/libogg )
+ fluidsynth? ( media-sound/fluidsynth )
+ pulseaudio? ( media-sound/pulseaudio )
+ sdl? ( media-libs/libsdl
+ >=media-libs/sdl-sound-1.0.1 )
+ stk? ( media-libs/stk )
+ vst? ( app-emulation/wine )"
+DEPEND="${RDEPEND}
+ >=dev-util/cmake-2.4.5"
+
+DOCS="README AUTHORS TODO"
+
+PATCHES=( "${FILESDIR}/${PN}-unembedfltk.patch" )
+src_configure() {
+ mycmakeargs="${mycmakeargs}
+ -DWANT_SYSTEM_SR=TRUE
+ -DWANT_CAPS=TRUE
+ -DWANT_TAP=TRUE
+ -DWANT_CALF=TRUE
+ $(cmake-utils_use_want alsa ALSA)
+ $(cmake-utils_use_want fftw FFTW3F)
+ $(cmake-utils_use_want jack JACK)
+ $(cmake-utils_use_want ogg OGGVORBIS)
+ $(cmake-utils_use_want pulseaudio PULSEAUDIO)
+ $(cmake-utils_use_want sdl SDL)
+ $(cmake-utils_use_want stk STK)
+ $(cmake-utils_use_want vst VST)
+ $(cmake-utils_use_want fluidsynth SF2)"
+ cmake-utils_src_configure
+}