migrated build-system to CMAKE

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1352 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-07-22 11:36:50 +00:00
parent 9ba34c1ede
commit e637495489
318 changed files with 2037 additions and 4504 deletions

359
CMakeLists.txt Normal file
View File

@@ -0,0 +1,359 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.0)
PROJECT(lmms)
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
SET(CMAKE_BUILD_TYPE relwithdebinfo)
CMAKE_POLICY(SET CMP0005 NEW)
INCLUDE(AddFileDependencies)
INCLUDE(CheckIncludeFiles)
INCLUDE(FindPkgConfig)
SET(VERSION_MAJOR "0")
SET(VERSION_MINOR "4")
SET(VERSION_PATCH "0")
SET(VERSION_SUFFIX "beta")
SET(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
IF(VERSION_SUFFIX)
SET (VERSION "${VERSION}-${VERSION_SUFFIX}")
ENDIF(VERSION_SUFFIX)
ADD_DEFINITIONS(-D'LMMS_VERSION="${VERSION}"')
IF(WIN32)
SET(LMMS_BUILD_WIN32 1)
ELSE(LINUX)
SET(LMMS_BUILD_LINUX 1)
ENDIF(WIN32)
OPTION(WANT_ALSA "Include ALSA (Advanced Linux Sound Architecture) support" ON)
OPTION(WANT_CAPS "Include C* Audio Plugin Suite (LADSPA plugins)" ON)
OPTION(WANT_FFTW3F "Include SpectrumAnalyzer plugin" ON)
OPTION(WANT_JACK "Include JACK (Jack Audio Connection Kit) support" ON)
OPTION(WANT_OGGVORBIS "Include OGG/Vorbis support" ON)
OPTION(WANT_PULSEAUDIO "Include PulseAudio support" ON)
OPTION(WANT_SDL "Include SDL (Simple DirectMedia Layer) support" ON)
OPTION(WANT_SF2 "Include SoundFont2 player plugin" ON)
OPTION(WANT_STK "Include Stk (Synthesis Toolkit) support" ON)
OPTION(WANT_SYSTEM_SR "Use system's libsamplerate" ON)
OPTION(WANT_TAP "Include Tom's Audio Processing (LADSPA plugins)" ON)
OPTION(WANT_VST "Include VST support" ON)
OPTION(WANT_PCH "Use precompiled headers" OFF)
MESSAGE("PROCESSOR: ${CMAKE_SYSTEM_PROCESSOR}")
EXEC_PROGRAM( uname ARGS "-m"OUTPUT_VARIABLE Machine )
MESSAGE("Machine: ${Machine}")
IF(${Machine} MATCHES "i686" OR ${Machine} MATCHES "i386" )
MESSAGE("-- This is an 32 bit machine")
SET(HOST_IS_64BIT FALSE)
ELSE(${Machine} MATCHES "i686" OR ${Machine} MATCHES "i386" )
IF(${Machine} MATCHES "x86_64")
MESSAGE("-- This is an 64 bit machine")
SET(HOST_IS_64BIT TRUE)
ELSE(${Machine} MATCHES "x86_64")
MESSAGE("Can't identify this machine. Assuming 32 bit platform ")
SET(HOST_IS_64BIT FALSE)
ENDIF(${Machine} MATCHES "x86_64")
ENDIF(${Machine} MATCHES "i686" OR ${Machine} MATCHES "i386" )
IF(HOST_IS_64BIT)
SET(LIB_DIR lib64)
ELSE(HOST_IS_64BIT)
SET(LIB_DIR lib)
ENDIF(HOST_IS_64BIT)
SET(PLUGIN_DIR ${LIB_DIR}/lmms)
SET(DATA_DIR ${CMAKE_INSTALL_PREFIX}/share)
SET(LMMS_DATA_DIR ${DATA_DIR}/lmms)
CHECK_INCLUDE_FILES(stdint.h LMMS_HAVE_STDINT_H)
CHECK_INCLUDE_FILES(pthread.h LMMS_HAVE_PTHREAD_H)
CHECK_INCLUDE_FILES(unistd.h LMMS_HAVE_UNISTD_H)
CHECK_INCLUDE_FILES(sys/types.h LMMS_HAVE_SYS_TYPES_H)
CHECK_INCLUDE_FILES(sys/ipc.h LMMS_HAVE_SYS_IPC_H)
CHECK_INCLUDE_FILES(sys/shm.h LMMS_HAVE_SYS_SHM_H)
CHECK_INCLUDE_FILES(sys/time.h LMMS_HAVE_SYS_TIME_H)
CHECK_INCLUDE_FILES(sys/wait.h LMMS_HAVE_SYS_WAIT_H)
CHECK_INCLUDE_FILES(sys/select.h LMMS_HAVE_SYS_SELECT_H)
CHECK_INCLUDE_FILES(stdarg.h LMMS_HAVE_STDARG_H)
CHECK_INCLUDE_FILES(signal.h LMMS_HAVE_SIGNAL_H)
CHECK_INCLUDE_FILES(sched.h LMMS_HAVE_SCHED_H)
CHECK_INCLUDE_FILES(sys/soundcard.h LMMS_HAVE_SYS_SOUNDCARD_H)
CHECK_INCLUDE_FILES(soundcard.h LMMS_HAVE_SOUNDCARD_H)
CHECK_INCLUDE_FILES(fcntl.h LMMS_HAVE_FCNTL_H)
CHECK_INCLUDE_FILES(sys/ioctl.h LMMS_HAVE_SYS_IOCTL_H)
CHECK_INCLUDE_FILES(ctype.h LMMS_HAVE_CTYPE_H)
CHECK_INCLUDE_FILES(string.h LMMS_HAVE_STRING_H)
# check for Qt4
FIND_PACKAGE(Qt4 REQUIRED)
SET(QT_USE_QTXML 1)
STRING(REGEX REPLACE "[^/]+$" "translations/" QT_TRANSLATIONS_DIR "${QT_MKSPECS_DIR}")
IF(EXISTS "${QT_TRANSLATIONS_DIR}")
ADD_DEFINITIONS(-D'QT_TRANSLATIONS_DIR="${QT_TRANSLATIONS_DIR}"')
ENDIF(EXISTS "${QT_TRANSLATIONS_DIR}")
IF(NOT WIN32)
STRING(REGEX REPLACE "-DQT_DLL" "" QT_DEFINITIONS "${QT_DEFINITIONS}")
ENDIF(NOT WIN32)
INCLUDE(${QT_USE_FILE})
# check for libsndfile
PKG_CHECK_MODULES(SNDFILE REQUIRED sndfile>=1.0.11)
IF(WANT_CAPS)
SET(LMMS_HAVE_CAPS TRUE)
ENDIF(WANT_CAPS)
IF(WANT_TAP)
SET(LMMS_HAVE_TAP TRUE)
ENDIF(WANT_TAP)
# check for SDL
IF(WANT_SDL)
FIND_PACKAGE(SDL)
IF(SDL_FOUND)
SET(LMMS_HAVE_SDL TRUE)
ENDIF(SDL_FOUND)
ENDIF(WANT_SDL)
# check for Stk
IF(WANT_STK)
FIND_PACKAGE(STK)
IF(STK_FOUND)
SET(LMMS_HAVE_STK TRUE)
ELSE(STK_FOUND)
SET(STK_INCLUDE_DIR "")
ENDIF(STK_FOUND)
ENDIF(WANT_STK)
# check for PulseAudio
IF(WANT_PULSEAUDIO)
FIND_PACKAGE(PulseAudio)
IF(PULSEAUDIO_FOUND)
SET(LMMS_HAVE_PULSEAUDIO TRUE)
ELSE(PULSEAUDIO_FOUND)
SET(PULSEAUDIO_INCLUDE_DIR "")
ENDIF(PULSEAUDIO_FOUND)
ENDIF(WANT_PULSEAUDIO)
# check for OGG/Vorbis-libraries
IF(WANT_OGGVORBIS)
FIND_PACKAGE(OggVorbis)
IF(OGGVORBIS_FOUND)
SET(LMMS_HAVE_OGGVORBIS TRUE)
ENDIF(OGGVORBIS_FOUND)
ENDIF(WANT_OGGVORBIS)
# check whether to enable OSS-support
IF(LMMS_HAVE_SOUNDCARD_H OR LMMS_HAVE_SYS_SOUNDCARD_H)
SET(LMMS_HAVE_OSS TRUE)
ENDIF(LMMS_HAVE_SOUNDCARD_H OR LMMS_HAVE_SYS_SOUNDCARD_H)
# check for ALSA
IF(WANT_ALSA)
INCLUDE(FindAlsa)
ALSA_CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/alsaconfig.h)
IF(ALSA_FOUND)
SET(LMMS_HAVE_ALSA TRUE)
ENDIF(ALSA_FOUND)
ENDIF(WANT_ALSA)
# check for JACK
IF(WANT_JACK)
PKG_CHECK_MODULES(JACK jack>=0.77)
IF(JACK_FOUND)
SET(LMMS_HAVE_JACK TRUE)
ENDIF(JACK_FOUND)
ENDIF(WANT_JACK)
# check for FFTW3F-library
IF(WANT_FFTW3F)
PKG_CHECK_MODULES(FFTW3F fftw3f>=3.0.0)
IF(FFTW3F_FOUND)
SET(LMMS_HAVE_FFTW3F TRUE)
ENDIF(FFTW3F_FOUND)
ENDIF(WANT_FFTW3F)
# check for Fluidsynth
IF(WANT_SF2)
PKG_CHECK_MODULES(FLUIDSYNTH fluidsynth>=1.0.7)
IF(FLUIDSYNTH_FOUND)
SET(LMMS_HAVE_FLUIDSYNTH TRUE)
ENDIF(FLUIDSYNTH_FOUND)
ENDIF(WANT_SF2)
# check for WINE
if(WANT_VST)
INCLUDE(CheckLibraryExists)
INCLUDE(CheckIncludeFileCXX)
SET(CMAKE_REQUIRED_FLAGS_ORIG ${CMAKE_REQUIRED_FLAGS})
SET(CMAKE_REQUIRED_INCLUDES_ORIG ${CMAKE_REQUIRED_INCLUDES})
SET(CMAKE_CXX_COMPILER_ORIG ${CMAKE_CXX_COMPILER})
IF(HOST_IS_64BIT)
SET(CMAKE_REQUIRED_FLAGS -m32 ${CMAKE_REQUIRED_FLAGS})
ENDIF(HOST_IS_64BIT)
CHECK_LIBRARY_EXISTS(wine wine_init "" HAVE_LIBWINE)
SET(CMAKE_CXX_COMPILER /usr/bin/wineg++)
SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${CMAKE_INSTALL_PREFIX}/include/wine/windows /usr/include/wine/windows)
CHECK_INCLUDE_FILE_CXX(windows.h HAVE_WINDOWS_H)
SET(CMAKE_CXX_COMPILER ${CMAKE_CXX_COMPILER_ORIG})
SET(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS_ORIG})
SET(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES_ORIG})
IF(HAVE_LIBWINE AND HAVE_WINDOWS_H)
SET(LMMS_HAVE_VST TRUE)
ENDIF(HAVE_LIBWINE AND HAVE_WINDOWS_H)
ENDIF(WANT_VST)
# check for libsamplerate
IF(WANT_SYSTEM_SR)
PKG_CHECK_MODULES(SAMPLERATE samplerate>=0.1.3)
IF(SAMPLERATE_FOUND)
SET(LMMS_HAVE_SAMPLERATE TRUE)
ELSE(SAMPLERATE_FOUND)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate)
INCLUDE(ChecksForLibSamplerate)
SET(LIBSAMPLERATE_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate/samplerate.c
${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate/samplerate.h
${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate/src_sinc.c
${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate/high_qual_coeffs.h
${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate/mid_qual_coeffs.h
${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate/fastest_coeffs.h
${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate/common.h
${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate/config.h
${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate/float_cast.h
${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate/src_zoh.c
${CMAKE_CURRENT_SOURCE_DIR}/src/3rdparty/samplerate/src_linear.c)
ENDIF(SAMPLERATE_FOUND)
ENDIF(WANT_SYSTEM_SR)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/lmmsconfig.h.in ${CMAKE_CURRENT_SOURCE_DIR}/lmmsconfig.h)
FILE(GLOB lmms_INCLUDES include/*.h)
FILE(GLOB lmms_UI src/gui/dialogs/*.ui)
FILE(GLOB_RECURSE lmms_SOURCES src/*.cpp)
SET(lmms_MOC ${lmms_INCLUDES})
SET(lmms_EMBEDDED_RESOURCES AUTHORS COPYING)
QT4_WRAP_CPP(lmms_MOC_out ${lmms_MOC} OPTIONS -nw -DLMMS_HAVE_ALSA)
QT4_WRAP_UI(lmms_UI_out ${lmms_UI})
# embedded resources stuff
ADD_EXECUTABLE(bin2res buildtools/bin2res.cpp)
GET_TARGET_PROPERTY(BIN2RES bin2res LOCATION)
SET(ER_H embedded_resources.h)
# we somehow have to make LMMS-binary depend on MOC-files
ADD_FILE_DEPENDENCIES(${ER_H} ${lmms_MOC_out})
ADD_CUSTOM_COMMAND(OUTPUT ${ER_H} COMMAND ${BIN2RES} ARGS ${lmms_EMBEDDED_RESOURCES} > ${ER_H} DEPENDS ${BIN2RES})
# make sub-directories
ADD_SUBDIRECTORY(plugins)
ADD_SUBDIRECTORY(data)
#
# build LMMS-binary
#
ADD_DEFINITIONS(-D'LIB_DIR="${CMAKE_INSTALL_PREFIX}/${LIB_DIR}/"' -D'PLUGIN_DIR="${CMAKE_INSTALL_PREFIX}/${LIB_DIR}/lmms/"' ${PULSEAUDIO_DEFINITIONS})
INCLUDE_DIRECTORIES( include . ${SDL_INCLUDE_DIR} ${PULSEAUDIO_INCLUDE_DIR} ${JACK_INCLUDE_DIRS} ${OGGVORBIS_INCLUDE_DIR} ${SAMPLERATE_INCLUDE_DIRS} ${SNDFILE_INCLUDE_DIRS})
LINK_DIRECTORIES( ${ASOUND_LIBRARY_DIR} ${JACK_LIBRARY_DIRS} ${SAMPLERATE_LIBRARY_DIRS} ${SNDFILE_LIBRARY_DIRS} )
LINK_LIBRARIES(${QT_LIBRARIES} ${ASOUND_LIBRARY} ${SDL_LIBRARY} ${PULSEAUDIO_LIBRARIES} ${JACK_LIBRARIES} ${OGGVORBIS_LIBRARIES} ${SAMPLERATE_LIBRARIES} ${SNDFILE_LIBRARIES})
ADD_EXECUTABLE(lmms ${lmms_SOURCES} ${lmms_INCLUDES} ${LIBSAMPLERATE_SOURCES} ${ER_H} ${lmms_UI_out})
SET_TARGET_PROPERTIES(lmms PROPERTIES COMPILE_FLAGS "-D_FORTIFY_SOURCE=0")
IF(NOT WIN32)
SET_TARGET_PROPERTIES(lmms PROPERTIES COMPILE_FLAGS "-fPIC")
ENDIF(NOT WIN32)
INSTALL(TARGETS lmms RUNTIME DESTINATION bin)
IF(WANT_PCH)
FIND_PACKAGE(PCHSupport)
IF(PCHSupport_FOUND)
SET(USE_PCH TRUE)
ADD_DEFINITIONS(-DUSE_PCH)
MESSAGE(STATUS "Enabling precompiled headers for GCC ${gcc_compiler_version}")
ADD_PRECOMPILED_HEADER(lmms pch include/pch.h)
ENDIF(PCHSupport_FOUND)
ENDIF(WANT_PCH)
SET(ADDITIONAL_MAKE_CLEAN_FILES ${ER_H} ${lmms_MOC_out} ${lmms_UI_out} lmmsconfig.h pch.h.gch/*)
#
# display configuration information
#
MESSAGE("\n"
"Installation Summary\n"
"--------------------\n"
"* Install Directory : ${CMAKE_INSTALL_PREFIX}\n"
"* Build type : ${CMAKE_BUILD_TYPE}\n"
"* Use precompiled headers : ${USE_PCH}\n"
"* Use system's libsamplerate : ${LMMS_HAVE_SAMPLERATE}\n"
)
MESSAGE(
"Supported audio interfaces\n"
"--------------------------\n"
"* ALSA : ${LMMS_HAVE_ALSA}\n"
"* JACK : ${LMMS_HAVE_JACK}\n"
"* OSS : ${LMMS_HAVE_OSS}\n"
"* PulseAudio : ${LMMS_HAVE_PULSEAUDIO}\n"
"* SDL : ${LMMS_HAVE_SDL}\n"
)
MESSAGE(
"Supported MIDI interfaces\n"
"-------------------------\n"
"* ALSA : ${LMMS_HAVE_ALSA}\n"
"* OSS : ${LMMS_HAVE_OSS}\n"
"* WinMM : ${LMMS_BUILD_WIN32}\n"
)
MESSAGE(
"Supported sample-file formats\n"
"-----------------------------\n"
"* WAVE : TRUE\n"
"* OGG/VORBIS : ${LMMS_HAVE_OGGVORBIS}\n"
)
MESSAGE(
"Optional plugins\n"
"----------------\n"
"* SoundFont2 player : ${LMMS_HAVE_FLUIDSYNTH}\n"
"* Stk Mallets : ${LMMS_HAVE_STK}\n"
"* VST-instrument hoster : ${LMMS_HAVE_VST}\n"
"* VST-effect hoster : ${LMMS_HAVE_VST}\n"
"* SpectrumAnalyzer : ${LMMS_HAVE_FFTW3F}\n"
"* CAPS LADSPA plugins : ${LMMS_HAVE_CAPS}\n"
"* TAP LADSPA plugins : ${LMMS_HAVE_TAP}\n"
)

325
ChangeLog
View File

@@ -1,3 +1,328 @@
2008-07-22 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* cmake/modules/FindAlsa.cmake:
* cmake/modules/FindOggVorbis.cmake:
* cmake/modules/FindSTK.cmake:
* cmake/modules/FindPCHSupport.cmake:
* cmake/modules/config-alsa.h.cmake:
* cmake/modules/InstallHelpers.cmake:
* cmake/modules/FindPulseAudio.cmake:
* cmake/modules/ChecksForLibSamplerate.cmake:
* cmake/modules/BuildPlugin.cmake:
* plugins/patman/patman.cpp:
* plugins/patman/CMakeLists.txt:
* plugins/ladspa_effect/ladspa_effect.cpp:
* plugins/ladspa_effect/tap/tap_deesser.c:
* plugins/ladspa_effect/tap/tap_sigmoid.c:
* plugins/ladspa_effect/tap/tap_doubler.c:
* plugins/ladspa_effect/tap/ladspa-local.h:
* plugins/ladspa_effect/tap/tap_eqbw.c:
* plugins/ladspa_effect/tap/tap_pinknoise.c:
* plugins/ladspa_effect/tap/tap_chorusflanger.c:
* plugins/ladspa_effect/tap/tap_limiter.c:
* plugins/ladspa_effect/tap/tap_eq.c:
* plugins/ladspa_effect/tap/tap_vibrato.c:
* plugins/ladspa_effect/tap/tap_autopan.c:
* plugins/ladspa_effect/tap/tap_pitch.c:
* plugins/ladspa_effect/tap/tap_dynamics_st.c:
* plugins/ladspa_effect/tap/tap_echo.c:
* plugins/ladspa_effect/tap/tap_tremolo.c:
* plugins/ladspa_effect/tap/tap_tubewarmth.c:
* plugins/ladspa_effect/tap/tap_dynamics_m.c:
* plugins/ladspa_effect/tap/tap_reflector.c:
* plugins/ladspa_effect/tap/tap_reverb.c:
* plugins/ladspa_effect/tap/tap_rotspeak.c:
* plugins/ladspa_effect/tap/CMakeLists.txt:
* plugins/ladspa_effect/ladspa_control_dialog.cpp:
* plugins/ladspa_effect/caps/basics.h:
* plugins/ladspa_effect/caps/CMakeLists.txt:
* plugins/ladspa_effect/ladspa_controls.cpp:
* plugins/ladspa_effect/CMakeLists.txt:
* plugins/organic/organic.cpp:
* plugins/organic/CMakeLists.txt:
* plugins/lb302/lb302.cpp:
* plugins/lb302/CMakeLists.txt:
* plugins/lb303/lb303.cpp:
* plugins/lb303/CMakeLists.txt:
* plugins/bass_booster/bassbooster_controls.cpp:
* plugins/bass_booster/CMakeLists.txt:
* plugins/stereo_matrix/stereomatrix_controls.cpp:
* plugins/stereo_matrix/CMakeLists.txt:
* plugins/bit_invader/bit_invader.cpp:
* plugins/bit_invader/CMakeLists.txt:
* plugins/vst_effect/vst_effect_controls.cpp:
* plugins/vst_effect/CMakeLists.txt:
* plugins/vibed/CMakeLists.txt:
* plugins/vibed/nine_button_selector.cpp:
* plugins/vibed/vibed.cpp:
* plugins/triple_oscillator/CMakeLists.txt:
* plugins/triple_oscillator/triple_oscillator.cpp:
* plugins/live_tool/live_tool.cpp:
* plugins/live_tool/CMakeLists.txt:
* plugins/peak_controller_effect/peak_controller_effect.cpp:
* plugins/peak_controller_effect/peak_controller_effect_controls.cpp:
* plugins/peak_controller_effect/CMakeLists.txt:
* plugins/audio_file_processor/audio_file_processor.cpp:
* plugins/audio_file_processor/CMakeLists.txt:
* plugins/stk/mallets/mallets.cpp:
* plugins/stk/mallets/CMakeLists.txt:
* plugins/stk/CMakeLists.txt:
* plugins/stereo_enhancer/stereoenhancer_controls.cpp:
* plugins/stereo_enhancer/CMakeLists.txt:
* plugins/sf2_player/patches_dialog.cpp:
* plugins/sf2_player/sf2_player.cpp:
* plugins/sf2_player/CMakeLists.txt:
* plugins/vestige/vestige.cpp:
* plugins/vestige/CMakeLists.txt:
* plugins/vst_base/lvsl_client.cpp:
* plugins/vst_base/CMakeLists.txt:
* plugins/ladspa_browser/ladspa_browser.cpp:
* plugins/ladspa_browser/ladspa_description.cpp:
* plugins/ladspa_browser/ladspa_port_dialog.cpp:
* plugins/ladspa_browser/CMakeLists.txt:
* plugins/spectrum_analyzer/spectrumanalyzer_controls.cpp:
* plugins/spectrum_analyzer/CMakeLists.txt:
* plugins/kicker/kicker.cpp:
* plugins/kicker/CMakeLists.txt:
* plugins/flp_import/CMakeLists.txt:
* plugins/flp_import/unrtf/output.c:
* plugins/flp_import/unrtf/html.c:
* plugins/flp_import/unrtf/malloc.c:
* plugins/flp_import/unrtf/parse.c:
* plugins/flp_import/unrtf/attr.c:
* plugins/flp_import/unrtf/word.c:
* plugins/flp_import/unrtf/util.c:
* plugins/flp_import/unrtf/convert.c:
* plugins/flp_import/unrtf/hash.c:
* plugins/flp_import/unrtf/error.c:
* plugins/midi_import/CMakeLists.txt:
* plugins/CMakeLists.txt:
* Makefile.svn:
* include/midi_dummy.h:
* include/midi_alsa_raw.h:
* include/config_mgr.h:
* include/audio_file_wave.h:
* include/audio_file_ogg.h:
* include/ladspa_manager.h:
* include/ladspa_control.h:
* include/ladspa.h:
* include/midi_oss.h:
* include/pch.h:
* include/sample_buffer.h:
* include/audio_dummy.h:
* include/midi_mapper.h:
* include/audio_pulseaudio.h:
* include/audio_sdl.h:
* include/micro_timer.h:
* include/audio_jack.h:
* include/project_renderer.h:
* include/midi_alsa_seq.h:
* include/ladspa-1.1.h:
* include/setup_dialog.h:
* include/export_project_dialog.h:
* include/midi_client.h:
* include/audio_device.h:
* include/audio_oss.h:
* include/audio_alsa.h:
* src/gui/piano_roll.cpp:
* src/gui/track_container_view.cpp:
* src/gui/plugin_browser.cpp:
* src/gui/controller_dialog.cpp:
* src/gui/automatable_model_view.cpp:
* src/gui/effect_select_dialog.cpp:
* src/gui/effect_control_dialog.cpp:
* src/gui/fx_mixer_view.cpp:
* src/gui/main_window.cpp:
* src/gui/song_editor.cpp:
* src/gui/setup_dialog.cpp:
* src/gui/controller_connection_dialog.cpp:
* src/gui/file_browser.cpp:
* src/gui/widgets/ladspa_control_view.cpp:
* src/gui/widgets/track_label_button.cpp:
* src/gui/widgets/graph.cpp:
* src/gui/widgets/visualization_widget.cpp:
* src/gui/widgets/combobox.cpp:
* src/gui/widgets/tab_widget.cpp:
* src/gui/widgets/midi_port_menu.cpp:
* src/gui/widgets/led_checkbox.cpp:
* src/gui/widgets/side_bar_widget.cpp:
* src/gui/widgets/controller_rack_view.cpp:
* src/gui/widgets/kmultitabbar.cpp:
* src/gui/widgets/caption_menu.cpp:
* src/gui/widgets/instrument_sound_shaping_view.cpp:
* src/gui/widgets/rename_dialog.cpp:
* src/gui/widgets/envelope_and_lfo_view.cpp:
* src/gui/widgets/pixmap_button.cpp:
* src/gui/widgets/knob.cpp:
* src/gui/widgets/instrument_function_views.cpp:
* src/gui/widgets/fade_button.cpp:
* src/gui/widgets/cpuload_widget.cpp:
* src/gui/widgets/tab_bar.cpp:
* src/gui/widgets/automatable_slider.cpp:
* src/gui/widgets/group_box.cpp:
* src/gui/widgets/lcd_spinbox.cpp:
* src/gui/widgets/rubberband.cpp:
* src/gui/widgets/tool_button.cpp:
* src/gui/widgets/controller_view.cpp:
* src/gui/widgets/project_notes.cpp:
* src/gui/widgets/fader.cpp:
* src/gui/widgets/effect_rack_view.cpp:
* src/gui/widgets/effect_view.cpp:
* src/gui/widgets/nstate_button.cpp:
* src/gui/widgets/automatable_button.cpp:
* src/gui/widgets/tempo_sync_knob.cpp:
* src/gui/export_project_dialog.cpp:
* src/gui/automation_editor.cpp:
* src/gui/bb_editor.cpp:
* src/gui/about_dialog.cpp:
* src/tracks/sample_track.cpp:
* src/tracks/bb_track.cpp:
* src/tracks/instrument_track.cpp:
* src/tracks/pattern.cpp:
* src/3rdparty/samplerate/src_sinc.c:
* src/3rdparty/samplerate/config.h:
* src/core/midi/midi_controller.cpp:
* src/core/midi/midi_mapper.cpp:
* src/core/midi/midi_oss.cpp:
* src/core/midi/midi_port.cpp:
* src/core/midi/midi_alsa_seq.cpp:
* src/core/midi/midi_alsa_raw.cpp:
* src/core/song.cpp:
* src/core/track_container.cpp:
* src/core/bb_track_container.cpp:
* src/core/config_mgr.cpp:
* src/core/automatable_model.cpp:
* src/core/audio/audio_alsa.cpp:
* src/core/audio/audio_file_wave.cpp:
* src/core/audio/audio_sdl.cpp:
* src/core/audio/audio_oss.cpp:
* src/core/audio/audio_jack.cpp:
* src/core/audio/audio_pulseaudio.cpp:
* src/core/audio/audio_file_ogg.cpp:
* src/core/envelope_and_lfo_parameters.cpp:
* src/core/main.cpp:
* src/core/mixer.cpp:
* src/core/combobox_model.cpp:
* src/core/instrument_sound_shaping.cpp:
* src/core/project_renderer.cpp:
* src/core/meter_model.cpp:
* src/core/ladspa_manager.cpp:
* src/core/instrument_functions.cpp:
* src/core/controller_connection.cpp:
* src/core/ladspa_control.cpp:
* src/core/track.cpp:
* src/core/piano.cpp:
* src/core/timeline.cpp:
* src/core/surround_area.cpp:
* src/core/sample_buffer.cpp:
* src/core/mv_base.cpp:
* src/core/automation_pattern.cpp:
* src/core/lfo_controller.cpp:
* src/core/controller.cpp:
* src/core/peak_controller.cpp:
* data/locale/CMakeLists.txt:
* data/track_icons/CMakeLists.txt:
* data/samples/CMakeLists.txt:
* data/presets/PluckedStringSynth/Default.cs.xml:
* data/presets/VeSTige/Default.cs.xml:
* data/presets/CMakeLists.txt:
* data/themes/CMakeLists.txt:
* data/projects/CMakeLists.txt:
* data/CMakeLists.txt:
* lmmsconfig.h.in:
* CMakeLists.txt:
migrated build-system to CMAKE
* plugins/patman/Makefile.am:
* plugins/ladspa_effect/tap/Makefile.am:
* plugins/ladspa_effect/caps/Makefile.am:
* plugins/ladspa_effect/Makefile.am:
* plugins/organic/Makefile.am:
* plugins/lb302/Makefile.am:
* plugins/lb303/Makefile.am:
* plugins/bass_booster/Makefile.am:
* plugins/stereo_matrix/Makefile.am:
* plugins/bit_invader/Makefile.am:
* plugins/vst_effect/Makefile.am:
* plugins/vibed/Makefile.am:
* plugins/triple_oscillator/Makefile.am:
* plugins/live_tool/Makefile.am:
* plugins/peak_controller_effect/Makefile.am:
* plugins/audio_file_processor/Makefile.am:
* plugins/stk/mallets/Makefile.am:
* plugins/stk/Makefile.am:
* plugins/stereo_enhancer/Makefile.am:
* plugins/sf2_player/Makefile.am:
* plugins/vestige/Makefile.am:
* plugins/vst_base/Makefile.am:
* plugins/ladspa_browser/Makefile.am:
* plugins/spectrum_analyzer/Makefile.am:
* plugins/kicker/Makefile.am:
* plugins/Makefile.am:
* plugins/flp_import/Makefile.am:
* plugins/midi_import/Makefile.am:
* data/locale/Makefile.am:
* data/track_icons/Makefile.am:
* data/midi-maps/Makefile.am:
* data/samples/effects/Makefile.am:
* data/samples/stringsnpads/Makefile.am:
* data/samples/basses/Makefile.am:
* data/samples/shapes/Makefile.am:
* data/samples/latin/Makefile.am:
* data/samples/Makefile.am:
* data/samples/bassloopes/Makefile.am:
* data/samples/drums/Makefile.am:
* data/samples/instruments/Makefile.am:
* data/samples/misc/Makefile.am:
* data/samples/drumsynth/effects/Makefile.am:
* data/samples/drumsynth/misc_synth/Makefile.am:
* data/samples/drumsynth/tr606/Makefile.am:
* data/samples/drumsynth/cr78/Makefile.am:
* data/samples/drumsynth/tr808/Makefile.am:
* data/samples/drumsynth/magnetboy/Makefile.am:
* data/samples/drumsynth/tr909/Makefile.am:
* data/samples/drumsynth/misc_fx/Makefile.am:
* data/samples/drumsynth/misc/Makefile.am:
* data/samples/drumsynth/electro/Makefile.am:
* data/samples/drumsynth/ferraro/Makefile.am:
* data/samples/drumsynth/linn/Makefile.am:
* data/samples/drumsynth/r_b/Makefile.am:
* data/samples/drumsynth/tr77/Makefile.am:
* data/samples/drumsynth/misc_bass/Makefile.am:
* data/samples/drumsynth/misc_perc/Makefile.am:
* data/samples/drumsynth/latin/Makefile.am:
* data/samples/drumsynth/instrument/Makefile.am:
* data/samples/drumsynth/misc_electro/Makefile.am:
* data/samples/drumsynth/Makefile.am:
* data/samples/drumsynth/acoustic/Makefile.am:
* data/samples/drumsynth/misc_hats/Makefile.am:
* data/samples/drumsynth/farfisa/Makefile.am:
* data/samples/drumsynth/jorgensohn/Makefile.am:
* data/samples/drumsynth/cr8000/Makefile.am:
* data/samples/drumsynth/misc_claps/Makefile.am:
* data/samples/beats/Makefile.am:
* data/presets/AudioFileProcessor/Makefile.am:
* data/presets/Organic/Makefile.am:
* data/presets/PluckedStringSynth/Makefile.am:
* data/presets/VeSTige/Makefile.am:
* data/presets/BitInvader/Makefile.am:
* data/presets/Makefile.am:
* data/presets/TripleOscillator/Makefile.am:
* data/themes/Makefile.am:
* data/projects/covers/Makefile.am:
* data/projects/recorded_loops/Makefile.am:
* data/projects/cool_songs/Makefile.am:
* data/projects/tutorials/Makefile.am:
* data/projects/demos/Makefile.am:
* data/projects/Makefile.am:
* data/projects/misc/Makefile.am:
* data/projects/templates/Makefile.am:
* data/Makefile.am:
* Makefile.am:
* acinclude.m4:
* configure.in:
removed old autotools-files
2008-07-18 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* plugins/ladspa_effect/tap/tap_deesser.c:

View File

@@ -1,565 +0,0 @@
AUTOMAKE_OPTIONS = foreign 1.4
ACLOCAL_AMFLAGS = -I m4
dist-hook:
rm -rf `find $(distdir) -name \*.moc`
#install-exec-hook:
# cd $(DESTDIR)$(bindir) ; \
# strip lmms
if HAVE_RPM
$(PACKAGE)-$(VERSION).tar.gz: dist
# Rule to build RPM distribution package
rpm: $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE).spec
cp $(PACKAGE)-$(VERSION).tar.gz @RPMSOURCEDIR@
rpmbuild -ba $(PACKAGE).spec
endif
if BUILD_WIN32
win32-pkg: all
mkdir -p tmp/lmms/data
mkdir -p tmp/lmms/plugins/ladspa/
cp lmms.exe tmp/lmms
find plugins/ -name "*.dll" -maxdepth 2 -exec cp '{}' tmp/lmms/plugins/ ';'
rm -f tmp/lmms/plugins/caps.dll tmp/lmms/plugins/tap*.dll
cp plugins/ladspa_effect/caps/caps.dll tmp/lmms/plugins/ladspa/
cp plugins/ladspa_effect/tap/tap*.dll tmp/lmms/plugins/ladspa/
PWD=`pwd`
cd data && make DESTDIR=$(PWD)/tmp/lmms/ install
if [ -d tmp/lmms/opt/mingw ] ; then mv tmp/lmms/opt/mingw/share/lmms/* tmp/lmms/data/ && rm -rf tmp/lmms/opt ; else mv tmp/lmms/usr/share/lmms/* tmp/lmms/data/ && rm -rf tmp/lmms/usr ; fi
cp /opt/mingw/bin/QtCore4.dll tmp/lmms
cp /opt/mingw/bin/QtGui4.dll tmp/lmms
cp /opt/mingw/bin/QtXml4.dll tmp/lmms
cp /opt/mingw/bin/libz.dll tmp/lmms
cp /opt/mingw/bin/libsndfile-1.dll tmp/lmms
cp /opt/mingw/bin/libvorbis*.dll tmp/lmms
cp /opt/mingw/bin/libogg-0.dll tmp/lmms
cp /opt/mingw/bin/libfluidsynth-1.dll tmp/lmms
cp /opt/mingw/bin/libfftw3f-3.dll tmp/lmms
cp /opt/mingw/bin/SDL.dll tmp/lmms
cp /opt/mingw/i586-mingw32/bin/mingwm10.dll tmp/lmms
cp -L COPYING tmp/lmms/LICENSE.TXT
cp -L README tmp/lmms/README.TXT
/opt/mingw/bin/i586-mingw32-strip tmp/lmms/lmms.exe
mv tmp/lmms tmp/lmms-$(VERSION)
cd tmp && zip -r -9 ../$(PACKAGE)-$(VERSION)-bin-win32.zip lmms-$(VERSION)/*
rm -rf tmp
endif
SUBDIRS = buildtools data plugins
INCLUDES = -I$(srcdir)/include -I.
#-I/usr/include/wine -I/usr/include/wine/windows
bin_PROGRAMS = lmms
AM_CXXFLAGS := $(AM_CXXFLAGS) $(QT_CXXFLAGS)
ui_%.uic: $(srcdir)/src/gui/dialogs/%.ui
$(UIC) -o $@ $<
%.moc: $(srcdir)/include/%.h
$(MOC) -o $@ $<
%.ts:
$(LUPDATE) $(lmms_SOURCES) `find plugins/ -type f -name "*.cpp"` -ts data/locale/$@
%.qm: %.ts
$(LRELEASE) data/locale/$<
man1_MANS = lmms.1
lmms_MOC = \
./about_dialog.moc \
./automatable_model.moc \
./automatable_model_view.moc \
./automatable_button.moc \
./automatable_slider.moc \
./automation_editor.moc \
./automation_pattern.moc \
./automation_track.moc \
./bb_editor.moc \
./bb_track_container.moc \
./bb_track.moc \
./caption_menu.moc \
./instrument_track.moc \
./combobox.moc \
./combobox_model.moc \
./controller.moc \
./controller_connection.moc \
./controller_connection_dialog.moc \
./controller_dialog.moc \
./controller_rack_view.moc \
./controller_view.moc \
./cpuload_widget.moc \
./effect_control_dialog.moc \
./effect_select_dialog.moc \
./envelope_and_lfo_parameters.moc \
./envelope_and_lfo_view.moc \
./export_project_dialog.moc \
./fade_button.moc \
./fader.moc \
./file_browser.moc \
./fx_mixer_view.moc \
./graph.moc \
./group_box.moc \
./instrument_functions.moc \
./instrument_function_views.moc \
./instrument_sound_shaping.moc \
./instrument_sound_shaping_view.moc \
./kmultitabbar.moc \
./knob.moc \
./ladspa_control.moc \
./ladspa_control_view.moc \
./lcd_spinbox.moc \
./led_checkbox.moc \
./lfo_controller.moc \
./main_window.moc \
./meter_model.moc \
./midi_alsa_seq.moc \
./midi_controller.moc \
./midi_port.moc \
./midi_port_menu.moc \
./mixer.moc \
./mv_base.moc \
./track_label_button.moc \
./nstate_button.moc \
./pattern.moc \
./peak_controller.moc \
./piano_roll.moc \
./piano.moc \
./pixmap_button.moc \
./plugin_browser.moc \
./project_notes.moc \
./project_renderer.moc \
./effect_view.moc \
./effect_rack_view.moc \
./rubberband.moc \
./rename_dialog.moc \
./sample_buffer.moc \
./sample_track.moc \
./setup_dialog.moc \
./side_bar.moc \
./side_bar_widget.moc \
./song.moc \
./song_editor.moc \
./surround_area.moc \
./tab_bar.moc \
./tab_button.moc \
./tab_widget.moc \
./tempo_sync_knob.moc \
./timeline.moc \
./tool_button.moc \
./track_container.moc \
./track_container_view.moc \
./track.moc \
./visualization_widget.moc
lmms_UIC = \
ui_export_project.uic
BUILT_SOURCES = $(lmms_MOC) $(lmms_UIC)
lmms_EMBEDDED_RESOURCES = $(srcdir)/AUTHORS $(srcdir)/COPYING
./embedded_resources.h: $(lmms_EMBEDDED_RESOURCES)
$(BIN2RES) $(lmms_EMBEDDED_RESOURCES) > $@
./embed.o: ./embedded_resources.h
if USE_3RDPARTY_LIBSRC
LIBSAMPLERATE_SOURCES = $(srcdir)/src/3rdparty/samplerate/samplerate.c \
$(srcdir)/src/3rdparty/samplerate/samplerate.h \
$(srcdir)/src/3rdparty/samplerate/src_sinc.c \
$(srcdir)/src/3rdparty/samplerate/high_qual_coeffs.h \
$(srcdir)/src/3rdparty/samplerate/mid_qual_coeffs.h \
$(srcdir)/src/3rdparty/samplerate/fastest_coeffs.h \
$(srcdir)/src/3rdparty/samplerate/common.h \
$(srcdir)/src/3rdparty/samplerate/float_cast.h \
$(srcdir)/src/3rdparty/samplerate/src_zoh.c \
$(srcdir)/src/3rdparty/samplerate/src_linear.c
SAMPLERATE_HEADER = $(srcdir)/src/3rdparty/samplerate/samplerate.h
endif
THIRD_PARTY_CODE=$(LIBSAMPLERATE_SOURCES)
lmms_SOURCES = \
$(srcdir)/src/core/automatable_model.cpp \
$(srcdir)/src/core/automation_pattern.cpp \
$(srcdir)/src/core/base64.cpp \
$(srcdir)/src/core/bb_track_container.cpp \
$(srcdir)/src/core/clipboard.cpp \
$(srcdir)/src/core/combobox_model.cpp \
$(srcdir)/src/core/config_mgr.cpp \
$(srcdir)/src/core/controller.cpp \
$(srcdir)/src/core/controller_connection.cpp \
$(srcdir)/src/core/drumsynth.cpp \
$(srcdir)/src/core/effect_chain.cpp \
$(srcdir)/src/core/effect.cpp \
$(srcdir)/src/core/engine.cpp \
$(srcdir)/src/core/envelope_and_lfo_parameters.cpp \
$(srcdir)/src/core/instrument_sound_shaping.cpp \
$(srcdir)/src/core/fx_mixer.cpp \
$(srcdir)/src/core/import_filter.cpp \
$(srcdir)/src/core/inline_automation.cpp \
$(srcdir)/src/core/instrument.cpp \
$(srcdir)/src/core/instrument_functions.cpp \
$(srcdir)/src/core/journalling_object.cpp \
$(srcdir)/src/core/ladspa_2_lmms.cpp \
$(srcdir)/src/core/ladspa_manager.cpp \
$(srcdir)/src/core/ladspa_control.cpp \
$(srcdir)/src/core/lfo_controller.cpp \
$(srcdir)/src/core/main.cpp \
$(srcdir)/src/core/meter_model.cpp \
$(srcdir)/src/core/mixer.cpp \
$(srcdir)/src/core/mmp.cpp \
$(srcdir)/src/core/mv_base.cpp \
$(srcdir)/src/core/note.cpp \
$(srcdir)/src/core/note_play_handle.cpp \
$(srcdir)/src/core/oscillator.cpp \
$(srcdir)/src/core/peak_controller.cpp \
$(srcdir)/src/core/piano.cpp \
$(srcdir)/src/core/plugin.cpp \
$(srcdir)/src/core/preset_preview_play_handle.cpp \
$(srcdir)/src/core/project_journal.cpp \
$(srcdir)/src/core/project_renderer.cpp \
$(srcdir)/src/core/project_version.cpp \
$(srcdir)/src/core/sample_buffer.cpp \
$(srcdir)/src/core/sample_play_handle.cpp \
$(srcdir)/src/core/serializing_object.cpp \
$(srcdir)/src/core/song.cpp \
$(srcdir)/src/core/surround_area.cpp \
$(srcdir)/src/core/timeline.cpp \
$(srcdir)/src/core/tool.cpp \
$(srcdir)/src/core/track.cpp \
$(srcdir)/src/core/track_container.cpp \
$(srcdir)/src/core/audio/audio_alsa.cpp \
$(srcdir)/src/core/audio/audio_device.cpp \
$(srcdir)/src/core/audio/audio_file_device.cpp \
$(srcdir)/src/core/audio/audio_file_ogg.cpp \
$(srcdir)/src/core/audio/audio_file_wave.cpp \
$(srcdir)/src/core/audio/audio_jack.cpp \
$(srcdir)/src/core/audio/audio_oss.cpp \
$(srcdir)/src/core/audio/audio_port.cpp \
$(srcdir)/src/core/audio/audio_pulseaudio.cpp \
$(srcdir)/src/core/audio/audio_sample_recorder.cpp \
$(srcdir)/src/core/audio/audio_sdl.cpp \
$(srcdir)/src/core/midi/midi_alsa_raw.cpp \
$(srcdir)/src/core/midi/midi_alsa_seq.cpp \
$(srcdir)/src/core/midi/midi_client.cpp \
$(srcdir)/src/core/midi/midi_controller.cpp \
$(srcdir)/src/core/midi/midi_oss.cpp \
$(srcdir)/src/core/midi/midi_port.cpp \
$(srcdir)/src/gui/about_dialog.cpp \
$(srcdir)/src/gui/automatable_model_view.cpp \
$(srcdir)/src/gui/automation_editor.cpp \
$(srcdir)/src/gui/bb_editor.cpp \
$(srcdir)/src/gui/controller_connection_dialog.cpp \
$(srcdir)/src/gui/controller_dialog.cpp \
$(srcdir)/src/gui/effect_control_dialog.cpp \
$(srcdir)/src/gui/effect_select_dialog.cpp \
$(srcdir)/src/gui/embed.cpp \
$(srcdir)/src/gui/export_project_dialog.cpp \
$(srcdir)/src/gui/file_browser.cpp \
$(srcdir)/src/gui/fx_mixer_view.cpp \
$(srcdir)/src/gui/lfo_controller_dialog.cpp \
$(srcdir)/src/gui/lmms_style.cpp \
$(srcdir)/src/gui/main_window.cpp \
$(srcdir)/src/gui/peak_controller_dialog.cpp \
$(srcdir)/src/gui/piano_roll.cpp \
$(srcdir)/src/gui/plugin_browser.cpp \
$(srcdir)/src/gui/setup_dialog.cpp \
$(srcdir)/src/gui/song_editor.cpp \
$(srcdir)/src/gui/string_pair_drag.cpp \
$(srcdir)/src/gui/track_container_view.cpp \
$(srcdir)/src/gui/dialogs/export_project.ui \
$(srcdir)/src/gui/widgets/automatable_button.cpp \
$(srcdir)/src/gui/widgets/automatable_slider.cpp \
$(srcdir)/src/gui/widgets/caption_menu.cpp \
$(srcdir)/src/gui/widgets/combobox.cpp \
$(srcdir)/src/gui/widgets/controller_rack_view.cpp \
$(srcdir)/src/gui/widgets/controller_view.cpp \
$(srcdir)/src/gui/widgets/cpuload_widget.cpp \
$(srcdir)/src/gui/widgets/effect_rack_view.cpp \
$(srcdir)/src/gui/widgets/effect_view.cpp \
$(srcdir)/src/gui/widgets/fade_button.cpp \
$(srcdir)/src/gui/widgets/fader.cpp \
$(srcdir)/src/gui/widgets/graph.cpp \
$(srcdir)/src/gui/widgets/group_box.cpp \
$(srcdir)/src/gui/widgets/envelope_and_lfo_view.cpp \
$(srcdir)/src/gui/widgets/instrument_function_views.cpp \
$(srcdir)/src/gui/widgets/instrument_midi_io_view.cpp \
$(srcdir)/src/gui/widgets/instrument_sound_shaping_view.cpp \
$(srcdir)/src/gui/widgets/kmultitabbar.cpp \
$(srcdir)/src/gui/widgets/knob.cpp \
$(srcdir)/src/gui/widgets/ladspa_control_view.cpp \
$(srcdir)/src/gui/widgets/lcd_spinbox.cpp \
$(srcdir)/src/gui/widgets/led_checkbox.cpp \
$(srcdir)/src/gui/widgets/meter_dialog.cpp \
$(srcdir)/src/gui/widgets/midi_port_menu.cpp \
$(srcdir)/src/gui/widgets/track_label_button.cpp \
$(srcdir)/src/gui/widgets/nstate_button.cpp \
$(srcdir)/src/gui/widgets/pixmap_button.cpp \
$(srcdir)/src/gui/widgets/project_notes.cpp \
$(srcdir)/src/gui/widgets/rubberband.cpp \
$(srcdir)/src/gui/widgets/rename_dialog.cpp \
$(srcdir)/src/gui/widgets/side_bar_widget.cpp \
$(srcdir)/src/gui/widgets/tab_bar.cpp \
$(srcdir)/src/gui/widgets/tab_widget.cpp \
$(srcdir)/src/gui/widgets/text_float.cpp \
$(srcdir)/src/gui/widgets/tempo_sync_knob.cpp \
$(srcdir)/src/gui/widgets/tool_button.cpp \
$(srcdir)/src/gui/widgets/tooltip.cpp \
$(srcdir)/src/gui/widgets/visualization_widget.cpp \
$(srcdir)/src/tracks/automation_track.cpp \
$(srcdir)/src/tracks/bb_track.cpp \
$(srcdir)/src/tracks/instrument_track.cpp \
$(srcdir)/src/tracks/pattern.cpp \
$(srcdir)/src/tracks/sample_track.cpp \
$(srcdir)/include/aeffectx.h \
$(srcdir)/include/debug.h \
$(srcdir)/include/detuning_helper.h \
$(srcdir)/include/drumsynth.h \
$(srcdir)/include/main_window.h \
$(srcdir)/include/audio_alsa.h \
$(srcdir)/include/audio_device.h \
$(srcdir)/include/audio_dummy.h \
$(srcdir)/include/audio_file_device.h \
$(srcdir)/include/audio_file_ogg.h \
$(srcdir)/include/audio_file_wave.h \
$(srcdir)/include/audio_jack.h \
$(srcdir)/include/audio_oss.h \
$(srcdir)/include/audio_pulseaudio.h \
$(srcdir)/include/audio_sample_recorder.h \
$(srcdir)/include/audio_sdl.h \
$(srcdir)/include/automation_editor.h \
$(srcdir)/include/automation_pattern.h \
$(srcdir)/include/automation_track.h \
$(srcdir)/include/interpolation.h \
$(srcdir)/include/lmms_constants.h \
$(srcdir)/include/lmms_math.h \
$(srcdir)/include/lmms_style.h \
$(srcdir)/include/mixer.h \
$(srcdir)/include/pattern.h \
$(srcdir)/include/inline_automation.h \
$(srcdir)/include/instrument_track.h \
$(srcdir)/include/note.h \
$(srcdir)/include/volume.h \
$(srcdir)/include/panning.h \
$(srcdir)/include/song.h \
$(srcdir)/include/song_editor.h \
$(srcdir)/include/plugin.h \
$(srcdir)/include/plugin_view.h \
$(srcdir)/include/instrument.h \
$(srcdir)/include/instrument_view.h \
$(srcdir)/include/bb_editor.h \
$(srcdir)/include/bb_track_container.h \
$(srcdir)/include/piano.h \
$(srcdir)/include/fx_mixer.h \
$(srcdir)/include/fx_mixer_view.h \
$(srcdir)/include/pixmap_button.h \
$(srcdir)/include/rename_dialog.h \
$(srcdir)/include/project_renderer.h \
$(srcdir)/include/export_project_dialog.h \
$(srcdir)/include/note_play_handle.h \
$(srcdir)/include/piano_roll.h \
$(srcdir)/include/basic_filters.h \
$(srcdir)/include/envelope_and_lfo_parameters.h \
$(srcdir)/include/envelope_and_lfo_view.h \
$(srcdir)/include/instrument_sound_shaping.h \
$(srcdir)/include/envelope_and_lfo_parameters.h \
$(srcdir)/include/about_dialog.h \
$(srcdir)/include/oscillator.h \
$(srcdir)/include/instrument_functions.h \
$(srcdir)/include/instrument_function_views.h \
$(srcdir)/include/instrument_sound_shaping_view.h \
$(srcdir)/include/fader.h \
$(srcdir)/include/mv_base.h \
$(srcdir)/include/automatable_model.h \
$(srcdir)/include/graph.h \
$(srcdir)/include/group_box.h \
$(srcdir)/include/tab_widget.h \
$(srcdir)/include/knob.h \
$(srcdir)/include/file_browser.h \
$(srcdir)/include/plugin_browser.h \
$(srcdir)/include/templates.h \
$(srcdir)/include/gui_templates.h \
$(srcdir)/include/surround_area.h \
$(srcdir)/include/kmultitabbar.h \
$(srcdir)/include/side_bar.h \
$(srcdir)/include/side_bar_widget.h \
$(srcdir)/include/track.h \
$(srcdir)/include/track_container.h \
$(srcdir)/include/track_container_view.h \
$(srcdir)/include/bb_track.h \
$(srcdir)/include/caption_menu.h \
$(srcdir)/include/sample_track.h \
$(srcdir)/include/sample_buffer.h \
$(srcdir)/include/track_label_button.h \
$(srcdir)/include/play_handle.h \
$(srcdir)/include/mmp.h \
$(srcdir)/include/midi.h \
$(srcdir)/include/midi_alsa_raw.h \
$(srcdir)/include/midi_client.h \
$(srcdir)/include/midi_controller.h \
$(srcdir)/include/midi_event_processor.h \
$(srcdir)/include/midi_oss.h \
$(srcdir)/include/midi_port.h \
$(srcdir)/include/midi_port_menu.h \
$(srcdir)/include/midi_time.h \
$(srcdir)/include/clipboard.h \
$(srcdir)/include/types.h \
$(srcdir)/include/update_event.h \
$(srcdir)/include/embed.h \
$(srcdir)/include/timeline.h \
$(srcdir)/include/config_mgr.h \
$(srcdir)/include/tab_bar.h \
$(srcdir)/include/tab_button.h \
$(srcdir)/include/project_notes.h \
$(srcdir)/include/project_version.h \
$(srcdir)/include/visualization_widget.h \
$(srcdir)/include/endian_handling.h \
$(srcdir)/include/preset_preview_play_handle.h \
$(srcdir)/include/sample_play_handle.h \
$(srcdir)/include/nstate_button.h \
$(srcdir)/include/midi_dummy.h \
$(srcdir)/include/lcd_spinbox.h \
$(srcdir)/include/tooltip.h \
$(srcdir)/include/automatable_button.h \
$(srcdir)/include/automatable_slider.h \
$(srcdir)/include/led_checkbox.h \
$(srcdir)/include/text_float.h \
$(srcdir)/include/tempo_sync_knob.h \
$(srcdir)/include/setup_dialog.h \
$(srcdir)/include/dummy_plugin.h \
$(srcdir)/include/dummy_instrument.h \
$(srcdir)/include/instrument_play_handle.h \
$(srcdir)/include/string_pair_drag.h \
$(srcdir)/include/instrument_midi_io_view.h \
$(srcdir)/include/audio_port.h \
$(srcdir)/include/tool.h \
$(srcdir)/include/tool_button.h \
$(srcdir)/include/cpuload_widget.h \
$(srcdir)/include/custom_events.h \
$(srcdir)/include/midi_alsa_seq.h \
$(srcdir)/include/micro_timer.h \
$(srcdir)/include/fade_button.h \
$(srcdir)/include/fifo_buffer.h \
$(srcdir)/include/combobox.h \
$(srcdir)/include/combobox_model.h \
$(srcdir)/include/rubberband.h \
$(srcdir)/include/base64.h \
$(srcdir)/include/journalling_object.h \
$(srcdir)/include/serializing_object.h \
$(srcdir)/include/project_journal.h \
$(srcdir)/include/shared_object.h \
$(srcdir)/include/import_filter.h \
$(srcdir)/include/engine.h \
$(srcdir)/include/effect.h \
$(srcdir)/include/effect_chain.h \
$(srcdir)/include/effect_controls.h \
$(srcdir)/include/effect_control_dialog.h \
$(srcdir)/include/effect_rack_view.h \
$(srcdir)/include/effect_select_dialog.h \
$(srcdir)/include/effect_view.h \
$(srcdir)/include/dummy_effect.h \
$(srcdir)/include/ladspa-1.1.h \
$(srcdir)/include/sweep_oscillator.h \
$(srcdir)/include/meter_dialog.h \
$(srcdir)/include/meter_model.h \
$(srcdir)/include/effect_lib.h \
$(srcdir)/include/ladspa_manager.h \
$(srcdir)/include/ladspa_2_lmms.h \
$(srcdir)/include/ladspa_control.h \
$(srcdir)/include/ladspa_control_view.h \
$(srcdir)/include/ladspa_base.h \
$(srcdir)/include/controller.h \
$(srcdir)/include/controller_connection.h \
$(srcdir)/include/controller_rack_view.h \
$(srcdir)/include/controller_view.h \
$(srcdir)/include/controller_dialog.h \
$(srcdir)/include/controller_connection_dialog.h \
$(srcdir)/include/lfo_controller.h \
$(srcdir)/include/peak_controller.h \
$(THIRD_PARTY_CODE)
lmms_includedir = $(pkgincludedir)
lmms_include_HEADERS = $(wildcard include/*.h include/lmmsconfig.h) $(SAMPLERATE_HEADER) $(srcdir)/src/gui/embed.cpp
EXTRA_DIST = $(lmms_EMBEDDED_RESOURCES) lmms.1
CLEANFILES = $(lmms_MOC) ./embedded_resources.h liblmms-imp.a
if HAVE_LIBSDL
LIB_SDL_LDADD = -lSDL
endif
if HAVE_LIBASOUND
LIB_ASOUND_LDADD = -lasound
endif
if HAVE_LIBJACK
LIB_JACK_LDADD = -ljack
endif
if HAVE_LIBVORBIS
if BUILD_WIN32
LIB_VORBIS_LDADD = -lvorbis-0 -lvorbisenc-2 -lvorbisfile-3 -logg-0
else
LIB_VORBIS_LDADD = -lvorbis -lvorbisenc -lvorbisfile
endif
endif
if USE_3RDPARTY_LIBSRC
else
LIB_SRC_LDADD = -lsamplerate
endif
if HAVE_LIBSF
if BUILD_LINUX
LIB_SF_LDADD = -lsndfile
else
LIB_SF_LDADD = -lsndfile-1
endif
endif
if HAVE_LIBPULSE
LIB_PA_LDADD = -lpulse
endif
if BUILD_LINUX
lmms_LDFLAGS = -rdynamic
endif
if BUILD_WIN32
lmms_LDFLAGS = -Wl,-out-implib=liblmms-imp.a
lmms_win_resources.o: lmms.rc
$(WINDRES) -o $@ $<
WIN32_RES_LDADD = lmms_win_resources.o
endif
lmms_LDADD = $(QT_LDADD) $(LIB_SDL_LDADD) $(LIB_ASOUND_LDADD) $(LIB_JACK_LDADD) $(LIB_VORBIS_LDADD) $(LIB_SRC_LDADD) $(LIB_SF_LDADD) $(LIB_PA_LDADD) $(WIN32_RES_LDADD)
#-rpath $(pkglibdir)

View File

@@ -1,22 +0,0 @@
all:
@echo
@echo Creating neccessary files for configuring and building LMMS
@echo
@echo \ \* Creating aclocal.m4
@aclocal
@echo \ \* Running libtoolize
@libtoolize -c -f
@echo \ \* Creating config.h.in
@autoheader
@echo \ \* Creating Makefile templates
@automake -ac
@echo \ \* Creating configure
@autoconf
@echo \ \* Cleaning up
@rm -rf autom4te.cache/
@echo
@echo ...done\! If something failed make sure you\'ve installed autoconf,
@echo automake and libtool.
@echo Otherwise you can run now configure \(if you did not so far\) and then make.
@echo

View File

@@ -1,681 +0,0 @@
# Check for Qt compiler flags, linker flags, and binary packages
AC_DEFUN([gw_CHECK_QT],
[
AC_REQUIRE([AC_PROG_CXX])
AC_REQUIRE([AC_PATH_X])
case "${prefix}" in
/opt/mingw*)
;;
*)
AC_PATH_PROG([PKGCONFIG], [pkg-config])
;;
esac
# Only search manually if no pkgconfig
if test -z "$PKGCONFIG" ; then
AC_MSG_CHECKING([QTDIR])
AC_ARG_WITH([qtdir], [ --with-qtdir=DIR Qt installation directory [default=$QTDIR]], QTDIR=$withval)
# Check that QTDIR is defined or that --with-qtdir given
if test x"$QTDIR" = x ; then
# some usual Qt-locations
QT_SEARCH="/usr /usr/lib/qt4 /usr/share/qt4 /usr/local/Trolltech/Qt-4.3.0 /usr/local/Trolltech/Qt-4.3.1 /usr/local/Trolltech/Qt-4.3.2 /usr/local/Trolltech/Qt-4.3.3 /usr/local/Trolltech/Qt-4.3.4"
else
QT_SEARCH=$QTDIR
QTDIR=""
fi
for i in $QT_SEARCH ; do
QT_INCLUDE_SEARCH="include/qt4 include"
for j in $QT_INCLUDE_SEARCH ; do
if test -f $i/$j/Qt/qglobal.h -a x$QTDIR = x ; then
QTDIR=$i
QT_INCLUDES=$i/$j
fi
done
done
if test x"$QTDIR" = x ; then
AC_MSG_ERROR([*** QTDIR must be defined, or --with-qtdir option given])
fi
AC_MSG_RESULT([$QTDIR])
# Change backslashes in QTDIR to forward slashes to prevent escaping
# problems later on in the build process, mainly for Cygwin build
# environment using MSVC as the compiler
# TODO: Use sed instead of perl
QTDIR=`echo $QTDIR | perl -p -e 's/\\\\/\\//g'`
AC_MSG_CHECKING([Qt includes])
# Check where includes are located
if test x"$QT_INCLUDES" = x ; then
AC_MSG_ERROR([*** could not find Qt-includes! Make sure you have the Qt-devel-files installed!])
fi
AC_MSG_RESULT([$QT_INCLUDES])
fi
# Search for available Qt translations
AH_TEMPLATE(QT_TRANSLATIONS_DIR, [Define to Qt translations directory])
AC_MSG_CHECKING([Qt translations])
QT_TRANSLATIONS_SEARCH="$QTDIR /usr/share/qt4 /usr/local/qt /usr/local/Trolltech/Qt-4.3.0 /usr/local/Trolltech/Qt-4.3.1"
for i in $QT_TRANSLATIONS_SEARCH ; do
if test -d $i/translations -a x$QT_TRANSLATIONS = x ; then
QT_TRANSLATIONS=$i/translations
fi
done
if test x"$QT_TRANSLATIONS" = x ; then
AC_MSG_ERROR([*** not found! Either install Qt i18n files or define QT_TRANSLATIONS.])
fi
AC_DEFINE_UNQUOTED(QT_TRANSLATIONS_DIR, "$QT_TRANSLATIONS")
AC_MSG_RESULT([$QT_TRANSLATIONS])
# First try to set QTHOSTDIR according to pkg-config
#
if test -n "$PKGCONFIG" ; then
QTHOSTDIR=$(pkg-config QtCore --variable=prefix)
fi
if test -z "$QTHOSTDIR" ; then
case "${prefix}" in
/opt/mingw*)
QTHOSTDIR=/usr
;;
*)
if test -n "$QTDIR" ; then
QTHOSTDIR="$QTDIR"
else
QTHOSTDIR=/usr
fi
;;
esac
fi
# Check that moc is in path
AC_CHECK_PROG(MOC, moc-qt4, $QTHOSTDIR/bin/moc-qt4,,$QTHOSTDIR/bin/)
if test x$MOC = x ; then
AC_CHECK_PROG(MOC, moc, $QTHOSTDIR/bin/moc,,$QTHOSTDIR/bin/)
if test x$MOC = x ; then
AC_MSG_ERROR([*** not found! Make sure you have Qt-devel-tools installed!])
fi
fi
# Check that uic is in path
AC_CHECK_PROG(UIC, uic-qt4, $QTHOSTDIR/bin/uic-qt4,,$QTHOSTDIR/bin/)
if test x$UIC = x ; then
AC_CHECK_PROG(UIC, uic, $QTHOSTDIR/bin/uic,,$QTHOSTDIR/bin/)
if test x$UIC = x ; then
AC_MSG_ERROR([*** not found! Make sure you have Qt-devel-tools installed!])
fi
fi
# Check that rcc is in path
AC_CHECK_PROG(RCC, rcc-qt4, $QTHOSTDIR/bin/rcc-qt4,,$QTHOSTDIR/bin/)
if test x$RCC = x ; then
AC_CHECK_PROG(RCC, rcc, $QTHOSTDIR/bin/rcc,,$QTHOSTDIR/bin/)
if test x$RCC = x ; then
AC_MSG_ERROR([*** not found! Make sure you have Qt-devel-tools installed!])
fi
fi
# lupdate is the Qt translation-update utility.
AC_CHECK_PROG(LUPDATE, lupdate-qt4, $QTHOSTDIR/bin/lupdate-qt4,,$QTHOSTDIR/bin/)
if test x$LUPDATE = x ; then
AC_CHECK_PROG(LUPDATE, lupdate, $QTHOSTDIR/bin/lupdate,,$QTHOSTDIR/bin/)
if test x$LUPDATE = x ; then
AC_MSG_WARN([*** not found! It's not needed just for compiling but should be part of a proper Qt-devel-tools-installation!])
fi
fi
# lrelease is the Qt translation-release utility.
AC_CHECK_PROG(LRELEASE, lrelease-qt4, $QTHOSTDIR/bin/lrelease-qt4,,$QTHOSTDIR/bin/)
if test x$LRELEASE = x ; then
AC_CHECK_PROG(LRELEASE, lrelease, $QTHOSTDIR/bin/lrelease,,$QTHOSTDIR/bin/)
if test x$LRELEASE = x ; then
AC_MSG_WARN([*** not found! It's not needed just for compiling but should be part of a proper Qt-devel-tools-installation!])
fi
fi
# construct CXXFLAGS
if test -n "$PKGCONFIG" ; then
QT_CXXFLAGS=$(pkg-config --cflags QtCore QtGui QtXml)
fi
if test -z "$QT_CXXFLAGS" ; then
QT_CXXFLAGS="-I$QT_INCLUDES -I$QT_INCLUDES/Qt -D_REENTRANT -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_XML_LIB -DQT_THREAD_SUPPORT"
fi
AC_MSG_CHECKING([QT_CXXFLAGS])
AC_MSG_RESULT([$QT_CXXFLAGS])
# check libraries
AC_MSG_CHECKING([Qt4 libraries])
if test -n "$PKGCONFIG" ; then
QT_LIB=$(pkg-config --libs QtCore QtGui QtXml)
fi
if test -z "$QT_LIB" ; then
case "${host}" in
*mingw32)
QT_LIBS=`ls $QTDIR/lib/libQt*.a 2> /dev/null`
if test "x$QT_LIBS" = x; then
AC_MSG_ERROR([*** Couldn't find any Qt4 libraries])
fi
QT_LIB="-L$QTDIR/bin -lQtCore4 -lQtXml4 -lQtNetwork4 -lQtGui4"
# Check that windres is in path
AC_PATH_PROGS([WINDRES],[i586-mingw32-windres windres],,[${prefix}/bin:$PATH])
if test x$WINDRES = x ; then
AC_MSG_ERROR([*** not found! Make sure you have mingw32 binutils installed!])
fi
;;
*)
QT_LIBS=`ls $QTDIR/lib64/libQt*.so 2> /dev/null`
if test "x$QT_LIBS" = x; then
QT_LIBS=`ls $QTDIR/lib/libQt*.so 2> /dev/null`
if test "x$QT_LIBS" = x; then
AC_MSG_ERROR([*** Couldn't find any Qt4 libraries])
fi
QT_LIB="-L$QTDIR/lib -L$QTDIR/lib/qt4"
else
QT_LIB="-L$QTDIR/lib64 -L$QTDIR/lib64/qt4"
fi
QT_LIB="$QT_LIB -lQtCore -lQtXml -lQtNetwork -lQtGui"
;;
esac
fi
AC_MSG_RESULT([found: $QT_LIB])
QT_LDADD="$QT_LIB"
AC_SUBST(QT_CXXFLAGS)
AC_SUBST(QT_LDADD)
])
dnl @synopsis AC_C_FIND_ENDIAN
dnl
dnl Determine endian-ness of target processor.
dnl @version 1.1 Mar 03 2002
dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
dnl
dnl Majority written from scratch to replace the standard autoconf macro
dnl AC_C_BIGENDIAN. Only part remaining from the original it the invocation
dnl of the AC_TRY_RUN macro.
dnl
dnl Permission to use, copy, modify, distribute, and sell this file for any
dnl purpose is hereby granted without fee, provided that the above copyright
dnl and this permission notice appear in all copies. No representations are
dnl made about the suitability of this software for any purpose. It is
dnl provided "as is" without express or implied warranty.
dnl Find endian-ness in the following way:
dnl 1) Look in <endian.h>.
dnl 2) If 1) fails, look in <sys/types.h> and <sys/param.h>.
dnl 3) If 1) and 2) fails and not cross compiling run a test program.
dnl 4) If 1) and 2) fails and cross compiling then guess based on target.
AC_DEFUN([AC_C_FIND_ENDIAN],
[AC_CACHE_CHECK(processor byte ordering,
ac_cv_c_byte_order,
# Initialize to unknown
ac_cv_c_byte_order=unknown
if test x$ac_cv_header_endian_h = xyes ; then
# First try <endian.h> which should set BYTE_ORDER.
[AC_TRY_LINK([
#include <endian.h>
#if BYTE_ORDER != LITTLE_ENDIAN
not big endian
#endif
], return 0 ;,
ac_cv_c_byte_order=little
)]
[AC_TRY_LINK([
#include <endian.h>
#if BYTE_ORDER != BIG_ENDIAN
not big endian
#endif
], return 0 ;,
ac_cv_c_byte_order=big
)]
fi
if test $ac_cv_c_byte_order = unknown ; then
[AC_TRY_LINK([
#include <sys/types.h>
#include <sys/param.h>
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
bogus endian macros
#endif
], return 0 ;,
[AC_TRY_LINK([
#include <sys/types.h>
#include <sys/param.h>
#if BYTE_ORDER != LITTLE_ENDIAN
not big endian
#endif
], return 0 ;,
ac_cv_c_byte_order=little
)]
[AC_TRY_LINK([
#include <sys/types.h>
#include <sys/param.h>
#if BYTE_ORDER != LITTLE_ENDIAN
not big endian
#endif
], return 0 ;,
ac_cv_c_byte_order=little
)]
)]
fi
if test $ac_cv_c_byte_order = unknown ; then
if test $cross_compiling = yes ; then
# This is the last resort. Try to guess the target processor endian-ness
# by looking at the target CPU type.
[
case "$target_cpu" in
alpha* | i?86* | mipsel* | ia64*)
ac_cv_c_big_endian=0
ac_cv_c_little_endian=1
;;
m68* | mips* | powerpc* | hppa* | sparc*)
ac_cv_c_big_endian=1
ac_cv_c_little_endian=0
;;
esac
]
else
AC_TRY_RUN(
[[
int main (void)
{ /* Are we little or big endian? From Harbison&Steele. */
union
{ long l ;
char c [sizeof (long)] ;
} u ;
u.l = 1 ;
return (u.c [sizeof (long) - 1] == 1);
}
]], , ac_cv_c_byte_order=big,
ac_cv_c_byte_order=unknown
)
AC_TRY_RUN(
[[int main (void)
{ /* Are we little or big endian? From Harbison&Steele. */
union
{ long l ;
char c [sizeof (long)] ;
} u ;
u.l = 1 ;
return (u.c [0] == 1);
}]], , ac_cv_c_byte_order=little,
ac_cv_c_byte_order=unknown
)
fi
fi
)
]
if test $ac_cv_c_byte_order = big ; then
ac_cv_c_big_endian=1
ac_cv_c_little_endian=0
elif test $ac_cv_c_byte_order = little ; then
ac_cv_c_big_endian=0
ac_cv_c_little_endian=1
else
ac_cv_c_big_endian=0
ac_cv_c_little_endian=0
AC_MSG_WARN([[*****************************************************************]])
AC_MSG_WARN([[*** Not able to determine endian-ness of target processor. ]])
AC_MSG_WARN([[*** The constants CPU_IS_BIG_ENDIAN and CPU_IS_LITTLE_ENDIAN in ]])
AC_MSG_WARN([[*** src/config.h may need to be hand editied. ]])
AC_MSG_WARN([[*****************************************************************]])
fi
)# AC_C_FIND_ENDIAN
dnl @synopsis AC_C99_FUNC_LRINT
dnl
dnl Check whether C99's lrint function is available.
dnl @version 1.3 Feb 12 2002
dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
dnl
dnl Permission to use, copy, modify, distribute, and sell this file for any
dnl purpose is hereby granted without fee, provided that the above copyright
dnl and this permission notice appear in all copies. No representations are
dnl made about the suitability of this software for any purpose. It is
dnl provided "as is" without express or implied warranty.
dnl
AC_DEFUN([AC_C99_FUNC_LRINT],
[AC_CACHE_CHECK(for lrint,
ac_cv_c99_lrint,
[
lrint_save_CFLAGS=$CFLAGS
CFLAGS="-O2 -lm"
AC_TRY_LINK([
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#include <math.h>
], if (!lrint(3.14159)) lrint(2.7183);, ac_cv_c99_lrint=yes, ac_cv_c99_lrint=no)
CFLAGS=$lrint_save_CFLAGS
])
if test "$ac_cv_c99_lrint" = yes; then
AC_DEFINE(HAVE_LRINT, 1,
[Define if you have C99's lrint function.])
fi
])# AC_C99_FUNC_LRINT
dnl @synopsis AC_C99_FUNC_LRINTF
dnl
dnl Check whether C99's lrintf function is available.
dnl @version 1.3 Feb 12 2002
dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
dnl
dnl Permission to use, copy, modify, distribute, and sell this file for any
dnl purpose is hereby granted without fee, provided that the above copyright
dnl and this permission notice appear in all copies. No representations are
dnl made about the suitability of this software for any purpose. It is
dnl provided "as is" without express or implied warranty.
dnl
AC_DEFUN([AC_C99_FUNC_LRINTF],
[AC_CACHE_CHECK(for lrintf,
ac_cv_c99_lrintf,
[
lrintf_save_CFLAGS=$CFLAGS
CFLAGS="-O2 -lm"
AC_TRY_LINK([
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#include <math.h>
], if (!lrintf(3.14159)) lrintf(2.7183);, ac_cv_c99_lrintf=yes, ac_cv_c99_lrintf=no)
CFLAGS=$lrintf_save_CFLAGS
])
if test "$ac_cv_c99_lrintf" = yes; then
AC_DEFINE(HAVE_LRINTF, 1,
[Define if you have C99's lrintf function.])
fi
])# AC_C99_FUNC_LRINTF
dnl @synopsis AC_C99_FUNC_LLRINT
dnl
dnl Check whether C99's llrint function is available.
dnl @version 1.1 Sep 30 2002
dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
dnl
dnl Permission to use, copy, modify, distribute, and sell this file for any
dnl purpose is hereby granted without fee, provided that the above copyright
dnl and this permission notice appear in all copies. No representations are
dnl made about the suitability of this software for any purpose. It is
dnl provided "as is" without express or implied warranty.
dnl
AC_DEFUN([AC_C99_FUNC_LLRINT],
[AC_CACHE_CHECK(for llrint,
ac_cv_c99_llrint,
[
llrint_save_CFLAGS=$CFLAGS
CFLAGS="-O2 -lm"
AC_TRY_LINK([
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#include <math.h>
#include <stdint.h>
], int64_t x ; x = llrint(3.14159) ;, ac_cv_c99_llrint=yes, ac_cv_c99_llrint=no)
CFLAGS=$llrint_save_CFLAGS
])
if test "$ac_cv_c99_llrint" = yes; then
AC_DEFINE(HAVE_LLRINT, 1,
[Define if you have C99's llrint function.])
fi
])# AC_C99_FUNC_LLRINT
dnl @synopsis AC_C_CLIP_MODE
dnl
dnl Determine the clipping mode when converting float to int.
dnl @version 1.0 May 17 2003
dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
dnl
dnl Permission to use, copy, modify, distribute, and sell this file for any
dnl purpose is hereby granted without fee, provided that the above copyright
dnl and this permission notice appear in all copies. No representations are
dnl made about the suitability of this software for any purpose. It is
dnl provided "as is" without express or implied warranty.
dnl Find the clipping mode in the following way:
dnl 1) If we are not cross compiling test it.
dnl 2) IF we are cross compiling, assume that clipping isn't done correctly.
AC_DEFUN([AC_C_CLIP_MODE],
[AC_CACHE_CHECK(processor clipping capabilities,
ac_cv_c_clip_type,
# Initialize to unknown
ac_cv_c_clip_positive=unknown
ac_cv_c_clip_negative=unknown
if test $ac_cv_c_clip_positive = unknown ; then
AC_TRY_RUN(
[[
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#include <math.h>
int main (void)
{ double fval ;
int k, ival ;
fval = 1.0 * 0x7FFFFFFF ;
for (k = 0 ; k < 100 ; k++)
{ ival = (lrint (fval)) >> 24 ;
if (ival != 127)
return 1 ;
fval *= 1.2499999 ;
} ;
return 0 ;
}
]],
ac_cv_c_clip_positive=yes,
ac_cv_c_clip_positive=no,
ac_cv_c_clip_positive=unknown
)
AC_TRY_RUN(
[[
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#include <math.h>
int main (void)
{ double fval ;
int k, ival ;
fval = -8.0 * 0x10000000 ;
for (k = 0 ; k < 100 ; k++)
{ ival = (lrint (fval)) >> 24 ;
if (ival != -128)
return 1 ;
fval *= 1.2499999 ;
} ;
return 0 ;
}
]],
ac_cv_c_clip_negative=yes,
ac_cv_c_clip_negative=no,
ac_cv_c_clip_negative=unknown
)
fi
if test $ac_cv_c_clip_positive = yes ; then
ac_cv_c_clip_positive=1
else
ac_cv_c_clip_positive=0
fi
if test $ac_cv_c_clip_negative = yes ; then
ac_cv_c_clip_negative=1
else
ac_cv_c_clip_negative=0
fi
[[
case "$ac_cv_c_clip_positive$ac_cv_c_clip_negative" in
"00")
ac_cv_c_clip_type="none"
;;
"10")
ac_cv_c_clip_type="positive"
;;
"01")
ac_cv_c_clip_type="negative"
;;
"11")
ac_cv_c_clip_type="both"
;;
esac
]]
)
]
)# AC_C_CLIP_MODE
dnl Available from the GNU Autoconf Macro Archive at:
dnl http://www.gnu.org/software/ac-archive/htmldoc/ax_prefix_config_h.html
dnl
AC_DEFUN([AX_PREFIX_CONFIG_H],[AC_REQUIRE([AC_CONFIG_HEADER])
AC_CONFIG_COMMANDS([ifelse($1,,$PACKAGE-config.h,$1)],[dnl
AS_VAR_PUSHDEF([_OUT],[ac_prefix_conf_OUT])dnl
AS_VAR_PUSHDEF([_DEF],[ac_prefix_conf_DEF])dnl
AS_VAR_PUSHDEF([_PKG],[ac_prefix_conf_PKG])dnl
AS_VAR_PUSHDEF([_LOW],[ac_prefix_conf_LOW])dnl
AS_VAR_PUSHDEF([_UPP],[ac_prefix_conf_UPP])dnl
AS_VAR_PUSHDEF([_INP],[ac_prefix_conf_INP])dnl
m4_pushdef([_script],[conftest.prefix])dnl
m4_pushdef([_symbol],[m4_cr_Letters[]m4_cr_digits[]_])dnl
_OUT=`echo ifelse($1, , $PACKAGE-config.h, $1)`
_DEF=`echo _$_OUT | sed -e "y:m4_cr_letters:m4_cr_LETTERS[]:" -e "s/@<:@^m4_cr_Letters@:>@/_/g"`
_PKG=`echo ifelse($2, , LMMS, $2)`
_LOW=`echo _$_PKG | sed -e "y:m4_cr_LETTERS-:m4_cr_letters[]_:"`
_UPP=`echo $_PKG | sed -e "y:m4_cr_letters-:m4_cr_LETTERS[]_:" -e "/^@<:@m4_cr_digits@:>@/s/^/_/"`
_INP=`echo ifelse($3, , _, $3)`
if test "$ac_prefix_conf_INP" = "_"; then
for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
test -f "$ac_prefix_conf_INP" && continue
case $ac_file in
*.h) test -f $ac_file && _INP=$ac_file ;;
*)
esac
done
fi
if test "$_INP" = "_"; then
case "$_OUT" in
*/*) _INP=`basename "$_OUT"`
;;
*-*) _INP=`echo "$_OUT" | sed -e "s/@<:@_symbol@:>@*-//"`
;;
*) _INP=config.h
;;
esac
fi
if test -z "$_PKG" ; then
AC_MSG_ERROR([no prefix for _PREFIX_PKG_CONFIG_H])
else
if test ! -f "$_INP" ; then if test -f "$srcdir/$_INP" ; then
_INP="$srcdir/$_INP"
fi fi
AC_MSG_NOTICE(creating $_OUT - prefix $_UPP for $_INP defines)
if test -f $_INP ; then
echo "s/@%:@undef *\\(@<:@m4_cr_LETTERS[]_@:>@\\)/@%:@undef $_UPP""_\\1/" > _script
# no! these are things like socklen_t, const, vfork
# echo "s/@%:@undef *\\(@<:@m4_cr_letters@:>@\\)/@%:@undef $_LOW""_\\1/" >> _script
echo "s/@%:@def[]ine *\\(@<:@m4_cr_LETTERS[]_@:>@@<:@_symbol@:>@*\\)\\(.*\\)/@%:@ifndef $_UPP""_\\1 \\" >> _script
echo "@%:@def[]ine $_UPP""_\\1 \\2 \\" >> _script
echo "@%:@endif/" >>_script
# no! these are things like socklen_t, const, vfork
# echo "s/@%:@def[]ine *\\(@<:@m4_cr_letters@:>@@<:@_symbol@:>@*\\)\\(.*\\)/@%:@ifndef $_LOW""_\\1 \\" >> _script
# echo "@%:@define $_LOW""_\\1 \\2 \\" >> _script
# echo "@%:@endif/" >> _script
# now executing _script on _DEF input to create _OUT output file
echo "@%:@ifndef $_DEF" >$tmp/pconfig.h
echo "@%:@def[]ine $_DEF 1" >>$tmp/pconfig.h
echo ' ' >>$tmp/pconfig.h
echo /'*' $_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
sed -f _script $_INP >>$tmp/pconfig.h
echo ' ' >>$tmp/pconfig.h
echo '/* once:' $_DEF '*/' >>$tmp/pconfig.h
echo "@%:@endif" >>$tmp/pconfig.h
if cmp -s $_OUT $tmp/pconfig.h 2>/dev/null; then
AC_MSG_NOTICE([$_OUT is unchanged])
else
ac_dir=`AS_DIRNAME(["$_OUT"])`
AS_MKDIR_P(["$ac_dir"])
rm -f "$_OUT"
mv $tmp/pconfig.h "$_OUT"
fi
# cp _script _configs.sed
else
AC_MSG_ERROR([input file $_INP does not exist - skip generating $_OUT])
fi
rm -f conftest.*
fi
m4_popdef([_symbol])dnl
m4_popdef([_script])dnl
AS_VAR_POPDEF([_INP])dnl
AS_VAR_POPDEF([_UPP])dnl
AS_VAR_POPDEF([_LOW])dnl
AS_VAR_POPDEF([_PKG])dnl
AS_VAR_POPDEF([_DEF])dnl
AS_VAR_POPDEF([_OUT])dnl
],[PACKAGE="$PACKAGE"])])

