debian/0000755000000000000000000000000012177536411007175 5ustar debian/docs0000644000000000000000000000000711662545614010050 0ustar README debian/patches/0000755000000000000000000000000012021436312010607 5ustar debian/patches/series0000644000000000000000000000005511734121674012040 0ustar wordsize-bugs compiling-flags pango-font-fix debian/patches/compiling-flags0000644000000000000000000000175011663263175013630 0ustar --- a/src/Makefile +++ b/src/Makefile @@ -3,9 +3,9 @@ GRAPHDIR?=../graphics CXX = g++ -CXXFLAGS = -I . -I libmidi -ggdb -Wall -ansi +CXXFLAGS = -I . -I libmidi -Wall -ansi -O2 CXXFLAGS += `pkg-config --cflags gtkmm-2.4 gconfmm-2.6 gtkglextmm-1.2 alsa` -DGRAPHDIR="\"$(GRAPHDIR)\"" -LDFLAGS = `pkg-config --libs gtkmm-2.4 gconfmm-2.6 gtkglextmm-1.2 alsa` +LDLIBS = `pkg-config --libs gtkmm-2.4 gconfmm-2.6 gtkglextmm-1.2 alsa` TARGET = linthesia all: $(TARGET) @@ -16,7 +16,7 @@ MenuLayout.o DeviceTile.o StringTile.o MidiComm.o \ TrackSelectionState.o TrackTile.o PlayingState.o \ StatsState.o KeyboardDisplay.o libmidi/libmidi.a - $(CXX) $(LDFLAGS) -o $@ $^ + $(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS) libmidi/libmidi.a: $(MAKE) -C libmidi --- a/src/libmidi/Makefile +++ b/src/libmidi/Makefile @@ -1,7 +1,7 @@ # -*- mode: makefile-gmake; coding: utf-8 -*- CXX = g++ -CXXFLAGS = -I . -I .. -ansi -Wall +CXXFLAGS = -I . -I .. -ansi -Wall -O2 TARGET = libmidi.a all: $(TARGET) debian/patches/pango-font-fix0000644000000000000000000000221012021436312013361 0ustar --- a/src/TextWriter.cpp +++ b/src/TextWriter.cpp @@ -40,6 +40,9 @@ if (font_size_lookup[size] == 0) { + /* + disable to prevent segfault + // Get font from user settings if (fontname.empty()) { string key = "font_desc"; @@ -47,21 +50,25 @@ // Or set it if there is no default if (fontname.empty()) { - fontname = "Serif"; - UserSetting::Set(key, fontname); + fontname = "Serif"; + UserSetting::Set(key, fontname); } } + */ + int list_start = glGenLists(128); - fontname = STRING(fontname << " " << in_size); + /* fontname = STRING(fontname << " " << in_size); */ + fontname = "courier 12"; Pango::FontDescription* font_desc = new Pango::FontDescription(fontname); Glib::RefPtr ret = Gdk::GL::Font::use_pango_font(*font_desc, 0, 128, list_start); if (ret == 0) throw LinthesiaError("An error ocurred while trying to use use_pango_font() with " - "font '" + fontname + "'"); + "font '" + fontname + "'"); font_size_lookup[size] = list_start; font_lookup[size] = font_desc; + } } debian/patches/wordsize-bugs0000644000000000000000000000377311662545614013370 0ustar Index: linthesia/src/libmidi/Midi.cpp =================================================================== --- linthesia.orig/src/libmidi/Midi.cpp 2011-06-07 23:29:40.731882380 +0200 +++ linthesia/src/libmidi/Midi.cpp 2011-06-07 23:31:34.196263533 +0200 @@ -13,6 +13,7 @@ #include #include +#include using namespace std; @@ -50,7 +51,7 @@ // defined and will always have a 4-byte header. We use 5 so we get // free null termination. char header_id[5] = { 0, 0, 0, 0, 0 }; - unsigned long header_length; + uint32_t header_length; unsigned short format; unsigned short track_count; unsigned short time_division; @@ -74,7 +75,7 @@ } } - stream.read(reinterpret_cast(&header_length), sizeof(unsigned long)); + stream.read(reinterpret_cast(&header_length), sizeof(uint32_t)); stream.read(reinterpret_cast(&format), sizeof(unsigned short)); stream.read(reinterpret_cast(&track_count), sizeof(unsigned short)); stream.read(reinterpret_cast(&time_division), sizeof(unsigned short)); Index: linthesia/src/libmidi/MidiTrack.cpp =================================================================== --- linthesia.orig/src/libmidi/MidiTrack.cpp 2011-06-07 23:31:59.436348321 +0200 +++ linthesia/src/libmidi/MidiTrack.cpp 2011-06-07 23:32:39.252481736 +0200 @@ -11,6 +11,7 @@ #include "MidiUtil.h" #include "Midi.h" +#include #include #include #include @@ -26,10 +27,10 @@ // defined and will always have a 4-byte header. We use 5 so we get // free null termination. char header_id[5] = { 0, 0, 0, 0, 0 }; - unsigned long track_length; + uint32_t track_length; stream.read(header_id, static_cast(MidiTrackHeader.length())); - stream.read(reinterpret_cast(&track_length), sizeof(unsigned long)); + stream.read(reinterpret_cast(&track_length), sizeof(uint32_t)); if (stream.fail()) throw MidiError(MidiError_TrackHeaderTooShort); debian/control0000644000000000000000000000146012177406575010610 0ustar Source: linthesia Section: games Priority: extra Maintainer: Cleto Martín Build-Depends: debhelper (>= 9), dh-exec (>= 0.3), dpkg-dev (>= 1.16.1~), libgtkmm-2.4-dev, libgconfmm-2.6-dev, libgtkglextmm-x11-1.2-dev, libasound2-dev, libpangox-1.0-dev, xsltproc (>= 1.1.24), docbook-xsl (>= 1.75.2) Standards-Version: 3.9.3 Homepage: http://sourceforge.net/projects/linthesia/ Package: linthesia Architecture: any Recommends: timidity Depends: ${shlibs:Depends}, ${misc:Depends} Description: Fork of Synthesia to GNU/Linux Synthesia is a software which teaches you to play piano using piano-roll-style falling notes with any MIDI file. You can choose more level . You can practice using an external MIDI piano keyboard. debian/changelog0000644000000000000000000000363112177404754011056 0ustar linthesia (0.4.2-6) unstable; urgency=low * Adding new missing dependency. Bug fix: "FTBFS: OSGraphics.h:15:19: fatal error: gtkmm.h: No such file or directory", thanks to David Suárez (Closes: #713522). * Updating debian/copyright -- Cleto Martín Sun, 04 Aug 2013 08:43:06 +0100 linthesia (0.4.2-5) unstable; urgency=low * Bug fix: "fails to open", thanks to oscar rodriguez (Closes: #660807). + Using 'courier 12' as default font (patched added). * Update description and mantainer fields of debian/control. * Added debian/README.Debian. * Updated for using debhelper 9. * Removed useless debian/dirs file (debian/install instead). * Updated debian/copyright format. -- Cleto Martín Tue, 04 Sep 2012 19:50:03 +0200 linthesia (0.4.2-4) unstable; urgency=low * Bug fix: "fails to open", thanks to oscar rodriguez (Closes: #660807). -- Cleto Martín Mon, 26 Mar 2012 18:48:09 +0200 linthesia (0.4.2-3) unstable; urgency=low * Bug fix: "FTBFS with ld --as-needed", thanks to Ilya Barygin (Closes: #631710). -- Cleto Martín Thu, 24 Nov 2011 22:18:25 +0100 linthesia (0.4.2-2) unstable; urgency=low * Bug fix: "Does not work when unsigned long is not 4 bytes", thanks to Dave Wong (Closes: #627017). * Adding optimizations at compiling flags. -- Cleto Martin Angelina Wed, 08 Jun 2011 00:36:57 +0200 linthesia (0.4.2-1) unstable; urgency=low * New Upstream release (Closes: #597189). * 3.9.1 policy version adaptation. * Bug fix: "libpango error in linthesia", thanks to Roy Jamison (Closes: #600855). -- Cleto Martin Angelina Wed, 20 Oct 2010 21:06:30 +0200 linthesia (0.4-1) unstable; urgency=low * Initial release (Closes: #562487) -- Cleto Martin Angelina Fri, 18 Dec 2009 13:49:36 +0100 debian/install0000644000000000000000000000012612021442276010556 0ustar extra/linthesia.desktop usr/share/applications extra/linthesia.xpm usr/share/pixmaps debian/README.Debian0000644000000000000000000000100412021441503011212 0ustar 0.4.2-5 ------- Added a patch 'pango-font-fix' to solve the issue commented at #660807. This solution should be temporary and was extracted from comments of #567600. Basically, now it is forced to use 'courier 12' Pango Font type and this causes Linthesia's titles seems a little weird. I have tested other fonts ('serif', 'arial',...) and nothing works for me (using i915 graphics driver). Please, feel free to improve this solution. Thanks. -- Cleto Martín , Tue, 4 Sep 2012 20:06:59 +0200 debian/rules0000755000000000000000000000160712021444764010256 0ustar #!/usr/bin/make -f # -*- makefile -*- export DH_OPTIONS DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl VERSION = $(shell grep LinthesiaVersionString src/Version.h | cut -f 6 -d " " | tr -d \"\;) %: dh $@ override_dh_auto_build: debian/linthesia.6 $(MAKE) GRAPHDIR=/usr/share/linthesia/graphics debian/linthesia.6: xsltproc -o $@ --param man.charmap.use.subset "0" --novalid --nonet $(DB2MAN) debian/linthesia.xml override_dh_auto_clean: $(RM) debian/linthesia.6 dh_auto_clean build-orig-source: mkdir -p linthesia-$(VERSION) tar --exclude=debian --exclude=music --exclude=\*~ --exclude=.svn --exclude=\*.pyc \ --exclude=linthesia-$(VERSION) -cf - . \ | ( cd linthesia-$(VERSION) && tar xf - ) tar -czf ../linthesia_$(VERSION).orig.tar.gz linthesia-$(VERSION) $(RM) -r linthesia-$(VERSION) debian/linthesia.xml0000644000000000000000000000521111663265637011706 0ustar ]> &dhtitle; &dhpackage; &dhfirstname; &dhsurname; Wrote this manpage for the Debian system.
&dhemail;
2009 &dhusername; This manual page was written for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-3.
&dhucpackage; &dhsection; &dhpackage; Fork of Synthesia to GNU/Linux. &dhpackage; DESCRIPTION Synthesia is a software which teaches you to play piano using piano-roll-style falling notes with any MIDI file, available under Windows and Mac. Linthesia is not currently distributed with MIDI files. Meanwhile, you can use your own midi files with Linthesia. This manual page was written for the Debian distribution because the original program does not have a manual page. Instead, it has documentation in the GNU info 1 format; see below.
debian/source/0000755000000000000000000000000012021427276010471 5ustar debian/source/format0000644000000000000000000000001411662545614011706 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212021430164010355 0ustar 9 debian/copyright0000644000000000000000000000370312177404732011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: linthesia Source: http://sourceforge.net/projects/linthesia/ Comment: Linthesia is a fork of Synthesia (v0.6.1a), whose author is Nicholas Piegdon and was originally licensed under MIT License. Files: * Copyright: 2010 Óscar Aceña 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 program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". Files: debian/* Copyright: 2010, 2011, 2012, 2013 Cleto Martín License: GPL-3 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 3 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 program. If not, see . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". debian/manpages0000644000000000000000000000002311662545614010711 0ustar debian/linthesia.6