summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--muse/CMakeLists.txt43
-rw-r--r--muse/COPYING60
-rw-r--r--muse/midiplugins/filter/CMakeLists.txt2
-rw-r--r--muse/midiplugins/metronom/CMakeLists.txt2
-rw-r--r--muse/midiplugins/transform/CMakeLists.txt2
-rw-r--r--muse/plugins/freeverb/CMakeLists.txt2
-rw-r--r--muse/share/html/CMakeLists.txt2
-rw-r--r--muse/share/instruments/CMakeLists.txt2
-rw-r--r--muse/share/locale/CMakeLists.txt2
-rw-r--r--muse/share/plugins/CMakeLists.txt2
-rw-r--r--muse/share/templates/CMakeLists.txt2
-rw-r--r--muse/share/wallpapers/CMakeLists.txt4
-rw-r--r--muse/synti/deicsonze/CMakeLists.txt2
-rw-r--r--muse/synti/fluid/CMakeLists.txt2
-rw-r--r--muse/synti/fluidsynth/CMakeLists.txt2
-rw-r--r--muse/synti/organ/CMakeLists.txt2
-rw-r--r--muse/synti/s1/CMakeLists.txt2
-rw-r--r--muse/synti/vam/CMakeLists.txt2
18 files changed, 58 insertions, 79 deletions
diff --git a/muse/CMakeLists.txt b/muse/CMakeLists.txt
index e79b74a6..84b6e924 100644
--- a/muse/CMakeLists.txt
+++ b/muse/CMakeLists.txt
@@ -20,11 +20,19 @@
project(muse)
+# The MusE version number.
+SET(MusE_VERSION_MAJOR 1)
+SET(MusE_VERSION_MINOR 0)
+SET(MusE_VERSION_PATCH "pre1")
+SET(MusE_VERSION "1.0")
+SET(MusE_VERSION_FULL "1.0pre1")
+SET(MusE_INSTALL_NAME "muse-1.0pre1")
+
include ( ${PROJECT_SOURCE_DIR}/cmake/UsePkgConfig1.cmake )
-option ( ENABLE_DSSI "enable Disposable Soft Synth Interface" ON)
-option ( ENABLE_VST "enable VST/win support" OFF)
-option ( ENABLE_FLUID "enable fluidsynth softsynth plugins" ON)
+option ( ENABLE_DSSI "enable Disposable Soft Synth Interface" ON)
+option ( ENABLE_VST "enable VST/win support" OFF)
+option ( ENABLE_FLUID "enable fluidsynth softsynth plugins" ON)
set(CMAKE_VERBOSE_MAKEFILE ON)
set(QT_USE_QTXML TRUE)
@@ -163,3 +171,32 @@ include_directories(
${SNDFILE_INCDIR}
${SAMPLERATE_INCDIR}
)
+
+#
+# If the cmake version includes cpack, use it
+#
+IF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
+
+ IF(EXISTS "${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake")
+ SET(CMAKE_INSTALL_MFC_LIBRARIES 1)
+ INCLUDE(InstallRequiredSystemLibraries)
+ ENDIF(EXISTS "${CMAKE_ROOT}/Modules/InstallRequiredSystemLibraries.cmake")
+
+ SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "MusE is a virtual audio studio environment")
+ SET(CPACK_PACKAGE_VENDOR "Werner Schweer and others")
+ SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
+ SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYING")
+ SET(CPACK_PACKAGE_VERSION_MAJOR "${MusE_VERSION_MAJOR}")
+ SET(CPACK_PACKAGE_VERSION_MINOR "${MusE_VERSION_MINOR}")
+ SET(CPACK_PACKAGE_VERSION_PATCH "${MusE_VERSION_PATCH}")
+ SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CMake ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}")
+ SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${MusE_INSTALL_NAME}")
+
+ SET(CPACK_SYSTEM_NAME ${CMAKE_SYSTEM_NAME})
+
+ SET(CPACK_PACKAGE_FILE_NAME "${CPACK_SOURCE_PACKAGE_FILE_NAME}-${CPACK_SYSTEM_NAME}")
+ SET(CPACK_STRIP_FILES "bin/muse;bin/grepmidi")
+ SET(CPACK_PACKAGE_EXECUTABLES "muse" "grepmidi")
+ INCLUDE(CPack)
+ENDIF(EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake")
+
diff --git a/muse/COPYING b/muse/COPYING
index d60c31a9..5a965fbc 100644
--- a/muse/COPYING
+++ b/muse/COPYING
@@ -278,63 +278,3 @@ PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Programs
-
- If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
- To do so, attach the following notices to the program. It is safest
-to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
- <one line to give the program's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-
-Also add information on how to contact you by electronic and paper mail.
-
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
-
- Gnomovision version 69, Copyright (C) year name of author
- Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
- This is free software, and you are welcome to redistribute it
- under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License. Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the program
- `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
- <signature of Ty Coon>, 1 April 1989
- Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs. If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library. If this is what you want to do, use the GNU Library General
-Public License instead of this License.
diff --git a/muse/midiplugins/filter/CMakeLists.txt b/muse/midiplugins/filter/CMakeLists.txt
index ade595f6..7ff84081 100644
--- a/muse/midiplugins/filter/CMakeLists.txt
+++ b/muse/midiplugins/filter/CMakeLists.txt
@@ -40,5 +40,5 @@ set_target_properties ( filter
COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all-pic.h"
)
-install_targets ( /lib/muse-1.0pre1/midiplugins/ filter )
+install_targets ( /lib/${MusE_INSTALL_NAME}/midiplugins/ filter )
diff --git a/muse/midiplugins/metronom/CMakeLists.txt b/muse/midiplugins/metronom/CMakeLists.txt
index de5dd5a9..19b60c51 100644
--- a/muse/midiplugins/metronom/CMakeLists.txt
+++ b/muse/midiplugins/metronom/CMakeLists.txt
@@ -38,5 +38,5 @@ set_target_properties ( metronom
COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all-pic.h"
)
-install_targets ( /lib/muse-1.0pre1/midiplugins/ metronom )
+install_targets ( /lib/${MusE_INSTALL_NAME}/midiplugins/ metronom )
diff --git a/muse/midiplugins/transform/CMakeLists.txt b/muse/midiplugins/transform/CMakeLists.txt
index 52aaa353..39f488de 100644
--- a/muse/midiplugins/transform/CMakeLists.txt
+++ b/muse/midiplugins/transform/CMakeLists.txt
@@ -36,5 +36,5 @@ set_target_properties ( transform
COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all-pic.h"
)
-install_targets ( /lib/muse-1.0pre1/midiplugins/ transform )
+install_targets ( /lib/${MusE_INSTALL_NAME}/midiplugins/ transform )
diff --git a/muse/plugins/freeverb/CMakeLists.txt b/muse/plugins/freeverb/CMakeLists.txt
index 1c69acfc..44a77ffa 100644
--- a/muse/plugins/freeverb/CMakeLists.txt
+++ b/muse/plugins/freeverb/CMakeLists.txt
@@ -29,4 +29,4 @@ set_target_properties (freeverb
PROPERTIES PREFIX ""
)
-install_files( /lib/muse-1.0pre1/plugins .so freeverb.so)
+install_files( /lib/${MusE_INSTALL_PATH}/plugins .so freeverb.so)
diff --git a/muse/share/html/CMakeLists.txt b/muse/share/html/CMakeLists.txt
index b5e2304c..cc28f1f9 100644
--- a/muse/share/html/CMakeLists.txt
+++ b/muse/share/html/CMakeLists.txt
@@ -21,7 +21,7 @@
#
# TODO: fill with useful data
#
-install_files( /share/muse-1.0pre1/html .html
+install_files( /share/${MusE_INSTALL_NAME}/html .html
index.html
)
diff --git a/muse/share/instruments/CMakeLists.txt b/muse/share/instruments/CMakeLists.txt
index d0fc11dc..64eb89ac 100644
--- a/muse/share/instruments/CMakeLists.txt
+++ b/muse/share/instruments/CMakeLists.txt
@@ -18,5 +18,5 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
-install_files( /share/muse-1.0pre1/instruments .*\\.idf )
+install_files( /share/${MusE_INSTALL_NAME}/instruments .*\\.idf )
diff --git a/muse/share/locale/CMakeLists.txt b/muse/share/locale/CMakeLists.txt
index 83dbdc76..f4489269 100644
--- a/muse/share/locale/CMakeLists.txt
+++ b/muse/share/locale/CMakeLists.txt
@@ -18,5 +18,5 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
-install_files( /share/muse-1.0pre1 .*\\.qm )
+install_files( /share/${MusE_INSTALL_NAME}/locale .*\\.qm )
diff --git a/muse/share/plugins/CMakeLists.txt b/muse/share/plugins/CMakeLists.txt
index 5285fa13..4df55561 100644
--- a/muse/share/plugins/CMakeLists.txt
+++ b/muse/share/plugins/CMakeLists.txt
@@ -18,5 +18,5 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
-install_files ( /share/muse-1.0pre1/plugins .*\\.ui )
+install_files ( /share/${MusE_INSTALL_NAME}/plugins .*\\.ui )
diff --git a/muse/share/templates/CMakeLists.txt b/muse/share/templates/CMakeLists.txt
index 54cb8afb..30d0f3b4 100644
--- a/muse/share/templates/CMakeLists.txt
+++ b/muse/share/templates/CMakeLists.txt
@@ -18,5 +18,5 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
-install_files ( /share/muse-1.0pre1/templates .*\\.med )
+install_files ( /share/${MusE_INSTALL_NAME}/templates .*\\.med )
diff --git a/muse/share/wallpapers/CMakeLists.txt b/muse/share/wallpapers/CMakeLists.txt
index 28600ab3..f098c244 100644
--- a/muse/share/wallpapers/CMakeLists.txt
+++ b/muse/share/wallpapers/CMakeLists.txt
@@ -18,5 +18,5 @@
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#=============================================================================
-install_files ( /share/muse-1.0pre1/wallpapers .*\\.gif )
-install_files ( /share/muse-1.0pre1/wallpapers .*\\.jpg )
+install_files ( /share/${MusE_INSTALL_NAME}/wallpapers .*\\.gif )
+install_files ( /share/${MusE_INSTALL_NAME}/wallpapers .*\\.jpg )
diff --git a/muse/synti/deicsonze/CMakeLists.txt b/muse/synti/deicsonze/CMakeLists.txt
index d508b9d1..f14609d2 100644
--- a/muse/synti/deicsonze/CMakeLists.txt
+++ b/muse/synti/deicsonze/CMakeLists.txt
@@ -39,5 +39,5 @@ set_target_properties ( deicsonze
COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all-pic.h"
)
-install_targets ( /lib/muse-1.0pre1/synthi/ deicsonze )
+install_targets ( /lib/${MusE_INSTALL_NAME}/synthi/ deicsonze )
diff --git a/muse/synti/fluid/CMakeLists.txt b/muse/synti/fluid/CMakeLists.txt
index 6fdb9488..b29015aa 100644
--- a/muse/synti/fluid/CMakeLists.txt
+++ b/muse/synti/fluid/CMakeLists.txt
@@ -38,5 +38,5 @@ set_target_properties ( fluid
COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all-pic.h"
)
-install_targets ( /lib/muse-1.0pre1/synthi/ fluid )
+install_targets ( /lib/${MusE_INSTALL_NAME}/synthi/ fluid )
diff --git a/muse/synti/fluidsynth/CMakeLists.txt b/muse/synti/fluidsynth/CMakeLists.txt
index f5e0133b..1b56396f 100644
--- a/muse/synti/fluidsynth/CMakeLists.txt
+++ b/muse/synti/fluidsynth/CMakeLists.txt
@@ -38,5 +38,5 @@ set_target_properties ( fluidsynth
COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all-pic.h"
)
-install_targets ( /lib/muse-1.0pre1/synthi/ fluidsynth )
+install_targets ( /lib/${MusE_INSTALL_NAME}/synthi/ fluidsynth )
diff --git a/muse/synti/organ/CMakeLists.txt b/muse/synti/organ/CMakeLists.txt
index 88ec29a6..26f10066 100644
--- a/muse/synti/organ/CMakeLists.txt
+++ b/muse/synti/organ/CMakeLists.txt
@@ -38,5 +38,5 @@ set_target_properties ( organ
COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all-pic.h"
)
-install_targets ( /lib/muse-1.0pre1/synthi/ organ )
+install_targets ( /lib/${MusE_INSTALL_NAME}/synthi/ organ )
diff --git a/muse/synti/s1/CMakeLists.txt b/muse/synti/s1/CMakeLists.txt
index 23a34bc2..dfd1f19e 100644
--- a/muse/synti/s1/CMakeLists.txt
+++ b/muse/synti/s1/CMakeLists.txt
@@ -25,3 +25,5 @@ add_library ( s1 SHARED s1.cpp )
#
set_target_properties ( s1 PROPERTIES PREFIX "" )
+install_targets ( /lib/${MusE_INSTALL_NAME}/synthi/ s1 )
+
diff --git a/muse/synti/vam/CMakeLists.txt b/muse/synti/vam/CMakeLists.txt
index 4d37bdc9..51c1b38a 100644
--- a/muse/synti/vam/CMakeLists.txt
+++ b/muse/synti/vam/CMakeLists.txt
@@ -38,5 +38,5 @@ set_target_properties ( vam
COMPILE_FLAGS "-include ${PROJECT_BINARY_DIR}/all-pic.h"
)
-install_targets ( /lib/muse-1.0pre1/synthi/ vam )
+install_targets ( /lib/${MusE_INSTALL_NAME}/synthi/ vam )