View File

@@ -0,0 +1,72 @@
# BuildPlugin.cmake - Copyright (c) 2008 Tobias Doerffel
#
# description: build LMMS-plugin
# usage: BUILD_PLUGIN(<PLUGIN_NAME> <PLUGIN_SOURCES> MOCFILES <HEADERS_FOR_MOC> EMBEDDED_RESOURCES <LIST_OF_FILES_TO_EMBED> UICFILES <UI_FILES_TO_COMPILE> )
MACRO(CAR var)
SET(${var} ${ARGV1})
ENDMACRO(CAR)
MACRO(CDR var junk)
SET(${var} ${ARGN})
ENDMACRO(CDR)
MACRO(PARSE_ARGUMENTS prefix arg_names option_names)
SET(DEFAULT_ARGS)
FOREACH(arg_name ${arg_names})
SET(${prefix}_${arg_name})
ENDFOREACH(arg_name)
FOREACH(option ${option_names})
SET(${prefix}_${option} FALSE)
ENDFOREACH(option)
SET(current_arg_name DEFAULT_ARGS)
SET(current_arg_list)
FOREACH(arg ${ARGN})
SET(larg_names ${arg_names})
LIST(FIND larg_names "${arg}" is_arg_name)
IF (is_arg_name GREATER -1)
SET(${prefix}_${current_arg_name} ${current_arg_list})
SET(current_arg_name ${arg})
SET(current_arg_list)
ELSE (is_arg_name GREATER -1)
SET(loption_names ${option_names})
LIST(FIND loption_names "${arg}" is_option)
IF (is_option GREATER -1)
SET(${prefix}_${arg} TRUE)
ELSE (is_option GREATER -1)
SET(current_arg_list ${current_arg_list} ${arg})
ENDIF (is_option GREATER -1)
ENDIF (is_arg_name GREATER -1)
ENDFOREACH(arg)
SET(${prefix}_${current_arg_name} ${current_arg_list})
ENDMACRO(PARSE_ARGUMENTS)
MACRO(BUILD_PLUGIN)
PARSE_ARGUMENTS(PLUGIN "MOCFILES;EMBEDDED_RESOURCES;UICFILES" "" ${ARGN} )
CAR(PLUGIN_NAME ${PLUGIN_DEFAULT_ARGS})
CDR(PLUGIN_SOURCES ${PLUGIN_DEFAULT_ARGS})
INCLUDE_DIRECTORIES(. ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/src/gui)
ADD_DEFINITIONS(-DPLUGIN_NAME=${PLUGIN_NAME})
LIST(LENGTH PLUGIN_EMBEDDED_RESOURCES ER_LEN)
IF(ER_LEN)
SET(ER_H embedded_resources.h)
ADD_CUSTOM_COMMAND(OUTPUT ${ER_H}
COMMAND ${BIN2RES}
ARGS ${PLUGIN_EMBEDDED_RESOURCES} > ${ER_H})
ENDIF(ER_LEN)
QT4_WRAP_CPP(plugin_MOC_out ${PLUGIN_MOCFILES})
QT4_WRAP_UI(plugin_UIC_out ${PLUGIN_UICFILES})
FOREACH(f ${PLUGIN_SOURCES})
ADD_FILE_DEPENDENCIES(${f} ${ER_H} ${plugin_MOC_out} ${plugin_UIC_out})
ENDFOREACH(f)
ADD_LIBRARY( ${PLUGIN_NAME} SHARED ${PLUGIN_SOURCES})
INSTALL(TARGETS ${PLUGIN_NAME} LIBRARY DESTINATION ${PLUGIN_DIR})
SET(ADDITIONAL_MAKE_CLEAN_FILES ${ER_H} ${plugin_MOC_out})
ENDMACRO(BUILD_PLUGIN)

