Browse Source

Added old abandoned KDE3 version of the RoseGarden MIDI tool


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1097595 283d02a7-25f6-0310-bc7c-ecb5cbfe19
tpearson 9 years ago
commit
145364a8af
100 changed files with 13095 additions and 0 deletions
  1. 136
    0
      AUTHORS
  2. 396
    0
      CMakeLists.txt
  3. 280
    0
      COPYING
  4. 1232
    0
      Doxyfile
  5. 189
    0
      INSTALL
  6. 142
    0
      README
  7. 4
    0
      TRANSLATORS
  8. 114
    0
      cmake_admin/FindKDECONFIG.cmake
  9. 56
    0
      cmake_admin/FindLADSPA.cmake
  10. 64
    0
      cmake_admin/FindLIRC.cmake
  11. 74
    0
      cmake_admin/FindMEINPROC.cmake
  12. 68
    0
      cmake_admin/FindMSGFMT.cmake
  13. 73
    0
      cmake_admin/FindPCHSupport.cmake
  14. 383
    0
      cmake_admin/FindPkgConfig.cmake
  15. 110
    0
      cmake_admin/UserWarnings.cmake
  16. 125
    0
      data/CMakeLists.txt
  17. 1733
    0
      data/chords/chords.xml
  18. 13
    0
      data/desktop/rosegarden.desktop
  19. 8
    0
      data/desktop/x-rosegarden-device.desktop
  20. 9
    0
      data/desktop/x-rosegarden.desktop
  21. 8
    0
      data/desktop/x-rosegarden21.desktop
  22. 8
    0
      data/desktop/x-soundfont.desktop
  23. BIN
      data/examples/Djer-Fire.rg
  24. BIN
      data/examples/autoload.rg
  25. BIN
      data/examples/aveverum.rg
  26. BIN
      data/examples/aylindaamiga.rg
  27. BIN
      data/examples/bogus-surf-jam.rg
  28. BIN
      data/examples/bwv-1060-trumpet-duet-excerpt.rg
  29. BIN
      data/examples/children.rg
  30. 420
    0
      data/examples/colourmap-fragment.xml
  31. BIN
      data/examples/doodle-q.rg
  32. BIN
      data/examples/exercise_notation.rg
  33. BIN
      data/examples/glazunov-for-solo-and-piano-with-cue.rg
  34. BIN
      data/examples/glazunov.rg
  35. BIN
      data/examples/headers-and-unicode-lyrics.rg
  36. BIN
      data/examples/himno_de_riego.rg
  37. BIN
      data/examples/interpretation-example.rg
  38. BIN
      data/examples/let-all-mortal-flesh.rg
  39. BIN
      data/examples/lilypond-alternative-endings.rg
  40. BIN
      data/examples/lilypond-directives.rg
  41. BIN
      data/examples/lilypond-staff-groupings.rg
  42. BIN
      data/examples/mandolin-sonatina.rg
  43. BIN
      data/examples/mozart-quartet.rg
  44. BIN
      data/examples/notation-for-string-orchestra-in-D-minor.rg
  45. BIN
      data/examples/perfect-moment.rg
  46. BIN
      data/examples/ravel-pc-gmaj-adagio.rg
  47. 143
    0
      data/examples/rg-stats.xsl
  48. 2606
    0
      data/examples/sonataC.rose
  49. BIN
      data/examples/stormy-riders.rg
  50. BIN
      data/examples/test_tuplets.rg
  51. BIN
      data/examples/the-rose-garden.rg
  52. BIN
      data/examples/vivaldi-cs3mv2.rg
  53. BIN
      data/examples/vivaldi_op44_11_1.rg
  54. 1277
    0
      data/fonts/LilyPond-feta-design20.pfa
  55. 299
    0
      data/fonts/LilyPond-feta-nummer-design10.pfa
  56. 1322
    0
      data/fonts/LilyPond-parmesan-design20.pfa
  57. 48
    0
      data/fonts/README
  58. 15
    0
      data/fonts/mappings/README
  59. 189
    0
      data/fonts/mappings/feta.xml
  60. 226
    0
      data/fonts/mappings/feta_pixmaps.xml
  61. 155
    0
      data/fonts/mappings/fughetta.xml
  62. 154
    0
      data/fonts/mappings/inkpen.xml
  63. 154
    0
      data/fonts/mappings/maestro.xml
  64. 153
    0
      data/fonts/mappings/opus.xml
  65. 158
    0
      data/fonts/mappings/petrucci.xml
  66. 102
    0
      data/fonts/mappings/rg21.xml
  67. 147
    0
      data/fonts/mappings/sonata.xml
  68. 142
    0
      data/fonts/mappings/steinberg.xml
  69. 160
    0
      data/fonts/mappings/xinfonia.xml
  70. BIN
      data/library/AccessVirus.rgd
  71. BIN
      data/library/Alesis-QS6.rgd
  72. BIN
      data/library/Alesis-QS7.rgd
  73. BIN
      data/library/Alesis-QS7_QS8.rgd
  74. BIN
      data/library/Alesis-S4Plus.rgd
  75. BIN
      data/library/Alesis-SR16.rgd
  76. BIN
      data/library/Behringer-V-Amp-Pro.rgd
  77. BIN
      data/library/Boss-DR-660.rgd
  78. BIN
      data/library/Casio-MT-540.rgd
  79. BIN
      data/library/Casio-WK-3000.rgd
  80. BIN
      data/library/Chaos12m.rgd
  81. BIN
      data/library/Creative-SBLive8MB.rgd
  82. BIN
      data/library/Emu-Proteus-2000.rgd
  83. BIN
      data/library/Emu-Proteus-FX.rgd
  84. BIN
      data/library/Ensoniq-MR76.rgd
  85. BIN
      data/library/GM.rgd
  86. BIN
      data/library/GM2.rgd
  87. BIN
      data/library/GS.rgd
  88. BIN
      data/library/Hammond-XM1.rgd
  89. BIN
      data/library/Juno-G.rgd
  90. BIN
      data/library/Kawai-ES-3.rgd
  91. BIN
      data/library/Korg-03rw.rgd
  92. BIN
      data/library/Korg-KARMA.rgd
  93. BIN
      data/library/Korg-NS5R.rgd
  94. BIN
      data/library/Korg-Radias-Factory.rgd
  95. BIN
      data/library/Korg-Trinity-DRS.rgd
  96. BIN
      data/library/Korg-Triton-Extreme-Combi.rgd
  97. BIN
      data/library/Korg-Triton-Extreme-Prog.rgd
  98. BIN
      data/library/Korg-Wavestation.rgd
  99. BIN
      data/library/Korg-X3.rgd
  100. 0
    0
      data/library/Korg-X50_GM.rgd

+ 136
- 0
AUTHORS View File

@@ -0,0 +1,136 @@
1
+Lead developers:
2
+
3
+Chris Cannam <cannam@all-day-breakfast.com>
4
+Richard Bown <richard.bown@ferventsoftware.com>
5
+Guillaume Laurent <glaurent@telegraph-road.org>
6
+
7
+Developers:
8
+
9
+D. Michael McIntyre <dmmcintyr@users.sourceforge.net>
10
+Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
11
+Heikki Johannes Junes <hjunes@users.sourceforge.net>
12
+
13
+
14
+Contributors:
15
+
16
+Ron Kuris <rk@prefer.net>
17
+    * cleanups
18
+    
19
+Randall Farmer <rfarme@simons-rock.edu>
20
+    * chord labelling code
21
+    
22
+Hans Kieserman <hkieserman@mail.com> 
23
+    * Lilypond output
24
+    * assorted other patches
25
+    * i18n-ization
26
+    
27
+Levi Burton <donburton@sbcglobal.net> 
28
+    * UI improvements
29
+    * other bug fixes
30
+
31
+Mark Hymers <markh@linuxfromscratch.org>
32
+    * Segment colours
33
+    * Other UI and bug fixes
34
+
35
+Alexandre Prokoudine <alexandre.prokoudine@gmail.com>
36
+    * Russian translation
37
+    * i18n-ization
38
+    
39
+Jörg Schumann <jrschumann@gmx.de>
40
+Eckhard Jokisch <e.jokisch@u-code.de>
41
+    * German translation
42
+
43
+Kevin Donnelly
44
+    * Welsh translation
45
+
46
+Didier Burli
47
+Yves Guillemot
48
+    * French translation
49
+    * Bug fixes
50
+
51
+Daniele Medri
52
+Alessandro Musesti
53
+    * Italian translation
54
+
55
+Stefan Asserh�l
56
+Erik Magnus Johansson
57
+    * Swedish translation
58
+
59
+Hasso Tepper
60
+    * Estonian translation
61
+
62
+Jelmer Vernooij
63
+Jasper Stein
64
+    * Dutch translation
65
+
66
+Oota Toshiya
67
+    * Japanese translation
68
+
69
+Kevin Liang
70
+    * HSpinBox class
71
+
72
+Arnout Engelen
73
+	* Transposition by interval
74
+
75
+Thorsten Wilms
76
+    * Original designs on which the Rosegarden rotary controllers are based
77
+
78
+William <rosegarden4c AT orthoset.com>
79
+    * auto-scroll deceleration
80
+    * glyphs for rests outside staves and other bug fixes 
81
+
82
+Liu Songhe <jackliu9999 AT msn.com>
83
+    * Simplified Chinese translation
84
+
85
+Thomas Nagy <tnagy256@yahoo.fr>
86
+    * SCons/bksys building system
87
+
88
+Vince Negri <vince.negri@gmail.com>
89
+    * Initial MTC slave implementation (the bits without the bugs)
90
+
91
+Toni Arnold <toni__arnold@bluewin.ch>
92
+    * LIRC infrared remote-controller support
93
+
94
+Stephen Torri <storri@torri.org>
95
+    * Initial guitar chord editing code
96
+
97
+Jan B�a <jbina@sky.cz>
98
+    * Czech translation
99
+
100
+Vladimir Savic <vladimir@vladimirsavic.net> 
101
+    * icons, icons, icons
102
+
103
+Lisandro Damián Nicanor Pérez Meyer <perezmeyer@infovia.com.ar>
104
+Javier Castrillo <riverplatense@gmail.com>
105
+Lucas Godoy <godoy.lucas@gmail.com>
106
+Marcos Guglielmetti <marcospcmusica@yahoo.com.ar>
107
+    * Spanish translation
108
+
109
+Feliu Ferrer <mverge2@pie.xtec.es>
110
+Quim Perez i Noguer <noguer@osona.com>
111
+    * Catalan translation
112
+
113
+Carolyn McIntyre (deceased)
114
+    * 1.2.3 splash screen photo
115
+    * Gave birth to D. Michael McIntyre, bought him a good flute once upon a
116
+      time, and always humored him when he came over to play her some new
117
+      instrument, even though she really hated his playing.
118
+      Born October 19, 1951, died September 21, 2007, R. I. P.
119
+
120
+Piotr Sawicki <pelle@plusnet.pl>
121
+    * Polish translation
122
+
123
+David García-Abad <davidgarciabad@telefonica.net>
124
+    * Basque translation
125
+
126
+Mikhail Yakshin <greycat@users.sourceforge.net>
127
+    * Author of KGuitar, source of inspiration and bits of code for fretboards
128
+
129
+Joerg C. Koenig <jck@gmx.org>
130
+Craig Drummond, Bernhard Rosenkränzer, Preston Brown, Than Ngo
131
+    * Klearlook theme
132
+ 
133
+
134
+##
135
+## Names in here should also be credited in gui/application/main.cpp, with aboutData.addCredit()
136
+##

+ 396
- 0
CMakeLists.txt View File

