debian/0000755000000000000000000000000012206626673007200 5ustar debian/canorus.dirs0000644000000000000000000000002711730207070011517 0ustar usr/share/applications debian/source/0000755000000000000000000000000011730207070010463 5ustar debian/source/format0000644000000000000000000000001411730207070011671 0ustar 3.0 (quilt) debian/docs0000644000000000000000000000003711730207070010036 0ustar AUTHORS DEVELOPERS README TODO debian/canorus-data.links0000644000000000000000000000012611730207070012605 0ustar /usr/share/fonts/truetype/freefont/FreeSans.ttf /usr/share/canorus/fonts/FreeSans.ttf debian/manpages0000644000000000000000000000002111730207070010672 0ustar debian/canorus.1 debian/watch0000644000000000000000000000017012203513136010211 0ustar version=3 opts="uversionmangle=s/([a-z])/~$1/,dversionmangle=s/\+dfsg//" \ http://sf.net/canorus/canorus-(.*)\.tar\.bz2 debian/rules0000755000000000000000000000734012203503224010243 0ustar #!/usr/bin/make -f # Enable verbose builds to be able to spot missing hardening flags export VERBOSE=1 # Use all hardening features export DEB_BUILD_MAINT_OPTIONS = hardening=+all # CMake doesn't use CPPFLAGS, pass them to CFLAGS/CXXFLAGS to enable the # missing (hardening) flags. export DEB_CFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS) export DEB_CXXFLAGS_MAINT_APPEND = $(shell dpkg-buildflags --get CPPFLAGS) %: dh $@ override_dh_auto_configure: cmake . -DCMAKE_INSTALL_PREFIX="/usr" -DNO_RUBY=1 -DNO_PYTHON=1 override_dh_installchangelogs: dh_installchangelogs NEWS override_dh_install: dh_install # Copy the .desktop file, upstream misses that cp canorus.desktop $(CURDIR)/debian/canorus/usr/share/applications/ # Remove FreeSans.ttf, the package depends on ttf-freefont rm -rf $(CURDIR)/debian/canorus-data/usr/share/canorus/fonts/FreeSans.ttf override_dh_clean: dh_clean # Preserve handwritten Makefiles during clean mv doc/usersguide/Makefile doc/usersguide/Makefile.upstream mv doc/developersguide/Makefile doc/developersguide/Makefile.upstream # Remove left over files from upstream (there is no distclean target) find -type f -name "*\.qm" | xargs rm -f find -type f -name "*\.cmake" | xargs rm -f find -type f -name "Makefile" | xargs rm -f find -type f -name "CMakeCache\.txt" | xargs rm -f find -type f -name "install_manifest\.txt" | xargs rm -f find -type d -name "CMakeFiles" | xargs rm -rf # Restore handwritten Makefiles after clean mv doc/usersguide/Makefile.upstream doc/usersguide/Makefile mv doc/developersguide/Makefile.upstream doc/developersguide/Makefile # This target is for the creation of a new tarball which should # be completely free according to the DFSG. # # As we need to create a new tarball anyway, this target can be # used to clean up some cruft and unneeded files from upstream's # releases. # # NOTE: # Make sure to *not* use the included zlib sources for linking, # but the library provided by Debian. # # NOTE: # The only free example score is examples/musicxml/Echigo-Jishi.xml, # all other scores do not have a license. UPSTREAM_VERSION=0.7.1rc1 DEBIAN_VERSION=0.7.1~rc1+dfsg get-orig-source: rm -rf canorus-$(DEBIAN_VERSION)/ tar xaf canorus-$(UPSTREAM_VERSION).tar.bz2 mv canorus-$(UPSTREAM_VERSION) canorus-$(DEBIAN_VERSION) # This is needed to comply with DFSG mv canorus-$(DEBIAN_VERSION)/examples/musicxml/Echigo-Jishi.xml canorus-$(DEBIAN_VERSION)/examples/musicxml/backup find canorus-$(DEBIAN_VERSION)/examples/musicxml/ -type f -name "*\.xml" | xargs rm -rf mv canorus-$(DEBIAN_VERSION)/examples/musicxml/backup canorus-$(DEBIAN_VERSION)/examples/musicxml/Echigo-Jishi.xml # Remove upstream's debian directory find canorus-$(DEBIAN_VERSION)/ -type d -name "debian" | xargs rm -rf # Remove upstream's building information find canorus-$(DEBIAN_VERSION)/ -type d -name "\.settings" | xargs rm -rf find canorus-$(DEBIAN_VERSION)/ -type d -name "\.externalToolBuilders" | xargs rm -rf find canorus-$(DEBIAN_VERSION)/ -type f -name "\.*project" | xargs rm -rf # Remove files for different platforms find canorus-$(DEBIAN_VERSION)/ -type d -name "windows" | xargs rm -rf find canorus-$(DEBIAN_VERSION)/ -type d -name "macosx" | xargs rm -rf # Remove zlib directory find canorus-$(DEBIAN_VERSION)/ -type d -name "zlib" | xargs rm -rf tar cjf canorus_$(DEBIAN_VERSION).orig.tar.bz2 canorus-$(DEBIAN_VERSION)/ rm -rf canorus-$(DEBIAN_VERSION)/ # TODO: Provide a target to re-create the xpm pixmap for the menu # This requires gm to be installed create-menu-pixmap: # This does not work, the pixmaps are generated by hand with gimp #gm convert -resize 32x32 src/ui/images/clogosm.png debian/canorus-32x32.xpm #gm convert -resize 16x16 src/ui/images/clogosm.png debian/canorus-16x16.xpm debian/compat0000644000000000000000000000000211730207070010361 0ustar 9 debian/canorus.10000644000000000000000000000160511730207070010721 0ustar .TH CANORUS 1 "Mar 27, 2009" .SH NAME canorus \- a graphical music score editor .SH SYNOPSIS .B canorus .RI [ options ] " filename" .br .SH DESCRIPTION \fBcanorus\fP is a graphical music score editor. It supports a standard western music notation and uses a modern Qt4 GUI. Canorus is extensible by using plugins written in Ruby, Python, or native C++. Canorus uses its own .xml format for the document, but supports import and export filters for LilyPond, MusicXML, NoteEdit, PDF and Midi. .SH OPTIONS These programs follow the usual GNU command line syntax, with long options starting with two dashes (`\-'). A summary of options is included below. .TP .B \-h, \-\-help Show summary of options. .TP .B \-\-version Display the version of Canorus you're running. .SH AUTHOR This manual page was written by Matevz Jekovec , for the Debian project (but may be used by others). debian/patches/0000755000000000000000000000000012206626673010627 5ustar debian/patches/0003-Reduce-linked-libraries.patch0000644000000000000000000000134312206626444016652 0ustar From: Tobias Quathamer Date: Wed, 7 Mar 2012 21:39:40 +0100 Subject: Reduce linked libraries Reduce linking with unneeded libraries --- src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 23d81d4..6cad2a1 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -19,6 +19,9 @@ SET(CMAKE_C_FLAGS_RELEASE "-O2") SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}") SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE}") +# Do not link with unneeded libraries +SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed") + # Build universal binaries on Mac IF(APPLE) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch ppc -arch i386") debian/patches/0006-Add-lz-and-lpthread-to-linker-flags.patch0000644000000000000000000000172012206626444020677 0ustar From: Tobias Quathamer Date: Wed, 2 Mar 2011 06:00:59 +0100 Subject: Add -lz and -lpthread to linker flags When using binutils-gold, the linker uses --no-add-needed by default, resulting in an FTBFS. Closes: #554082 Thanks: Ilya Barygin --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f2fc82f..209fd62 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -629,7 +629,7 @@ ENDIF(USE_PYTHON) # command. Never remove that line :-) # Add ${QT_QTTEST_LIBRARY} below to add the Qt Test library as well # Add ${POPPLERQT4_LIBRARY} ${POPPLER_LIBRARY} to reactivate poppler libraries -TARGET_LINK_LIBRARIES(canorus ${QT_LIBRARIES} ${RUBY_LIBRARY} ${PYTHON_LIBRARY} ) +TARGET_LINK_LIBRARIES(canorus ${QT_LIBRARIES} ${RUBY_LIBRARY} ${PYTHON_LIBRARY} -lz -lpthread ) # Duma leads to a crash on libfontconfig with Ubuntu (10.04/12.04) # duma ) debian/patches/0001-Remove-extra-documentation.patch0000644000000000000000000000137112206626444017451 0ustar From: Tobias Quathamer Date: Wed, 2 Mar 2011 05:47:43 +0100 Subject: Remove extra documentation Do not install documentation, it's handled by debhelper commands. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b682492..1cd0f29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,5 +90,5 @@ ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(doc) # Install README, VERSION, COPYING and other raw txt files -INSTALL(FILES AUTHORS DEVELOPERS COPYING NEWS README VERSION DESTINATION "${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}") +# INSTALL(FILES AUTHORS DEVELOPERS COPYING NEWS README VERSION DESTINATION "${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}") debian/patches/0004-Do-not-install-userguide.patch0000644000000000000000000000317512206626444017031 0ustar From: Tobias Quathamer Date: Wed, 7 Mar 2012 21:41:33 +0100 Subject: Do not install userguide Do not install userguide, this code does not honor $(DESTDIR) --- src/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6cad2a1..f2fc82f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -716,10 +716,10 @@ INSTALL(FILES ${Canorus_Translation_Bins} DESTINATION "${CMAKE_INSTALL_PREFIX}/$ # Install fonts INSTALL(FILES ${Canorus_Fonts} DESTINATION "${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}/fonts") # Install users manual, if it exists -INSTALL(CODE "FILE(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}/doc)") -INSTALL(CODE "FILE(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}/doc/usersguide)") -FILE(GLOB Canorus_Usersguide RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ../doc/usersguide/*.qhc ../doc/usersguide/*.qch) -INSTALL(FILES ${Canorus_Usersguide} DESTINATION "${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}/doc/usersguide") +#INSTALL(CODE "FILE(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}/doc)") +#INSTALL(CODE "FILE(MAKE_DIRECTORY ${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}/doc/usersguide)") +#FILE(GLOB Canorus_Usersguide RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ../doc/usersguide/*.qhc ../doc/usersguide/*.qch) +#INSTALL(FILES ${Canorus_Usersguide} DESTINATION "${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}/doc/usersguide") # Install examples INSTALL( DIRECTORY ${Canorus_Examples} DESTINATION "${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}" ) debian/patches/0007-Do-not-update-translation-files.patch0000644000000000000000000000171212206626444020305 0ustar From: Tobias Quathamer Date: Wed, 2 Mar 2011 07:48:50 +0100 Subject: Do not update translation files During the build, translations should not be updated. Otherwise, the resulting diff will be huge. --- src/CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 209fd62..ff1f07b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -674,12 +674,12 @@ ENDIF(MINGW) ############### # Translation # ############### -ADD_CUSTOM_COMMAND( - TARGET canorus - PRE_BUILD - COMMAND ${QT_BINARY_DIR}/lupdate - ARGS -noobsolete ${Canorus_UIC_Srcs} ${Canorus_Srcs} -ts ${Canorus_Translation_Srcs} lang/template.ts -) +#ADD_CUSTOM_COMMAND( +# TARGET canorus +# PRE_BUILD +# COMMAND ${QT_BINARY_DIR}/lupdate +# ARGS -noobsolete ${Canorus_UIC_Srcs} ${Canorus_Srcs} -ts ${Canorus_Translation_Srcs} lang/template.ts +#) ADD_CUSTOM_COMMAND( TARGET canorus PRE_BUILD debian/patches/series0000644000000000000000000000056412206626444012045 0ustar 0001-Remove-extra-documentation.patch 0002-Remove-translation-template.patch 0003-Reduce-linked-libraries.patch 0004-Do-not-install-userguide.patch 0005-Complete-desktop-file.patch 0006-Add-lz-and-lpthread-to-linker-flags.patch 0007-Do-not-update-translation-files.patch 0008-Do-not-install-examples.patch 0009-Compile-with-O2.patch 0010-Fix-uninitialized-variables.patch debian/patches/0005-Complete-desktop-file.patch0000644000000000000000000000221612206626673016367 0ustar From: Tobias Quathamer Date: Wed, 2 Mar 2011 05:47:43 +0100 Subject: Complete desktop file Add some information and translation to upstream's desktop file --- canorus.desktop | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/canorus.desktop b/canorus.desktop index a392eb5..61012c8 100644 --- a/canorus.desktop +++ b/canorus.desktop @@ -1,14 +1,18 @@ [Desktop Entry] -Encoding=UTF-8 +Version=1.0 Name=Canorus GenericName=Music score editor +GenericName[de]=Notensatzprogramm GenericName[sl]=Program za pisanje not Comment=A free next-generation cross-platform music score editor! +Comment[de]=Ein freies, plattformübergreifendes Notensatzprogramm der nächsten Generation! Comment[sl]=Prost program za pisanje not naslednje generacije! +Keywords=music;score;editor;midi;audio;sequencer; +Keywords[de]=Musik;Notensatz;Editor;Midi;Audio;Sequenzer; Exec=canorus -Icon=canorus +Icon=/usr/share/canorus/images/clogosm.png Terminal=false Type=Application -Categories=Application;AudioVideo; +Categories=Music;Audio;AudioVideoEditing;Midi;Sequencer;AudioVideo;Qt StartupNotify=true MimeType=application/x-notes debian/patches/0010-Fix-uninitialized-variables.patch0000644000000000000000000001217112206626444017566 0ustar From: Tobias Quathamer Date: Fri, 16 Aug 2013 23:10:33 +0200 Subject: Fix uninitialized variables During the compilation, these warnings are treated as errors. --- src/import/musicxmlimport.cpp | 2 +- src/layout/drawablefunctionmark.cpp | 4 ++-- src/score/interval.cpp | 2 +- src/score/playablelength.cpp | 2 +- src/ui/mainwin.cpp | 6 +++--- src/widgets/actionseditor.cpp | 2 +- src/widgets/sourceview.cpp | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/import/musicxmlimport.cpp b/src/import/musicxmlimport.cpp index ae2f801..bbf8908 100644 --- a/src/import/musicxmlimport.cpp +++ b/src/import/musicxmlimport.cpp @@ -384,7 +384,7 @@ void CAMusicXmlImport::readAttributes( QString partId ) { } } - CAClef::CAPredefinedClefType t; + CAClef::CAPredefinedClefType t = CAClef::Undefined; if (sign=="G") t=CAClef::Treble; // only treble and bass clefs are supported for now else if (sign=="F") t=CAClef::Bass; diff --git a/src/layout/drawablefunctionmark.cpp b/src/layout/drawablefunctionmark.cpp index d57ab50..4895e44 100644 --- a/src/layout/drawablefunctionmark.cpp +++ b/src/layout/drawablefunctionmark.cpp @@ -260,8 +260,8 @@ CADrawableFunctionMarkSupport::~CADrawableFunctionMarkSupport() { void CADrawableFunctionMarkSupport::draw(QPainter *p, const CADrawSettings s) { QFont font("FreeSans"); QString text; - CAFunctionMark::CAFunctionType type; - bool minor; + CAFunctionMark::CAFunctionType type = _function1->functionMark()->chordArea();; + bool minor = false; //prepare drawing stuff switch (_drawableFunctionMarkSupportType) { diff --git a/src/score/interval.cpp b/src/score/interval.cpp index 948bb10..9d9acbc 100644 --- a/src/score/interval.cpp +++ b/src/score/interval.cpp @@ -65,7 +65,7 @@ CAInterval::CAInterval( CADiatonicPitch pitch1, CADiatonicPitch pitch2, bool abs int relQnt = ((quantity()-1)%7)+1; int relPLow = pLow.noteName()%7/*, relPHigh = pHigh.noteName()%7*/; - int deltaQlt; + int deltaQlt = 0; switch (relQnt) { case 1: // prime deltaQlt = 0; diff --git a/src/score/playablelength.cpp b/src/score/playablelength.cpp index fc7ba15..26e2a0a 100644 --- a/src/score/playablelength.cpp +++ b/src/score/playablelength.cpp @@ -184,7 +184,7 @@ QList CAPlayableLength::timeLengthToPlayableLengthList( int t, int currentTime = breveTime; int logCurrentMusLenPlusOne = 0; - int dots; + int dots = 0; bool findNote = true; while (workTime && (currentTime >= musicLengthToTimeLength( HundredTwentyEighth ))) { diff --git a/src/ui/mainwin.cpp b/src/ui/mainwin.cpp index d4f1077..36cdcd0 100644 --- a/src/ui/mainwin.cpp +++ b/src/ui/mainwin.cpp @@ -1742,7 +1742,7 @@ void CAMainWin::scoreViewMousePress(QMouseEvent *e, const QPoint coords) { // Insert context if (uiContextType->isChecked()) { // Add new Context - CAContext *newContext; + CAContext *newContext = NULL; CADrawableContext *dupContext = v->nearestUpContext(coords.x(), coords.y()); switch(uiContextType->currentId()) { case CAContext::Staff: { @@ -2497,7 +2497,7 @@ void CAMainWin::insertMusElementAt(const QPoint coords, CAScoreView *v) { // same code for the Rest insertion CATuplet *tuplet = static_cast(left->musElement())->tuplet(); - QList noteList; int number; int actualNumber; + QList noteList; int number = 0; int actualNumber = 0; if ( tuplet ) { noteList = tuplet->noteList(); number = tuplet->number(); @@ -2595,7 +2595,7 @@ void CAMainWin::insertMusElementAt(const QPoint coords, CAScoreView *v) { // same code for the Note insertion CATuplet *tuplet = static_cast(left->musElement())->tuplet(); - QList noteList; int number; int actualNumber; + QList noteList; int number = 0; int actualNumber = 0; if ( tuplet ) { noteList = tuplet->noteList(); number = tuplet->number(); diff --git a/src/widgets/actionseditor.cpp b/src/widgets/actionseditor.cpp index d6e4150..bd4af05 100644 --- a/src/widgets/actionseditor.cpp +++ b/src/widgets/actionseditor.cpp @@ -520,7 +520,7 @@ bool CAActionsEditor::loadActionsTable(const QString & filename, bool bSCuts/* = // Lines with '#' (comments) will be ignored QRegExp rx("^(.*)\\t|\\s*(.*)\\t|\\s*(.*)\\t|\\s*(.*)\\t|\\s*(.*)\\t|\\s*(.*)"); - int row; + int row = -1; QFile f( filename ); if ( f.open( QIODevice::ReadOnly ) ) { diff --git a/src/widgets/sourceview.cpp b/src/widgets/sourceview.cpp index 33829ea..6ee4d71 100644 --- a/src/widgets/sourceview.cpp +++ b/src/widgets/sourceview.cpp @@ -119,7 +119,7 @@ void CASourceView::on_commit_clicked() { } CASourceView *CASourceView::clone() { - CASourceView *v; + CASourceView *v = NULL; if ( document() ) v = new CASourceView( document(), static_cast(parent()) ); else if ( voice() ) @@ -131,7 +131,7 @@ CASourceView *CASourceView::clone() { } CASourceView *CASourceView::clone(QWidget *parent) { - CASourceView *v; + CASourceView *v = NULL; if ( document() ) v = new CASourceView( document(), parent ); else if ( voice() ) debian/patches/0002-Remove-translation-template.patch0000644000000000000000000000214312206626444017625 0ustar From: Tobias Quathamer Date: Wed, 2 Mar 2011 05:47:43 +0100 Subject: Remove translation template Remove the translation template from sources. --- src/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 59e1e51..23d81d4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -460,6 +460,12 @@ set_source_files_properties(${CANORUS_PYTHON_WRAP_CXX} PROPERTIES COMPILE_FLAGS # Set translation files FILE(GLOB Canorus_Translation_Srcs "lang/*.ts") # lang/*.ts -> Canorus_Translation_Srcs +# Remove template.ts from sources list, if it's included +FILE(GLOB Canorus_Translation_Template "lang/template.ts") +LIST(LENGTH Canorus_Translation_Template Template_Found) +IF(Template_Found) + LIST(REMOVE_ITEM Canorus_Translation_Srcs ${Canorus_Translation_Template}) +ENDIF(Template_Found) STRING(REGEX REPLACE "\\.ts" ".qm" Canorus_Translation_Bins "${Canorus_Translation_Srcs}") # Set Canorus_Translation_Bins to same values as Canorus_Translation_Srcs with different extensions SET(Canorus_Fonts # Music fonts needed by Canorus debian/patches/0008-Do-not-install-examples.patch0000644000000000000000000000171012206626444016650 0ustar From: Tobias Quathamer Date: Wed, 14 Mar 2012 15:10:17 +0100 Subject: Do not install examples Examples are covered by debhelper --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ff1f07b..24a1ffd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -721,7 +721,7 @@ INSTALL(FILES ${Canorus_Fonts} DESTINATION "${CMAKE_INSTALL_PREFIX}/${CANORUS_IN #FILE(GLOB Canorus_Usersguide RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ../doc/usersguide/*.qhc ../doc/usersguide/*.qch) #INSTALL(FILES ${Canorus_Usersguide} DESTINATION "${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}/doc/usersguide") # Install examples -INSTALL( DIRECTORY ${Canorus_Examples} DESTINATION "${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}" ) +#INSTALL( DIRECTORY ${Canorus_Examples} DESTINATION "${CMAKE_INSTALL_PREFIX}/${CANORUS_INSTALL_DATA_DIR}" ) IF(MINGW) # Install Qt libs debian/patches/0009-Compile-with-O2.patch0000644000000000000000000000147012206626444015053 0ustar From: Simon Ruderich Date: Tue, 20 Mar 2012 10:38:37 +0100 Subject: Compile with -O2. Necessary for -D_FORTFY_SOURCE=2 and generally recommened (policy 10.1). --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 24a1ffd..432b7fd 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -13,7 +13,7 @@ IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE Debug) ENDIF(NOT CMAKE_BUILD_TYPE) -SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -fstack-protector-all -Wall -Werror -Wuninitialized -Wtype-limits -Wstack-protector") +SET(CMAKE_C_FLAGS_DEBUG "-O2 -g -fstack-protector-all -Wall -Werror -Wuninitialized -Wtype-limits -Wstack-protector") SET(CMAKE_C_FLAGS_RELEASE "-O2") SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}") debian/copyright0000644000000000000000000000616212203513136011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Canorus Upstream-Contact: Matevž Jekovec Source: http://www.canorus.org/ Files: * Copyright: © 2006-2012 Matevž Jekovec © 2006-2012 Reinhard Katzmann © 2006-2012 Itay Perl © 2006-2012 Sam Hernandez © 2006-2012 Erlend Aasland © 2006-2012 Georg Rudolph © 2006-2012 Erik Magnus Johansson © 2006-2012 Štefan Sakalík License: GPL-2+ Files: debian/* Copyright: © 2009-2013 Tobias Quathamer License: GPL-2+ Files: src/fonts/*.ttf Copyright: © 1999, (URW)++ Design & Development © 2001-2005, Cyrillic glyphs added by Valek Filippov © LilyPond project © 2002, 2003, 2005, Free Software Foundation License: GPL-2+ Files: examples/musicxml/* Copyright: © 2005 Tom Potter License: public-domain Transcription donated to the public domain, 2005 by Tom Potter Files: src/rtmidi/* Copyright: © 2003-2009, Gary P. Scavone License: permissive Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . Any person wishing to distribute modifications to the Software is requested to send the modifications to the original developer so that they can be incorporated into the canonical version. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. License: GPL-2+ This package 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 package 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 package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. debian/control0000644000000000000000000000302712203513136010567 0ustar Source: canorus Section: sound Priority: optional Maintainer: Tobias Quathamer Build-Depends: debhelper (>= 9), cmake, libasound2-dev, libqt4-dev, zlib1g-dev Standards-Version: 3.9.4 Homepage: http://www.canorus.org/ Vcs-Git: git://anonscm.debian.org/users/toddy/debian/canorus.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=users/toddy/debian/canorus.git;a=summary Package: canorus Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, canorus-data Recommends: lilypond Suggests: timidity | fluidsynth Description: graphical music score editor Canorus is a graphical music score editor written for the Qt4 toolkit. It is a sequel of the well-known music score editor for Linux, NoteEdit. Canorus uses LilyPond for music engraving to achieve a very high quality in the resulting documents. . Canorus offers a number of import and export filters for LilyPond, MusicXML, Midi, NoteEdit and others. Package: canorus-data Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ttf-freefont Recommends: canorus Description: data files for canorus, a graphical music score editor Canorus is a graphical music score editor written for the Qt4 toolkit. It is a sequel of the well-known music score editor for Linux, NoteEdit. Canorus uses LilyPond for music engraving to achieve a very high quality in the resulting documents. . Canorus offers a number of import and export filters for LilyPond, MusicXML, Midi, NoteEdit and others. . This package contains architecture independent data files for canorus. debian/canorus-32x32.xpm0000644000000000000000000001471511730207070012152 0ustar /* XPM */ static char * canorus_32x32_xpm[] = { "32 32 273 2", " c None", ". c #FBB756", "+ c #F2A136", "@ c #FFF3C7", "# c #F6CA82", "$ c #EE8608", "% c #FFF1C2", "& c #F6D08E", "* c #E5840A", "= c #F4CF8E", "- c #E68307", "; c #EDB159", "> c #FFEEBE", ", c #FEEAB6", "' c #EDC684", ") c #E1B46C", "! c #D6A65C", "~ c #BF8739", "{ c #F98C04", "] c #F7B251", "^ c #F9D28E", "/ c #FFF1C3", "( c #FFF2C4", "_ c #FEEBB9", ": c #F8DDA6", "< c #D39949", "[ c #D3A259", "} c #D0A25D", "| c #F2D8A2", "1 c #F5DEA9", "2 c #B48644", "3 c #FDB14A", "4 c #FFEDBB", "5 c #FFECBA", "6 c #F2CA86", "7 c #D28018", "8 c #FFF1C1", "9 c #EDCC8E", "0 c #A6742F", "a c #F5DFAC", "b c #C9A971", "c c #FDC672", "d c #FFEEBF", "e c #FDE7B3", "f c #CA7D1B", "g c #ECCB8F", "h c #DEC491", "i c #CEB480", "j c #FEBF64", "k c #FFEBB8", "l c #FFEAB5", "m c #FFEAB6", "n c #FFECB8", "o c #E1A44E", "p c #C17717", "q c #FFF0BF", "r c #EAC98C", "s c #906123", "t c #BB9961", "u c #E2CA95", "v c #FFF1BE", "w c #8D6F41", "x c #FD9F25", "y c #FEE5A7", "z c #FFE09F", "A c #FFE1A0", "B c #FFE6A7", "C c #CF811B", "D c #B97013", "E c #FFE7A9", "F c #E8C27C", "G c #A37533", "H c #FFEBAD", "I c #FEE3A4", "J c #FFE3A5", "K c #FEE3A5", "L c #F3D79B", "M c #FDC86F", "N c #FED789", "O c #FFD789", "P c #FFD78A", "Q c #FFD88A", "R c #FFDC90", "S c #B06A0F", "T c #FFDD92", "U c #E6B96C", "V c #FAD58A", "W c #FED98E", "X c #FFD98E", "Y c #FFDA8F", "Z c #FFD98F", "` c #FFE094", " . c #6F5228", ".. c #F79314", "+. c #FFD179", "@. c #FFCE73", "#. c #FFCE74", "$. c #F8C469", "%. c #A8630C", "&. c #FFD47B", "*. c #E4B15B", "=. c #683700", "-. c #FFD87F", ";. c #FFD078", ">. c #FFD079", ",. c #FFD37B", "'. c #876835", "). c #F6A32D", "!. c #FFC45D", "~. c #FFC55E", "{. c #FFC45E", "]. c #FFC55F", "^. c #F7BB55", "/. c #9F5D08", "(. c #FFCB65", "_. c #E2A94A", ":. c #EDB757", "<. c #FEC662", "[. c #FFC763", "}. c #FFCF69", "|. c #513915", "1. c #F6A730", "2. c #FFBB47", "3. c #FFBB48", "4. c #FFBC49", "5. c #F6B241", "6. c #965606", "7. c #FFC14E", "8. c #DFA039", "9. c #764A0F", "0. c #F4B448", "a. c #FFC14F", "b. c #FFC04E", "c. c #FFC650", "d. c #815C22", "e. c #F6A325", "f. c #FFB232", "g. c #FFB233", "h. c #F5A92E", "i. c #8D5103", "j. c #FFB837", "k. c #DD9829", "l. c #7C5213", "m. c #895D18", "n. c #402706", "o. c #F69D16", "p. c #FFA81C", "q. c #FFA91C", "r. c #FFA91D", "s. c #F4A01A", "t. c #834A01", "u. c #FFAF20", "v. c #DC9017", "w. c #F69704", "x. c #FF9F05", "y. c #FF9F06", "z. c #F49706", "A. c #7B4400", "B. c #FFA409", "C. c #DA8706", "D. c #F59502", "E. c #FF9D03", "F. c #FF9C02", "G. c #F29401", "H. c #744100", "I. c #FFA102", "J. c #D88301", "K. c #E78A05", "L. c #FF9D08", "M. c #F19407", "N. c #6E3D00", "O. c #FFA108", "P. c #D68205", "Q. c #D67E06", "R. c #FF9D0E", "S. c #FF9D0D", "T. c #F1940B", "U. c #673A00", "V. c #FFA20E", "W. c #D3810A", "X. c #5A3704", "Y. c #B46602", "Z. c #FFA114", "`. c #FF9E13", " + c #F09411", ".+ c #613701", "++ c #FFA313", "@+ c #D1810E", "#+ c #704507", "$+ c #D2820E", "%+ c #E18811", "&+ c #FE9D18", "*+ c #FF9E19", "=+ c #FF9E18", "-+ c #FFA119", ";+ c #5B3302", ">+ c #FFA319", ",+ c #CF7F12", "'+ c #ED9315", ")+ c #603B08", "!+ c #9F5B05", "~+ c #FFA220", "{+ c #FF9E1E", "]+ c #FFA21F", "^+ c #704004", "/+ c #553103", "(+ c #FFA31E", "_+ c #CD7F16", ":+ c #583609", "<+ c #ED931A", "[+ c #BC7011", "}+ c #FFA125", "|+ c #FF9F23", "1+ c #FFA023", "2+ c #94580E", "3+ c #4F2D04", "4+ c #FFA425", "5+ c #CB7E1B", "6+ c #211404", "7+ c #FFA523", "8+ c #4D2F0A", "9+ c #BF7417", "0+ c #FFA22A", "a+ c #FE9E29", "b+ c #FE9E28", "c+ c #F69926", "d+ c #4B2B05", "e+ c #FFA42A", "f+ c #C97D1E", "g+ c #130C02", "h+ c #E08C23", "i+ c #7B4D12", "j+ c #92570F", "k+ c #FA9D2D", "l+ c #FFA02E", "m+ c #C17820", "n+ c #3A2204", "o+ c #FFA530", "p+ c #C77C23", "q+ c #58360F", "r+ c #FFA62F", "s+ c #8B5618", "t+ c #432500", "u+ c #9A5E19", "v+ c #E08C2C", "w+ c #FFA736", "x+ c #FFA735", "y+ c #FE9F33", "z+ c #E28D2D", "A+ c #492D0E", "B+ c #653F14", "C+ c #7D4E19", "D+ c #DC892C", "E+ c #EC942F", "F+ c #3B250B", "G+ c #351F06", "H+ c #89551C", "I+ c #FFA33A", "J+ c #FC9E38", "K+ c #BF782A", "L+ c #B47127", "M+ c #7F4F1B", "N+ c #3E270D", "O+ c #150B01", "P+ c #FFA32F", "Q+ c #C37722", "R+ c #0C0600", "S+ c #FF9B11", "T+ c #C4720C", "U+ c #FF9900", "V+ c #BE6B00", "W+ c #7E4700", "X+ c #4B2A00", " . + ", " @ # ", " $ % & ", " * % = ", " - ; > , ' ) ! ~ ", " { ] ^ / ( _ : < [ } | 1 2 ", " 3 _ 4 5 6 7 8 9 0 a b ", " c d _ _ e f 8 g h i ", " j k l m n o p q r s t u v w ", " x y z A A B C D E F G H I J K L ", " M N O P Q R S T U V W X Y Z ` . ", " ..+.@.#.#.#.$. %.&.*. =.-.;.>.>.>.,.'. ", " ).!.~.{.~.].^. /.(._. :.<.[.[.[.}.|. ", " 1.2.3.3.3.4.5. 6.7.8. 9.0.a.b.c.d. ", " e.f.f.f.g.g.h. i.j.k. l.m.n. ", " o.p.q.p.r.r.s. t.u.v. ", " w.x.x.x.y.y.z. A.B.C. ", " D.E.E.E.F.F.G. H.I.J. ", " K.L.L.L.L.L.M. N.O.P. ", " Q.R.S.R.R.S.T. U.V.W. X. ", " Y.Z.`.`.`.`. + .+++@+ #+$+ ", " %+&+*+=+=+-+ ;+>+,+ '+)+ ", " !+~+{+{+{+]+^+ /+(+_+ :+<+ ", " [+}+|+|+1+2+ 3+4+5+ 6+7+8+ ", " 9+0+a+b+c+ d+e+f+ g+h+i+ ", " j+k+l+l+m+n+o+p+ q+r+s+ ", " t+u+v+w+x+y+z+A+B+C+D+E+F+ ", " G+H+I+J+K+L+M+N+ ", " O+P+Q+ ", " R+S+T+ ", " U+V+ ", " W+X+ "}; debian/canorus-16x16.xpm0000644000000000000000000000320611730207070012147 0ustar /* XPM */ static char * canorus_16x16_xpm[] = { "16 16 86 1", " c None", ". c #FCBF65", "+ c #F1AD4F", "@ c #F8CA80", "# c #E9B262", "$ c #F7C374", "% c #FCE3AB", "& c #EFCC8E", "* c #D8AA63", "= c #DDB87A", "- c #FDC570", "; c #FFEFBF", "> c #F4D190", ", c #ECC17B", "' c #DEB16C", ") c #D2B47D", "! c #FEBE5F", "~ c #FFE8B0", "{ c #FFEAB2", "] c #E9C07A", "^ c #D7AB66", "/ c #BD9556", "( c #E8CC92", "_ c #E3CA94", ": c #FED17C", "< c #FFD37F", "[ c #FED17E", "} c #E3B05B", "| c #D09C4C", "1 c #FFD887", "2 c #FED584", "3 c #FFDC89", "4 c #F5A129", "5 c #FFC254", "6 c #FFC054", "7 c #FABC4F", "8 c #DE9F3C", "9 c #C88D32", "0 c #D8A044", "a c #FFC75A", "b c #E5AF4F", "c c #EF9716", "d c #FFAE28", "e c #FAAA26", "f c #D98F1D", "g c #C17F19", "h c #EB8B01", "i c #FF9E03", "j c #FF9D03", "k c #F99903", "l c #D48103", "m c #BA7002", "n c #DA8005", "o c #FF9E0C", "p c #FF9D0B", "q c #F8990A", "r c #CE7D07", "s c #B36C06", "t c #FA9A15", "u c #FE9D16", "v c #FC9C15", "w c #CA7B0F", "x c #AB680C", "y c #8E570B", "z c #8C5609", "A c #C77711", "B c #FFA122", "C c #FFA222", "D c #C57917", "E c #A46512", "F c #B06D15", "G c #BA7118", "H c #FFA22D", "I c #CF8122", "J c #B46F1C", "K c #9C6019", "L c #B7721F", "M c #B26F22", "N c #EC9432", "O c #C17929", "P c #8B571D", "Q c #A46721", "R c #B16914", "S c #854F0F", "T c #8B4E00", "U c #714000", " .+ ", " @# ", " $%&*= ", " -;>,' ) ", " !~{ ]^ /(_ ", " :<[ }| 123 ", " 4567 89 0ab ", " cdde fg ", " hijk lm ", " nopq rs ", " tuv wx yz ", " ABC DE F ", " GHIJK L ", " MNOPQ ", " RS ", " TU "}; debian/canorus-data.install0000644000000000000000000000003511730207070013132 0ustar debian/tmp/usr/share/canorus debian/canorus.examples0000644000000000000000000000001311730207070012367 0ustar examples/* debian/canorus.install0000644000000000000000000000015311730207070012224 0ustar debian/tmp/usr/bin debian/canorus-32x32.xpm usr/share/pixmaps/ debian/canorus-16x16.xpm usr/share/pixmaps/ debian/menu0000644000000000000000000000042211730207070010050 0ustar ?package(canorus): \ needs="X11" \ section="Applications/Sound" \ title="Canorus" \ command="/usr/bin/canorus" \ longtitle="Music score editor" \ icon32x32="/usr/share/pixmaps/canorus-32x32.xpm" \ icon16x16="/usr/share/pixmaps/canorus-16x16.xpm" debian/changelog0000644000000000000000000000540612206626673011057 0ustar canorus (0.7.1~rc1+dfsg-1) unstable; urgency=low * Imported Upstream version 0.7.1~rc1+dfsg. This fixes a crash when saving a document. Closes: #679297 * Update get-orig-source target in debian/rules * Refresh patches to apply cleanly * New patch to initialize undefined variables * Add new key "Keywords" to .desktop file * Update Standards-Version to 3.9.4, no changes needed * Update debian/copyright * Change watch file to look for upstream tarballs again -- Tobias Quathamer Mon, 26 Aug 2013 12:26:58 +0200 canorus (0.7+dfsg+svn1256-2) unstable; urgency=low * Pass CPPFLAGS to CFLAGS/CXXFLAGS. CMake does not use CPPFLAGS, so this is needed to enable the missing hardening flags. Thanks to Simon Ruderich (Closes: #664168) * Compile with -O2 to use -D_FORTIFY_SOURCE=2. Thanks to Simon Ruderich -- Tobias Quathamer Tue, 20 Mar 2012 10:44:32 +0100 canorus (0.7+dfsg+svn1256-1) unstable; urgency=low * Imported Upstream version 0.7+dfsg+svn1256 * Refresh debian/patches * Use svn checkout for tarball creation * Switch to debhelper v9 * Use machine-readable copyright format v1.0 * Add git repository URL to debian/control * Use all hardening features in DEB_BUILD_MAINT_OPTIONS * Update to Standards-Version 3.9.3 * Remove obsolete download location from watch file -- Tobias Quathamer Wed, 14 Mar 2012 21:59:20 +0100 canorus (0.7-3) unstable; urgency=low * Add "-lz -lpthread" to linker flags, fixes an FTBFS with binutils-gold. Thanks to Ilya Barygin for the patch. Closes: #554082 * Use git-buildpackage to handle Debian patches * Update years in debian/copyright * Clean up debian/rules * Switch to debhelper v8 * Update Standards-Version to 3.9.1 -- Tobias Quathamer Wed, 02 Mar 2011 10:49:02 +0100 canorus (0.7-2) unstable; urgency=low * Convert to dpkg source format 3.0 (quilt) and remove quilt from Build-Depends * Build-Depend on libasound2-dev instead of libasound-dev * Convert clogosm.png again to 16x16 and 32x32 xpm images, something went wrong the first time * debian/patches: - Remove 50-fix-working-directory-for-lilypond, it's no longer needed with lilypond >= 2.12 - Add 60-complete-desktop-file to add more information to upstream's canorus.desktop file * Install canorus.desktop file to provide a menu entry in KDE and GNOME. Closes: #557705 * Update Standards-Version to 3.8.3, no changes needed -- Tobias Quathamer Thu, 26 Nov 2009 16:53:27 +0100 canorus (0.7-1) unstable; urgency=low * Initial release (Closes: #461914) -- Tobias Quathamer Tue, 31 Mar 2009 11:29:13 +0200