View File

@@ -0,0 +1,76 @@
#
# some tests migrated from libsamplerate's acinclude.m4 - Tobias Doerffel, 2008
#
INCLUDE(CheckCSourceCompiles)
INCLUDE(CheckCSourceRuns)
SET(CMAKE_REQUIRED_LIBRARIES_ORIG ${CMAKE_REQUIRED_LIBRARIES})
SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} -lm)
SET(C99_MATH " #define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#include <math.h>
")
SET(TEST_LRINT "int main( void )
{
if (!lrint(3.14159)) lrint(2.7183);
return( 0 );
}")
SET(TEST_LRINTF "int main( void )
{
if (!lrintf(3.14159)) lrintf(2.7183);
return( 0 );
}")
CHECK_C_SOURCE_COMPILES("${C99_MATH}${TEST_LRINT}" HAVE_LRINT)
CHECK_C_SOURCE_COMPILES("${C99_MATH}${TEST_LRINTF}" HAVE_LRINTF)
CHECK_C_SOURCE_RUNS("
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#include <math.h>
int main (void)
{ double fval ;
int k, ival ;
fval = 1.0 * 0x7FFFFFFF ;
for (k = 0 ; k < 100 ; k++)
{ ival = (lrint (fval)) >> 24 ;
if (ival != 127)
return 1 ;
fval *= 1.2499999 ;
} ;
return 0 ;
}
" CPU_CLIPS_POSITIVE)
CHECK_C_SOURCE_RUNS("
#define _ISOC9X_SOURCE 1
#define _ISOC99_SOURCE 1
#define __USE_ISOC99 1
#define __USE_ISOC9X 1
#include <math.h>
int main (void)
{ double fval ;
int k, ival ;
fval = -8.0 * 0x10000000 ;
for (k = 0 ; k < 100 ; k++)
{ ival = (lrint (fval)) >> 24 ;
if (ival != -128)
return 1 ;
fval *= 1.2499999 ;
} ;
return 0 ;
}
" CPU_CLIPS_NEGATIVE)
SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES_ORIG})

View File

@@ -0,0 +1,69 @@
# Alsa check, based on libkmid/configure.in.in.
# Only the support for Alsa >= 0.9.x was included; 0.5.x was dropped (but feel free to re-add it if you need it)
# It defines ...
# It offers the following macros:
# ALSA_CONFIGURE_FILE(config_header) - generate a config.h, typical usage:
# ALSA_CONFIGURE_FILE(${CMAKE_BINARY_DIR}/config-alsa.h)
# ALSA_VERSION_STRING(version_string) looks for alsa/version.h and reads the version string into
# the first argument passed to the macro
# Copyright (c) 2006, David Faure, <faure@kde.org>
# Copyright (c) 2007, Matthias Kretz <kretz@kde.org>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
include(CheckIncludeFiles)
include(CheckIncludeFileCXX)
include(CheckLibraryExists)
# Already done by toplevel
find_library(ASOUND_LIBRARY asound)
set(ASOUND_LIBRARY_DIR "")
if(ASOUND_LIBRARY)
get_filename_component(ASOUND_LIBRARY_DIR ${ASOUND_LIBRARY} PATH)
endif(ASOUND_LIBRARY)
check_library_exists(asound snd_seq_create_simple_port "${ASOUND_LIBRARY_DIR}" HAVE_LIBASOUND2)
if(HAVE_LIBASOUND2)
message(STATUS "Found ALSA: ${ASOUND_LIBRARY}")
else(HAVE_LIBASOUND2)
message(STATUS "ALSA not found")
endif(HAVE_LIBASOUND2)
set(ALSA_FOUND ${HAVE_LIBASOUND2})
find_path(ALSA_INCLUDES alsa/version.h)
macro(ALSA_VERSION_STRING _result)
# check for version in alsa/version.h
if(ALSA_INCLUDES)
file(READ "${ALSA_INCLUDES}/alsa/version.h" _ALSA_VERSION_CONTENT)
string(REGEX REPLACE ".*SND_LIB_VERSION_STR.*\"(.*)\".*" "\\1" ${_result} ${_ALSA_VERSION_CONTENT})
else(ALSA_INCLUDES)
message(STATUS "ALSA version not known. ALSA output will probably not work correctly.")
endif(ALSA_INCLUDES)
endmacro(ALSA_VERSION_STRING _result)
get_filename_component(_FIND_ALSA_MODULE_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
macro(ALSA_CONFIGURE_FILE _destFile)
check_include_files(sys/soundcard.h LMMS_HAVE_SYS_SOUNDCARD_H)
check_include_files(machine/soundcard.h LMMS_HAVE_MACHINE_SOUNDCARD_H)
check_include_files(linux/awe_voice.h LMMS_HAVE_LINUX_AWE_VOICE_H)
check_include_files(awe_voice.h LMMS_HAVE_AWE_VOICE_H)
check_include_files(/usr/src/sys/i386/isa/sound/awe_voice.h LMMS_HAVE__USR_SRC_SYS_I386_ISA_SOUND_AWE_VOICE_H)
check_include_files(/usr/src/sys/gnu/i386/isa/sound/awe_voice.h LMMS_HAVE__USR_SRC_SYS_GNU_I386_ISA_SOUND_AWE_VOICE_H)
check_include_file_cxx(sys/asoundlib.h LMMS_HAVE_SYS_ASOUNDLIB_H)
check_include_file_cxx(alsa/asoundlib.h LMMS_HAVE_ALSA_ASOUNDLIB_H)
check_library_exists(asound snd_pcm_resume "${ASOUND_LIBRARY_DIR}" ASOUND_HAS_SND_PCM_RESUME)
if(ASOUND_HAS_SND_PCM_RESUME)
set(HAVE_SND_PCM_RESUME 1)
endif(ASOUND_HAS_SND_PCM_RESUME)
configure_file(${_FIND_ALSA_MODULE_DIR}/config-alsa.h.cmake ${_destFile})
endmacro(ALSA_CONFIGURE_FILE _destFile)
mark_as_advanced(ALSA_INCLUDES ASOUND_LIBRARY)

View File

@@ -0,0 +1,86 @@
# - Try to find the OggVorbis libraries
# Once done this will define
#
# OGGVORBIS_FOUND - system has OggVorbis
# OGGVORBIS_VERSION - set either to 1 or 2
# OGGVORBIS_INCLUDE_DIR - the OggVorbis include directory
# OGGVORBIS_LIBRARIES - The libraries needed to use OggVorbis
# OGG_LIBRARY - The Ogg library
# VORBIS_LIBRARY - The Vorbis library
# VORBISFILE_LIBRARY - The VorbisFile library
# VORBISENC_LIBRARY - The VorbisEnc library
# Copyright (c) 2006, Richard Laerkaeng, <richard@goteborg.utfors.se>
#
# Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
include (CheckLibraryExists)
find_path(VORBIS_INCLUDE_DIR vorbis/vorbisfile.h)
find_path(OGG_INCLUDE_DIR ogg/ogg.h)
find_library(OGG_LIBRARY NAMES ogg)
find_library(VORBIS_LIBRARY NAMES vorbis)
find_library(VORBISFILE_LIBRARY NAMES vorbisfile)
find_library(VORBISENC_LIBRARY NAMES vorbisenc)
if (VORBIS_INCLUDE_DIR AND VORBIS_LIBRARY AND VORBISFILE_LIBRARY AND VORBISENC_LIBRARY)
set(OGGVORBIS_FOUND TRUE)
set(OGGVORBIS_LIBRARIES ${OGG_LIBRARY} ${VORBIS_LIBRARY} ${VORBISFILE_LIBRARY} ${VORBISENC_LIBRARY})
set(_CMAKE_REQUIRED_LIBRARIES_TMP ${CMAKE_REQUIRED_LIBRARIES})
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${OGGVORBIS_LIBRARIES})
check_library_exists(vorbis vorbis_bitrate_addblock "" HAVE_LIBVORBISENC2)
set(CMAKE_REQUIRED_LIBRARIES ${_CMAKE_REQUIRED_LIBRARIES_TMP})
if (HAVE_LIBVORBISENC2)
set (OGGVORBIS_VERSION 2)
else (HAVE_LIBVORBISENC2)
set (OGGVORBIS_VERSION 1)
endif (HAVE_LIBVORBISENC2)
else (VORBIS_INCLUDE_DIR AND VORBIS_LIBRARY AND VORBISFILE_LIBRARY AND VORBISENC_LIBRARY)
set (OGGVORBIS_VERSION)
set(OGGVORBIS_FOUND FALSE)
endif (VORBIS_INCLUDE_DIR AND VORBIS_LIBRARY AND VORBISFILE_LIBRARY AND VORBISENC_LIBRARY)
if (OGGVORBIS_FOUND)
if (NOT OggVorbis_FIND_QUIETLY)
message(STATUS "Found OggVorbis: ${OGGVORBIS_LIBRARIES}")
endif (NOT OggVorbis_FIND_QUIETLY)
else (OGGVORBIS_FOUND)
if (OggVorbis_FIND_REQUIRED)
message(FATAL_ERROR "Could NOT find OggVorbis libraries")
endif (OggVorbis_FIND_REQUIRED)
if (NOT OggVorbis_FIND_QUITELY)
message(STATUS "Could NOT find OggVorbis libraries")
endif (NOT OggVorbis_FIND_QUITELY)
endif (OGGVORBIS_FOUND)
#check_include_files(vorbis/vorbisfile.h HAVE_VORBISFILE_H)
#check_library_exists(ogg ogg_page_version "" HAVE_LIBOGG)
#check_library_exists(vorbis vorbis_info_init "" HAVE_LIBVORBIS)
#check_library_exists(vorbisfile ov_open "" HAVE_LIBVORBISFILE)
#check_library_exists(vorbisenc vorbis_info_clear "" HAVE_LIBVORBISENC)
#check_library_exists(vorbis vorbis_bitrate_addblock "" HAVE_LIBVORBISENC2)
#if (HAVE_LIBOGG AND HAVE_VORBISFILE_H AND HAVE_LIBVORBIS AND HAVE_LIBVORBISFILE AND HAVE_LIBVORBISENC)
# message(STATUS "Ogg/Vorbis found")
# set (VORBIS_LIBS "-lvorbis -logg")
# set (VORBISFILE_LIBS "-lvorbisfile")
# set (VORBISENC_LIBS "-lvorbisenc")
# set (OGGVORBIS_FOUND TRUE)
# if (HAVE_LIBVORBISENC2)
# set (HAVE_VORBIS 2)
# else (HAVE_LIBVORBISENC2)
# set (HAVE_VORBIS 1)
# endif (HAVE_LIBVORBISENC2)
#else (HAVE_LIBOGG AND HAVE_VORBISFILE_H AND HAVE_LIBVORBIS AND HAVE_LIBVORBISFILE AND HAVE_LIBVORBISENC)
# message(STATUS "Ogg/Vorbis not found")
#endif (HAVE_LIBOGG AND HAVE_VORBISFILE_H AND HAVE_LIBVORBIS AND HAVE_LIBVORBISFILE AND HAVE_LIBVORBISENC)

View File

@@ -0,0 +1,127 @@
# - Try to find precompiled headers support for GCC 3.4 and 4.x
# Once done this will define:
#
# Variable:
# PCHSupport_FOUND
#
# Macro:
# ADD_PRECOMPILED_HEADER
IF(CMAKE_COMPILER_IS_GNUCXX)
EXEC_PROGRAM(
${CMAKE_CXX_COMPILER}
ARGS --version
OUTPUT_VARIABLE _compiler_output)
STRING(REGEX REPLACE ".* ([0-9]\\.[0-9]\\.[0-9]) .*" "\\1"
gcc_compiler_version ${_compiler_output})
#MESSAGE("GCC Version: ${gcc_compiler_version}")
IF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
SET(PCHSupport_FOUND TRUE)
ELSE(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
IF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
SET(PCHSupport_FOUND TRUE)
ENDIF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
ENDIF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
IF(PCHSupport_FOUND)
ADD_DEFINITIONS( -DUSE_PCH=1 )
ELSE(PCHSupport_FOUND)
ADD_DEFINITIONS( -DUSE_PCH=0 )
ENDIF(PCHSupport_FOUND)
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
# ADD_PRECOMPILED_HEADER( targetName HEADERS _inputs )
MACRO(ADD_PRECOMPILED_HEADER _targetName _inputs )
FOREACH (_current_FILE ${ARGN})
GET_FILENAME_COMPONENT(_name ${_current_FILE} NAME)
SET(_source "${CMAKE_CURRENT_SOURCE_DIR}/${_current_FILE}")
SET(_outdir "${CMAKE_CURRENT_BINARY_DIR}/${_name}.gch")
MAKE_DIRECTORY(${_outdir})
SET(_output "${_outdir}/${CMAKE_BUILD_TYPE}.c++")
STRING(TOUPPER "CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}" _flags_var_name)
SET(_compiler_FLAGS ${${_flags_var_name}})
GET_DIRECTORY_PROPERTY(_directory_flags INCLUDE_DIRECTORIES)
FOREACH(item ${_directory_flags})
LIST(APPEND _compiler_FLAGS "-I${item}")
ENDFOREACH(item)
GET_DIRECTORY_PROPERTY(_directory_flags DEFINITIONS)
LIST(APPEND _compiler_FLAGS ${_directory_flags})
# some hacks for Qt4 - Tobias Doerffel, 2008
STRING(TOUPPER "COMPILE_DEFINITIONS_${CMAKE_BUILD_TYPE}" CD)
GET_DIRECTORY_PROPERTY(_directory_flags ${CD} )
FOREACH(item ${_directory_flags})
LIST(APPEND _compiler_FLAGS "-D${item}")
ENDFOREACH(item)
GET_DIRECTORY_PROPERTY(_directory_flags COMPILE_DEFINITIONS)
FOREACH(item ${_directory_flags})
LIST(APPEND _compiler_FLAGS "-D${item}")
ENDFOREACH(item)
SEPARATE_ARGUMENTS(_compiler_FLAGS)
#MESSAGE("_compiler_FLAGS: ${_compiler_FLAGS}")
#message("${CMAKE_CXX_COMPILER} ${_compiler_FLAGS} -x c++-header -o ${_output} ${_source}")
ADD_CUSTOM_COMMAND(
OUTPUT ${_output}
COMMAND ${CMAKE_CXX_COMPILER}
${_compiler_FLAGS}
${COMPILE_DEFINITIONS}
-x c++-header
-o ${_output} ${_source}
DEPENDS ${_source} )
ADD_CUSTOM_TARGET(${_targetName}_gch DEPENDS ${_output})
ADD_DEPENDENCIES(${_targetName} ${_targetName}_gch)
#SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-include ${_name} -Winvalid-pch -H")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include ${_name} -Winvalid-pch")
SET_TARGET_PROPERTIES(${_targetName} PROPERTIES
COMPILE_FLAGS "-include ${_name} -Winvalid-pch"
)
ENDFOREACH (_current_FILE)
ENDMACRO(ADD_PRECOMPILED_HEADER)
# ADD_PRECOMPILED_HEADER_INPLACE( targetName HEADERS _inputs )
MACRO(ADD_PRECOMPILED_HEADER_INPLACE _targetName _inputs )
STRING(TOUPPER "CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}" _flags_var_name)
SET(_compiler_FLAGS ${${_flags_var_name}})
GET_DIRECTORY_PROPERTY(_directory_flags INCLUDE_DIRECTORIES)
FOREACH(item ${_directory_flags})
LIST(APPEND _compiler_FLAGS "-I${item}")
ENDFOREACH(item)
GET_DIRECTORY_PROPERTY(_directory_flags DEFINITIONS)
LIST(APPEND _compiler_FLAGS ${_directory_flags})
SEPARATE_ARGUMENTS(_compiler_FLAGS)
#MESSAGE("_compiler_FLAGS: ${_compiler_FLAGS}")
MAKE_DIRECTORY("${CMAKE_CURRENT_BINARY_DIR}/gch")
FOREACH (_current_FILE ${ARGN})
GET_FILENAME_COMPONENT(_name ${_current_FILE} NAME)
SET(_source "${CMAKE_CURRENT_SOURCE_DIR}/${_current_FILE}")
SET(_output "${CMAKE_CURRENT_BINARY_DIR}/gch/${_name}.gch")
#message("${CMAKE_CXX_COMPILER} ${_compiler_FLAGS} -x c++-header -o ${_output} ${_source}")
ADD_CUSTOM_COMMAND(
OUTPUT ${_output}
COMMAND ${CMAKE_CXX_COMPILER}
${_compiler_FLAGS}
-x c++-header
-fPIC
-o ${_output} ${_source}
DEPENDS ${_source} )
LIST(APPEND GCH_FILES ${_output})
ENDFOREACH (_current_FILE)
#MESSAGE("GCH_FILES: ${GCH_FILES}")
FOREACH (GCH_FILE ${GCH_FILES})
SET_DIRECTORY_PROPERTIES( PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES ${GCH_FILE} )
ENDFOREACH (GCH_FILE)
SEPARATE_ARGUMENTS(GCH_FILES)
ADD_CUSTOM_TARGET(${_targetName}_gch DEPENDS ${GCH_FILES})
ADD_DEPENDENCIES(${_targetName} ${_targetName}_gch)
INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR}/gch/)
SET_TARGET_PROPERTIES(${_targetName} PROPERTIES COMPILE_FLAGS "-Winvalid-pch")
ENDMACRO(ADD_PRECOMPILED_HEADER_INPLACE)

View File

@@ -0,0 +1,59 @@
# - Try to find PulseAudioSimple
# Once done this will define
#
# PULSEAUDIO_FOUND - system has PulseAudioSimple
# PULSEAUDIO_INCLUDE_DIR - the PulseAudioSimple include directory
# PULSEAUDIO_LIBRARIES - the libraries needed to use PulseAudioSimple
# PULSEAUDIO_DEFINITIONS - Compiler switches required for using PulseAudioSimple
#
IF(NO_PULSE)
message(status "<disabled per request>")
ELSE(NO_PULSE)
IF (PULSEAUDIO_INCLUDE_DIR AND PULSEAUDIO_LIBRARIES)
# in cache already
SET(PULSEAUDIO_FIND_QUIETLY TRUE)
ENDIF (PULSEAUDIO_INCLUDE_DIR AND PULSEAUDIO_LIBRARIES)
IF (NOT WIN32)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
INCLUDE(FindPkgConfig)
pkg_check_modules(PA libpulse)
set(_PASIncDir ${PA_INCLUDE_DIRS})
set(_PASLinkDir ${PA_LIBRARY_DIRS})
set(_PASLinkFlags ${PA_LDFLAGS})
set(_PASCflags ${PA_CFLAGS})
SET(PULSEAUDIO_DEFINITIONS ${_PASCflags})
ENDIF (NOT WIN32)
FIND_PATH(PULSEAUDIO_INCLUDE_DIR pulse/pulseaudio.h
PATHS
${_PASIncDir}
PATH_SUFFIXES pulse
)
FIND_LIBRARY(PULSEAUDIO_LIBRARIES NAMES pulse libpulse
PATHS
${_PASLinkDir}
)
IF (PULSEAUDIO_INCLUDE_DIR AND PULSEAUDIO_LIBRARIES)
SET(PULSEAUDIO_FOUND TRUE)
ELSE (PULSEAUDIO_INCLUDE_DIR AND PULSEAUDIO_LIBRARIES)
SET(PULSEAUDIO_FOUND FALSE)
ENDIF (PULSEAUDIO_INCLUDE_DIR AND PULSEAUDIO_LIBRARIES)
IF (PULSEAUDIO_FOUND)
IF (NOT PULSEAUDIO_FIND_QUIETLY)
MESSAGE(STATUS "Found PulseAudio Simple: ${PULSEAUDIO_LIBRARIES}")
ENDIF (NOT PULSEAUDIO_FIND_QUIETLY)
SET(USE_PULSE_ 1)
ELSE (PULSEAUDIO_FOUND)
MESSAGE(STATUS "Could NOT find LibXml2")
ENDIF (PULSEAUDIO_FOUND)
MARK_AS_ADVANCED(PULSEAUDIO_INCLUDE_DIR PULSEAUDIO_LIBRARIES)
ENDIf(NO_PULSE)

View File

@@ -0,0 +1,20 @@
FIND_PATH(STK_INCLUDE_DIR Stk.h /usr/include/stk /usr/local/include/stk)
FIND_LIBRARY(STK_LIBRARY NAMES stk PATH /usr/lib /usr/local/lib)
IF (STK_INCLUDE_DIR AND STK_LIBRARY)
SET(STK_FOUND TRUE)
ENDIF (STK_INCLUDE_DIR AND STK_LIBRARY)
IF (STK_FOUND)
IF (NOT STK_FIND_QUIETLY)
MESSAGE(STATUS "Found STK: ${STK_LIBRARY}")
SET(HAVE_STK TRUE)
ENDIF (NOT STK_FIND_QUIETLY)
ELSE (STK_FOUND)
IF (STK_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find STK")
ENDIF (STK_FIND_REQUIRED)
ENDIF (STK_FOUND)

View File

@@ -0,0 +1,45 @@
#
# install all files matching certain wildcards below ${LMMS_DATA_DIR}/<subdir>
#
# example:
#
# INSTALL_DATA_SUBDIRS("samples" "*.ogg;*.wav;*.flac")
#
# Copyright (c) 2008 Tobias Doerffel
#
# helper-macro
MACRO(LIST_CONTAINS var value)
SET(${var})
FOREACH (value2 ${ARGN})
IF (${value} STREQUAL ${value2})
SET(${var} TRUE)
ENDIF (${value} STREQUAL ${value2})
ENDFOREACH (value2)
ENDMACRO(LIST_CONTAINS)
MACRO(INSTALL_DATA_SUBDIRS _subdir _wildcards)
FOREACH(_wildcard ${_wildcards})
FILE(GLOB_RECURSE files ${_wildcard})
SET(SUBDIRS)
FOREACH(_item ${files})
GET_FILENAME_COMPONENT(_file "${_item}" PATH)
STRING(REGEX REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/" "" _file "${_file}")
LIST_CONTAINS(contains _file ${SUBDIRS})
IF(NOT contains)
LIST(APPEND SUBDIRS "${_file}")
ENDIF(NOT contains)
ENDFOREACH(_item ${files})
FOREACH(_item ${SUBDIRS})
FILE(GLOB files "${_item}/${_wildcard}")
FOREACH(_file ${files})
INSTALL(FILES "${_file}" DESTINATION "${LMMS_DATA_DIR}/${_subdir}/${_item}/")
ENDFOREACH(_file ${files})
ENDFOREACH(_item ${SUBDIRS})
ENDFOREACH(_wildcard ${_wildcards})
ENDMACRO(INSTALL_DATA_SUBDIRS)

View File

@@ -0,0 +1,34 @@
/* Define to 1 if you have the <linux/awe_voice.h> header file. */
#cmakedefine LMMS_HAVE_LINUX_AWE_VOICE_H 1
/* Define to 1 if you have the <sys/awe_voice.h> header file. */
#cmakedefine LMMS_HAVE_SYS_AWE_VOICE_H 1
/* Define to 1 if you have the </usr/src/sys/gnu/i386/isa/sound/awe_voice.h>
header file. */
#cmakedefine LMMS_HAVE__USR_SRC_SYS_GNU_I386_ISA_SOUND_AWE_VOICE_H 1
/* Define to 1 if you have the </usr/src/sys/i386/isa/sound/awe_voice.h>
header file. */
#cmakedefine LMMS_HAVE__USR_SRC_SYS_I386_ISA_SOUND_AWE_VOICE_H 1
/* Define to 1 if you have the <awe_voice.h> header file. */
#cmakedefine LMMS_HAVE_AWE_VOICE_H 1
/* Define if you have libasound.so.2 (required for ALSA 0.9.x support) */
#cmakedefine LMMS_HAVE_LIBASOUND2 1
/* Define if libasound has snd_pcm_resume() */
#cmakedefine LMMS_HAVE_SND_PCM_RESUME 1
/* Define to 1 if you have the <alsa/asoundlib.h> header file. */
#cmakedefine LMMS_HAVE_ALSA_ASOUNDLIB_H 1
/* Define to 1 if you have the <sys/asoundlib.h> header file. */
#cmakedefine LMMS_HAVE_SYS_ASOUNDLIB_H 1
/* Define to 1 if you have the <sys/soundcard.h> header file. */
#cmakedefine LMMS_HAVE_SYS_SOUNDCARD_H 1
/* Define to 1 if you have the <machine/soundcard.h> header file. */
#cmakedefine LMMS_HAVE_MACHINE_SOUNDCARD_H 1

View File

@@ -1,967 +0,0 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.50)
AC_INIT(lmms, 0.4.0-alpha2, lmms-devel/at/lists/dot/sf/dot/net)
AM_INIT_AUTOMAKE(lmms, 0.4.0-alpha2)
AX_PREFIX_CONFIG_H([include/lmmsconfig.h])
AM_CONFIG_HEADER(config.h)
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_LIBTOOL_WIN32_DLL
AC_PROG_LN_S
AC_PROG_GCC_TRADITIONAL
AM_PROG_LIBTOOL
if ! test -z "${prefix}" -o "${prefix}" = "NONE" ; then
CFLAGS="$CFLAGS -I${prefix}/include"
CPPFLAGS="$CPPFLAGS -I${prefix}/include"
LDFLAGS="$LDFLAGS -L${prefix}/bin"
fi
if ! test -z "${libdir}" ; then
CPPFLAGS="$CPPFLAGS -DLIBDIR='\"${libdir}\"'"
fi
AH_TEMPLATE(BUILD_LINUX, [Build LMMS for Linux])
AH_TEMPLATE(BUILD_WIN32, [Build LMMS for Win32])
AH_TEMPLATE(WIN32, [Build LMMS for Win32])
AC_ARG_WITH(linux,
[ --with-linux explicit build LMMS for Linux], [ build_linux=true ], [ build_linux=false ])
AC_ARG_WITH(win32,
[ --with-win32 explicit build LMMS for Win32], [ build_win32=true ], [ build_win32=false ])
AC_MSG_CHECKING([platform to build for])
if test "x$build_win32" = "xtrue" ; then
AC_MSG_RESULT([Win32, will enable support for it])
AC_DEFINE(BUILD_WIN32)
AC_DEFINE(WIN32)
build_linux="false"
build_win32="true"
else
# if test `uname -s | tr -s 'LINUX' 'linux'` = "linux" -o "x$build_linux" = "xyes" ; then
AC_MSG_RESULT([Linux, will enable support for it])
AC_DEFINE(BUILD_LINUX)
build_linux="true"
build_win32="false"
# if uname -s | grep MINGW32 ; then
# else
# AC_MSG_ERROR([*** non usable found... Run ./configure --help to see a list of available platforms, you can also specify explicit, if your platform was not recognized properly. Otherwise your platform isn't supported yet. In this case please contact the maintainer (see README)])
#fi
fi
AM_CONDITIONAL(BUILD_WIN32, test "$build_win32" = "true")
AM_CONDITIONAL(BUILD_LINUX, test "$build_linux" = "true")
# -fomit-frame-pointer crashes wine on Ubuntu Dapper--Danny 7/21/06
#DEFAULTFLAGS="-floop-optimize2 -fomit-frame-pointer -fgcse-sm -fgcse-las"
DEFAULTFLAGS="-O2 -fPIC" #"-floop-optimize2 -fgcse-sm -fgcse-las"
# Tested with GCC 4.0--needs to be tested with 4.1--Danny 7/21/06
#if test "x`$CC --version|head -1|cut -d\ -f3|cut -d. -f1`" = "x4" ; then
# DEFAULTFLAGS="$DEFAULTFLAGS -ftree-vectorize -ftree-loop-linear"
# if test "x`$CC --version|head -1|cut -d\ -f3|cut -d. -f2`" != "x0" ; then
# DEFAULTFLAGS="$DEFAULTFLAGS -funsafe-loop-optimizations"
# fi
#fi
CFLAGS="$DEFAULTFLAGS $CFLAGS"
CXXFLAGS="$DEFAULTFLAGS $CXXFLAGS"
AC_PATH_XTRA
gw_CHECK_QT
# checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([stdint.h sys/times.h fcntl.h memory.h string.h sys/ioctl.h unistd.h stdlib.h pthread.h sys/ipc.h sys/shm.h sys/time.h sys/select.h sys/types.h sys/wait.h stdarg.h signal.h sched.h ctype.h])
# checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
AC_C_VOLATILE
AC_C_BIGENDIAN
AC_CHECK_TYPES([mode_t, off_t, pid_t, size_t, ssize_t, long long])
# checks for library functions.
AC_FUNC_ALLOCA
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([usleep pipe sprintf])
# search for include-path of SDL (just for supporting the FreeBSD-guys.... ;-)
for i in SDL SDL10 SDL11 SDL12 ; do
FOUND=""
AC_CHECK_HEADER($i/SDL.h, FOUND="true")
if test "$FOUND" = "true" ; then
SDL_INC_PATH="$i"
break
fi
done
AH_TEMPLATE(SDL_SDL_H, [Define to location of SDL.h])
AH_TEMPLATE(SDL_SDL_AUDIO_H, [Define to location of SDL_audio.h])
OLD_LIBS="$LIBS"
#LIBS="$LIBS -lpthread"
# check for SDL-lib
AC_ARG_WITH(sdl,
AS_HELP_STRING([--without-sdl],
[disable support for SDL-audio-output]), ,
[ with_sdlaudio=yes ])
AH_TEMPLATE(HAVE_SDL_SDL_AUDIO_H, [Define to 1 if you have the <$SDL_INC_PATH/SDL_audio.h> header file.])
if test "x$with_sdlaudio" = "xyes" -a ! -z "$SDL_INC_PATH"; then
AC_CHECK_HEADER($SDL_INC_PATH/SDL_audio.h, HAVE_SDL_SDL_AUDIO_H="true")
AC_CHECK_LIB([SDL], [SDL_OpenAudio], HAVE_LIBSDL="true", HAVE_SDL_SDL_AUDIO_H="")
fi
if test ! -z "$HAVE_SDL_SDL_AUDIO_H" ; then
AC_DEFINE_UNQUOTED(SDL_SDL_H, <$SDL_INC_PATH/SDL.h>)
AC_DEFINE_UNQUOTED(SDL_SDL_AUDIO_H, <$SDL_INC_PATH/SDL_audio.h>)
AC_DEFINE(HAVE_SDL_SDL_AUDIO_H)
fi
AM_CONDITIONAL(HAVE_LIBSDL, test ! -z "$HAVE_SDL_SDL_AUDIO_H")
LIBS="$OLD_LIBS"
# check for ALSA-lib
AC_ARG_WITH(asound,
AS_HELP_STRING([--without-asound],
[disable support for ALSA-sound-output]), ,
[ with_asound=yes ])
AH_TEMPLATE(HAVE_ALSA_ASOUNDLIB_H, [Define to 1 if you have the <alsa/asoundlib.h> header file.])
if test "x$with_asound" = "xyes" ; then
AC_CHECK_HEADER(alsa/asoundlib.h, HAVE_ALSA_ASOUNDLIB_H="true")
AC_CHECK_LIB([asound], [snd_pcm_open], HAVE_LIBASOUND="true", HAVE_ALSA_ASOUNDLIB_H="")
fi
if test ! -z "$HAVE_ALSA_ASOUNDLIB_H" ; then
AC_DEFINE(HAVE_ALSA_ASOUNDLIB_H)
fi
AM_CONDITIONAL(HAVE_LIBASOUND, test ! -z "$HAVE_ALSA_ASOUNDLIB_H")
# check for OSS
AC_ARG_WITH(oss,
AS_HELP_STRING([--without-oss],
[disable support for OSS-sound-output]), ,
[ with_oss=yes ])
AH_TEMPLATE(HAVE_SYS_SOUNDCARD_H, [Define to 1 if you have the <sys/soundcard.h> header file.])
AH_TEMPLATE(HAVE_SOUNDCARD_H, [Define to 1 if you have the <soundcard.h> header file.])
if test "x$with_oss" = "xyes" ; then
AC_CHECK_HEADER(sys/soundcard.h, HAVE_SYS_SOUNDCARD_H="true")
AC_CHECK_HEADER(soundcard.h, HAVE_SOUNDCARD_H="true")
fi
if test ! -z "$HAVE_SYS_SOUNDCARD_H" ; then
AC_DEFINE(HAVE_SYS_SOUNDCARD_H)
fi
if test ! -z "$HAVE_SOUNDCARD_H" ; then
AC_DEFINE(HAVE_SOUNDCARD_H)
fi
# check for JACK
AC_ARG_WITH(jack,
AS_HELP_STRING([--without-jack],
[disable support for JACK-transport]), ,
[ with_jack=yes ])
AH_TEMPLATE(HAVE_JACK_JACK_H, [Define to 1 if you have the <jack/jack.h> header file.])
AH_TEMPLATE(OLD_JACK, [Define to 1 if your JACK-version doesnt know about jack_client_open() etc.])
if test "x$with_jack" = "xyes" ; then
AC_CHECK_HEADER(jack/jack.h, HAVE_JACK_JACK_H="true")
AC_CHECK_LIB([jack], [jack_client_new], HAVE_LIBJACK="true", HAVE_JACK_JACK_H="")
AC_CHECK_LIB([jack], [jack_client_open], JACK_CLIENT_OPEN="true")
if test -z "$JACK_CLIENT_OPEN" ; then
AC_DEFINE(OLD_JACK)
fi
fi
if test ! -z "$HAVE_JACK_JACK_H" ; then
AC_DEFINE(HAVE_JACK_JACK_H)
fi
AM_CONDITIONAL(HAVE_LIBJACK, test ! -z "$HAVE_JACK_JACK_H")
# check for PulseAudio
AC_ARG_WITH(pulseaudio,
AS_HELP_STRING([--without-pulseaudio],
[disable support for PulseAudio-sound-output]), ,
[ with_pulseaudio=yes ])
AH_TEMPLATE(HAVE_PULSE_PULSEAUDIO_H, [Define to 1 if you have the <pulse/pulseaudio.h> header file.])
if test "x$with_pulseaudio" = "xyes" ; then
AC_CHECK_HEADER(pulse/pulseaudio.h, HAVE_PULSE_PULSEAUDIO_H="true")
AC_CHECK_LIB([pulse], [pa_mainloop_new], HAVE_LIBPULSE="true", HAVE_PULSE_PULSEAUDIO_H="")
fi
if test ! -z "$HAVE_PULSE_PULSEAUDIO_H" ; then
AC_DEFINE(HAVE_PULSE_PULSEAUDIO_H)
fi
AM_CONDITIONAL(HAVE_LIBPULSE, test ! -z "$HAVE_PULSE_PULSEAUDIO_H")
# check for proper WINE-installation and existing Steinberg headers
AC_ARG_WITH(vst,
AS_HELP_STRING([--without-vst],
[disable support for builtin VST-plugin-hosting]), , [ with_vst=yes ])
if test "x$with_vst" = "xyes" ; then
if echo $CFLAGS $CXXFLAGS | grep "fomit-frame-pointer" > /dev/null ; then
AC_MSG_ERROR([*** passing -fomit-frame-pointer as compiler-flag will break LMMS' VST-support so either disable VST-support using --without-vst or remove it from compiler-flags])
fi
if test "$build_linux" = "true" ; then
AC_CHECK_PROG(WINECXX, wineg++, /usr/bin/wineg++,,/usr/bin)
if test "x`uname -m`" != "xx86_64" ; then
AC_CHECK_LIB([wine], [wine_init], true)
else
AMD64_BUILD=yes
OLDCFLAGS="$CFLAGS"
CFLAGS="-m32 $CFLAGS"
AC_CHECK_LIB([wine], [wine_init], true)
CFLAGS="$OLDCFLAGS"
fi
if test ! -z "$WINECXX" ; then
AC_LANG_PUSH(C++)
# CXXFLAGS="$CXXFLAGS -I${prefix}/include/wine/windows"
OLDCXX="$CXX"
OLDCPPFLAGS="$CPPFLAGS"
CXX="$WINECXX"
CPPFLAGS="$CPPFLAGS -I${prefix}/include/wine/windows"
CPPFLAGS+=" -I/usr/include/wine/windows"
AC_CHECK_HEADER(windows.h, HAVE_WINDOWS_H="true")
CXX="$OLDCXX"
CPPFLAGS="$OLDCPPFLAGS"
AC_LANG_POP(C++)
if test -z "$HAVE_WINDOWS_H" ; then
WINECXX=""
fi
fi
fi
fi
AM_CONDITIONAL(VST_SUPPORT, test ! -z "$WINECXX")
AM_CONDITIONAL(AMD64_BUILD, test "x$AMD64_BUILD" = "xyes")
# check for LADSPA-SDK
AH_TEMPLATE(HAVE_LADSPA_H, [Define to 1 if you have the <ladspa.h> header file.])
AC_CHECK_HEADER(ladspa.h, HAVE_LADSPA_H="true")
if test ! -z "$HAVE_LADSPA_H" ; then
AC_DEFINE(HAVE_LADSPA_H)
fi
#AM_CONDITIONAL(HAVE_LADSPA_H, test ! -z "$HAVE_LADSPA_H")
# check for STK
AC_LANG_PUSH(C++)
AC_ARG_WITH(stk,
AS_HELP_STRING([--without-stk], [disable support for STK plugins]), ,
[ with_stk=yes ])
AH_TEMPLATE(HAVE_STK_H, [Define to 1 if you have the <stk/Stk.h> header file.])
if test "x$with_stk" = "xyes" ; then
AC_CHECK_HEADER([stk/Stk.h], HAVE_STK_H="true")
AC_CHECK_LIB([stk], [main], HAVE_STK="true", HAVE_STK_H="",
[-ljack -lasound])
fi
if test ! -z "$HAVE_STK_H" ; then
AC_DEFINE(HAVE_STK_H)
AC_SUBST(stk_includes, [/usr/include/stk])
AC_SUBST(stk_lib, [/usr/lib])
fi
AM_CONDITIONAL(STK_SUPPORT, test ! -z "$HAVE_STK_H")
AC_LANG_POP(C++)
# check for vorbis-lib
AC_ARG_WITH(vorbis,
AS_HELP_STRING([--without-vorbis],
[disable support for exporting project to OGG-files and loading OGG-samples]), ,
[ with_vorbis=yes ])
AH_TEMPLATE(HAVE_VORBIS_CODEC_H, [Define to 1 if you have the <vorbis/codec.h> header file.])
AH_TEMPLATE(HAVE_VORBIS_VORBISENC_H, [Define to 1 if you have the <vorbis/vorbisenc.h> header file.])
AH_TEMPLATE(HAVE_VORBIS_VORBISFILE_H, [Define to 1 if you have the <vorbis/vorbisfile.h> header file.])
if test "x$with_vorbis" = "xyes" ; then
OGG_SUPPORT="true"
AC_CHECK_HEADER(vorbis/codec.h, HAVE_VORBIS_CODEC_H="true",OGG_SUPPORT="")
AC_CHECK_HEADER(vorbis/vorbisenc.h, HAVE_VORBIS_VORBISENC_H="true",OGG_SUPPORT="")
AC_CHECK_HEADER(vorbis/vorbisfile.h, HAVE_VORBIS_VORBISFILE_H="true",OGG_SUPPORT="")
if [ "$build_win32" = "true" ] ; then
AC_CHECK_LIB([vorbis-0], [vorbis_analysis], HAVE_LIBVORBIS="true", OGG_SUPPORT="")
else
AC_CHECK_LIB([vorbis], [vorbis_analysis], HAVE_LIBVORBIS="true", OGG_SUPPORT="")
fi
fi
if test ! -z "$OGG_SUPPORT" ; then
AC_DEFINE(HAVE_VORBIS_CODEC_H)
AC_DEFINE(HAVE_VORBIS_VORBISENC_H)
AC_DEFINE(HAVE_VORBIS_VORBISFILE_H)
fi
AM_CONDITIONAL(HAVE_LIBVORBIS, test ! -z "$OGG_SUPPORT")
# check for libFLAC
AC_ARG_WITH(flac,
AS_HELP_STRING([--without-flac],
[disable support for internal encoding/decoding with FLAC]), ,
[ with_flac=yes ])
AH_TEMPLATE(HAVE_FLAC_STREAM_ENCODER_H, [Define to 1 if you have the <FLAC/stream_encoder.h> header file.])
AH_TEMPLATE(HAVE_FLAC_STREAM_DECODER_H, [Define to 1 if you have the <FLAC/stream_decoder.h> header file.])
if test "x$with_flac" = "xyes" ; then
AC_CHECK_HEADER(FLAC/stream_encoder.h, HAVE_FLAC_STREAM_ENCODER_H="true")
AC_CHECK_HEADER(FLAC/stream_decoder.h, HAVE_FLAC_STREAM_DECODER_H="true")
AC_CHECK_LIB([FLAC], [FLAC__stream_encoder_new], HAVE_LIBFLAC="true")
fi
if test ! -z "$HAVE_FLAC_STREAM_ENCODER_H" -a ! -z "$HAVE_FLAC_STREAM_DECODER_H" -a ! -z "$HAVE_LIBFLAC"; then
AC_DEFINE(HAVE_FLAC_STREAM_ENCODER_H)
AC_DEFINE(HAVE_FLAC_STREAM_DECODER_H)
fi
AM_CONDITIONAL(HAVE_LIBFLAC, test ! -z "$HAVE_LIBFLAC")
# check for libsamplerate
AC_CHECK_HEADER(samplerate.h, HAVE_SAMPLERATE_H="true")
AC_CHECK_LIB([samplerate], [src_simple], HAVE_LIBSRC="true", HAVE_SAMPLERATE_H="")
AH_TEMPLATE(USE_3RDPARTY_LIBSRC, [Define to 1 if you do not have the <samplerate.h> header file.])
AM_CONDITIONAL(USE_3RDPARTY_LIBSRC, test -z "$HAVE_SAMPLERATE_H")
if test -z "$HAVE_SAMPLERATE_H" ; then
AC_DEFINE(USE_3RDPARTY_LIBSRC)
AC_CHECK_FUNCS(malloc calloc free memcpy memmove)
AC_CHECK_LIB([m],floor)
AC_CHECK_FUNCS(floor ceil fmod)
AC_CHECK_SIZEOF(int,0)
AC_CHECK_SIZEOF(long,0)
AC_CHECK_SIZEOF(float,4)
AC_CHECK_SIZEOF(double,8)
AC_C_FIND_ENDIAN
AC_DEFINE_UNQUOTED(CPU_IS_BIG_ENDIAN, ${ac_cv_c_big_endian},
[Target processor is big endian.])
AC_DEFINE_UNQUOTED(CPU_IS_LITTLE_ENDIAN, ${ac_cv_c_little_endian},
[Target processor is little endian.])
AC_C99_FUNC_LRINT
AC_C99_FUNC_LRINTF
# AC_C99_FUNC_LLRINT Don't need this (yet?).
case "x$ac_cv_c99_lrint$ac_cv_c99_lrintf" in
xyesyes)
;;
*)
AC_MSG_WARN([[*** Missing C99 standard functions lrint() and lrintf().]])
AC_MSG_WARN([[*** This may cause benign compiler warnings on some systems (ie Solaris).]])
;;
esac
#====================================================================================
# Determine if the processor can do clipping on float to int conversions.
AC_C_CLIP_MODE
AC_DEFINE_UNQUOTED(CPU_CLIPS_POSITIVE, ${ac_cv_c_clip_positive},
[Target processor clips on positive float to int conversion.])
AC_DEFINE_UNQUOTED(CPU_CLIPS_NEGATIVE, ${ac_cv_c_clip_negative},
[Target processor clips on negative float to int conversion.])
AC_DEFINE([COMPILER_IS_GCC],1, [Set to 1 if the compile is GNU GCC.])
GCC_MAJOR_VERSION=`$CC -dumpversion | sed "s/\..*//"`
AC_DEFINE_UNQUOTED([GCC_MAJOR_VERSION],${GCC_MAJOR_VERSION}, [Major version of GCC or 3 otherwise.])
fi
# Check for fluidsynth
AC_ARG_WITH(fluidsynth,
AS_HELP_STRING([--without-fluidsynth], [disable support for Soundfont plugins]), ,
[ with_fluidsynth=yes ])
AH_TEMPLATE(HAVE_FLUIDSYNTH_H, [Define to 1 if you have the <fluidsynth.h> header file.])
if test "x$with_fluidsynth" = "xyes" ; then
FLUIDSYNTH_SUPPORT="true"
AC_CHECK_HEADER([fluidsynth.h], HAVE_FLUIDSYNTH_H="true", FLUIDSYNTH_SUPPORT="")
if [ "$build_win32" = "true" ] ; then
AC_CHECK_LIB([fluidsynth-1], [new_fluid_synth], HAVE_FLUIDSYNTH="true", FLUIDSYNTH_SUPPORT="")
else
AC_CHECK_LIB([fluidsynth], [new_fluid_synth], HAVE_FLUIDSYNTH="true", FLUIDSYNTH_SUPPORT="")
fi
fi
if test ! -z "$FLUIDSYNTH_SUPPORT" ; then
AC_DEFINE(HAVE_FLUIDSYNTH_H)
AC_SUBST(fluidsynth_includes, [/usr/include])
AC_SUBST(fluidsynth_lib, [/usr/lib])
fi
AM_CONDITIONAL(FLUIDSYNTH_SUPPORT, test ! -z "$FLUIDSYNTH_SUPPORT")
# libsndfile-stuff
AC_ARG_WITH(libsf,
AS_HELP_STRING([--without-libsf],
[disable support for importing files via libsndfile]), ,
[ with_libsf=yes ])
AH_TEMPLATE(HAVE_SNDFILE_H, [Define to 1 if you have the <sndfile.h> header file.])
if test "x$with_libsf" = "xyes" ; then
AC_CHECK_HEADER(sndfile.h, HAVE_SNDFILE_H="true")
if [ "$build_win32" = "true" ] ; then
AC_CHECK_LIB([sndfile-1], [sf_open], HAVE_LIBSF="true", HAVE_SNDFILE_H="")
else
AC_CHECK_LIB([sndfile], [sf_open], HAVE_LIBSF="true", HAVE_SNDFILE_H="")
AC_MSG_CHECKING([version of libsndfile])
AH_TEMPLATE(OLD_SNDFILE, [Define to 1 if libsndfile < 1.0.11])
OLD_LIBS="$LIBS"
LIBS="$LIBS -lsndfile"
AC_RUN_IFELSE([ #include <sndfile.h>
int main( void )
{
SF_INFO si;
( void )sf_open( "", SFM_READ, &si );
return 0;
}],
AC_MSG_RESULT([>= 1.0.11]),
AC_MSG_RESULT([< 1.0.11])
AC_DEFINE(OLD_SNDFILE)
)
LIBS="$OLD_LIBS"
fi
fi
if test ! -z "$HAVE_SNDFILE_H" ; then
AC_DEFINE(HAVE_SNDFILE_H)
fi
AM_CONDITIONAL(HAVE_LIBSF, test ! -z "$HAVE_SNDFILE_H")
if test -z "$HAVE_SNDFILE_H" -a -z "$OGG_SUPPORT" ; then
AC_MSG_ERROR([*** neither libsndfile nor libvorbis (or according devel-files) were found which would make LMMS unable to load any samples so please install at least one of the packages and try again!])
fi
# check for fftw3-lib
AC_ARG_WITH(fftw3,
AS_HELP_STRING([--without-fftw3],
[disable support for FFTW3]), ,
[ with_fftw3=yes ])
AH_TEMPLATE(HAVE_FFTW3_H, [Define to 1 if you have the <fftw3.h> header file.])
if test "x$with_fftw3" = "xyes" ; then
AC_CHECK_HEADER(fftw3.h, HAVE_FFTW3_H="true")
if [ "$build_win32" = "true" ] ; then
AC_CHECK_LIB([fftw3f-3], [fftwf_execute], HAVE_LIBFFTW3="true", HAVE_FFTW3_H="")
else
AC_CHECK_LIB([fftw3f], [fftwf_execute], HAVE_LIBFFTW3="true", HAVE_FFTW3_H="")
fi
fi
if test ! -z "$HAVE_FFTW3_H" ; then
AC_DEFINE(HAVE_FFTW3_H)
fi
AM_CONDITIONAL(HAVE_LIBFFTW3, test ! -z "$HAVE_FFTW3_H")
# check whether to disable surround-support
AC_MSG_CHECKING([whether to disable surround-support])
AH_TEMPLATE(DISABLE_SURROUND, [Define if you want to disable surround-support in LMMS.])
AC_ARG_ENABLE([surround],
AS_HELP_STRING([--disable-surround],
[compile LMMS without surround-support]),
[ENABLE_SURROUND=$enableval])
if test "x$ENABLE_SURROUND" = "xno" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(DISABLE_SURROUND)
else
AC_MSG_RESULT(no)
fi
# check whether to disable single-source-compile
#AC_MSG_CHECKING([whether to enable single-source-compile])
# AH_TEMPLATE(SINGLE_SOURCE_COMPILE, [Define if you want to enable single-source-compile.])
#AC_ARG_ENABLE([ssc],
# AS_HELP_STRING([--enable-ssc],
# [enable single-source-compile]), [ENABLE_SSC=$enableval])
#if test "x$ENABLE_SSC" = "xyes" ; then
# AC_MSG_RESULT(yes)
# # AC_DEFINE(SINGLE_SOURCE_COMPILE)
# CXXFLAGS="$CXXFLAGS -DSINGLE_SOURCE_COMPILE"
#else
# AC_MSG_RESULT(no)
#fi
# check whether compiler of current platform supports attribute regparm(x)
AC_ARG_ENABLE([fastcall],
AS_HELP_STRING([--enable-fastcall],
[enable fastcall (regparm-attribute)]), [ENABLE_FASTCALL=$enableval])
if test "x$ENABLE_FASTCALL" = "xyes" ; then
AC_MSG_CHECKING([whether we can use function-attribute regparm(x) on current platform])
AH_TEMPLATE(FASTCALL, [Define to any attribute, speeding up function-calls])
AC_RUN_IFELSE([ int __attribute__((regparm(3))) foo( int a, int b, int c )
{ return( a=b=c ); }
int __attribute__((regparm(3))) main( void )
{ return( foo(2,1,0) ); }],
AC_MSG_RESULT(yes)
AC_DEFINE(FASTCALL, [__attribute__((regparm(3)))]),
AC_MSG_RESULT(no)
AC_DEFINE_UNQUOTED(FASTCALL,[])
)
else
AC_DEFINE_UNQUOTED(FASTCALL,[])
fi
AC_MSG_CHECKING([whether floorf is known by compiler])
AH_TEMPLATE(floorf, [Define to floor if floorf is not known])
AC_TRY_LINK([#include <math.h>], [ floorf ],
AC_MSG_RESULT(yes),
AC_MSG_RESULT([no - will use floor instead])
AC_DEFINE(floorf, floor)
)
AC_MSG_CHECKING([whether powf is known by compiler])
AH_TEMPLATE(powf, [Define to pow if powf is not known])
AC_TRY_LINK([#include <math.h>], [ powf ],
AC_MSG_RESULT(yes),
AC_MSG_RESULT([no - will use pow instead])
AC_DEFINE(powf, pow)
)
AC_MSG_CHECKING([whether fabsf is known by compiler])
AH_TEMPLATE(fabsf, [Define to pow if fabsf is not known])
AC_TRY_LINK([#include <math.h>], [ fabsf ],
AC_MSG_RESULT(yes),
AC_MSG_RESULT([no - will use fabs instead])
AC_DEFINE(fabsf, fabs)
)
AC_MSG_CHECKING([whether logf is known by compiler])
AH_TEMPLATE(logf, [Define to lof if logf is not known])
AC_TRY_LINK([#include <math.h>], [ logf ],
AC_MSG_RESULT(yes),
AC_MSG_RESULT([no - will use log instead])
AC_DEFINE(logf, log)
)
# check whether to enable debugging-code
AC_MSG_CHECKING([whether to enable debugging-code])
AH_TEMPLATE(LMMS_DEBUG, [Define if you want to disable debbuging-code in LMMS.])
AC_ARG_ENABLE([debug],
AS_HELP_STRING([--enable-debug],
[compile LMMS with additional debugging support]),
[DEBUG=$enableval])
if test "x$DEBUG" = "xyes" ; then
AC_MSG_RESULT(yes)
AC_DEFINE(LMMS_DEBUG)
else
AC_MSG_RESULT(no)
fi
AC_MSG_CHECKING([whether to ship CAPS])
AC_ARG_WITH([caps],
AS_HELP_STRING([--without-caps],
[do not ship C* Audio Plugin Suite]), ,
[ with_caps=yes ])
if test "x$with_caps" = "xyes" ; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(SHIP_CAPS, test "x$with_caps" = "xyes")
AC_MSG_CHECKING([whether to ship TAP plugins])
AC_ARG_WITH([tap],
AS_HELP_STRING([--without-tap],
[do not ship TAP plugins]), ,
[ with_tap=yes ])
if test "x$with_tap" = "xyes" ; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL(SHIP_TAP, test "x$with_tap" = "xyes")
if [ "$build_win32" = "true" ] ; then
BIN2RES=`pwd`/buildtools/bin2res.exe
else
BIN2RES=`pwd`/buildtools/bin2res
fi
AC_SUBST(BIN2RES)
# check for rpm SOURCES path
echo -n "checking for rpm sources path... "
RPMSOURCEDIR="NOT-FOUND"
for directory in packages OpenLinux redhat RedHat rpm RPM "" ; do
if test -d /usr/src/${directory}/SOURCES ; then
RPMSOURCEDIR="/usr/src/${directory}/SOURCES/"
fi
done
echo "$RPMSOURCEDIR"
AM_CONDITIONAL(HAVE_RPM, test "$RPMSOURCEDIR" != "NOT-FOUND")
AC_SUBST(RPMSOURCEDIR)
lmmsdatadir="$datadir/$PACKAGE"
AC_SUBST(lmmsdatadir)
EXTRA_WARNINGS="-Wno-unused-parameter -Wunsafe-loop-optimizations -Wdisabled-optimization"
if test "x$CXX" == "xg++" ; then
CXXFLAGS="-ansi -Wall $EXTRA_WARNINGS $CXXFLAGS -fno-exceptions"
fi
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CXXFLAGS="$CXXFLAGS -I/usr/local/include"
AC_CONFIG_FILES([Makefile
lmms.rc
buildtools/Makefile
data/Makefile
data/locale/Makefile
data/midi-maps/Makefile
data/presets/Makefile
data/presets/AudioFileProcessor/Makefile
data/presets/BitInvader/Makefile
data/presets/Organic/Makefile
data/presets/PluckedStringSynth/Makefile
data/presets/TripleOscillator/Makefile
data/presets/VeSTige/Makefile
data/projects/Makefile
data/projects/cool_songs/Makefile
data/projects/covers/Makefile
data/projects/demos/Makefile
data/projects/misc/Makefile
data/projects/recorded_loops/Makefile
data/projects/templates/Makefile
data/projects/tutorials/Makefile
data/samples/Makefile
data/samples/basses/Makefile
data/samples/bassloopes/Makefile
data/samples/beats/Makefile
data/samples/drums/Makefile
data/samples/drumsynth/Makefile
data/samples/drumsynth/acoustic/Makefile
data/samples/drumsynth/cr78/Makefile
data/samples/drumsynth/cr8000/Makefile
data/samples/drumsynth/effects/Makefile
data/samples/drumsynth/electro/Makefile
data/samples/drumsynth/farfisa/Makefile
data/samples/drumsynth/ferraro/Makefile
data/samples/drumsynth/instrument/Makefile
data/samples/drumsynth/jorgensohn/Makefile
data/samples/drumsynth/latin/Makefile
data/samples/drumsynth/linn/Makefile
data/samples/drumsynth/magnetboy/Makefile
data/samples/drumsynth/misc/Makefile
data/samples/drumsynth/misc_bass/Makefile
data/samples/drumsynth/misc_claps/Makefile
data/samples/drumsynth/misc_electro/Makefile
data/samples/drumsynth/misc_fx/Makefile
data/samples/drumsynth/misc_hats/Makefile
data/samples/drumsynth/misc_perc/Makefile
data/samples/drumsynth/misc_synth/Makefile
data/samples/drumsynth/r_b/Makefile
data/samples/drumsynth/tr606/Makefile
data/samples/drumsynth/tr77/Makefile
data/samples/drumsynth/tr808/Makefile
data/samples/drumsynth/tr909/Makefile
data/samples/effects/Makefile
data/samples/instruments/Makefile
data/samples/latin/Makefile
data/samples/misc/Makefile
data/samples/shapes/Makefile
data/samples/stringsnpads/Makefile
data/themes/Makefile
data/track_icons/Makefile
plugins/Makefile
plugins/audio_file_processor/Makefile
plugins/bass_booster/Makefile
plugins/bit_invader/Makefile
plugins/flp_import/Makefile
plugins/kicker/Makefile
plugins/ladspa_browser/Makefile
plugins/ladspa_effect/Makefile
plugins/ladspa_effect/caps/Makefile
plugins/ladspa_effect/tap/Makefile
plugins/lb303/Makefile
plugins/live_tool/Makefile
plugins/midi_import/Makefile
plugins/organic/Makefile
plugins/patman/Makefile
plugins/peak_controller_effect/Makefile
plugins/sf2_player/Makefile
plugins/spectrum_analyzer/Makefile
plugins/stk/Makefile
plugins/stk/mallets/Makefile
plugins/triple_oscillator/Makefile
plugins/vestige/Makefile
plugins/vibed/Makefile
plugins/vst_base/Makefile
plugins/vst_effect/Makefile
plugins/stereo_enhancer/Makefile
plugins/stereo_matrix/Makefile
lmms.spec])
LOCAL_EXTRA_PLUGINS
AC_OUTPUT
with_warnings="false"
echo
echo
PLUGINS_TO_BUILD=""
if test -z "$HAVE_ALSA_ASOUNDLIB_H" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have ALSA-library installed and/or ALSA-lib-development-"
echo " = package is missing. This will disable support for sound-output via ALSA!"
echo " = Consider installing the missing packages for using the full power of LMMS."
echo " ="
with_warnings="true"
else
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* ALSA for audio- and MIDI-input/output"
fi
if test -z "$HAVE_JACK_JACK_H" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have JACK-library installed and/or JACK-lib-development-"
echo " = package is missing. This will disable support for JACK-transport."
echo " = This is no problem but you'll miss the great possibilities of interacting"
echo " = with other sound-applications in realtime!"
echo " = Consider installing the missing packages for using the full power of LMMS."
echo " ="
with_warnings="true"
else
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* JACK for audio-input/output"
fi
if test -z "$HAVE_SOUNDCARD_H" -a -z "$HAVE_SYS_SOUNDCARD_H" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have soundcard.h which is neccessary for outputting "
echo " = sound via OSS under Linux/BSD/Solaris."
echo " = This will also disable support for MIDI using OSS."
echo " = If you're building for a different platform or do not need OSS-support, you"
echo " = can ignore this warning."
echo " ="
with_warnings="true"
else
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* OSS for audio- and MIDI-input/output"
fi
if test -z "$HAVE_SDL_SDL_AUDIO_H" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have SDL-library installed and/or SDL-lib-development-"
echo " = package is missing. This will disable support for sound-output via SDL, "
echo " = which is important, if you're using sound-daemons (arts, ESD etc.)"
echo " = When compiling without SDL, you'll always have to kill your sound-daemon"
echo " = before using LMMS...!"
echo " = Consider installing the missing packages for using the full power of LMMS."
echo " ="
with_warnings="true"
else
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* SDL for audio-output"
fi
if test -z "$OGG_SUPPORT" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have libvorbis installed and/or libvorbis-development-"
echo " = package is missing. This will disable support for exporting songs to"
echo " = OGG-files! You'll not be able to use the samples coming with LMMS since "
ecoh " = libsndfile currently has no OGG-support!"
echo " = Consider installing the missing packages for using the full power of LMMS."
echo " ="
with_warnings="true"
else
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* libvorbis for encoding/decoding OGG-files"
fi
if test -z "$HAVE_SNDFILE_H" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have libsndfile installed and/or libsndfile-development-"
echo " = package is missing. This is not that fatal as long as you have SDL_sound"
echo " = installed. Otherwise it's strongly recommended to install libsndfile and"
echo " = libvorbis for being able to use samples within LMMS."
echo " = Consider installing the missing packages for using the full power of LMMS."
echo " ="
with_warnings="true"
else
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* libsndfile for sample-decoding"
fi
if test -z "$HAVE_SAMPLERATE_H" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have libsamplerate installed and/or libsamplerate-"
echo " = development-package is missing. If you ignore this warning the"
echo " = according source-code of libsamplerate will be directly compiled into"
echo " = LMMS which is no problem at all. If you're building official LMMS-packages"
echo " = for a distribution DO NOT IGNORE THIS WARNING."
echo " ="
fi
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* LADSPA-plugins"
if test -z "$HAVE_LADSPA_H" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = As the header file ladspa.h could not be found on your system, a version"
echo " = shipped with LMMS will be used. This is no problem at all but generally"
echo " = it's better to use files being customized to your system/distribution."
echo " = If you encounter problems related to LADSPA-support, try to install"
echo " = LADSPA-SDK-package (ladspa-sdk, ladspa-dev or similiar) and run configure"
echo " = again."
echo " ="
with_warnings="true"
fi
if test -z "$HAVE_STK_H" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have STK installed and/or STK-development-package"
echo " = (Debian/Ubuntu: libstk0-dev) is missing. Without this package, the "
echo " = STK instrument plugins (\"Mallets\") won't be built."
echo " = Consider installing the missing packages for using the full power of LMMS."
echo " ="
with_warnings="true"
else
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* STK instrument plugins"
fi
if test -z "$FLUIDSYNTH_SUPPORT" ; then
if test "x$with_fluidsynth" = "xyes" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have Fluidsynth development files."
echo " = The SoundFont2 Player plugin will be ignored."
echo " = Consider installing fluidsynth for the full power of LMMS."
echo " ="
echo " = To remove this warning, please pass"
echo " = "
echo " = --without-fluidsynth"
echo " ="
with_warnings="true"
fi
else
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* SoundFont2 Player plugin"
fi
if test -z "$HAVE_FFTW3_H" ; then
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have FFTW3-library installed and/or FFTW3-development-"
echo " = package (Debian/Ubuntu: libfftw3-dev) is missing. Without this package, the"
echo " = Spectrum Analyzer plugin won't be built."
echo " = Consider installing the missing packages for using the full power of LMMS."
echo " ="
with_warnings="true"
else
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* Spectrum Analyzer plugin"
fi
if test ! -z "$WINECXX" ; then
PLUGINS_TO_BUILD="$PLUGINS_TO_BUILD\n\t\* LMMS VST Support Layer (LVSL) for built-in VST-plugin usage"
else
echo " ========================"
echo " === LMMS - WARNING ======================================================="
echo " ========================"
echo " ="
echo " = You don't seem to have installed WINE or it's development-packages (headers,"
echo " = winegcc etc.) which are neccessary for building LMMS with built-in"
echo " = VST-support."
echo " = If you do not intend to use VST-plugins with LMMS you can ignore this "
echo " = warning."
echo " = Consider installing the missing packages (Debian: libwine-dev,"
echo " = Ubuntu: wine-dev, openSUSE: wine-devel) for using the full power of LMMS."
echo " ="
with_warnings="true"
fi
echo
echo
echo "LMMS will be able to use $PLUGINS_TO_BUILD" | sed -e "s/\\\n/\n/g" | sed -e "s/\\\t/\t/g" | sed -e "s/\\\\\*/\*/g"
echo
echo
echo " ============================"
echo " === LMMS - INFORMATION ==================================================="
echo " ============================"
echo " ="
if test "$with_warnings" = "false" ; then
echo " = LMMS has been configured successfully. Now you can build it by typing 'make'."
echo " = After the compilation-process has finished, you can install LMMS by"
echo " = typing 'make install' (do this as \"root\"!)."
else
echo " = LMMS has been configured, but there were one or more warnings you should"
echo " = not ignore. First try to solve the mentioned problems before"
echo " = proceeding. Otherwise don't complain, if LMMS doesn't run the way"
echo " = you might expect..."
fi
echo " ="
echo " = If there're problems while compiling LMMS, please send a mail to "
echo " = lmms-devel \[at\] lists.sf.net!"
echo " ="
echo

11
data/CMakeLists.txt Normal file
View File

@@ -0,0 +1,11 @@
ADD_SUBDIRECTORY(locale)
ADD_SUBDIRECTORY(presets)
ADD_SUBDIRECTORY(projects)
ADD_SUBDIRECTORY(samples)
ADD_SUBDIRECTORY(themes)
ADD_SUBDIRECTORY(track_icons)
INSTALL(FILES lmms DESTINATION ${DATA_DIR}/menu)
INSTALL(FILES lmms.desktop DESTINATION ${DATA_DIR}/applications)
INSTALL(FILES lmms.xml DESTINATION ${DATA_DIR}/mime/packages)

View File

@@ -1,13 +0,0 @@
SUBDIRS = locale midi-maps presets projects samples themes track_icons
menudir = $(datadir)/menu
menu_DATA = lmms
applicationsdir = $(datadir)/applications
applications_DATA = lmms.desktop
mimedir = $(datadir)/mime/packages
mime_DATA = lmms.xml
EXTRA_DIST = $(menu_DATA) $(applications_DATA) $(mime_DATA)

View File

@@ -0,0 +1,3 @@
FILE(GLOB QM_FILES *.qm)
INSTALL(FILES ${QM_FILES} DESTINATION ${LMMS_DATA_DIR}/locale)

View File

@@ -1,7 +0,0 @@
localedir = $(lmmsdatadir)/locale
locale_DATA = *.qm
locale_TSOURCES = *.ts
EXTRA_DIST = $(locale_DATA) $(locale_TSOURCES)

View File

@@ -1,10 +0,0 @@
midimapsdir = $(lmmsdatadir)/midi-maps/
midimaps_DATA = gm.map \
YamahaPSR400.map \
YamahaPSR500.map \
YamahaPSS790.map \
YamahaQY10.map
EXTRA_DIST = $(midimaps_DATA)

View File

@@ -1,6 +0,0 @@
afppresetsdir = $(lmmsdatadir)/presets/AudioFileProcessor
afppresets_DATA = *.cs.xml
EXTRA_DIST = $(afppresets_DATA)

View File

@@ -1,5 +0,0 @@
bipresetsdir = $(lmmsdatadir)/presets/BitInvader
bipresets_DATA = *.cs.xml
EXTRA_DIST = $(bipresets_DATA)

View File

@@ -0,0 +1,4 @@
INCLUDE(InstallHelpers)
INSTALL_DATA_SUBDIRS("presets" "*.cs.xml")

View File

@@ -1,2 +0,0 @@
SUBDIRS = AudioFileProcessor BitInvader Organic PluckedStringSynth TripleOscillator VeSTige

View File

@@ -1,6 +0,0 @@
psspresetsdir = $(lmmsdatadir)/presets/Organic
psspresets_DATA = *.cs.xml
EXTRA_DIST = $(psspresets_DATA)

View File

@@ -1,18 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE multimedia-project>
<multimediaproject creator="Linux MultiMedia Studio (LMMS)" creatorversion="0.0.9" type="channelsettings" version="1.0" >
<head/>
<channelsettings>
<channeltrack surpos="134219776" muted="0" fxch="0" tbidx="0" baseoct="4" vol="100" name="Default" basetone="9" >
<pluckedstringsynth pick="0" pickup="0.05" />
<eldata fres="0.1" ftype="0" fcut="16000" fwet="0" >
<elvol lpdel="0" amt="0" rel="0.1" latt="0" sus="0.5" lspd="0.1" att="0.5" pdel="0" lamt="0" dec="0.5" x100="0" lshp="0" hold="0.5" />
<elpan lpdel="0" amt="0" rel="0.1" latt="0" sus="0.5" lspd="0.1" att="0.5" pdel="0" lamt="0" dec="0.5" x100="0" lshp="0" hold="0.5" />
<elpitch lpdel="0" amt="0" rel="0.1" latt="0" sus="0.5" lspd="0.1" att="0.5" pdel="0" lamt="0" dec="0.5" x100="0" lshp="0" hold="0.5" />
<elcut lpdel="0" amt="0" rel="0.1" latt="0" sus="0.5" lspd="0.1" att="0.5" pdel="0" lamt="0" dec="0.5" x100="0" lshp="0" hold="0.5" />
<elres lpdel="0" amt="0" rel="0.1" latt="0" sus="0.5" lspd="0.1" att="0.5" pdel="0" lamt="0" dec="0.5" x100="0" lshp="0" hold="0.5" />
</eldata>
<arpandchords chordrange="1" arprange="1" chord="0" arpgate="100" arp="0" arptime="100" arpdir="0" />
</channeltrack>
</channelsettings>
</multimediaproject>

View File

@@ -1,6 +0,0 @@
psspresetsdir = $(lmmsdatadir)/presets/PluckedStringSynth
psspresets_DATA = *.cs.xml
EXTRA_DIST = $(psspresets_DATA)

View File

@@ -1,6 +0,0 @@
topresetsdir = $(lmmsdatadir)/presets/TripleOscillator
topresets_DATA = *.cs.xml
EXTRA_DIST = $(topresets_DATA)

View File

@@ -1,18 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE multimedia-project>
<multimediaproject creator="Linux MultiMedia Studio (LMMS)" creatorversion="0.1.0" type="channelsettings" version="1.0" >
<head/>
<channelsettings>
<channeltrack surpos="134219776" muted="0" fxch="0" tbidx="0" baseoct="4" vol="100" name="Default" basetone="9" >
<vestige />
<eldata fres="0.1" ftype="0" fcut="16000" fwet="0" >
<elvol lpdel="0" amt="0" rel="0.1" latt="0" sus="0.5" lspd="0.1" att="0.5" pdel="0" lamt="0" dec="0.5" x100="0" lshp="0" hold="0.5" />
<elpan lpdel="0" amt="0" rel="0.1" latt="0" sus="0.5" lspd="0.1" att="0.5" pdel="0" lamt="0" dec="0.5" x100="0" lshp="0" hold="0.5" />
<elpitch lpdel="0" amt="0" rel="0.1" latt="0" sus="0.5" lspd="0.1" att="0.5" pdel="0" lamt="0" dec="0.5" x100="0" lshp="0" hold="0.5" />
<elcut lpdel="0" amt="0" rel="0.1" latt="0" sus="0.5" lspd="0.1" att="0.5" pdel="0" lamt="0" dec="0.5" x100="0" lshp="0" hold="0.5" />
<elres lpdel="0" amt="0" rel="0.1" latt="0" sus="0.5" lspd="0.1" att="0.5" pdel="0" lamt="0" dec="0.5" x100="0" lshp="0" hold="0.5" />
</eldata>
<arpandchords chordrange="1" arprange="1" chord="0" arpgate="100" arp="0" arptime="100" arpdir="0" />
</channeltrack>
</channelsettings>
</multimediaproject>

View File

@@ -1,6 +0,0 @@
vstpresetsdir = $(lmmsdatadir)/presets/VeSTige
vstpresets_DATA = *.cs.xml
EXTRA_DIST = $(vstpresets_DATA)

View File

@@ -0,0 +1,6 @@
INCLUDE(InstallHelpers)
INSTALL_DATA_SUBDIRS("projects" "*.mmp")
INSTALL_DATA_SUBDIRS("projects" "*.mmpz")

View File

@@ -1,2 +0,0 @@
SUBDIRS = cool_songs covers demos misc recorded_loops templates tutorials

View File

@@ -1,6 +0,0 @@
coolsongsdir = $(lmmsdatadir)/projects/cool_songs
coolsongs_DATA = *.mmp*
EXTRA_DIST = $(coolsongs_DATA)

View File

@@ -1,6 +0,0 @@
coversdir = $(lmmsdatadir)/projects/covers
covers_DATA = *.mmpz
EXTRA_DIST = $(covers_DATA)

View File

@@ -1,6 +0,0 @@
demosdir = $(lmmsdatadir)/projects/demos
demos_DATA = *.mmp*
EXTRA_DIST = $(demos_DATA)

View File

@@ -1,6 +0,0 @@
miscdir = $(lmmsdatadir)/projects/misc
misc_DATA = *.mmp*
EXTRA_DIST = $(misc_DATA)

View File

@@ -1,6 +0,0 @@
recordedloopsdir = $(lmmsdatadir)/projects/recorded_loops
#recordedloops_DATA = *.mmp
#EXTRA_DIST = $(recordedloops_DATA)

View File

@@ -1,6 +0,0 @@
templatesdir = $(lmmsdatadir)/projects/templates
templates_DATA = *.mpt
EXTRA_DIST = $(templates_DATA)

View File

@@ -1,6 +0,0 @@
tutorialsdir = $(lmmsdatadir)/projects/tutorials
tutorials_DATA = *.mmp*
EXTRA_DIST = $(tutorials_DATA)

View File

@@ -0,0 +1,4 @@
INCLUDE(InstallHelpers)
INSTALL_DATA_SUBDIRS("samples" "*.wav;*.ogg;*.ds")

View File

@@ -1,2 +0,0 @@
SUBDIRS = basses bassloopes beats drums drumsynth effects instruments latin misc shapes stringsnpads

View File

@@ -1,6 +0,0 @@
bassessamplesdir = $(lmmsdatadir)/samples/basses
bassessamples_DATA = *.ogg
EXTRA_DIST = $(bassessamples_DATA)

View File

@@ -1,6 +0,0 @@
bassloopessamplesdir = $(lmmsdatadir)/samples/bassloopes
bassloopessamples_DATA = *.ogg
EXTRA_DIST = $(bassloopessamples_DATA)

View File

@@ -1,6 +0,0 @@
beatssamplesdir = $(lmmsdatadir)/samples/beats
beatssamples_DATA = *.ogg
EXTRA_DIST = $(beatssamples_DATA)

View File

@@ -1,6 +0,0 @@
drumssamplesdir = $(lmmsdatadir)/samples/drums
drumssamples_DATA = *.ogg
EXTRA_DIST = $(drumssamples_DATA)

View File

@@ -1 +0,0 @@
SUBDIRS = acoustic cr78 cr8000 effects electro farfisa ferraro instrument jorgensohn latin linn magnetboy misc misc_bass misc_claps misc_electro misc_fx misc_hats misc_perc misc_synth r_b tr606 tr77 tr808 tr909

View File

@@ -1,6 +0,0 @@
acousticdrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/acoustic
acousticdrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(acousticdrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
cr78drumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/cr78
cr78drumsynthsamples_DATA = *.ds
EXTRA_DIST = $(cr78drumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
cr8000drumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/cr8000
cr8000drumsynthsamples_DATA = *.ds
EXTRA_DIST = $(cr8000drumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
effectsdrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/effects
effectsdrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(effectsdrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
electrodrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/electro
electrodrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(electrodrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
farfisadrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/farfisa
farfisadrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(farfisadrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
ferrarodrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/ferraro
ferrarodrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(ferrarodrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
instrumentdrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/instrument
instrumentdrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(instrumentdrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
jorgensohndrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/jorgensohn
jorgensohndrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(jorgensohndrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
latindrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/latin
latindrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(latindrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
linndrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/linn
linndrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(linndrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
magnetboydrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/magnetboy
magnetboydrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(magnetboydrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
miscdrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/misc
miscdrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(miscdrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
miscbassdrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/misc_bass
miscbassdrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(miscbassdrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
miscclapsdrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/misc_claps
miscclapsdrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(miscclapsdrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
miscelectrodrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/misc_electro
miscelectrodrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(miscelectrodrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
miscfxdrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/misc_fx
miscfxdrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(miscfxdrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
mischatsdrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/misc_hats
mischatsdrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(mischatsdrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
miscpercdrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/misc_perc
miscpercdrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(miscpercdrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
miscsynthdrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/misc_synth
miscsynthdrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(miscsynthdrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
rbdrumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/r_b
rbdrumsynthsamples_DATA = *.ds
EXTRA_DIST = $(rbdrumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
tr606drumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/tr606
tr606drumsynthsamples_DATA = *.ds
EXTRA_DIST = $(tr606drumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
tr77drumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/tr77
tr77drumsynthsamples_DATA = *.ds
EXTRA_DIST = $(tr77drumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
tr808drumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/tr808
tr808drumsynthsamples_DATA = *.ds
EXTRA_DIST = $(tr808drumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
tr909drumsynthsamplesdir = $(lmmsdatadir)/samples/drumsynth/tr909
tr909drumsynthsamples_DATA = *.ds
EXTRA_DIST = $(tr909drumsynthsamples_DATA)

View File

@@ -1,6 +0,0 @@
effectssamplesdir = $(lmmsdatadir)/samples/effects
effectssamples_DATA = *.ogg
EXTRA_DIST = $(effectssamples_DATA)

View File

@@ -1,6 +0,0 @@
instrumentssamplesdir = $(lmmsdatadir)/samples/instruments
instrumentssamples_DATA = *.ogg
EXTRA_DIST = $(instrumentssamples_DATA)

View File

@@ -1,6 +0,0 @@
latinsamplesdir = $(lmmsdatadir)/samples/latin
latinsamples_DATA = *.ogg
EXTRA_DIST = $(latinsamples_DATA)

View File

@@ -1,6 +0,0 @@
miscsamplesdir = $(lmmsdatadir)/samples/misc
miscsamples_DATA = *.ogg
EXTRA_DIST = $(miscsamples_DATA)

View File

@@ -1,6 +0,0 @@
shapessamplesdir = $(lmmsdatadir)/samples/shapes
shapessamples_DATA = *.wav *.ogg
EXTRA_DIST = $(shapessamples_DATA)

View File

@@ -1,6 +0,0 @@
stringsnpadssamplesdir = $(lmmsdatadir)/samples/stringsnpads
stringsnpadssamples_DATA = *.ogg
EXTRA_DIST = $(stringsnpadssamples_DATA)

View File

@@ -0,0 +1,4 @@
INCLUDE(InstallHelpers)
INSTALL_DATA_SUBDIRS("themes" "*.png;*.css")

View File

@@ -1,15 +0,0 @@
theme_defaultdir = $(lmmsdatadir)/themes/default
theme_default_DATA = default/*.png default/style.css
theme_blue_scenedir = $(lmmsdatadir)/themes/blue_scene
theme_blue_scene_DATA = blue_scene/*.png
plugin_theme_blue_scenedir = $(lmmsdatadir)/themes/blue_scene/plugins
plugin_theme_blue_scene_DATA = blue_scene/plugins/*.png
theme_llamadir = $(lmmsdatadir)/themes/llama
theme_llama_DATA = llama/*.png
EXTRA_DIST = $(theme_default_DATA) $(theme_blue_scene_DATA) $(plugin_theme_blue_scene_DATA) $(theme_llama_DATA)

View File

@@ -0,0 +1,3 @@
FILE(GLOB PNG_FILES *.png)
INSTALL(FILES ${PNG_FILES} DESTINATION ${LMMS_DATA_DIR}/track_icons)

View File

@@ -1,6 +0,0 @@
trackiconsdir = $(lmmsdatadir)/track_icons
trackicons_DATA = *.png
EXTRA_DIST = $(trackicons_DATA)

View File

@@ -28,11 +28,7 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_ALSA_ASOUNDLIB_H
#ifndef ALSA_SUPPORT
#define ALSA_SUPPORT
#endif
#ifdef LMMS_HAVE_ALSA
// older ALSA-versions might require this
#define ALSA_PCM_NEW_HW_PARAMS_API

View File

@@ -103,8 +103,6 @@ public:
virtual void saveSettings( void ) = 0;
public slots:
virtual void show( void )
{
parentWidget()->show();

View File

@@ -67,8 +67,6 @@ public:
{
}
public slots:
virtual void show( void )
{
parentWidget()->hide();

View File

@@ -29,7 +29,7 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_VORBIS_CODEC_H
#ifdef LMMS_HAVE_OGGVORBIS
#include <vorbis/codec.h>

View File

@@ -31,9 +31,7 @@
#include "lmmsconfig.h"
#include "audio_file_device.h"
#ifdef LMMS_HAVE_SNDFILE_H
#include <sndfile.h>
#endif
class audioFileWave : public audioFileDevice
@@ -79,29 +77,8 @@ private:
void finishEncoding( void );
#if LMMS_HAVE_SNDFILE_H
SF_INFO m_si;
SNDFILE * m_sf;
#else
int m_bytesWritten;
struct waveFileHeader
{
char riff_id[4]; // "RIFF"
Uint32 total_bytes; // total filesize-8
char wave_fmt_str[8]; // "WAVEfmt"
Uint32 bitrate_1; // bitrate, e.g. 16
Uint16 uncompressed; // 1 if PCM
Uint16 channels; // 1 = mono 2 = stereo
Uint32 sample_rate; // sample-rate e.g. 44100
Uint32 bytes_per_second; // sample-rate*channels*
// (bitrate/8)
Uint16 block_alignment; // channels*(bitrate/8)
Uint16 bitrate_2; // bitrate, e.g. 16
char data_chunk_id[4]; // "data"
Uint32 data_bytes; // total size of sample-data
} m_waveFileHeader;
#endif
} ;

View File

@@ -28,9 +28,7 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_JACK_JACK_H
#define JACK_SUPPORT
#ifdef LMMS_HAVE_JACK
#include <jack/jack.h>

View File

@@ -28,15 +28,11 @@
#include "lmmsconfig.h"
#if defined LMMS_HAVE_SYS_SOUNDCARD_H || defined LMMS_HAVE_SOUNDCARD_H
#define OSS_SUPPORT
#ifdef LMMS_HAVE_OSS
#include "audio_device.h"
class lcdSpinBox;
class QLineEdit;

View File

@@ -28,11 +28,7 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_PULSE_PULSEAUDIO_H
#ifndef PULSEAUDIO_SUPPORT
#define PULSEAUDIO_SUPPORT
#endif
#ifdef LMMS_HAVE_PULSEAUDIO
#include <pulse/pulseaudio.h>

View File

@@ -28,16 +28,10 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_SDL_SDL_AUDIO_H
#ifndef SDL_AUDIO_SUPPORT
#define SDL_AUDIO_SUPPORT
#endif
#include LMMS_SDL_SDL_H
#include LMMS_SDL_SDL_AUDIO_H
#ifdef LMMS_HAVE_SDL
#include <SDL.h>
#include <SDL_audio.h>
#include "audio_device.h"

View File

@@ -139,7 +139,7 @@ public:
return( m_ladDir );
}
#ifdef LMMS_HAVE_STK_H
#ifdef LMMS_HAVE_STK
const QString & stkDir( void ) const
{
return( m_stkDir );
@@ -186,7 +186,7 @@ private:
QString m_vstDir;
QString m_flDir;
QString m_ladDir;
#ifdef LMMS_HAVE_STK_H
#ifdef LMMS_HAVE_STK
QString m_stkDir;
#endif
QStringList m_recentlyOpenedProjects;

View File

@@ -29,7 +29,7 @@
#include <QtGui/QDialog>
#include "ui_export_project.uic"
#include "ui_export_project.h"
class projectRenderer;

View File

@@ -26,14 +26,7 @@
#ifndef _LADSPA_CONTROL_H
#define _LADSPA_CONTROL_H
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_LADSPA_H
#include <ladspa.h>
#else
#include "ladspa-1.1.h"
#endif
#include "automatable_model.h"
#include "knob.h"

View File

@@ -28,14 +28,7 @@
#ifndef _LADSPA_MANAGER_H
#define _LADSPA_MANAGER_H
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_LADSPA_H
#include <ladspa.h>
#else
#include "ladspa-1.1.h"
#endif
#include <QtCore/QMap>
#include <QtCore/QPair>

View File

@@ -53,7 +53,7 @@ public:
gettimeofday( &begin, NULL );
}
inline Uint32 elapsed( void ) const
inline int elapsed( void ) const
{
struct timeval now;
gettimeofday( &now, NULL );

View File

@@ -28,11 +28,7 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_ALSA_ASOUNDLIB_H
#ifndef ALSA_SUPPORT
#define ALSA_SUPPORT
#endif
#ifdef LMMS_HAVE_ALSA
#include <alsa/asoundlib.h>

View File

@@ -28,16 +28,10 @@
#include "lmmsconfig.h"
#ifdef LMMS_HAVE_ALSA_ASOUNDLIB_H
#ifndef ALSA_SUPPORT
#define ALSA_SUPPORT
#endif
#ifdef LMMS_HAVE_ALSA
#include <alsa/asoundlib.h>
#endif
#include <QtCore/QThread>
#include <QtCore/QTimer>
@@ -132,7 +126,6 @@ private slots:
private:
virtual void run( void );
#ifdef ALSA_SUPPORT
snd_seq_t * m_seqHandle;
struct ports
@@ -146,7 +139,6 @@ private:
int m_queueID;
volatile bool m_quit;
#endif
QTimer m_portListUpdateTimer;
QStringList m_readablePorts;
@@ -163,3 +155,5 @@ signals:
#endif
#endif

View File

@@ -110,8 +110,6 @@ public:
virtual void saveSettings( void ) = 0;
public slots:
virtual void show( void )
{
parentWidget()->show();

View File

@@ -63,8 +63,6 @@ public:
{
}
public slots:
virtual void show( void )
{
parentWidget()->hide();

Some files were not shown because too many files have changed in this diff Show More