@@ -0,0 +1,396 @@
1
+# Rosegarden
2
+# A MIDI and audio sequencer and musical notation editor.
3
+#
4
+# This program is Copyright 2000-2008
5
+#     Guillaume Laurent   <glaurent@telegraph-road.org>,
6
+#     Chris Cannam        <cannam@all-day-breakfast.com>,
7
+#     Richard Bown        <richard.bown@ferventsoftware.com>
8
+#
9
+# The moral rights of Guillaume Laurent, Chris Cannam, and Richard
10
+# Bown to claim authorship of this work have been asserted.
11
+#
12
+# This file is Copyright 2006-2008
13
+#     Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
14
+#
15
+# Other copyrights also apply to some parts of this work.  Please
16
+# see the AUTHORS file and individual file headers for details.
17
+#
18
+# This program is free software; you can redistribute it and/or
19
+# modify it under the terms of the GNU General Public License as
20
+# published by the Free Software Foundation; either version 2 of the
21
+# License, or (at your option) any later version.  See the file
22
+# COPYING included with this distribution for more information.
23
+
24
+# The name of our project is "ROSEGARDEN". CMakeLists files in this project can
25
+# refer to the root source directory of the project as ${ROSEGARDEN_SOURCE_DIR} 
26
+# and to the root binary directory of the project as ${ROSEGARDEN_BINARY_DIR}
27
+PROJECT(ROSEGARDEN)
28
+
29
+# CMake supports KDE checks since this version number
30
+CMAKE_MINIMUM_REQUIRED(VERSION 2.4.2)
31
+
32
+# Show full commands and messages. It generates a lot of console output.
33
+# It is necessary for Eclipse warning/error parser, 
34
+# but it can be enabled anyway with "make VERBOSE=1"
35
+SET(CMAKE_VERBOSE_MAKEFILE OFF)
36
+
37
+# Seems that relative paths break some scripts. Don't set it ON
38
+SET(CMAKE_USE_RELATIVE_PATHS OFF)
39
+
40
+# Rebuild the object files if the rules have changed, but not the actual source 
41
+# files or headers (e.g. if you changed the some compiler switches)
42
+SET(CMAKE_SKIP_RULE_DEPENDENCY OFF)
43
+
44
+# Misc settings
45
+SET(CMAKE_COLOR_MAKEFILE ON)
46
+SET(CMAKE_INCLUDE_CURRENT_DIR ON)
47
+SET(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
48
+
49
+# Additional CMake modules for 3rd party library checks reside here
50
+SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_admin")
51
+
52
+# Mark as advanced
53
+MARK_AS_ADVANCED(EXECUTABLE_OUTPUT_PATH 
54
+                 LIBRARY_OUTPUT_PATH
55
+		 CMAKE_BACKWARDS_COMPATIBILITY)
56
+
57
+# Rosegarden version string
58
+SET (VERSION_MAJOR "1")
59
+SET (VERSION_MINOR "7")
60
+SET (VERSION_PATCH "0")
61
+# comment out the next line for a public release
62
+#SET (VERSION_SUFFIX "svn")
63
+SET (VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
64
+IF(VERSION_SUFFIX)
65
+   SET (VERSION "${VERSION}-${VERSION_SUFFIX}")
66
+ENDIF(VERSION_SUFFIX)
67
+ADD_DEFINITIONS(-D'VERSION="${VERSION}"')
68
+
69
+# User options
70
+OPTION(WANT_DEBUG   "Include debug support" OFF)
71
+OPTION(WANT_FULLDBG "Full debug support (BIG executables!)" OFF)
72
+OPTION(WANT_SOUND   "Include Sound support" ON)
73
+OPTION(WANT_JACK    "Include Jack (Jack Audio Connection Kit) support" ON)
74
+OPTION(WANT_DSSI    "Include DSSI support" ON)
75
+OPTION(WANT_LIRC    "Include LIRC (Linux Infrared Remote Control) support" OFF)
76
+OPTION(WANT_PCH     "Use precompiled headers" OFF)
77
+OPTION(WANT_TEST    "Perform unit tests" OFF)
78
+
79
+IF(WANT_TEST)
80
+    ENABLE_TESTING()
81
+ENDIF(WANT_TEST)
82
+
83
+IF(NOT WANT_SOUND)
84
+    SET(WANT_JACK OFF)
85
+    SET(WANT_DSSI OFF)
86
+    ADD_DEFINITIONS(-DNO_SOUND)
87
+ENDIF(NOT WANT_SOUND)
88
+
89
+# Check for KDE3
90
+FIND_PACKAGE(KDE3 REQUIRED QUIET)
91
+IF(QT_FOUND)
92
+    ADD_DEFINITIONS(${QT_DEFINITIONS})
93
+    MESSAGE(STATUS "Found Qt3 (version ${qt_version_str})")
94
+    #MESSAGE("QT_LIBRARIES: ${QT_LIBRARIES}")
95
+ELSE(QT_FOUND)
96
+    MESSAGE(FATAL_ERROR "Qt3 package not found")
97
+ENDIF(QT_FOUND)
98
+IF(KDE3_FOUND)
99
+    ADD_DEFINITIONS(${KDE3_DEFINITIONS})
100
+    #MESSAGE("KDE3PREFIX: ${KDE3PREFIX}")
101
+    KDE3_PRINT_RESULTS()
102
+    #MESSAGE("QT_AND_KDECORE_LIBS: ${QT_AND_KDECORE_LIBS}")
103
+ELSE(KDE3_FOUND)    
104
+    MESSAGE(FATAL_ERROR "KDE3 Not found")
105
+ENDIF(KDE3_FOUND)
106
+
107
+# Clear the flags set by FindKDE3 
108
+SET(CMAKE_CXX_FLAGS "")
109
+MARK_AS_ADVANCED(KDE3_BUILD_TESTS
110
+                 KDE3_ENABLE_FINAL
111
+		 KDE3_DCOPIDL_EXECUTABLE
112
+		 KDE3_DCOPIDL2CPP_EXECUTABLE
113
+		 KDE3_INCLUDE_DIR
114
+		 KDE3_KCFGC_EXECUTABLE
115
+		 KDE3_KDECORE_LIBRARY
116
+		 KDECONFIG_EXECUTABLE )
117
+
118
+# Provide the KDE3 prefix as a default prefix (if the user has CMake 2.4.4)
119
+IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
120
+    SET(CMAKE_INSTALL_PREFIX ${KDE3PREFIX} CACHE PATH
121
+        "Install path prefix, prepended onto install directories." FORCE)
122
+ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) 
123
+
124
+# Check for PKG-CONFIG
125
+FIND_PACKAGE(PkgConfig REQUIRED)
126
+IF(PKG_CONFIG_FOUND)
127
+    MESSAGE(STATUS "Program pkg-config found (${PKG_CONFIG_EXECUTABLE})")
128
+ELSE(PKG_CONFIG_FOUND)
129
+    MESSAGE(FATAL_ERROR "Program pkg-config not found")
130
+ENDIF(PKG_CONFIG_FOUND)
131
+
132
+# Initialize some variables
133
+SET(HAVE_XFT FALSE)
134
+SET(HAVE_ALSA FALSE)
135
+SET(HAVE_JACK FALSE)
136
+SET(HAVE_DSSI FALSE)
137
+SET(HAVE_LIBLO FALSE)
138
+SET(HAVE_LIBLRDF FALSE)
139
+SET(HAVE_LADSPA FALSE)
140
+SET(HAVE_LIRC FALSE)
141
+SET(HAVE_FFTW3F FALSE)
142
+
143
+# Check for Xft
144
+PKG_CHECK_MODULES(XFT xft>=2.1.0)
145
+IF(XFT_FOUND)
146
+    ADD_DEFINITIONS(-DHAVE_XFT)
147
+    SET(HAVE_XFT TRUE)
148
+    SET(XFT_LIBS ${XFT_LIBRARIES})
149
+    #MESSAGE("XFT_LIBS: ${XFT_LIBS}")
150
+    LIST(APPEND XFT_LIB_DIR ${XFT_LIBRARY_DIRS} ${XFT_LIBDIR})
151
+    #MESSAGE("XFT_LIB_DIR: ${XFT_LIB_DIR}")
152
+    LIST(APPEND XFT_INC_DIR ${XFT_INCLUDE_DIRS} ${XFT_INCLUDEDIR})
153
+    #MESSAGE("XFT_INC_DIR: ${XFT_INC_DIR}")    
154
+ENDIF(XFT_FOUND)
155
+
156
+IF(WANT_SOUND)
157
+
158
+    # Check for ALSA 1.0
159
+    PKG_CHECK_MODULES(ALSA REQUIRED alsa>=1.0)
160
+    IF(ALSA_FOUND)
161
+        SET(HAVE_ALSA TRUE)
162
+        ADD_DEFINITIONS(-DHAVE_ALSA)
163
+        SET(ALSA_LIBS ${ALSA_LIBRARIES})
164
+        #MESSAGE("ALSA_LIBS: ${ALSA_LIBS}")
165
+        LIST(APPEND ALSA_LIB_DIR ${ALSA_LIBRARY_DIRS} ${ALSA_LIBDIR} )
166
+        #MESSAGE("ALSA_LIB_DIR: ${ALSA_LIB_DIR}")
167
+        LIST(APPEND ALSA_INC_DIR ${ALSA_INCLUDE_DIRS} ${ALSA_INCLUDEDIR})
168
+        #MESSAGE("ALSA_INC_DIR: ${ALSA_INC_DIR}")
169
+    ELSE(ALSA_FOUND)
170
+        MESSAGE(FATAL_ERROR "Please install the required package. Aborting")
171
+    ENDIF(ALSA_FOUND)
172
+    
173
+    IF(WANT_JACK)
174
+        PKG_CHECK_MODULES(JACK jack>=0.77)
175
+        IF(JACK_FOUND)
176
+            ADD_DEFINITIONS(-DHAVE_LIBJACK)
177
+            SET(HAVE_JACK TRUE)
178
+            SET(JACK_LIBS ${JACK_LIBRARIES})
179
+            #MESSAGE("JACK_LIBS: ${JACK_LIBS}")
180
+            LIST(APPEND JACK_LIB_DIR ${JACK_LIBDIR} ${JACK_LIBRARY_DIRS})
181
+            #MESSAGE("JACK_LIB_DIR: ${JACK_LIB_DIR}")
182
+            LIST(APPEND JACK_INC_DIR ${JACK_INCLUDEDIR} ${JACK_INCLUDE_DIRS})
183
+            #MESSAGE("JACK_INC_DIR: ${JACK_INC_DIR}")
184
+        ENDIF(JACK_FOUND)
185
+    ENDIF(WANT_JACK)
186
+    
187
+    IF(WANT_DSSI)
188
+        PKG_CHECK_MODULES(DSSI dssi>=0.4)
189
+        IF(DSSI_FOUND)
190
+            ADD_DEFINITIONS(-DHAVE_DSSI)
191
+            SET(HAVE_DSSI TRUE)
192
+            LIST(APPEND DSSI_INC_DIR ${DSSI_INCLUDE_DIRS} ${DSSI_INCLUDEDIR})
193
+            #MESSAGE("DSSI_INC_DIR: ${DSSI_INC_DIR}")
194
+        ENDIF(DSSI_FOUND)
195
+    ENDIF(WANT_DSSI)
196
+    
197
+    PKG_CHECK_MODULES(LIBLO liblo>=0.7)
198
+    IF(LIBLO_FOUND)
199
+        ADD_DEFINITIONS(-DHAVE_LIBLO)
200
+        SET(HAVE_LIBLO TRUE)
201
+        SET(LIBLO_LIBS ${LIBLO_LIBRARIES})
202
+        #MESSAGE("LIBLO_LIBS: ${LIBLO_LIBS}")
203
+        LIST(APPEND LIBLO_LIB_DIR ${LIBLO_LIBDIR} ${LIBLO_LIBRARY_DIRS})
204
+        #MESSAGE("LIBLO_LIB_DIR: ${LIBLO_LIB_DIR}")
205
+        LIST(APPEND LIBLO_INC_DIR ${LIBLO_INCLUDEDIR} ${LIBLO_INCLUDE_DIRS})
206
+        #MESSAGE("LIBLO_INC_DIR: ${LIBLO_INC_DIR}")
207
+    ENDIF(LIBLO_FOUND)
208
+    
209
+    PKG_CHECK_MODULES(LRDF lrdf>=0.3)
210
+    IF(LRDF_FOUND)
211
+        SET(HAVE_LIBLRDF TRUE)
212
+        ADD_DEFINITIONS(-DHAVE_LIBLRDF)
213
+        SET(LRDF_LIBS ${LRDF_LIBRARIES})
214
+        #MESSAGE("LRDF_LIBS: ${LRDF_LIBS}")
215
+        LIST(APPEND LRDF_LIB_DIR ${LRDF_LIBDIR} ${LRDF_LIBRARY_DIRS})
216
+        #MESSAGE("LRDF_LIB_DIR: ${LRDF_LIB_DIR}")
217
+        LIST(APPEND LRDF_INC_DIR ${LRDF_INCLUDEDIR} ${LRDF_INCLUDE_DIRS})
218
+        #MESSAGE("LRDF_INC_DIR: ${LRDF_INC_DIR}")
219
+    ENDIF(LRDF_FOUND)
220
+
221
+    FIND_PACKAGE(LADSPA QUIET)
222
+    IF(LADSPA_FOUND)
223
+        SET(HAVE_LADSPA TRUE)
224
+        ADD_DEFINITIONS(-DHAVE_LADSPA)
225
+        SET(LADSPA_INC_DIR ${LADSPA_INCLUDE_DIR})
226
+        MESSAGE(STATUS "Found LADSPA (${LADSPA_INC_DIR})")
227
+    ENDIF(LADSPA_FOUND)
228
+    
229
+ENDIF(WANT_SOUND)
230
+
231
+PKG_CHECK_MODULES(FFTW3F REQUIRED fftw3f>=3.0.0)
232
+IF(FFTW3F_FOUND)
233
+    ADD_DEFINITIONS(-DHAVE_FFTW3F)
234
+    SET(HAVE_FFTW3F TRUE)
235
+    SET(FFTW3F_LIBS ${FFTW3F_LIBRARIES})
236
+    #MESSAGE("FFTW3F_LIBS: ${FFTW3F_LIBS}")
237
+    LIST(APPEND FFTW3F_LIB_DIR ${FFTW3F_LIBDIR} ${FFTW3F_LIBRARY_DIRS})
238
+    #MESSAGE("FFTW3F_LIB_DIR: ${FFTW3F_LIB_DIR}")
239
+    LIST(APPEND FFTW3F_INC_DIR ${FFTW3F_INCLUDEDIR} ${FFTW3F_INCLUDE_DIRS})
240
+    #MESSAGE("FFTW3F_INC_DIR: ${FFTW3F_INC_DIR}")
241
+ELSE(FFTW3F_FOUND)
242
+    MESSAGE(FATAL_ERROR "Please install the required package. Aborting")
243
+ENDIF(FFTW3F_FOUND)
244
+
245
+IF(WANT_LIRC)
246
+    FIND_PACKAGE(LIRC QUIET)
247
+    IF(LIRC_FOUND)
248
+        SET(HAVE_LIRC TRUE)
249
+        ADD_DEFINITIONS(-DHAVE_LIRC)
250
+        MESSAGE(STATUS "Found LIRC (${LIRC_LIBRARY})")
251
+        SET(LIRC_LIBS ${LIRC_LIBRARY})
252
+        SET(LIRC_INC_DIR ${LIRC_INCLUDE_DIR})
253
+        SET(LIRC_LIB_DIR ${LIRC_LIBRARY_DIR})
254
+        #MESSAGE("LIRC_LIBS: ${LIRC_LIBS}")
255
+        #MESSAGE("LIRC_LIB_DIR: ${LIRC_LIB_DIR}")
256
+        #MESSAGE("LIRC_INC_DIR: ${LIRC_INC_DIR}")    
257
+    ENDIF(LIRC_FOUND)
258
+ENDIF(WANT_LIRC)
259
+
260
+FIND_PACKAGE(MSGFMT REQUIRED)
261
+IF(MSGFMT_FOUND)
262
+    MESSAGE(STATUS "Program msgfmt found (${MSGFMT_EXECUTABLE})")
263
+ENDIF(MSGFMT_FOUND)
264
+
265
+FIND_PACKAGE(KDECONFIG)
266
+IF(KDECONFIG_EXECUTABLE)
267
+    MESSAGE(STATUS "Program kde-config found (${KDECONFIG_EXECUTABLE})")
268
+    #MESSAGE("KDE3PREFIX: ${KDE3PREFIX}")
269
+ENDIF(KDECONFIG_EXECUTABLE)
270
+
271
+FIND_PACKAGE(MEINPROC REQUIRED)
272
+IF(MEINPROC_FOUND)
273
+    MESSAGE(STATUS "Program meinproc found (${MEINPROC_EXECUTABLE})")
274
+ENDIF(MEINPROC_FOUND)
275
+
276
+# Check GCC for PCH support
277
+SET(USE_PCH FALSE)
278
+IF(WANT_PCH)
279
+    FIND_PACKAGE(PCHSupport)
280
+    IF(PCHSupport_FOUND)
281
+        SET(USE_PCH TRUE)
282
+        ADD_DEFINITIONS(-DUSE_PCH)
283
+        MESSAGE(STATUS "Enabling precompiled headers for GCC ${gcc_compiler_version}") 
284
+    ENDIF(PCHSupport_FOUND)
285
+ENDIF(WANT_PCH)
286
+
287
+# Check PTHREAD_MUTEX_RECURSIVE
288
+INCLUDE(CheckCSourceCompiles)
289
+CHECK_C_SOURCE_COMPILES(
290
+    "#include <pthread.h>
291
+     int main(int argc, char **argv) {
292
+         pthread_mutexattr_t attr;
293
+         pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
294
+         return 0;
295
+     }" PTHREAD_HAS_MUTEX_RECURSIVE)
296
+IF(PTHREAD_HAS_MUTEX_RECURSIVE)
297
+    ADD_DEFINITIONS(-DHAVE_PTHREAD_MUTEX_RECURSIVE)
298
+ENDIF(PTHREAD_HAS_MUTEX_RECURSIVE)
299
+# End of PTHREAD_MUTEX_RECURSIVE Test
300
+
301
+SET(CMAKE_CXX_FLAGS_RELEASE         "-O2 -w -fexceptions -DNDEBUG")
302
+SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO  "-O2 -g -Wall -fexceptions -DDEBUG")
303
+SET(CMAKE_CXX_FLAGS_DEBUG           "-O0 -g3 -Wall -fexceptions -DDEBUG")
304
+
305
+MESSAGE(STATUS "Rosegarden ${VERSION} will be built for install into ${CMAKE_INSTALL_PREFIX}")
306
+
307
+IF(WANT_DEBUG)
308
+    IF(WANT_FULLDBG)
309
+        MESSAGE(STATUS "Configured to compile including full debug information in the executables")
310
+        SET(CMAKE_BUILD_TYPE Debug CACHE STRING
311
+            "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
312
+    ELSE(WANT_FULLDBG)
313
+        MESSAGE(STATUS "Configured to compile including debug information in the executables")
314
+        SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
315
+            "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
316
+    ENDIF(WANT_FULLDBG)
317
+ELSE(WANT_DEBUG)
318
+    MESSAGE(STATUS "Configured to compile for release without debug information")
319
+    SET(CMAKE_BUILD_TYPE Release CACHE STRING
320
+        "Choose the type of build, options are: Debug Release RelWithDebInfo" FORCE)
321
+ENDIF(WANT_DEBUG)
322
+MARK_AS_ADVANCED(CMAKE_BUILD_TYPE)
323
+
324
+# Warn the user if important libraries are missing
325
+INCLUDE(UserWarnings)
326
+
327
+# Recurse into the "src" subdirectory. This does not actually
328
+# cause another cmake executable to run. The same process will walk through
329
+# the project's entire directory structure.
330
+# Output directory will be "RGbuild/"
331
+ADD_SUBDIRECTORY(src RGbuild)
332
+
333
+# Build and install the translations directory
334
+ADD_SUBDIRECTORY(po RGbuild/po)
335
+
336
+# Build and install the documentation directory
337
+ADD_SUBDIRECTORY(docs RGbuild/docs)
338
+
339
+# Install data files
340
+ADD_SUBDIRECTORY(data RGbuild/data)
341
+
342
+# install some documents...
343
+# INSTALL( FILES AUTHORS COPYING README TRANSLATORS INSTALL rosegarden.lsm
344
+#         DESTINATION share/doc/rosegarden-${VERSION} )
345
+
346
+# create and install the version file
347
+FILE(WRITE version.txt "${VERSION}\n")
348
+INSTALL( FILES version.txt
349
+         DESTINATION ${KDE3DATADIR}/rosegarden )
350
+
351
+# uninstall custom target
352
+CONFIGURE_FILE(
353
+    "${CMAKE_SOURCE_DIR}/cmake_admin/cmake_uninstall.cmake.in"
354
+    "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
355
+    IMMEDIATE @ONLY)
356
+
357
+ADD_CUSTOM_TARGET(uninstall
358
+    "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")
359
+
360
+# Custom target trying to clean the CMake generated files
361
+ADD_CUSTOM_TARGET ( distclean
362
+    COMMAND rm -f  {,src/,po/,docs/,data/}CMakeCache.txt
363
+    COMMAND rm -f  {,src/,po/,docs/,data/}cmake_install.cmake
364
+    COMMAND rm -f  {,src/,po/,docs/,data/}cmake_uninstall.cmake
365
+    COMMAND rm -f  {,src/,po/,docs/,data/}CPackConfig.cmake
366
+    COMMAND rm -f  {,src/,po/,docs/,data/}CPackSourceConfig.cmake
367
+    COMMAND rm -f  {,src/,po/,docs/,data/}install_manifest.txt
368
+    COMMAND rm -f  {,src/,po/,docs/,data/}progress.make
369
+    COMMAND rm -f  {,src/,po/,docs/,data/}rosegarden.spec
370
+    COMMAND rm -f  {,src/,po/,docs/,data/}Makefile
371
+    COMMAND rm -rf {,src/,po/,docs/,data/}CMakeFiles
372
+    COMMAND rm -rf {,src/,po/,docs/,data/}_CPack_Packages
373
+    COMMAND rm -rf RGbuild/*
374
+    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
375
+)
376
+ADD_DEPENDENCIES(distclean clean)
377
+
378
+# configure the RPM spec
379
+CONFIGURE_FILE(
380
+    "${CMAKE_SOURCE_DIR}/rosegarden.spec.in"
381
+    "${CMAKE_SOURCE_DIR}/rosegarden.spec"
382
+    IMMEDIATE @ONLY)
383
+
384
+# tarball target
385
+ADD_CUSTOM_TARGET ( tarball
386
+    COMMAND mkdir -p rosegarden-${VERSION}
387
+    COMMAND cp -r cmake_admin rosegarden-${VERSION}
388
+    COMMAND cp -r data rosegarden-${VERSION}
389
+    COMMAND cp -r docs rosegarden-${VERSION}
390
+    COMMAND cp -r po rosegarden-${VERSION}
391
+    COMMAND cp -r src rosegarden-${VERSION}
392
+    COMMAND cp CMakeLists.txt AUTHORS COPYING Doxyfile INSTALL README rosegarden.* TRANSLATORS rosegarden-${VERSION}
393
+    COMMAND tar -cj --exclude .svn --exclude gettext-0.10.35-kde -f rosegarden-${VERSION}.tar.bz2 rosegarden-${VERSION}
394
+    COMMAND rm -rf rosegarden-${VERSION}
395
+    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
396
+)

+ 280
- 0
COPYING View File

@@ -0,0 +1,280 @@
1
+		    GNU GENERAL PUBLIC LICENSE
2
+		       Version 2, June 1991
3
+
4
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5
+                          675 Mass Ave, Cambridge, MA 02139, USA
6
+ Everyone is permitted to copy and distribute verbatim copies
7
+ of this license document, but changing it is not allowed.
8
+
9
+			    Preamble
10
+
11
+  The licenses for most software are designed to take away your
12
+freedom to share and change it.  By contrast, the GNU General Public
13
+License is intended to guarantee your freedom to share and change free
14
+software--to make sure the software is free for all its users.  This
15
+General Public License applies to most of the Free Software
16
+Foundation's software and to any other program whose authors commit to
17
+using it.  (Some other Free Software Foundation software is covered by
18
+the GNU Library General Public License instead.)  You can apply it to
19
+your programs, too.
20
+
21
+  When we speak of free software, we are referring to freedom, not
22
+price.  Our General Public Licenses are designed to make sure that you
23
+have the freedom to distribute copies of free software (and charge for
24
+this service if you wish), that you receive source code or can get it
25
+if you want it, that you can change the software or use pieces of it
26
+in new free programs; and that you know you can do these things.
27
+
28
+  To protect your rights, we need to make restrictions that forbid
29
+anyone to deny you these rights or to ask you to surrender the rights.
30
+These restrictions translate to certain responsibilities for you if you
31
+distribute copies of the software, or if you modify it.
32
+
33
+  For example, if you distribute copies of such a program, whether
34
+gratis or for a fee, you must give the recipients all the rights that
35
+you have.  You must make sure that they, too, receive or can get the
36
+source code.  And you must show them these terms so they know their
37
+rights.
38
+
39
+  We protect your rights with two steps: (1) copyright the software, and
40
+(2) offer you this license which gives you legal permission to copy,
41
+distribute and/or modify the software.
42
+
43
+  Also, for each author's protection and ours, we want to make certain
44
+that everyone understands that there is no warranty for this free
45
+software.  If the software is modified by someone else and passed on, we
46
+want its recipients to know that what they have is not the original, so
47
+that any problems introduced by others will not reflect on the original
48
+authors' reputations.
49
+
50
+  Finally, any free program is threatened constantly by software
51
+patents.  We wish to avoid the danger that redistributors of a free
52
+program will individually obtain patent licenses, in effect making the
53
+program proprietary.  To prevent this, we have made it clear that any
54
+patent must be licensed for everyone's free use or not licensed at all.
55
+
56
+  The precise terms and conditions for copying, distribution and
57
+modification follow.
58
+
59
+		    GNU GENERAL PUBLIC LICENSE
60
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
61
+
62
+  0. This License applies to any program or other work which contains
63
+a notice placed by the copyright holder saying it may be distributed
64
+under the terms of this General Public License.  The "Program", below,
65
+refers to any such program or work, and a "work based on the Program"
66
+means either the Program or any derivative work under copyright law:
67
+that is to say, a work containing the Program or a portion of it,
68
+either verbatim or with modifications and/or translated into another
69
+language.  (Hereinafter, translation is included without limitation in
70
+the term "modification".)  Each licensee is addressed as "you".
71
+
72
+Activities other than copying, distribution and modification are not
73
+covered by this License; they are outside its scope.  The act of
74
+running the Program is not restricted, and the output from the Program
75
+is covered only if its contents constitute a work based on the
76
+Program (independent of having been made by running the Program).
77
+Whether that is true depends on what the Program does.
78
+
79
+  1. You may copy and distribute verbatim copies of the Program's
80
+source code as you receive it, in any medium, provided that you
81
+conspicuously and appropriately publish on each copy an appropriate
82
+copyright notice and disclaimer of warranty; keep intact all the
83
+notices that refer to this License and to the absence of any warranty;
84
+and give any other recipients of the Program a copy of this License
85
+along with the Program.
86
+
87
+You may charge a fee for the physical act of transferring a copy, and
88
+you may at your option offer warranty protection in exchange for a fee.
89
+
90
+  2. You may modify your copy or copies of the Program or any portion
91
+of it, thus forming a work based on the Program, and copy and
92
+distribute such modifications or work under the terms of Section 1
93
+above, provided that you also meet all of these conditions:
94
+
95
+    a) You must cause the modified files to carry prominent notices
96
+    stating that you changed the files and the date of any change.
97
+
98
+    b) You must cause any work that you distribute or publish, that in
99
+    whole or in part contains or is derived from the Program or any
100
+    part thereof, to be licensed as a whole at no charge to all third
101
+    parties under the terms of this License.
102
+
103
+    c) If the modified program normally reads commands interactively
104
+    when run, you must cause it, when started running for such
105
+    interactive use in the most ordinary way, to print or display an
106
+    announcement including an appropriate copyright notice and a
107
+    notice that there is no warranty (or else, saying that you provide
108
+    a warranty) and that users may redistribute the program under
109
+    these conditions, and telling the user how to view a copy of this
110
+    License.  (Exception: if the Program itself is interactive but
111
+    does not normally print such an announcement, your work based on
112
+    the Program is not required to print an announcement.)
113
+
114
+These requirements apply to the modified work as a whole.  If
115
+identifiable sections of that work are not derived from the Program,
116
+and can be reasonably considered independent and separate works in
117
+themselves, then this License, and its terms, do not apply to those
118
+sections when you distribute them as separate works.  But when you
119
+distribute the same sections as part of a whole which is a work based
120
+on the Program, the distribution of the whole must be on the terms of
121
+this License, whose permissions for other licensees extend to the
122
+entire whole, and thus to each and every part regardless of who wrote it.
123
+
124
+Thus, it is not the intent of this section to claim rights or contest
125
+your rights to work written entirely by you; rather, the intent is to
126
+exercise the right to control the distribution of derivative or
127
+collective works based on the Program.
128
+
129
+In addition, mere aggregation of another work not based on the Program
130
+with the Program (or with a work based on the Program) on a volume of
131
+a storage or distribution medium does not bring the other work under
132
+the scope of this License.
133
+
134
+  3. You may copy and distribute the Program (or a work based on it,
135
+under Section 2) in object code or executable form under the terms of
136
+Sections 1 and 2 above provided that you also do one of the following:
137
+
138
+    a) Accompany it with the complete corresponding machine-readable
139
+    source code, which must be distributed under the terms of Sections
140
+    1 and 2 above on a medium customarily used for software interchange; or,
141
+
142
+    b) Accompany it with a written offer, valid for at least three
143
+    years, to give any third party, for a charge no more than your
144
+    cost of physically performing source distribution, a complete
145
+    machine-readable copy of the corresponding source code, to be
146
+    distributed under the terms of Sections 1 and 2 above on a medium
147
+    customarily used for software interchange; or,
148
+
149
+    c) Accompany it with the information you received as to the offer
150
+    to distribute corresponding source code.  (This alternative is
151
+    allowed only for noncommercial distribution and only if you
152
+    received the program in object code or executable form with such
153
+    an offer, in accord with Subsection b above.)
154
+
155
+The source code for a work means the preferred form of the work for
156
+making modifications to it.  For an executable work, complete source
157
+code means all the source code for all modules it contains, plus any
158
+associated interface definition files, plus the scripts used to
159
+control compilation and installation of the executable.  However, as a
160
+special exception, the source code distributed need not include
161
+anything that is normally distributed (in either source or binary
162
+form) with the major components (compiler, kernel, and so on) of the
163
+operating system on which the executable runs, unless that component
164
+itself accompanies the executable.
165
+
166
+If distribution of executable or object code is made by offering
167
+access to copy from a designated place, then offering equivalent
168
+access to copy the source code from the same place counts as
169
+distribution of the source code, even though third parties are not
170
+compelled to copy the source along with the object code.
171
+
172
+  4. You may not copy, modify, sublicense, or distribute the Program
173
+except as expressly provided under this License.  Any attempt
174
+otherwise to copy, modify, sublicense or distribute the Program is
175
+void, and will automatically terminate your rights under this License.
176
+However, parties who have received copies, or rights, from you under
177
+this License will not have their licenses terminated so long as such
178
+parties remain in full compliance.
179
+
180
+  5. You are not required to accept this License, since you have not
181
+signed it.  However, nothing else grants you permission to modify or
182
+distribute the Program or its derivative works.  These actions are
183
+prohibited by law if you do not accept this License.  Therefore, by
184
+modifying or distributing the Program (or any work based on the
185
+Program), you indicate your acceptance of this License to do so, and
186
+all its terms and conditions for copying, distributing or modifying
187
+the Program or works based on it.
188
+
189
+  6. Each time you redistribute the Program (or any work based on the
190
+Program), the recipient automatically receives a license from the
191
+original licensor to copy, distribute or modify the Program subject to
192
+these terms and conditions.  You may not impose any further
193
+restrictions on the recipients' exercise of the rights granted herein.
194
+You are not responsible for enforcing compliance by third parties to
195
+this License.
196
+
197
+  7. If, as a consequence of a court judgment or allegation of patent
198
+infringement or for any other reason (not limited to patent issues),
199
+conditions are imposed on you (whether by court order, agreement or
200
+otherwise) that contradict the conditions of this License, they do not
201
+excuse you from the conditions of this License.  If you cannot
202
+distribute so as to satisfy simultaneously your obligations under this
203
+License and any other pertinent obligations, then as a consequence you
204
+may not distribute the Program at all.  For example, if a patent
205
+license would not permit royalty-free redistribution of the Program by
206
+all those who receive copies directly or indirectly through you, then
207
+the only way you could satisfy both it and this License would be to
208
+refrain entirely from distribution of the Program.
209
+
210
+If any portion of this section is held invalid or unenforceable under
211
+any particular circumstance, the balance of the section is intended to
212
+apply and the section as a whole is intended to apply in other
213
+circumstances.
214
+
215
+It is not the purpose of this section to induce you to infringe any
216
+patents or other property right claims or to contest validity of any
217
+such claims; this section has the sole purpose of protecting the
218
+integrity of the free software distribution system, which is
219
+implemented by public license practices.  Many people have made
220
+generous contributions to the wide range of software distributed
221
+through that system in reliance on consistent application of that
222
+system; it is up to the author/donor to decide if he or she is willing
223
+to distribute software through any other system and a licensee cannot
224
+impose that choice.
225
+
226
+This section is intended to make thoroughly clear what is believed to
227
+be a consequence of the rest of this License.
228
+
229
+  8. If the distribution and/or use of the Program is restricted in
230
+certain countries either by patents or by copyrighted interfaces, the
231
+original copyright holder who places the Program under this License
232
+may add an explicit geographical distribution limitation excluding
233
+those countries, so that distribution is permitted only in or among
234
+countries not thus excluded.  In such case, this License incorporates
235
+the limitation as if written in the body of this License.
236
+
237
+  9. The Free Software Foundation may publish revised and/or new versions
238
+of the General Public License from time to time.  Such new versions will
239
+be similar in spirit to the present version, but may differ in detail to
240
+address new problems or concerns.
241
+
242
+Each version is given a distinguishing version number.  If the Program
243
+specifies a version number of this License which applies to it and "any
244
+later version", you have the option of following the terms and conditions
245
+either of that version or of any later version published by the Free
246
+Software Foundation.  If the Program does not specify a version number of
247
+this License, you may choose any version ever published by the Free Software
248
+Foundation.
249
+
250
+  10. If you wish to incorporate parts of the Program into other free
251
+programs whose distribution conditions are different, write to the author
252
+to ask for permission.  For software which is copyrighted by the Free
253
+Software Foundation, write to the Free Software Foundation; we sometimes
254
+make exceptions for this.  Our decision will be guided by the two goals
255
+of preserving the free status of all derivatives of our free software and
256
+of promoting the sharing and reuse of software generally.
257
+
258
+			    NO WARRANTY
259
+
260
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
261
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
262
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
263
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
264
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
265
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
266
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
267
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
268
+REPAIR OR CORRECTION.
269
+
270
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
271
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
272
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
273
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
274
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
275
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
276
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
277
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
278
+POSSIBILITY OF SUCH DAMAGES.
279
+
280
+		     END OF TERMS AND CONDITIONS

+ 1232
- 0
Doxyfile
File diff suppressed because it is too large
View File


+ 189
- 0
INSTALL View File

@@ -0,0 +1,189 @@
1
+
2
+How to compile Rosegarden
3
+=========================
4
+
5
+Rosegarden has switched its build system to CMake.  We hope this will
6
+be the last time we change build systems.
7
+
8
+You will need CMake 2.4.2 or later.  If your Linux distribution
9
+doesn't provide CMake, or if it provides an older version, you can get
10
+it here:
11
+
12
+  http://cmake.org/HTML/Download.html
13
+
14
+There are ready to use binary packages available for Linux-i386 from
15
+that page.  They seem to work well -- use them!  We advise you avoid
16
+building CMake from source if possible.  (If you must build it from
17
+source, please read the instructions supplied with the CMake tarball,
18
+and remember that it will install to /usr/local by default.)
19
+
20
+
21
+A Typical Build with CMake
22
+---------------------------
23
+
24
+If you are a typical end user wanting to play with the latest
25
+Rosegarden, and to install it in the same place the distro package you
26
+are replacing came from, then the the following instructions are
27
+probably all you need to do in order to get up and running:
28
+
29
+First, unpack the tarball or check out SVN.  We'll assume you have the
30
+source in ~/src/rosegarden and need to change to that directory:
31
+
32
+$ cd ~/src/rosegarden
33
+
34
+Now run CMake to generate the build files, and specify the location
35
+where your system's KDE libraries are installed.  A nice general way
36
+to do this is:
37
+
38
+$ cmake . -DCMAKE_INSTALL_PREFIX=`kde-config --prefix`
39
+
40
+If you omit the install prefix and just run
41
+
42
+$ cmake .
43
+
44
+instead, cmake will prepare to install Rosegarden and its data files
45
+beneath /usr/local.  That may be fine if you have no existing
46
+Rosegarden installation you want to replace (see also Advanced Build
47
+Options below).
48
+
49
+Finally, run make, and then (sudo) make install, and you're all set:
50
+
51
+$ make
52
+# make install
53
+
54
+To uninstall, use:
55
+
56
+# make uninstall
57
+
58
+
59
+Advanced Build Options
60
+----------------------
61
+
62
+By default, make will output brief details of each build step.  If you
63
+prefer to see full command lines, use:
64
+
65
+$ make VERBOSE=1
66
+
67
+By default, the install prefix will be /usr/local. If your KDE is
68
+installed at some other prefix, you probably want to override this
69
+setting, as suggested in "A Typical Build with CMake."  You may
70
+install to /usr/local or anywhere else, but if you do so, you must add
71
+that location to your KDEDIRS environment variable before running
72
+Rosegarden.  For example:
73
+
74
+$ export KDEDIRS=/usr/local:$KDEDIRS
75
+$ rosegarden
76
+
77
+Another option, useful for packagers, is setting DESTDIR at install
78
+time. The DESTDIR directory will be prepended to the prefix when
79
+copying the files:
80
+
81
+$ make install DESTDIR=~/rpmroot
82
+
83
+Some variables you may want to set:
84
+
85
+    * CMAKE_INSTALL_PREFIX:
86
+      cmake . -DCMAKE_INSTALL_PREFIX=/opt/kde is the equivalent to
87
+      ./configure --prefix=/opt/kde for programs that use autotools
88
+
89
+    * WANT_XXXX: there are several options, e.g. WANT_JACK or WANT_DSSI. 
90
+      If you disable them, cmake will not even try to find the packages. 
91
+
92
+    WANT_DEBUG   Include debug support (default OFF)
93
+    WANT_FULLDBG Full debug support (BIG executables!) (default OFF)
94
+    WANT_SOUND   Include MIDI support using ALSA (default ON)
95
+    WANT_JACK    Include audio support using JACK (default ON)
96
+    WANT_DSSI    Include DSSI plugin support (default ON)
97
+    WANT_LIRC    Include LIRC (Linux Infrared Remote Control) support (def. ON)
98
+    WANT_PCH     Use precompiled headers (default OFF)
99
+
100
+The above options can take any of the following values: 0, 1, OFF, ON,
101
+TRUE, FALSE, YES, NO (case insensitive). For example:
102
+
103
+$ cmake . -DWANT_DEBUG=YES -DWANT_LIRC=NO -DCMAKE_INSTALL_PREFIX=/opt/kde
104
+
105
+Disabling SOUND (eg. WANT_SOUND=OFF) also disables JACK and DSSI. To
106
+enable FULLDBG you also need to enable DEBUG.
107
+
108
+If you would prefer to avoid all this typing, you can use ccmake to
109
+view and change these options using a friendly curses-based interface:
110
+
111
+$ ccmake .
112
+
113
+
114
+Dealing with Configuration Problems
115
+-----------------------------------
116
+
117
+To locate Qt, CMake searches for qmake in your execute path
118
+($PATH). CMake does not use the QTDIR environment variable. So make
119
+sure that the first qmake found in the execution path is the one you
120
+like to use.
121
+
122
+When CMake has finished, it will have created a file called
123
+"CMakeCache.txt".  This file contains all the settings CMake has
124
+detected on your system. If you want to run CMake with another
125
+generator or you want CMake to detect everything again, delete this
126
+file.
127
+
128
+If CMake didn't find something, but you know it is somewhere on your
129
+box, you can tell CMake where to find it manually. CMake uses
130
+variables to store this information. These variables are cached in the
131
+aforementioned file CMakeCache.txt. You have three options to adjust
132
+these variables manually:
133
+
134
+    * tell CMake the correct value via the command line: 
135
+      $ cmake . -DNAME_OF_THE_VARIABLE=value
136
+
137
+    * use ccmake, which provides a curses based GUI to adjust the 
138
+      CMake variables (run: ccmake .)
139
+
140
+    * edit the file CMakeCache.txt directly (not recommended) 
141
+
142
+You should run "ccmake ." at least once so that you get an idea which
143
+variables CMake uses. Press "T" to see also the "advanced"
144
+variables. So, if CMake didn't find something, start ccmake and adjust
145
+it manually.
146
+
147
+
148
+Some other environment variables you may want to set
149
+----------------------------------------------------
150
+
151
+If you have headers and libraries installed in non-standard locations
152
+that cmake cannot find (e.g., on /sw), then set the following as
153
+environment variables.  Despite the similar naming convention, these
154
+will not work as arguments on the cmake command line:
155
+
156
+    * CMAKE_INCLUDE_PATH: directory where headers reside
157
+    * CMAKE_LIBRARY_PATH: directory where shared libraries reside
158
+
159
+Example:
160
+$ export CMAKE_INCLUDE_PATH=/sw/include
161
+$ export CMAKE_LIBRARY_PATH=/sw/lib 
162
+
163
+For more information on variables, see this cmake.org wiki page: 
164
+
165
+    http://www.cmake.org/Wiki/CMake_Useful_Variables
166
+
167
+
168
+
169
+How to proceed if something fails?
170
+----------------------------------
171
+
172
+If cmake finishes with "Generating done" then there was no errors, but
173
+if it finishes with "Configuring done" then there was errors that you
174
+have to fix.  If you got a failure that says something like
175
+
176
+CMake Error: This project requires some variables to be set,
177
+and cmake can not find them.
178
+Please set the following variables:
179
+X11_XTest_LIB (ADVANCED)
180
+
181
+So the missing library is Xtst. Perhaps you need to install a
182
+libXtst-devel library.
183
+
184
+If you can't solve the problem, please subscribe and ask your question
185
+on the rosegarden-user mailing list:
186
+
187
+http://lists.sourceforge.net/lists/listinfo/rosegarden-user
188
+http://www.rosegardenmusic.com/support/
189
+

+ 142
- 0
README View File

@@ -0,0 +1,142 @@
1
+
2
+Rosegarden v1.7.0
3
+=================
4
+
5
+Rosegarden is a MIDI and audio sequencer and musical notation editor.
6
+
7
+  http://www.rosegardenmusic.com/
8
+
9
+Please keep an eye on the FAQ for known problems and workarounds:
10
+
11
+  http://rosegarden.wiki.sourceforge.net/Frequently+Asked+Questions
12
+
13
+When you find bugs, first check whether a newer version of Rosegarden
14
+has been released yet; if not, please continue on to:
15
+
16
+  http://rosegarden.sourceforge.net/tutorial/bug-guidelines.html
17
+
18
+
19
+Build requirements
20
+------------------
21
+
22
+The big requirement is KDE 3.3, or later, or more specifically the KDE
23
+3.3+ development libraries (you don't need the whole KDE environment).
24
+
25
+Our code compiles with gcc-3.x and gcc-4.x.
26
+
27
+For MIDI support on Linux, you need ALSA 0.9.x or 1.0; for audio you
28
+need JACK 0.77 or newer; for synth plugins you need DSSI 0.9.x or
29
+newer; for synth plugin GUI support you need liblo 0.7 or newer.
30
+
31
+We have recently switched to CMake for building (having previously
32
+started out with autotools and then switched to scons -- sorry!).
33
+Please read the INSTALL file for details of how to build and install
34
+Rosegarden using CMake.
35
+
36
+
37
+Running Rosegarden
38
+------------------
39
+
40
+Just run the "rosegarden" application (found in the KDE bin directory
41
+after installation).  The sequencer process is started automatically
42
+when the gui is started, provided it has been correctly installed (by
43
+"make install") in the global KDE directories.
44
+
45
+If you have any problems running the application, review the
46
+instructions in the INSTALL file and consult the FAQ:
47
+
48
+  http://rosegarden.wiki.sourceforge.net/Frequently+Asked+Questions
49
+
50
+If that doesn't answer your question, use the rosegarden-user mailing
51
+list on SourceForge.
52
+
53
+
54
+User documentation
55
+------------------
56
+
57
+There is a lot of documentation for Rosegarden available through the
58
+Help menu.  Go to Help -> Rosegarden Handbook for the reference
59
+manual, and Help -> Online Tutorial for a tutorial.
60
+
61
+
62
+SPECIAL NOTES FOR PACKAGE MAINTAINERS
63
+-------------------------------------
64
+
65
+DSSI
66
+
67
+Many distros released their packages of Rosegarden v1.0 compiled
68
+without the optional DSSI/synth plugin support.  We received a lot of
69
+complaints on our lists from your users and ours about your packages
70
+being built without this feature.
71
+
72
+We would like to request that you please take whatever steps are
73
+necessary within the framework of your particular distro to ensure
74
+that Rosegarden is built with DSSI support, and ideally that some of
75
+the currently available DSSI plugins are also packaged for your
76
+distro.  Thank you.  For details on DSSI, see:
77
+
78
+  http://dssi.sourceforge.net/
79
+
80
+
81
+Notes for developers
82
+--------------------
83
+
84
+We are actively seeking developers who are interested in coding new
85
+parts of the application, adding features, and fixing bugs.  See the
86
+bug and feature request trackers at SourceForge for inspiration.  If
87
+you intend to do anything, please discuss it on the rosegarden-devel
88
+mailing list (of course, providing working code will make your
89
+argument extra persuasive).
90
+
91
+Be warned that we tend to be fairly strict about code quality... as
92
+far as that's possible, given the not always superb standards of our
93
+own code.
94
+
95
+
96
+Developer documentation
97
+-----------------------
98
+
99
+All the documentation we have (not enough) is in the docs/
100
+subdirectory, including:
101
+
102
+  docs/code/global_design.txt -- which classes do what, more or less
103
+  docs/data_struct/units.txt -- how we store pitch and time
104
+  docs/data_struct/sets.txt -- some terminology explained
105
+
106
+  docs/howtos/alsa-notes -- brief notes about getting and installing the
107
+	ALSA sound drivers (we recommend ALSA for use with Rosegarden)
108
+  docs/howtos/artsd-mcop-notes.txt -- notes on how to get sound with aRts
109
+	(not recommended!)
110
+
111
+
112
+Authors and copyright
113
+---------------------
114
+
115
+* Rosegarden is Copyright 2000-2008 Guillaume Laurent, Chris Cannam
116
+  and Richard Bown.
117
+
118
+* The moral right of Guillaume Laurent, Chris Cannam and Richard Bown
119
+  to be identified as the authors of this work has been asserted.
120
+
121
+* Parts of Rosegarden are derived from X11 Rosegarden 2.1, which is
122
+  Copyright 1994 - 2001 Chris Cannam, Andrew Green, Richard Bown and
123
+  Guillaume Laurent.
124
+
125
+* For musical notation display Rosegarden uses pixmaps derived from
126
+  the Feta font, part of the Lilypond software (http://lilypond.org/)
127
+  which is Copyright 1997 - 2004 Jan Nieuwenhuizen and Han-Wen Nienhuys.
128
+
129
+* Other major contributors include Randall Farmer, Ron Kuris, Hans
130
+  Kieserman, Michael McIntyre, Pedro Lopez-Cabanillas, Heikki Junes,
131
+  Stephen Torri, Magnus Johansson, Vince Negri and Martin Shepherd.
132
+  See AUTHORS for more details, and the individual source files for
133
+  copyright attributions.
134
+
135
+* The Rosegarden splash-screen image is Copyright 2007 D Michael McIntyre.
136
+
137
+Rosegarden is free software; you can redistribute it and/or modify
138
+it under the terms of the GNU General Public License as published by
139
+the Free Software Foundation; either version 2 of the License, or (at
140
+your option) any later version.  See the file COPYING included with
141
+this distribution for more information.
142
+

+ 4
- 0
TRANSLATORS View File

@@ -0,0 +1,4 @@
1
+Please see the AUTHORS file for a list of translators.
2
+
3
+If you'd like to translate Rosegarden into your language, contact us at
4
+<rosegarden-devel@lists.sourceforge.net>

+ 114
- 0
cmake_admin/FindKDECONFIG.cmake View File

@@ -0,0 +1,114 @@
1
+# Rosegarden
2
+# A MIDI and audio sequencer and musical notation editor.
3
+#
4
+# This program is Copyright 2000-2008
5
+#     Guillaume Laurent   <glaurent@telegraph-road.org>,
6
+#     Chris Cannam        <cannam@all-day-breakfast.com>,
7
+#     Richard Bown        <richard.bown@ferventsoftware.com>
8
+#
9
+# The moral rights of Guillaume Laurent, Chris Cannam, and Richard
10
+# Bown to claim authorship of this work have been asserted.
11
+#
12
+# This file is Copyright 2006-2008
13
+#     Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
14
+#
15
+# Other copyrights also apply to some parts of this work.  Please
16
+# see the AUTHORS file and individual file headers for details.
17
+#
18
+# This program is free software; you can redistribute it and/or
19
+# modify it under the terms of the GNU General Public License as
20
+# published by the Free Software Foundation; either version 2 of the
21
+# License, or (at your option) any later version.  See the file
22
+# COPYING included with this distribution for more information.
23
+# Find the kde-config program and retrieve the install dirs
24
+
25
+# Variables:
26
+#       HAVE_KDECONFIG
27
+#       KDECONFIG_EXECUTABLE
28
+#       KDE3PREFIX
29
+#       KDE3HTMLDIR
30
+#       KDE3DATADIR
31
+#       KDE3ICONDIR
32
+#       KDE3MIMEDIR
33
+#       KDE3MENUDIR
34
+#       KDE3EXECDIR
35
+#       KDE3L18NDIR
36
+
37
+IF(KDECONFIG_EXECUTABLE)
38
+    SET(HAVE_KDECONFIG TRUE)
39
+ELSE(KDECONFIG_EXECUTABLE)
40
+    FIND_PROGRAM(KDECONFIG_EXECUTABLE NAMES kde-config PATHS
41
+        $ENV{KDEDIR}/bin
42
+        /opt/kde3/bin
43
+        /opt/kde/bin
44
+        NO_DEFAULT_PATH
45
+    )
46
+    FIND_PROGRAM(KDECONFIG_EXECUTABLE kde-config)
47
+ENDIF(KDECONFIG_EXECUTABLE)
48
+
49
+IF(NOT KDE3PREFIX)
50
+    EXECUTE_PROCESS(COMMAND ${KDECONFIG_EXECUTABLE} --version
51
+                    OUTPUT_VARIABLE kde_config_version )
52
+    STRING(REGEX MATCH "KDE: .\\." kde_version ${kde_config_version})
53
+    IF (${kde_version} MATCHES "KDE: 3\\.")
54
+        EXECUTE_PROCESS(COMMAND ${KDECONFIG_EXECUTABLE} --prefix
55
+                	OUTPUT_VARIABLE kdedir )
56
+        STRING(REGEX REPLACE "\n" "" KDE3PREFIX "${kdedir}")
57
+    ENDIF (${kde_version} MATCHES "KDE: 3\\.")
58
+ENDIF(NOT KDE3PREFIX)
59
+
60
+IF(NOT KDE3HTMLDIR)
61
+    EXECUTE_PROCESS(COMMAND ${KDECONFIG_EXECUTABLE} --expandvars --install html
62
+        OUTPUT_VARIABLE _htmlinstalldir)
63
+    STRING(REGEX REPLACE "\n" "" _htmlinstalldir "${_htmlinstalldir}")
64
+    STRING(REPLACE "${KDE3PREFIX}/" "" KDE3HTMLDIR "${_htmlinstalldir}")
65
+    MESSAGE(STATUS "KDE3HTMLDIR : ${KDE3HTMLDIR}")
66
+ENDIF(NOT KDE3HTMLDIR)
67
+
68
+IF(NOT KDE3DATADIR)
69
+    EXECUTE_PROCESS(COMMAND ${KDECONFIG_EXECUTABLE} --expandvars --install data
70
+        OUTPUT_VARIABLE _datainstalldir)
71
+    STRING(REGEX REPLACE "\n" "" _datainstalldir "${_datainstalldir}")
72
+    STRING(REPLACE "${KDE3PREFIX}/" "" KDE3DATADIR "${_datainstalldir}")
73
+    MESSAGE(STATUS "KDE3DATADIR : ${KDE3DATADIR}")
74
+ENDIF(NOT KDE3DATADIR)
75
+
76
+IF(NOT KDE3ICONDIR)
77
+    EXECUTE_PROCESS(COMMAND ${KDECONFIG_EXECUTABLE} --expandvars --install icon
78
+        OUTPUT_VARIABLE _iconinstalldir)
79
+    STRING(REGEX REPLACE "\n" "" _iconinstalldir "${_iconinstalldir}")
80
+    STRING(REPLACE "${KDE3PREFIX}/" "" KDE3ICONDIR "${_iconinstalldir}")
81
+    MESSAGE(STATUS "KDE3ICONDIR : ${KDE3ICONDIR}")
82
+ENDIF(NOT KDE3ICONDIR)
83
+
84
+IF(NOT KDE3MIMEDIR)
85
+    EXECUTE_PROCESS(COMMAND ${KDECONFIG_EXECUTABLE} --expandvars --install mime
86
+        OUTPUT_VARIABLE _mimeinstalldir)
87
+    STRING(REGEX REPLACE "\n" "" _mimeinstalldir "${_mimeinstalldir}")
88
+    STRING(REPLACE "${KDE3PREFIX}/" "" KDE3MIMEDIR "${_mimeinstalldir}")
89
+    MESSAGE(STATUS "KDE3MIMEDIR : ${KDE3MIMEDIR}")
90
+ENDIF(NOT KDE3MIMEDIR)
91
+
92
+IF(NOT KDE3MENUDIR)
93
+    EXECUTE_PROCESS(COMMAND ${KDECONFIG_EXECUTABLE} --expandvars --install xdgdata-apps
94
+        OUTPUT_VARIABLE _menuinstalldir)
95
+    STRING(REGEX REPLACE "\n" "" _menuinstalldir "${_menuinstalldir}")
96
+    STRING(REPLACE "${KDE3PREFIX}/" "" KDE3MENUDIR "${_menuinstalldir}")
97
+    MESSAGE(STATUS "KDE3MENUDIR : ${KDE3MENUDIR}")
98
+ENDIF(NOT KDE3MENUDIR)
99
+
100
+IF(NOT KDE3L18NDIR)
101
+    EXECUTE_PROCESS(COMMAND ${KDECONFIG_EXECUTABLE} --expandvars --install locale
102
+        OUTPUT_VARIABLE _l18ninstalldir)
103
+    STRING(REGEX REPLACE "\n" "" _l18ninstalldir "${_l18ninstalldir}")
104
+    STRING(REPLACE "${KDE3PREFIX}/" "" KDE3L18NDIR "${_l18ninstalldir}")
105
+    MESSAGE(STATUS "KDE3L18NDIR : ${KDE3L18NDIR}")
106
+ENDIF(NOT KDE3L18NDIR)
107
+
108
+IF(NOT KDE3EXECDIR)
109
+    EXECUTE_PROCESS(COMMAND ${KDECONFIG_EXECUTABLE} --expandvars --install exe
110
+        OUTPUT_VARIABLE _execinstalldir)
111
+    STRING(REGEX REPLACE "\n" "" _execinstalldir "${_execinstalldir}")
112
+    STRING(REPLACE "${KDE3PREFIX}/" "" KDE3EXECDIR "${_execinstalldir}")
113
+    MESSAGE(STATUS "KDE3EXECDIR : ${KDE3EXECDIR}")
114
+ENDIF(NOT KDE3EXECDIR)

+ 56
- 0
cmake_admin/FindLADSPA.cmake View File

@@ -0,0 +1,56 @@
1
+# Rosegarden
2
+# A MIDI and audio sequencer and musical notation editor.
3
+#
4
+# This program is Copyright 2000-2008
5
+#     Guillaume Laurent   <glaurent@telegraph-road.org>,
6
+#     Chris Cannam        <cannam@all-day-breakfast.com>,
7
+#     Richard Bown        <richard.bown@ferventsoftware.com>
8
+#
9
+# The moral rights of Guillaume Laurent, Chris Cannam, and Richard
10
+# Bown to claim authorship of this work have been asserted.
11
+#
12
+# This file is Copyright 2006-2008
13
+#     Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
14
+#
15
+# Other copyrights also apply to some parts of this work.  Please
16
+# see the AUTHORS file and individual file headers for details.
17
+#
18
+# This program is free software; you can redistribute it and/or
19
+# modify it under the terms of the GNU General Public License as
20
+# published by the Free Software Foundation; either version 2 of the
21
+# License, or (at your option) any later version.  See the file
22
+# COPYING included with this distribution for more information.
23
+
24
+# - Try to find LADSPA header
25
+# Once done this will define:
26
+#
27
+#  LADSPA_FOUND - system has LADSPA
28
+#  LADSPA_INCLUDE_DIR - LADSPA header path
29
+
30
+IF(LADSPA_INCLUDE_DIR)
31
+   SET(LADSPA_FIND_QUIETLY TRUE)
32
+ENDIF(LADSPA_INCLUDE_DIR)
33
+   
34
+FIND_PATH(LADSPA_INCLUDE_DIR "ladspa.h"
35
+   /usr/include
36
+   /usr/local/include
37
+)
38
+
39
+IF(LADSPA_INCLUDE_DIR)
40
+   SET(LADSPA_FOUND TRUE)
41
+ELSE(LADSPA_INCLUDE_DIR)
42
+   SET(LADSPA_FOUND FALSE)
43
+   SET(LADSPA_INCLUDE_DIR "")
44
+ENDIF(LADSPA_INCLUDE_DIR)
45
+
46
+IF(LADSPA_FOUND)
47
+    IF(NOT LADSPA_FIND_QUIETLY)
48
+        MESSAGE(STATUS "Found LADSPA: ${LADSPA_INCLUDE_DIR}")
49
+    ENDIF(NOT LADSPA_FIND_QUIETLY)
50
+ELSE(LADSPA_FOUND)
51
+    IF(LADSPA_FIND_REQUIRED)
52
+        MESSAGE(FATAL_ERROR "Could not find LADSPA")
53
+    ENDIF(LADSPA_FIND_REQUIRED)
54
+ENDIF(LADSPA_FOUND)
55
+
56
+MARK_AS_ADVANCED(LADSPA_INCLUDE_DIR)

+ 64
- 0
cmake_admin/FindLIRC.cmake View File

@@ -0,0 +1,64 @@
1
+# Rosegarden
2
+# A MIDI and audio sequencer and musical notation editor.
3
+#
4
+# This program is Copyright 2000-2008
5
+#     Guillaume Laurent   <glaurent@telegraph-road.org>,
6
+#     Chris Cannam        <cannam@all-day-breakfast.com>,
7
+#     Richard Bown        <richard.bown@ferventsoftware.com>
8
+#
9
+# The moral rights of Guillaume Laurent, Chris Cannam, and Richard
10
+# Bown to claim authorship of this work have been asserted.
11
+#
12
+# This file is Copyright 2006-2008
13
+#     Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
14
+#
15
+# Other copyrights also apply to some parts of this work.  Please
16
+# see the AUTHORS file and individual file headers for details.
17
+#
18
+# This program is free software; you can redistribute it and/or
19
+# modify it under the terms of the GNU General Public License as
20
+# published by the Free Software Foundation; either version 2 of the
21
+# License, or (at your option) any later version.  See the file
22
+# COPYING included with this distribution for more information.
23
+
24
+# - Try to find LIRC
25
+# Once done this will define:
26
+#
27
+#  LIRC_FOUND - system has LIRC
28
+#  LIRC_LIBRARY - LIRC library
29
+#  LIRC_INCLUDE_DIR - LIRC include path
30
+#  LIRC_LIBRARY_DIR - LIRC library path
31
+
32
+IF(LIRC_INCLUDE_DIR)
33
+    SET(LIRC_FIND_QUIETLY TRUE)
34
+ENDIF(LIRC_INCLUDE_DIR)
35
+
36
+FIND_PATH(LIRC_INCLUDE_DIR "lirc/lirc_client.h"
37
+    /usr/include
38
+    /usr/local/include
39
+)
40
+
41
+FIND_LIBRARY(LIRC_LIBRARY 
42
+    NAMES lirc_client
43
+    PATHS /usr/lib /usr/local/lib
44
+)
45
+
46
+IF(LIRC_INCLUDE_DIR AND LIRC_LIBRARY)
47
+    SET(LIRC_FOUND TRUE)
48
+    GET_FILENAME_COMPONENT(LIRC_LIBRARY_DIR ${LIRC_LIBRARY} PATH)
49
+ELSE(LIRC_INCLUDE_DIR AND LIRC_LIBRARY)
50
+    SET(LIRC_FOUND FALSE)
51
+    SET(LIRC_LIBRARY_DIR)
52
+ENDIF(LIRC_INCLUDE_DIR AND LIRC_LIBRARY)
53
+
54
+IF(LIRC_FOUND)
55
+    IF(NOT LIRC_FIND_QUIETLY)
56
+        MESSAGE(STATUS "Found LIRC: ${LIRC_LIBRARY}")
57
+    ENDIF(NOT LIRC_FIND_QUIETLY)
58
+ELSE(LIRC_FOUND)
59
+    IF(LIRC_FIND_REQUIRED)
60
+        MESSAGE(FATAL_ERROR "Could not find LIRC library")
61
+    ENDIF(LIRC_FIND_REQUIRED)
62
+ENDIF(LIRC_FOUND)
63
+
64
+MARK_AS_ADVANCED(LIRC_LIBRARY LIRC_INCLUDE_DIR)

+ 74
- 0
cmake_admin/FindMEINPROC.cmake View File

@@ -0,0 +1,74 @@
1
+# Rosegarden
2
+# A MIDI and audio sequencer and musical notation editor.
3
+#
4
+# This program is Copyright 2000-2008
5
+#     Guillaume Laurent   <glaurent@telegraph-road.org>,
6
+#     Chris Cannam        <cannam@all-day-breakfast.com>,
7
+#     Richard Bown        <richard.bown@ferventsoftware.com>
8
+#
9
+# The moral rights of Guillaume Laurent, Chris Cannam, and Richard
10
+# Bown to claim authorship of this work have been asserted.
11
+#
12
+# This file is Copyright 2006-2008
13
+#     Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
14
+#
15
+# Other copyrights also apply to some parts of this work.  Please
16
+# see the AUTHORS file and individual file headers for details.
17
+#
18
+# This program is free software; you can redistribute it and/or
19
+# modify it under the terms of the GNU General Public License as
20
+# published by the Free Software Foundation; either version 2 of the
21
+# License, or (at your option) any later version.  See the file
22
+# COPYING included with this distribution for more information.
23
+
24
+# Find the MEINPROC program
25
+#
26
+# Defined variables:
27
+#  MEINPROC_FOUND
28
+#  MEINPROC_EXECUTABLE
29
+#
30
+# Macro:
31
+#  ADD_DOCS
32
+
33
+IF(MEINPROC_EXECUTABLE)
34
+    SET(MEINPROC_FOUND TRUE)
35
+ELSE(MEINPROC_EXECUTABLE)
36
+    FIND_PROGRAM(MEINPROC_EXECUTABLE
37
+	NAME meinproc 
38
+	PATHS ${KDE3_BIN_INSTALL_DIR}
39
+	 $ENV{KDEDIR}/bin
40
+	 /usr/bin
41
+	 /usr/local/bin
42
+	 /opt/kde/bin
43
+	 /opt/kde3/bin )
44
+    IF(MEINPROC_EXECUTABLE)
45
+	SET(MEINPROC_FOUND TRUE)
46
+    ELSE(MEINPROC_EXECUTABLE)
47
+	IF(NOT MEINPROC_FIND_QUIETLY)
48
+	    IF(MEINPROC_FIND_REQUIRED)
49
+		MESSAGE(FATAL_ERROR "Program meinproc couldn't be found")
50
+	    ENDIF(MEINPROC_FIND_REQUIRED)
51
+	ENDIF(NOT MEINPROC_FIND_QUIETLY)
52
+    ENDIF(MEINPROC_EXECUTABLE)
53
+    MARK_AS_ADVANCED(MEINPROC_EXECUTABLE)
54
+ENDIF (MEINPROC_EXECUTABLE)
55
+
56
+MACRO(ADD_DOCS _baseName)
57
+    SET(_outputs)
58
+    FOREACH(_dir ${ARGN})
59
+	SET(_out "${CMAKE_CURRENT_BINARY_DIR}/${_dir}_index.cache.bz2")
60
+	SET(_in  "${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/index.docbook")
61
+	FILE(GLOB _images ${_dir}/*.png)
62
+	ADD_CUSTOM_COMMAND(OUTPUT ${_out}
63
+	    COMMAND ${MEINPROC_EXECUTABLE}
64
+	    ARGS --check --cache ${_out} ${_in}
65
+    	    DEPENDS ${_in} )
66
+	INSTALL(FILES ${_out}
67
+    	    DESTINATION ${KDE3HTMLDIR}/${_dir}/${_baseName}
68
+	    RENAME index.cache.bz2)
69
+	INSTALL(FILES ${_in} ${_images}
70
+    	    DESTINATION ${KDE3HTMLDIR}/${_dir}/${_baseName})
71
+	SET(_outputs ${_outputs} ${_out})
72
+    ENDFOREACH(_dir)
73
+    ADD_CUSTOM_TARGET(documentation ALL DEPENDS ${_outputs})
74
+ENDMACRO(ADD_DOCS)

+ 68
- 0
cmake_admin/FindMSGFMT.cmake View File

@@ -0,0 +1,68 @@
1
+# Rosegarden
2
+# A MIDI and audio sequencer and musical notation editor.
3
+#
4
+# This program is Copyright 2000-2008
5
+#     Guillaume Laurent   <glaurent@telegraph-road.org>,
6
+#     Chris Cannam        <cannam@all-day-breakfast.com>,
7
+#     Richard Bown        <richard.bown@ferventsoftware.com>
8
+#
9
+# The moral rights of Guillaume Laurent, Chris Cannam, and Richard
10
+# Bown to claim authorship of this work have been asserted.
11
+#
12
+# This file is Copyright 2006-2008
13
+#     Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
14
+#
15
+# Other copyrights also apply to some parts of this work.  Please
16
+# see the AUTHORS file and individual file headers for details.
17
+#
18
+# This program is free software; you can redistribute it and/or
19
+# modify it under the terms of the GNU General Public License as
20
+# published by the Free Software Foundation; either version 2 of the
21
+# License, or (at your option) any later version.  See the file
22
+# COPYING included with this distribution for more information.
23
+
24
+# Find the msgfmt program
25
+#
26
+# Defined variables:
27
+#  MSGFMT_FOUND
28
+#  MSGFMT_EXECUTABLE
29
+#
30
+# Macro:
31
+#  ADD_TRANSLATIONS
32
+#
33
+
34
+IF(MSGFMT_EXECUTABLE)
35
+    SET(MSGFMT_FOUND TRUE)
36
+ELSE(MSGFMT_EXECUTABLE)
37
+    FIND_PROGRAM(MSGFMT_EXECUTABLE
38
+	NAMES msgfmt gmsgfmt
39
+	PATHS /bin /usr/bin /usr/local/bin )
40
+    IF(MSGFMT_EXECUTABLE)
41
+        SET(MSGFMT_FOUND TRUE)
42
+    ELSE(MSGFMT_EXECUTABLE)
43
+	IF(NOT MSGFMT_FIND_QUIETLY)
44
+	    IF(MSGFMT_FIND_REQUIRED)
45
+                MESSAGE(FATAL_ERROR "msgfmt program couldn't be found")
46
+	    ENDIF(MSGFMT_FIND_REQUIRED)
47
+	ENDIF(NOT MSGFMT_FIND_QUIETLY)
48
+    ENDIF(MSGFMT_EXECUTABLE)
49
+    MARK_AS_ADVANCED(MSGFMT_EXECUTABLE)
50
+ENDIF (MSGFMT_EXECUTABLE)
51
+
52
+MACRO(ADD_TRANSLATIONS _baseName)
53
+    SET(_outputs)
54
+    FOREACH(_file ${ARGN})
55
+	GET_FILENAME_COMPONENT(_file_we ${_file} NAME_WE)
56
+	SET(_out "${CMAKE_CURRENT_BINARY_DIR}/${_file_we}.gmo")
57
+	SET(_in  "${CMAKE_CURRENT_SOURCE_DIR}/${_file_we}.po")
58
+	ADD_CUSTOM_COMMAND(
59
+	    OUTPUT ${_out}
60
+	    COMMAND ${MSGFMT_EXECUTABLE} -o ${_out} ${_in}
61
+	    DEPENDS ${_in} )
62
+	INSTALL(FILES ${_out}
63
+	    DESTINATION ${KDE3L18NDIR}/${_file_we}/LC_MESSAGES/
64
+	    RENAME ${_baseName}.mo )
65
+	SET(_outputs ${_outputs} ${_out})
66
+    ENDFOREACH(_file)
67
+    ADD_CUSTOM_TARGET(translations ALL DEPENDS ${_outputs})
68
+ENDMACRO(ADD_TRANSLATIONS)

+ 73
- 0
cmake_admin/FindPCHSupport.cmake View File

@@ -0,0 +1,73 @@
1
+# Rosegarden
2
+# A MIDI and audio sequencer and musical notation editor.
3
+#
4
+# This program is Copyright 2000-2008
5
+#     Guillaume Laurent   <glaurent@telegraph-road.org>,
6
+#     Chris Cannam        <cannam@all-day-breakfast.com>,
7
+#     Richard Bown        <richard.bown@ferventsoftware.com>
8
+#
9
+# The moral rights of Guillaume Laurent, Chris Cannam, and Richard
10
+# Bown to claim authorship of this work have been asserted.
11
+#
12
+# This file is Copyright 2006-2008
13
+#     Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
14
+#
15
+# Other copyrights also apply to some parts of this work.  Please
16
+# see the AUTHORS file and individual file headers for details.
17
+#
18
+# This program is free software; you can redistribute it and/or
19
+# modify it under the terms of the GNU General Public License as
20
+# published by the Free Software Foundation; either version 2 of the
21
+# License, or (at your option) any later version.  See the file
22
+# COPYING included with this distribution for more information.
23
+
24
+# - Try to find precompiled headers support for GCC 3.4 and 4.x
25
+# Once done this will define:
26
+#
27
+# Variable:
28
+#   PCHSupport_FOUND
29
+#
30
+# Macro:
31
+#   ADD_PRECOMPILED_HEADER
32
+
33
+IF(CMAKE_COMPILER_IS_GNUCXX)
34
+    EXEC_PROGRAM(${CMAKE_CXX_COMPILER}
35
+                 ARGS -dumpversion
36
+                 OUTPUT_VARIABLE gcc_compiler_version)
37
+#   STRING(REGEX REPLACE ".* ([0-9]\\.[0-9]\\.[0-9]) .*" "\\1" 
38
+#          gcc_compiler_version ${_compiler_output})
39
+#   MESSAGE("GCC Version: ${gcc_compiler_version}")
40
+    IF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
41
+        SET(PCHSupport_FOUND TRUE)
42
+    ELSE(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
43
+        IF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
44
+            SET(PCHSupport_FOUND TRUE)
45
+        ENDIF(gcc_compiler_version MATCHES "3\\.4\\.[0-9]")
46
+    ENDIF(gcc_compiler_version MATCHES "4\\.[0-9]\\.[0-9]")
47
+ENDIF(CMAKE_COMPILER_IS_GNUCXX)
48
+
49
+MACRO(ADD_PRECOMPILED_HEADER _targetName _input)
50
+    GET_FILENAME_COMPONENT(_name ${_input} NAME)
51
+    SET(_source "${CMAKE_CURRENT_SOURCE_DIR}/${_input}")
52
+    SET(_outdir "${CMAKE_CURRENT_BINARY_DIR}/${_name}.gch")
53
+    MAKE_DIRECTORY(${_outdir})
54
+    SET(_output "${_outdir}/${CMAKE_BUILD_TYPE}.c++")
55
+    STRING(TOUPPER "CMAKE_CXX_FLAGS_${CMAKE_BUILD_TYPE}" _flags_var_name)
56
+    SET(_compiler_FLAGS ${${_flags_var_name}})
57
+    SEPARATE_ARGUMENTS(_compiler_FLAGS)
58
+    #MESSAGE("_compiler_FLAGS: ${_compiler_FLAGS}")
59
+    ADD_CUSTOM_COMMAND(
60
+        OUTPUT ${_output}
61
+        COMMAND ${CMAKE_CXX_COMPILER}
62
+           ${_compiler_FLAGS}
63
+           -I${QT_INCLUDE_DIR}
64
+           -I${KDE3_INCLUDE_DIR}
65
+           ${QT_DEFINITIONS}
66
+           ${KDE3_DEFINITIONS}
67
+           -x c++-header
68
+           -o ${_output} ${_source}
69
+        DEPENDS ${_source} )
70
+    ADD_CUSTOM_TARGET(${_targetName} DEPENDS ${_output})
71
+    #SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-include ${_name} -Winvalid-pch -H")
72
+    SET(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-include ${_name} -Winvalid-pch")
73
+ENDMACRO(ADD_PRECOMPILED_HEADER)

+ 383
- 0
cmake_admin/FindPkgConfig.cmake View File

@@ -0,0 +1,383 @@
1
+# - a pkg-config module for CMake
2
+#
3
+# Usage:
4
+#   pkg_check_modules(<PREFIX> [REQUIRED] <MODULE> [<MODULE>]*)
5
+#     checks for all the given modules
6
+#
7
+#   pkg_search_module(<PREFIX> [REQUIRED] <MODULE> [<MODULE>]*)
8
+#     checks for given modules and uses the first working one
9
+#
10
+# When the 'REQUIRED' argument was set, macros will fail with an error
11
+# when module(s) could not be found
12
+#
13
+# It sets the following variables:
14
+#   PKG_CONFIG_FOUND         ... true iff pkg-config works on the system
15
+#   PKG_CONFIG_EXECUTABLE    ... pathname of the pkg-config program
16
+#   <PREFIX>_FOUND           ... set to 1 iff module(s) exist
17
+#
18
+# For the following variables two sets of values exist; first one is the
19
+# common one and has the given PREFIX. The second set contains flags
20
+# which are given out when pkgconfig was called with the '--static'
21
+# option.
22
+#   <XPREFIX>_LIBRARIES      ... only the libraries (w/o the '-l')
23
+#   <XPREFIX>_LIBRARY_DIRS   ... the paths of the libraries (w/o the '-L')
24
+#   <XPREFIX>_LDFLAGS        ... all required linker flags
25
+#   <XPREFIX>_LDFLAGS_OTHERS ... all other linker flags
26
+#   <XPREFIX>_INCLUDE_DIRS   ... the '-I' preprocessor flags (w/o the '-I')
27
+#   <XPREFIX>_CFLAGS         ... all required cflags
28
+#   <XPREFIX>_CFLAGS_OTHERS  ... the other compiler flags
29
+#
30
+#   <XPREFIX> = <PREFIX>        for common case
31
+#   <XPREFIX> = <PREFIX>_STATIC for static linking
32
+#
33
+# There are some special variables whose prefix depends on the count
34
+# of given modules. When there is only one module, <PREFIX> stays
35
+# unchanged. When there are multiple modules, the prefix will be
36
+# changed to <PREFIX>_<MODNAME>:
37
+#   <XPREFIX>_VERSION    ... version of the module
38
+#   <XPREFIX>_PREFIX     ... prefix-directory of the module
39
+#   <XPREFIX>_INCLUDEDIR ... include-dir of the module
40
+#   <XPREFIX>_LIBDIR     ... lib-dir of the module
41
+#
42
+#   <XPREFIX> = <PREFIX>  when |MODULES| == 1, else
43
+#   <XPREFIX> = <PREFIX>_<MODNAME>
44
+#
45
+# A <MODULE> parameter can have the following formats:
46
+#   {MODNAME}            ... matches any version
47
+#   {MODNAME}>={VERSION} ... at least version <VERSION> is required
48
+#   {MODNAME}={VERSION}  ... exactly version <VERSION> is required
49
+#   {MODNAME}<={VERSION} ... modules must not be newer than <VERSION>
50
+#
51
+# Examples
52
+#   pkg_check_modules (GLIB2   glib-2.0)
53
+#
54
+#   pkg_check_modules (GLIB2   glib-2.0>=2.10)
55
+#     requires at least version 2.10 of glib2 and defines e.g.
56
+#       GLIB2_VERSION=2.10.3
57
+#
58
+#   pkg_check_modules (FOO     glib-2.0>=2.10 gtk+-2.0)
59
+#     requires both glib2 and gtk2, and defines e.g.
60
+#       FOO_glib-2.0_VERSION=2.10.3
61
+#       FOO_gtk+-2.0_VERSION=2.8.20
62
+#
63
+#   pkg_check_modules (XRENDER REQUIRED xrender)
64
+#     defines e.g.:
65
+#       XRENDER_LIBRARIES=Xrender;X11
66
+#       XRENDER_STATIC_LIBRARIES=Xrender;X11;pthread;Xau;Xdmcp
67
+#
68
+#   pkg_search_module (BAR     libxml-2.0 libxml2 libxml>=2)
69
+
70
+
71
+# Copyright (C) 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
72
+#
73
+# Redistribution and use, with or without modification, are permitted
74
+# provided that the following conditions are met:
75
+# 
76
+#    1. Redistributions must retain the above copyright notice, this
77
+#       list of conditions and the following disclaimer.
78
+#    2. The name of the author may not be used to endorse or promote
79
+#       products derived from this software without specific prior
80
+#       written permission.
81
+# 
82
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
83
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
84
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
85
+# ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
86
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
87
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
88
+# GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
89
+# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
90
+# IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
91
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
92
+# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
93
+
94
+
95
+### Common stuff ####
96
+set(PKG_CONFIG_VERSION 1)
97
+set(PKG_CONFIG_FOUND   0)
98
+
99
+find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config DOC "pkg-config executable")
100
+mark_as_advanced(PKG_CONFIG_EXECUTABLE)
101
+
102
+if(PKG_CONFIG_EXECUTABLE)
103
+  set(PKG_CONFIG_FOUND 1)
104
+endif(PKG_CONFIG_EXECUTABLE)
105
+
106
+
107
+# Unsets the given variables
108
+macro(_pkgconfig_unset var)
109
+  set(${var} "" CACHE INTERNAL "")
110
+endmacro(_pkgconfig_unset)
111
+
112
+macro(_pkgconfig_set var value)
113
+  set(${var} ${value} CACHE INTERNAL "")
114
+endmacro(_pkgconfig_set)
115
+
116
+# Invokes pkgconfig, cleans up the result and sets variables
117
+macro(_pkgconfig_invoke _pkglist _prefix _varname _regexp)
118
+  set(_pkgconfig_invoke_result)
119
+
120
+  execute_process(
121
+    COMMAND ${PKG_CONFIG_EXECUTABLE} ${ARGN} ${_pkglist}
122
+    OUTPUT_VARIABLE _pkgconfig_invoke_result
123
+    RESULT_VARIABLE _pkgconfig_failed)
124
+
125
+  if (_pkgconfig_failed)
126
+    set(_pkgconfig_${_varname} "")
127
+    _pkgconfig_unset(${_prefix}_${_varname})
128
+  else(_pkgconfig_failed)
129
+    string(REGEX REPLACE "[\r\n]"                  " " _pkgconfig_invoke_result "${_pkgconfig_invoke_result}")
130
+    string(REGEX REPLACE " +$"                     ""  _pkgconfig_invoke_result "${_pkgconfig_invoke_result}")
131
+
132
+    if (NOT ${_regexp} STREQUAL "")
133
+      string(REGEX REPLACE "${_regexp}" " " _pkgconfig_invoke_result "${_pkgconfig_invoke_result}")
134
+    endif(NOT ${_regexp} STREQUAL "")
135
+
136
+    separate_arguments(_pkgconfig_invoke_result)
137
+
138
+    #message(STATUS "  ${_varname} ... ${_pkgconfig_invoke_result}")
139
+    set(_pkgconfig_${_varname} ${_pkgconfig_invoke_result})
140
+    _pkgconfig_set(${_prefix}_${_varname} "${_pkgconfig_invoke_result}")
141
+  endif(_pkgconfig_failed)
142
+endmacro(_pkgconfig_invoke)
143
+
144
+# Invokes pkgconfig two times; once without '--static' and once with
145
+# '--static'
146
+macro(_pkgconfig_invoke_dyn _pkglist _prefix _varname cleanup_regexp)
147
+  _pkgconfig_invoke("${_pkglist}" ${_prefix}        ${_varname} "${cleanup_regexp}" ${ARGN})
148
+  _pkgconfig_invoke("${_pkglist}" ${_prefix} STATIC_${_varname} "${cleanup_regexp}" --static  ${ARGN})
149
+endmacro(_pkgconfig_invoke_dyn)
150
+
151
+# Splits given arguments into options and a package list
152
+macro(_pkgconfig_parse_options _result _is_req)
153
+  set(${_is_req} 0)
154
+  
155
+  foreach(_pkg ${ARGN})
156
+    if (_pkg STREQUAL "REQUIRED")
157
+      set(${_is_req} 1)
158
+    endif (_pkg STREQUAL "REQUIRED")
159
+  endforeach(_pkg ${ARGN})
160
+
161
+  set(${_result} ${ARGN})
162
+  list(REMOVE_ITEM ${_result} "REQUIRED")
163
+endmacro(_pkgconfig_parse_options)
164
+
165
+###
166
+macro(_pkg_check_modules_internal _is_required _is_silent _prefix)
167
+  _pkgconfig_unset(${_prefix}_FOUND)
168
+  _pkgconfig_unset(${_prefix}_VERSION)
169
+  _pkgconfig_unset(${_prefix}_PREFIX)
170
+  _pkgconfig_unset(${_prefix}_INCLUDEDIR)
171
+  _pkgconfig_unset(${_prefix}_LIBDIR)
172
+  _pkgconfig_unset(${_prefix}_LIBS)
173
+  _pkgconfig_unset(${_prefix}_LIBS_L)
174
+  _pkgconfig_unset(${_prefix}_LIBS_PATHS)
175
+  _pkgconfig_unset(${_prefix}_LIBS_OTHER)
176
+  _pkgconfig_unset(${_prefix}_CFLAGS)
177
+  _pkgconfig_unset(${_prefix}_CFLAGS_I)
178
+  _pkgconfig_unset(${_prefix}_CFLAGS_OTHER)
179
+  _pkgconfig_unset(${_prefix}_STATIC_LIBDIR)
180
+  _pkgconfig_unset(${_prefix}_STATIC_LIBS)
181
+  _pkgconfig_unset(${_prefix}_STATIC_LIBS_L)
182
+  _pkgconfig_unset(${_prefix}_STATIC_LIBS_PATHS)
183
+  _pkgconfig_unset(${_prefix}_STATIC_LIBS_OTHER)
184
+  _pkgconfig_unset(${_prefix}_STATIC_CFLAGS)
185
+  _pkgconfig_unset(${_prefix}_STATIC_CFLAGS_I)
186
+  _pkgconfig_unset(${_prefix}_STATIC_CFLAGS_OTHER)
187
+
188
+  # create a better addressable variable of the modules and calculate its size
189
+  set(_pkg_check_modules_list ${ARGN})
190
+  list(LENGTH _pkg_check_modules_list _pkg_check_modules_cnt)
191
+
192
+  if(PKG_CONFIG_EXECUTABLE)
193
+    # give out status message telling checked module
194
+    if (NOT ${_is_silent})
195
+      if (_pkg_check_modules_cnt EQUAL 1)
196
+        message(STATUS "checking for module '${_pkg_check_modules_list}'")
197
+      else(_pkg_check_modules_cnt EQUAL 1)
198
+        message(STATUS "checking for modules '${_pkg_check_modules_list}'")
199
+      endif(_pkg_check_modules_cnt EQUAL 1)
200
+    endif(NOT ${_is_silent})
201
+    
202
+    set(_pkg_check_modules_packages)
203
+    set(_pkg_check_modules_failed)
204
+
205
+    # iterate through module list and check whether they exist and match the required version
206
+    foreach (_pkg_check_modules_pkg ${_pkg_check_modules_list})
207
+      set(_pkg_check_modules_exist_query)
208
+
209
+      # check whether version is given
210
+      if (_pkg_check_modules_pkg MATCHES ".*(>=|=|<=).*")
211
+        string(REGEX REPLACE "(.*[^><])(>=|=|<=)(.*)" "\\1" _pkg_check_modules_pkg_name "${_pkg_check_modules_pkg}")
212
+        string(REGEX REPLACE "(.*[^><])(>=|=|<=)(.*)" "\\2" _pkg_check_modules_pkg_op   "${_pkg_check_modules_pkg}")
213
+        string(REGEX REPLACE "(.*[^><])(>=|=|<=)(.*)" "\\3" _pkg_check_modules_pkg_ver  "${_pkg_check_modules_pkg}")
214
+      else(_pkg_check_modules_pkg MATCHES ".*(>=|=|<=).*")
215
+        set(_pkg_check_modules_pkg_name "${_pkg_check_modules_pkg}")
216
+        set(_pkg_check_modules_pkg_op)
217
+        set(_pkg_check_modules_pkg_ver)
218
+      endif(_pkg_check_modules_pkg MATCHES ".*(>=|=|<=).*")
219
+
220
+      # handle the operands
221
+      if (_pkg_check_modules_pkg_op STREQUAL ">=")
222
+        list(APPEND _pkg_check_modules_exist_query --atleast-version)
223
+      endif(_pkg_check_modules_pkg_op STREQUAL ">=")
224
+
225
+      if (_pkg_check_modules_pkg_op STREQUAL "=")
226
+        list(APPEND _pkg_check_modules_exist_query --exact-version)
227
+      endif(_pkg_check_modules_pkg_op STREQUAL "=")
228
+      
229
+      if (_pkg_check_modules_pkg_op STREQUAL "<=")
230
+        list(APPEND _pkg_check_modules_exist_query --max-version)
231
+      endif(_pkg_check_modules_pkg_op STREQUAL "<=")
232
+
233
+      # create the final query which is of the format:
234
+      # * --atleast-version <version> <pkg-name>
235
+      # * --exact-version <version> <pkg-name>      
236
+      # * --max-version <version> <pkg-name>
237
+      # * --exists <pkg-name>
238
+      if (_pkg_check_modules_pkg_op)
239
+        list(APPEND _pkg_check_modules_exist_query "${_pkg_check_modules_pkg_ver}")
240
+      else(_pkg_check_modules_pkg_op)
241
+        list(APPEND _pkg_check_modules_exist_query --exists)
242
+      endif(_pkg_check_modules_pkg_op)
243
+
244
+      _pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_VERSION)
245
+      _pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_PREFIX)
246
+      _pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_INCLUDEDIR)
247
+      _pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_LIBDIR)
248
+
249
+      list(APPEND _pkg_check_modules_exist_query "${_pkg_check_modules_pkg_name}")
250
+      list(APPEND _pkg_check_modules_packages    "${_pkg_check_modules_pkg_name}")
251
+
252
+      # execute the query
253
+      execute_process(
254
+        COMMAND ${PKG_CONFIG_EXECUTABLE} ${_pkg_check_modules_exist_query}
255
+        RESULT_VARIABLE _pkgconfig_retval)
256
+
257
+      # evaluate result and tell failures
258
+      if (_pkgconfig_retval)
259
+        if(NOT ${_is_silent})
260
+          message(STATUS "  package '${_pkg_check_modules_pkg}' not found")
261
+        endif(NOT ${_is_silent})
262
+
263
+        set(_pkg_check_modules_failed 1)
264
+      endif(_pkgconfig_retval)
265
+    endforeach(_pkg_check_modules_pkg)
266
+
267
+    if(_pkg_check_modules_failed)
268
+      # fail when requested
269
+      if (${_is_required})
270
+        message(SEND_ERROR "A required package was not found")
271
+      endif (${_is_required})
272
+    else(_pkg_check_modules_failed)
273
+      # when we are here, we checked whether requested modules
274
+      # exist. Now, go through them and set variables
275
+      
276
+      _pkgconfig_set(${_prefix}_FOUND 1)
277
+      list(LENGTH _pkg_check_modules_packages pkg_count)
278
+
279
+      # iterate through all modules again and set individual variables
280
+      foreach (_pkg_check_modules_pkg ${_pkg_check_modules_packages})
281
+        # handle case when there is only one package required
282
+        if (pkg_count EQUAL 1)
283
+          set(_pkg_check_prefix "${_prefix}")
284
+        else(pkg_count EQUAL 1)
285
+          set(_pkg_check_prefix "${_prefix}_${_pkg_check_modules_pkg}")
286
+        endif(pkg_count EQUAL 1)
287
+        
288
+        _pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" VERSION    ""   --modversion )
289
+        _pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" PREFIX     ""   --variable=prefix )
290
+        _pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" INCLUDEDIR ""   --variable=includedir )
291
+        _pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" LIBDIR     ""   --variable=libdir )
292
+
293
+        message(STATUS "  found ${_pkg_check_modules_pkg}, version ${_pkgconfig_VERSION}")
294
+      endforeach(_pkg_check_modules_pkg)
295
+
296
+      # set variables which are combined for multiple modules
297
+      _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LIBRARIES           "(^| )-l" --libs-only-l )
298
+      _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LIBRARY_DIRS        "(^| )-L" --libs-only-L )
299
+      _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LDFLAGS             ""        --libs )
300
+      _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LDFLAGS_OTHER       ""        --libs-only-other )
301
+
302
+      _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" INCLUDE_DIRS        "(^| )-I" --cflags-only-I )
303
+      _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" CFLAGS              ""        --cflags )
304
+      _pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" CFLAGS_OTHER        ""        --cflags-only-other )
305
+    endif(_pkg_check_modules_failed)
306
+  else(PKG_CONFIG_EXECUTABLE)
307
+    if (${_is_required})
308
+      message(SEND_ERROR "pkg-config tool not found")
309
+    endif (${_is_required})
310
+  endif(PKG_CONFIG_EXECUTABLE)
311
+endmacro(_pkg_check_modules_internal)
312
+
313
+###
314
+### User visible macros start here
315
+###
316
+
317
+###
318
+macro(pkg_check_modules _prefix _module0)
319
+  # check cached value
320
+  if (NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION})
321
+    _pkgconfig_parse_options   (_pkg_modules _pkg_is_required "${_module0}" ${ARGN})
322
+    _pkg_check_modules_internal("${_pkg_is_required}" 0 "${_prefix}" ${_pkg_modules})
323
+
324
+    if(${_prefix}_FOUND)
325
+      _pkgconfig_set(__pkg_config_checked_${_prefix} ${PKG_CONFIG_VERSION})
326
+    endif(${_prefix}_FOUND)
327
+  endif(NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION})
328
+endmacro(pkg_check_modules)
329
+
330
+###
331
+macro(pkg_search_module _prefix _module0)
332
+  # check cached value
333
+  if (NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION})
334
+    set(_pkg_modules_found 0)
335
+    _pkgconfig_parse_options(_pkg_modules_alt _pkg_is_required "${_module0}" ${ARGN})
336
+
337
+    message(STATUS "checking for one of the modules '${_pkg_modules_alt}'")
338
+
339
+    # iterate through all modules and stop at the first working one.
340
+    foreach(_pkg_alt ${_pkg_modules_alt})
341
+      if(NOT _pkg_modules_found)
342
+        _pkg_check_modules_internal(0 1 "${_prefix}" "${_pkg_alt}")
343
+      endif(NOT _pkg_modules_found)
344
+
345
+      if (${_prefix}_FOUND)
346
+        set(_pkg_modules_found 1)
347
+      endif(${_prefix}_FOUND)
348
+    endforeach(_pkg_alt)
349
+
350
+    if (NOT ${_prefix}_FOUND)
351
+      if(${_pkg_is_required})
352
+        message(SEND_ERROR "None of the required '${_pkg_modules_alt}' found")
353
+      endif(${_pkg_is_required})
354
+    else (NOT ${_prefix}_FOUND)
355
+      _pkgconfig_set(__pkg_config_checked_${_prefix} ${PKG_CONFIG_VERSION})
356
+    endif(NOT ${_prefix}_FOUND)
357
+
358
+  endif(NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION})  
359
+endmacro(pkg_search_module)
360
+
361
+### 
362
+macro(PKGCONFIG _package _include_DIR _link_DIR _link_FLAGS _cflags)
363
+  message(STATUS "WARNING: you are using the obsolete 'PKGCONFIG' macro")
364
+  _pkg_check_modules_internal(0 0 _PKGCONFIG_TMP "${_package}")
365
+  if (_PKGCONFIG_TMP_FOUND)
366
+    set(${_include_DIR} ${_PKGCONFIG_TMP_INCLUDEDIR})
367
+    set(${_link_DIR}    ${_PKGCONFIG_TMP_LIBDIR})
368
+    set(${_link_FLAGS}  ${_PKGCONFIG_TMP_LDFLAGS})
369
+    set(${_cflags}      ${_PKGCONFIG_TMP_CFLAGS})
370
+    set(_return_VALUE 0)
371
+  else(_PKGCONFIG_TMP_FOUND)
372
+    set(${_include_DIR})
373
+    set(${_link_DIR})
374
+    set(${_link_FLAGS})
375
+    set(${_cflags})
376
+    set(_return_VALUE 1)
377
+  endif(_PKGCONFIG_TMP_FOUND)
378
+endmacro(PKGCONFIG)
379
+    
380
+
381
+### Local Variables:
382
+### mode: cmake
383
+### End:

+ 110
- 0
cmake_admin/UserWarnings.cmake View File

@@ -0,0 +1,110 @@
1
+# Rosegarden
2
+# A MIDI and audio sequencer and musical notation editor.
3
+#
4
+# This program is Copyright 2000-2008
5
+#     Guillaume Laurent   <glaurent@telegraph-road.org>,
6
+#     Chris Cannam        <cannam@all-day-breakfast.com>,
7
+#     Richard Bown        <richard.bown@ferventsoftware.com>
8
+#
9
+# The moral rights of Guillaume Laurent, Chris Cannam, and Richard
10
+# Bown to claim authorship of this work have been asserted.
11
+#
12
+# This file is Copyright 2006-2008
13
+#     Pedro Lopez-Cabanillas <plcl@users.sourceforge.net>
14
+#
15
+# Other copyrights also apply to some parts of this work.  Please
16
+# see the AUTHORS file and individual file headers for details.
17
+#
18
+# This program is free software; you can redistribute it and/or
19
+# modify it under the terms of the GNU General Public License as
20
+# published by the Free Software Foundation; either version 2 of the
21
+# License, or (at your option) any later version.  See the file
22
+# COPYING included with this distribution for more information.
23
+
24
+MESSAGE("\n"
25
+"Installation Summary\n"
26
+"--------------------\n"
27
+"\n"
28
+"Install Directory             : ${CMAKE_INSTALL_PREFIX}\n"
29
+"Build type                    : ${CMAKE_BUILD_TYPE}\n"
30
+"Use Qt/KDE precompiled headers: ${USE_PCH}\n"
31
+"\n"
32
+"Xft notation font support     : ${HAVE_XFT}")
33
+
34
+IF(WANT_LIRC)
35
+MESSAGE(
36
+"LIRC infrared remote support  : ${HAVE_LIRC}")
37
+ELSE(WANT_LIRC)
38
+MESSAGE("No LIRC support configured.")
39
+ENDIF(WANT_LIRC)
40
+
41
+MESSAGE("")
42
+
43
+IF(WANT_SOUND)
44
+MESSAGE(
45
+"ALSA MIDI support             : ${HAVE_ALSA}\n"
46
+"JACK audio support            : ${HAVE_JACK}\n"
47
+"LADSPA plugin support         : ${HAVE_LADSPA}\n"
48
+"DSSI synth plugin support     : ${HAVE_DSSI}\n"
49
+"Custom OSC plugin GUI support : ${HAVE_LIBLO}\n"
50
+"Audio timestretching          : ${HAVE_FFTW3F}\n"
51
+"LRDF plugin metadata support  : ${HAVE_LIBLRDF}")
52
+ELSE(WANT_SOUND)
53
+MESSAGE("No sound support configured.")
54
+ENDIF(WANT_SOUND)
55
+
56
+IF(NOT HAVE_XFT)
57
+MESSAGE("\n* Score rendering quality and performance may be\n"
58
+"improved if Xft 2.1.0 and Freetype 2 are available, to permit\n"
59
+"Rosegarden to override the Qt font selection mechanism.  It\n"
60
+"may not be worth trying to install them if they aren't already\n"
61
+"present in your distribution though.")
62
+ENDIF(NOT HAVE_XFT)
63
+
64
+IF(WANT_SOUND)
65
+
66
+IF(NOT HAVE_ALSA)
67
+MESSAGE("\n* Rosegarden requires the ALSA (Advanced Linux Sound Architecture) drivers\n"
68
+"for MIDI, and the JACK audio framework for audio sequencing.\n"
69
+"Please see the documentation at http://www.rosegardenmusic.com/getting/\n"
70
+"for more information about these dependencies.")
71
+ENDIF(NOT HAVE_ALSA)
72
+		
73
+IF(NOT HAVE_JACK)
74
+MESSAGE("\n* Rosegarden uses the JACK audio server for audio recording and\n"
75
+"sequencing.  See http://jackit.sf.net/ for more information about\n"
76
+"getting and installing JACK.  If you want to use Rosegarden only\n"
77
+"for MIDI, then you do not need JACK.")
78
+ENDIF(NOT HAVE_JACK)
79
+
80
+IF(NOT HAVE_LADSPA)
81
+MESSAGE("\n* Rosegarden supports LADSPA audio plugins if available.  See\n"
82
+"http://www.ladspa.org/ for more information about LADSPA.  To\n"
83
+"build LADSPA support into Rosegarden, you need to make sure\n"
84
+"you have ladspa.h available on your system.")
85
+ENDIF(NOT HAVE_LADSPA)
86
+
87
+IF(NOT HAVE_DSSI)
88
+MESSAGE("\n* Rosegarden supports DSSI audio plugins if available.  See\n"
89
+"http://dssi.sf.net/ for more information about DSSI.  To\n"
90
+"build DSSI support into Rosegarden, you need to make sure\n"
91
+"you have dssi.h available on your system.")
92
+ENDIF(NOT HAVE_DSSI)
93
+
94
+IF(NOT HAVE_LIBLO)
95
+MESSAGE("\n* Rosegarden supports custom GUIs for DSSI (and LADSPA) plugins using\n"
96
+"the Open Sound Control protocol, if the Lite OSC library liblo is\n"
97
+"available.  Go to http://www.plugin.org.uk/liblo/ to obtain liblo\n"
98
+"and http://dssi.sf.net/ for more information about DSSI GUIs.")
99
+ENDIF(NOT HAVE_LIBLO)
100
+
101
+IF(NOT HAVE_LIBLRDF)
102
+MESSAGE("\n* Rosegarden supports the LRDF metadata format for classification\n"
103
+"of LADSPA and DSSI plugins.  This will improve the usability of\n"
104
+"plugin selection dialogs.  You can obtain LRDF from\n"
105
+"http://www.plugin.org.uk/lrdf/.")
106
+ENDIF(NOT HAVE_LIBLRDF)
107
+
108
+ENDIF(WANT_SOUND)
109
+
110
+MESSAGE("")

+ 125
- 0
data/CMakeLists.txt View File

@@ -0,0 +1,125 @@
1
+# Data directory
2
+
3
+SET(DATADIR ${KDE3DATADIR}/rosegarden)
4
+SET(ICONDIR ${KDE3ICONDIR})
5
+SET(MIMEDIR ${KDE3MIMEDIR}/audio)
6
+SET(MENUDIR ${KDE3MENUDIR})
7
+
8
+# Guitar chord files
9
+FILE(GLOB CHORD_FILES chords/*.xml)
10
+INSTALL(FILES ${CHORD_FILES} DESTINATION ${DATADIR}/chords)
11
+
12
+# Desktop file
13
+INSTALL(FILES desktop/rosegarden.desktop DESTINATION ${MENUDIR})
14
+
15
+# MIME files
16
+SET(MIME_FILES
17
+        desktop/x-rosegarden21.desktop
18
+        desktop/x-rosegarden.desktop
19
+        desktop/x-rosegarden-device.desktop
20
+        desktop/x-soundfont.desktop)
21
+INSTALL(FILES ${MIME_FILES} DESTINATION ${MIMEDIR})
22
+
23
+# Icons
24
+INSTALL(FILES pixmaps/icons/cc-hi16-rosegarden.xpm      DESTINATION ${ICONDIR}/locolor/16x16/apps   RENAME rosegarden.xpm)
25
+INSTALL(FILES pixmaps/icons/rg-rwb-rose3-16x16.png      DESTINATION ${ICONDIR}/hicolor/16x16/apps   RENAME rosegarden.png)
26
+INSTALL(FILES pixmaps/icons/cc-hi32-rosegarden.xpm      DESTINATION ${ICONDIR}/locolor/32x32/apps   RENAME rosegarden.xpm)
27
+INSTALL(FILES pixmaps/icons/rg-rwb-rose3-32x32.png      DESTINATION ${ICONDIR}/hicolor/32x32/apps   RENAME rosegarden.png)
28
+INSTALL(FILES pixmaps/icons/rg-rwb-rose3-48x48.png      DESTINATION ${ICONDIR}/hicolor/48x48/apps   RENAME rosegarden.png)
29
+INSTALL(FILES pixmaps/icons/rg-rwb-rose3-64x64.png      DESTINATION ${ICONDIR}/hicolor/64x64/apps   RENAME rosegarden.png)
30
+INSTALL(FILES pixmaps/icons/rg-rwb-rose3-128x128.png    DESTINATION ${ICONDIR}/hicolor/128x128/apps RENAME rosegarden.png)
31
+
32
+INSTALL(FILES pixmaps/icons/mm-mime-hi16-rosegarden.png DESTINATION ${ICONDIR}/hicolor/16x16/mimetypes RENAME x-rosegarden.png)
33
+INSTALL(FILES pixmaps/icons/mm-mime-hi16-rosegarden.png DESTINATION ${ICONDIR}/locolor/16x16/mimetypes RENAME x-rosegarden.png)
34
+INSTALL(FILES pixmaps/icons/mm-mime-hi32-rosegarden.png DESTINATION ${ICONDIR}/hicolor/32x32/mimetypes RENAME x-rosegarden.png)
35
+INSTALL(FILES pixmaps/icons/mm-mime-hi32-rosegarden.png DESTINATION ${ICONDIR}/locolor/32x32/mimetypes RENAME x-rosegarden.png)
36
+
37
+# styles
38
+FILE(GLOB STYLES_FILES styles/*.xml)
39
+INSTALL(FILES ${STYLES_FILES} DESTINATION ${DATADIR}/styles)
40
+
41
+# presets
42
+FILE(GLOB PRESETS_FILES presets/*.xml)
43
+INSTALL(FILES ${PRESETS_FILES} DESTINATION ${DATADIR}/presets)
44
+
45
+# fonts
46
+FILE(GLOB PFA_FILES fonts/*.pfa)
47
+INSTALL(FILES ${PFA_FILES} DESTINATION ${DATADIR}/fonts)
48
+
49
+FILE(GLOB XML_FILES fonts/mappings/*.xml)
50
+INSTALL(FILES ${XML_FILES} DESTINATION ${DATADIR}/fonts/mappings)
51
+
52
+FILE(GLOB XPM_FILES pixmaps/rg21/4/*.xpm)
53
+INSTALL(FILES ${XPM_FILES} DESTINATION ${DATADIR}/fonts/rg21/4)
54
+
55
+FILE(GLOB XPM_FILES pixmaps/rg21/8/*.xpm)
56
+INSTALL(FILES ${XPM_FILES} DESTINATION ${DATADIR}/fonts/rg21/8)
57
+
58
+FILE(GLOB XPM_FILES pixmaps/feta/4/*.xpm)
59
+INSTALL(FILES ${XPM_FILES} DESTINATION ${DATADIR}/fonts/feta/4)
60
+
61
+FILE(GLOB XPM_FILES pixmaps/feta/6/*.xpm)
62
+INSTALL(FILES ${XPM_FILES} DESTINATION ${DATADIR}/fonts/feta/6)
63
+
64
+FILE(GLOB XPM_FILES pixmaps/feta/8/*.xpm)
65
+INSTALL(FILES ${XPM_FILES} DESTINATION ${DATADIR}/fonts/feta/8)
66
+
67
+FILE(GLOB XPM_FILES pixmaps/feta/10/*.xpm)
68
+INSTALL(FILES ${XPM_FILES} DESTINATION ${DATADIR}/fonts/feta/10)
69
+
70
+FILE(GLOB XPM_FILES pixmaps/feta/12/*.xpm)
71
+INSTALL(FILES ${XPM_FILES} DESTINATION ${DATADIR}/fonts/feta/12)
72
+
73
+# pixmaps
74
+FILE(GLOB PIXMAP_FILES pixmaps/misc/*.xpm pixmaps/misc/*.png)
75
+INSTALL(FILES ${PIXMAP_FILES} DESTINATION ${DATADIR}/pixmaps/misc)
76
+
77
+FILE(GLOB PIXMAP_FILES pixmaps/toolbar/*.xpm pixmaps/toolbar/*.png)
78
+INSTALL(FILES ${PIXMAP_FILES} DESTINATION ${DATADIR}/pixmaps/toolbar)
79
+
80
+FILE(GLOB PIXMAP_FILES pixmaps/transport/*.xpm pixmaps/transport/*.png)
81
+INSTALL(FILES ${PIXMAP_FILES} DESTINATION ${DATADIR}/pixmaps/transport)
82
+
83
+# Splash 
84
+INSTALL(FILES pixmaps/splash.png DESTINATION ${DATADIR}/pixmaps)
85
+
86
+# Examples
87
+SET(EXAMPLE_FILES
88
+    examples/aveverum.rg
89
+    examples/aylindaamiga.rg
90
+    examples/bogus-surf-jam.rg
91
+    examples/bwv-1060-trumpet-duet-excerpt.rg
92
+    examples/children.rg
93
+    examples/Djer-Fire.rg
94
+    examples/doodle-q.rg
95
+    examples/exercise_notation.rg
96
+    examples/glazunov.rg
97
+    examples/glazunov-for-solo-and-piano-with-cue.rg
98
+    examples/headers-and-unicode-lyrics.rg
99
+    examples/himno_de_riego.rg
100
+    examples/interpretation-example.rg
101
+    examples/let-all-mortal-flesh.rg
102
+    examples/lilypond-alternative-endings.rg
103
+    examples/lilypond-directives.rg
104
+    examples/lilypond-staff-groupings.rg
105
+    examples/mandolin-sonatina.rg
106
+    examples/mozart-quartet.rg
107
+    examples/notation-for-string-orchestra-in-D-minor.rg
108
+    examples/perfect-moment.rg
109
+    examples/ravel-pc-gmaj-adagio.rg
110
+    examples/sonataC.rose
111
+    examples/stormy-riders.rg
112
+    examples/test_tuplets.rg
113
+    examples/the-rose-garden.rg
114
+    examples/vivaldi-cs3mv2.rg
115
+    examples/vivaldi_op44_11_1.rg )
116
+
117
+INSTALL(FILES ${EXAMPLE_FILES} DESTINATION ${DATADIR}/examples) 
118
+INSTALL(FILES examples/autoload.rg DESTINATION ${DATADIR})
119
+
120
+# Library 
121
+FILE(GLOB RGD_FILES library/*.rgd)
122
+INSTALL(FILES ${RGD_FILES} DESTINATION ${DATADIR}/library)
123
+
124
+# KDE LIRC Profile
125
+INSTALL(FILES profile/rosegarden.profile.xml DESTINATION ${KDE3DATADIR}/profiles)

+ 1733
- 0
data/chords/chords.xml
File diff suppressed because it is too large
View File


+ 13
- 0
data/desktop/rosegarden.desktop View File

@@ -0,0 +1,13 @@
1
+[Desktop Entry]
2
+Encoding=UTF-8
3
+Type=Application
4
+Categories=AudioVideo;Audio;Midi;Sequencer;X-SuSE-Sequencer;X-Red-Hat-Base;
5
+Exec=rosegarden
6
+MimeType=audio/x-rosegarden;audio/x-rosegarden-device;audio/midi
7
+X-KDE-NativeMimeType=audio/x-rosegarden
8
+Icon=rosegarden.png
9
+DocPath=rosegarden/index.html
10
+Comment=MIDI and Audio Sequencer and Editor
11
+Terminal=false
12
+Name=Rosegarden
13
+Name[de]=Rosegarden

+ 8
- 0
data/desktop/x-rosegarden-device.desktop View File

@@ -0,0 +1,8 @@
1
+[Desktop Entry]
2
+Comment=Rosegarden device file
3
+Comment[fr]=Fichier de description de peripherique Rosegarden
4
+Hidden=false
5
+Icon=midi
6
+MimeType=audio/x-rosegarden-device
7
+Patterns=*.rgd;*.RGD
8
+Type=MimeType

+ 9
- 0
data/desktop/x-rosegarden.desktop View File

@@ -0,0 +1,9 @@
1
+[Desktop Entry]
2
+Comment=Rosegarden file
3
+Comment[fr]=Fichier Rosegarden
4
+Hidden=false
5
+Icon=x-rosegarden.png
6
+MimeType=audio/x-rosegarden
7
+Patterns=*.rg;*.RG
8
+Type=MimeType
9
+X-KDE-AutoEmbed=false

+ 8
- 0
data/desktop/x-rosegarden21.desktop View File

@@ -0,0 +1,8 @@
1
+[Desktop Entry]
2
+Comment=Rosegarden 2.1 file
3
+Comment[fr]=Fichier Rosegarden 2.1
4
+Hidden=false
5
+Icon=midi
6
+MimeType=audio/x-rosegarden21
7
+Patterns=*.rose
8
+Type=MimeType

+ 8
- 0
data/desktop/x-soundfont.desktop View File

@@ -0,0 +1,8 @@
1
+[Desktop Entry]
2
+Comment=Soundfont
3
+Comment[fr]=Echantillons
4
+Hidden=false
5
+Icon=sound
6
+MimeType=audio/x-soundfont
7
+Patterns=*.sf2;*.SF2
8
+Type=MimeType

BIN
data/examples/Djer-Fire.rg View File


BIN
data/examples/autoload.rg View File


BIN
data/examples/aveverum.rg View File


BIN
data/examples/aylindaamiga.rg View File


BIN
data/examples/bogus-surf-jam.rg View File


BIN
data/examples/bwv-1060-trumpet-duet-excerpt.rg View File


BIN
data/examples/children.rg View File


+ 420
- 0
data/examples/colourmap-fragment.xml View File

@@ -0,0 +1,420 @@
1
+        <colourmap name="segmentmap">
2
+	    <colourpair id="0" name="" red="197" green="211" blue="125"/>
3
+	    <colourpair id="1" name="AudioDefault" red="151" green="211" blue="125"/>
4
+	    <colourpair id="2" name="MidnightBlue" red="25" green="25" blue="112"/>
5
+	    <colourpair id="3" name="NavyBlue" red="0" green="0" blue="128"/>
6
+	    <colourpair id="4" name="CornflowerBlue" red="100" green="149" blue="237"/>
7
+	    <colourpair id="5" name="DarkSlateBlue" red="72" green="61" blue="139"/>
8
+	    <colourpair id="6" name="SlateBlue" red="106" green="90" blue="205"/>
9
+	    <colourpair id="7" name="MediumSlateBlue" red="123" green="104" blue="238"/>
10
+	    <colourpair id="8" name="LightSlateBlue" red="132" green="112" blue="255"/>
11
+	    <colourpair id="9" name="MediumBlue" red="0" green="0" blue="205"/>
12
+	    <colourpair id="10" name="RoyalBlue" red="65" green="105" blue="225"/>
13
+	    <colourpair id="11" name="blue" red="0" green="0" blue="255"/>
14
+	    <colourpair id="12" name="DodgerBlue" red="30" green="144" blue="255"/>
15
+	    <colourpair id="13" name="DeepSkyBlue" red="0" green="191" blue="255"/>
16
+	    <colourpair id="14" name="SkyBlue" red="135" green="206" blue="235"/>
17
+	    <colourpair id="15" name="LightSkyBlue" red="135" green="206" blue="250"/>
18
+	    <colourpair id="16" name="SteelBlue" red="70" green="130" blue="180"/>
19
+	    <colourpair id="17" name="LightSteelBlue" red="176" green="196" blue="222"/>
20
+	    <colourpair id="18" name="LightBlue" red="173" green="216" blue="230"/>
21
+	    <colourpair id="19" name="PowderBlue" red="176" green="224" blue="230"/>
22
+	    <colourpair id="20" name="PaleTurquoise" red="175" green="238" blue="238"/>
23
+	    <colourpair id="21" name="DarkTurquoise" red="0" green="206" blue="209"/>
24
+	    <colourpair id="22" name="MediumTurquoise" red="72" green="209" blue="204"/>
25
+	    <colourpair id="23" name="turquoise" red="64" green="224" blue="208"/>
26
+	    <colourpair id="24" name="cyan" red="0" green="255" blue="255"/>
27
+	    <colourpair id="25" name="LightCyan" red="224" green="255" blue="255"/>
28
+	    <colourpair id="26" name="CadetBlue" red="95" green="158" blue="160"/>
29
+	    <colourpair id="27" name="MediumAquamarine" red="102" green="205" blue="170"/>
30
+	    <colourpair id="28" name="aquamarine" red="127" green="255" blue="212"/>
31
+	    <colourpair id="29" name="DarkGreen" red="0" green="100" blue="0"/>
32
+	    <colourpair id="30" name="DarkOliveGreen" red="85" green="107" blue="47"/>
33
+	    <colourpair id="31" name="DarkSeaGreen" red="143" green="188" blue="143"/>
34
+	    <colourpair id="32" name="SeaGreen" red="46" green="139" blue="87"/>
35
+	    <colourpair id="33" name="MediumSeaGreen" red="60" green="179" blue="113"/>
36
+	    <colourpair id="34" name="LightSeaGreen" red="32" green="178" blue="170"/>
37
+	    <colourpair id="35" name="PaleGreen" red="152" green="251" blue="152"/>
38
+	    <colourpair id="36" name="SpringGreen" red="0" green="255" blue="127"/>
39
+	    <colourpair id="37" name="LawnGreen" red="124" green="252" blue="0"/>
40
+	    <colourpair id="38" name="green" red="0" green="255" blue="0"/>
41
+	    <colourpair id="39" name="chartreuse" red="127" green="255" blue="0"/>
42
+	    <colourpair id="40" name="MediumSpringGreen" red="0" green="250" blue="154"/>
43
+	    <colourpair id="41" name="GreenYellow" red="173" green="255" blue="47"/>
44
+	    <colourpair id="42" name="LimeGreen" red="50" green="205" blue="50"/>
45
+	    <colourpair id="43" name="YellowGreen" red="154" green="205" blue="50"/>
46
+	    <colourpair id="44" name="ForestGreen" red="34" green="139" blue="34"/>
47
+	    <colourpair id="45" name="OliveDrab" red="107" green="142" blue="35"/>
48
+	    <colourpair id="46" name="DarkKhaki" red="189" green="183" blue="107"/>
49
+	    <colourpair id="47" name="khaki" red="240" green="230" blue="140"/>
50
+	    <colourpair id="48" name="PaleGoldenrod" red="238" green="232" blue="170"/>
51
+	    <colourpair id="49" name="LightGoldenrodYellow" red="250" green="250" blue="210"/>
52
+	    <colourpair id="50" name="LightYellow" red="255" green="255" blue="224"/>
53
+	    <colourpair id="51" name="yellow" red="255" green="255" blue="0"/>
54
+	    <colourpair id="52" name="gold" red="255" green="215" blue="0"/>
55
+	    <colourpair id="53" name="LightGoldenrod" red="238" green="221" blue="130"/>
56
+	    <colourpair id="54" name="goldenrod" red="218" green="165" blue="32"/>
57
+	    <colourpair id="55" name="DarkGoldenrod" red="184" green="134" blue="11"/>
58
+	    <colourpair id="56" name="RosyBrown" red="188" green="143" blue="143"/>
59
+	    <colourpair id="57" name="IndianRed" red="205" green="92" blue="92"/>
60
+	    <colourpair id="58" name="SaddleBrown" red="139" green="69" blue="19"/>
61
+	    <colourpair id="59" name="sienna" red="160" green="82" blue="45"/>
62
+	    <colourpair id="60" name="peru" red="205" green="133" blue="63"/>
63
+	    <colourpair id="61" name="burlywood" red="222" green="184" blue="135"/>
64
+	    <colourpair id="62" name="beige" red="245" green="245" blue="220"/>
65
+	    <colourpair id="63" name="wheat" red="245" green="222" blue="179"/>
66
+	    <colourpair id="64" name="SandyBrown" red="244" green="164" blue="96"/>
67
+	    <colourpair id="65" name="tan" red="210" green="180" blue="140"/>
68
+	    <colourpair id="66" name="chocolate" red="210" green="105" blue="30"/>
69
+	    <colourpair id="67" name="firebrick" red="178" green="34" blue="34"/>
70
+	    <colourpair id="68" name="brown" red="165" green="42" blue="42"/>
71
+	    <colourpair id="69" name="DarkSalmon" red="233" green="150" blue="122"/>
72
+	    <colourpair id="70" name="salmon" red="250" green="128" blue="114"/>
73
+	    <colourpair id="71" name="LightSalmon" red="255" green="160" blue="122"/>
74
+	    <colourpair id="72" name="orange" red="255" green="165" blue="0"/>
75
+	    <colourpair id="73" name="DarkOrange" red="255" green="140" blue="0"/>
76
+	    <colourpair id="74" name="coral" red="255" green="127" blue="80"/>
77
+	    <colourpair id="75" name="LightCoral" red="240" green="128" blue="128"/>
78
+	    <colourpair id="76" name="tomato" red="255" green="99" blue="71"/>
79
+	    <colourpair id="77" name="OrangeRed" red="255" green="69" blue="0"/>
80
+	    <colourpair id="78" name="red" red="255" green="0" blue="0"/>
81
+	    <colourpair id="79" name="HotPink" red="255" green="105" blue="180"/>
82
+	    <colourpair id="80" name="DeepPink" red="255" green="20" blue="147"/>
83
+	    <colourpair id="81" name="pink" red="255" green="192" blue="203"/>
84
+	    <colourpair id="82" name="LightPink" red="255" green="182" blue="193"/>
85
+	    <colourpair id="83" name="PaleVioletRed" red="219" green="112" blue="147"/>
86
+	    <colourpair id="84" name="maroon" red="176" green="48" blue="96"/>
87
+	    <colourpair id="85" name="MediumVioletRed" red="199" green="21" blue="133"/>
88
+	    <colourpair id="86" name="VioletRed" red="208" green="32" blue="144"/>
89
+	    <colourpair id="87" name="magenta" red="255" green="0" blue="255"/>
90
+	    <colourpair id="88" name="violet" red="238" green="130" blue="238"/>
91
+	    <colourpair id="89" name="plum" red="221" green="160" blue="221"/>
92
+	    <colourpair id="90" name="orchid" red="218" green="112" blue="214"/>
93
+	    <colourpair id="91" name="MediumOrchid" red="186" green="85" blue="211"/>
94
+	    <colourpair id="92" name="DarkOrchid" red="153" green="50" blue="204"/>
95
+	    <colourpair id="93" name="DarkViolet" red="148" green="0" blue="211"/>
96
+	    <colourpair id="94" name="BlueViolet" red="138" green="43" blue="226"/>
97
+	    <colourpair id="95" name="purple" red="160" green="32" blue="240"/>
98
+	    <colourpair id="96" name="MediumPurple" red="147" green="112" blue="219"/>
99
+	    <colourpair id="97" name="thistle" red="216" green="191" blue="216"/>
100
+	    <colourpair id="98" name="snow1" red="255" green="250" blue="250"/>
101
+	    <colourpair id="99" name="snow2" red="238" green="233" blue="233"/>
102
+	    <colourpair id="100" name="snow3" red="205" green="201" blue="201"/>
103
+	    <colourpair id="101" name="snow4" red="139" green="137" blue="137"/>
104
+	    <colourpair id="102" name="seashell1" red="255" green="245" blue="238"/>
105
+	    <colourpair id="103" name="seashell2" red="238" green="229" blue="222"/>
106
+	    <colourpair id="104" name="seashell3" red="205" green="197" blue="191"/>
107
+	    <colourpair id="105" name="seashell4" red="139" green="134" blue="130"/>
108
+	    <colourpair id="106" name="AntiqueWhite1" red="255" green="239" blue="219"/>
109
+	    <colourpair id="107" name="AntiqueWhite2" red="238" green="223" blue="204"/>
110
+	    <colourpair id="108" name="AntiqueWhite3" red="205" green="192" blue="176"/>
111
+	    <colourpair id="109" name="AntiqueWhite4" red="139" green="131" blue="120"/>
112
+	    <colourpair id="110" name="bisque1" red="255" green="228" blue="196"/>
113
+	    <colourpair id="111" name="bisque2" red="238" green="213" blue="183"/>
114
+	    <colourpair id="112" name="bisque3" red="205" green="183" blue="158"/>
115
+	    <colourpair id="113" name="bisque4" red="139" green="125" blue="107"/>
116
+	    <colourpair id="114" name="PeachPuff1" red="255" green="218" blue="185"/>
117
+	    <colourpair id="115" name="PeachPuff2" red="238" green="203" blue="173"/>
118
+	    <colourpair id="116" name="PeachPuff3" red="205" green="175" blue="149"/>
119
+	    <colourpair id="117" name="PeachPuff4" red="139" green="119" blue="101"/>
120
+	    <colourpair id="118" name="NavajoWhite1" red="255" green="222" blue="173"/>
121
+	    <colourpair id="119" name="NavajoWhite2" red="238" green="207" blue="161"/>
122
+	    <colourpair id="120" name="NavajoWhite3" red="205" green="179" blue="139"/>
123
+	    <colourpair id="121" name="NavajoWhite4" red="139" green="121" blue="94"/>
124
+	    <colourpair id="122" name="LemonChiffon1" red="255" green="250" blue="205"/>
125
+	    <colourpair id="123" name="LemonChiffon2" red="238" green="233" blue="191"/>
126
+	    <colourpair id="124" name="LemonChiffon3" red="205" green="201" blue="165"/>
127
+	    <colourpair id="125" name="LemonChiffon4" red="139" green="137" blue="112"/>
128
+	    <colourpair id="126" name="cornsilk1" red="255" green="248" blue="220"/>
129
+	    <colourpair id="127" name="cornsilk2" red="238" green="232" blue="205"/>
130
+	    <colourpair id="128" name="cornsilk3" red="205" green="200" blue="177"/>
131
+	    <colourpair id="129" name="cornsilk4" red="139" green="136" blue="120"/>
132
+	    <colourpair id="130" name="ivory1" red="255" green="255" blue="240"/>
133
+	    <colourpair id="131" name="ivory2" red="238" green="238" blue="224"/>
134
+	    <colourpair id="132" name="ivory3" red="205" green="205" blue="193"/>
135
+	    <colourpair id="133" name="ivory4" red="139" green="139" blue="131"/>
136
+	    <colourpair id="134" name="honeydew1" red="240" green="255" blue="240"/>
137
+	    <colourpair id="135" name="honeydew2" red="224" green="238" blue="224"/>
138
+	    <colourpair id="136" name="honeydew3" red="193" green="205" blue="193"/>
139
+	    <colourpair id="137" name="honeydew4" red="131" green="139" blue="131"/>
140
+	    <colourpair id="138" name="LavenderBlush1" red="255" green="240" blue="245"/>
141
+	    <colourpair id="139" name="LavenderBlush2" red="238" green="224" blue="2