debian/0000755000000000000000000000000012254072240007164 5ustar debian/rules0000755000000000000000000000411012254072240010240 0ustar #! /usr/bin/make -f # -*- makefile -*- default: build #export DH_VERBOSE=1 MAINPACKAGE?=$(shell dpkg-parsechangelog | sed -n 's/Source: \(.*\)/\1/p') PACKAGE?=tuxguitar JAVA_HOME=/usr/lib/jvm/default-java JAVA?=${JAVA_HOME}/jre/bin/java JAVAC?=${JAVA_HOME}/bin/javac export JAVAC JAVA JAVA_HOME DEB_DESTDIR?=${CURDIR}/debian/${MAINPACKAGE} DEB_DESTDIR_TMP?=${CURDIR}/debian/tmp/${MAINPACKAGE} ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) XULRUNNERDEPENDS = -Vxulrunner:Depends="" else XULRUNNERDEPENDS = -Vxulrunner:Depends="xulrunner-27 | xulrunner-26.0 | xulrunner-24.0 | xulrunner-17.0 | xulrunner-10.0 | xulrunner-1.9.1" endif build: build-arch build-indep build-arch: build-stamp build-indep: build-stamp build-stamp: dh_testdir # ${MAKE} clean ${MAKE} docbook-to-man misc/${PACKAGE}.sgml > debian/${PACKAGE}.1 touch $@ distclean: clean clean: dh_testdir dh_testroot ${MAKE} -k clean distclean $@ || echo "Ignored" ${RM} -f build-stamp configure-stamp ${RM} -f debian/${PACKAGE}.1 ./TuxGuitar/tuxguitar ${RM} -rf TuxGuitar/build dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs ${MAKE} $@ DESTDIR=${DEB_DESTDIR} ${MAKE} $@-linux DESTDIR=${DEB_DESTDIR_TMP} install -d ${DEB_DESTDIR}/usr/bin/ rm -vf ${DEB_DESTDIR}/usr/share/tuxguitar/doc/LICENSE ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) sed -i -e '/^# mozilla$$/,/\}$$/ d' ${DEB_DESTDIR}/usr/bin/tuxguitar endif dh_install binary-common: dh_testdir dh_testroot dh_installchangelogs dh_installdocs --exclude=LICENSE dh_installexamples dh_install dh_installmenu dh_installman # dh_link dh_compress dh_fixperms dh_shlibdeps dh_installdeb dh_gencontrol -- $(XULRUNNERDEPENDS) dh_md5sums dh_builddeb binary-indep: build install $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common # Build architecture dependant packages using the common target. binary-arch: build install $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common binary: binary-arch binary-indep .PHONY: build clean binary-indep binary-arch binary install configure #eof "$Id: debian/rules $" debian/control0000644000000000000000000000543312254072240010574 0ustar Source: tuxguitar Section: sound Priority: optional Maintainer: Debian Java Maintainers Uploaders: Philippe Coval , tony mancill Build-Depends: debhelper (>= 7), docbook-to-man, docbook-utils, ant, gcj-jdk, default-jdk | java2-compiler, libswt-gtk-3-java, libitext-java, libasound2-dev | liboss4-salsa-dev, libfluidsynth-dev, dpkg-dev (>= 1.15.1) Standards-Version: 3.9.5 Homepage: http://www.tuxguitar.com.ar Vcs-Git: git://anonscm.debian.org/pkg-java/tuxguitar.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/tuxguitar.git Package: tuxguitar Architecture: all Depends: default-jre | java2-runtime, file, libitext-java, libswt-gtk-3-java, libswt-cairo-gtk-3-jni, libswt-webkit-gtk-3-jni, ${xulrunner:Depends}, ${misc:Depends} Recommends: tuxguitar-alsa (= ${source:Version}), tuxguitar-oss (= ${source:Version}) Suggests: tuxguitar-jsa (= ${source:Version}), lilypond Description: Multitrack guitar tablature editor and player (gp3 to gp5) TuxGuitar is a multitrack Guitar tablature editor and player. It can open GP3, GP4, and GP5 files and exports in MIDI and PDF. Package: tuxguitar-jsa Architecture: all Depends: tuxguitar (= ${source:Version}), default-jre | java2-runtime, ${misc:Depends} Description: tuxguitar plugin for sound playback using Java Sound API Use Tuxguitar along this plugin if unsure, other sounds can be used too. Package: tuxguitar-alsa Architecture: any Depends: ${shlibs:Depends}, tuxguitar (= ${source:Version}), ${misc:Depends} Suggests: timidity Description: tuxguitar plugin for sound playback using ALSA Use Tuxguitar along this plugin if your Sound Device is supported by ALSA. A MIDI expander is required (Hardware or Software). Package: tuxguitar-oss Architecture: any Depends: ${shlibs:Depends}, tuxguitar (= ${source:Version}), oss-compat, ${misc:Depends} Suggests: timidity Priority: extra Description: tuxguitar plugin for sound playback using OSS Use Tuxguitar along this plugin if your Sound Device is supported by OSS. A MIDI expander is required (Hardware or Software). Package: tuxguitar-fluidsynth Architecture: any Depends: ${shlibs:Depends}, tuxguitar (= ${source:Version}), fluidsynth, ${misc:Depends} Priority: extra Description: tuxguitar plugin for sound playback using fluidsynth Use Tuxguitar along this plugin if your audio system is configured for fluidsynth as MIDI expander. Package: tuxguitar-jack Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, tuxguitar (= ${source:Version}), libjack-jackd2-dev | libjack-dev Suggests: qjackctl Priority: extra Description: tuxguitar plugin for sound playback using JACKD Use Tuxguitar along this plugin if your Sound Device is supported by JACK. A MIDI expander is required (Hardware or Software). debian/tuxguitar-oss.install0000644000000000000000000000021012254072240013403 0ustar ./TuxGuitar-oss/tuxguitar-oss.jar usr/share/tuxguitar/plugins/ ./debian/tmp/tuxguitar/usr/lib/jni/libtuxguitar-oss-jni.so usr/lib/jni/ debian/tuxguitar.menu0000644000000000000000000000015712254072240012111 0ustar ?package(tuxguitar):needs="X11" section="Applications/Sound"\ title="tuxguitar" command="/usr/bin/tuxguitar" debian/tuxguitar-jack.install0000644000000000000000000000021312254072240013512 0ustar ./TuxGuitar-jack/tuxguitar-jack.jar usr/share/tuxguitar/plugins/ ./debian/tmp/tuxguitar/usr/lib/jni/libtuxguitar-jack-jni.so usr/lib/jni/ debian/tuxguitar.postinst0000644000000000000000000000053712254072240013032 0ustar #!/bin/sh set -e if [ "$1" = "configure" ]; then if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus fi if [ -x "`which update-mime-database 2>/dev/null`" ]; then update-mime-database /usr/share/mime fi if [ -x "`which update-desktop-database 2>/dev/null`" ]; then update-desktop-database -q fi fi #DEBHELPER# debian/source/0000755000000000000000000000000012254072240010464 5ustar debian/source/format0000644000000000000000000000001412254072240011672 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000003055512254072240011046 0ustar tuxguitar (1.2-17) unstable; urgency=medium * Team upload. * Update list of alternative xulrunner-* dependencies. * Remove debian/stamp-patched from source package. * Declare compliance with Debian Policy 3.9.5. -- gregor herrmann Tue, 17 Dec 2013 16:57:29 +0100 tuxguitar (1.2-16) unstable; urgency=low * Team upload. * Update list of xulrunner-* versions in Depends to what we have in Debian. Thanks to Andreas Beckmann for the bug report. (Closes: #726730) * Use canonical URLs for the Vcs-* fields. * debian/rules: don't set DH_VERBOSE. Makes the build output more readable. -- gregor herrmann Fri, 18 Oct 2013 20:59:10 +0200 tuxguitar (1.2-15) unstable; urgency=low * Update list of possible xulrunner dependencies (Closes: #712677) * Add "file" to Depends; it is used in /usr/bin/tuxguitar. * Allow java2-runtime (and thus openjdk-7-jre) to satisfy depends for tuxguitar-jsa. Remove sun JREs. -- tony mancill Tue, 18 Jun 2013 21:37:33 -0700 tuxguitar (1.2-14) experimental; urgency=low * Team upload. [ Philippe Coval ] * Supports also jack2 (Closes: #608041) * fix: maintainers email [ gregor herrmann ] * Make Ubuntu diff obsolete: - debian/{control,rules}: don't insert xulrunner dependency on Ubuntu and derivatives - debian/rules: remove mozilla check from tuxguitar.sh during build on Ubuntu and derivates (LP: 1123416) * Set Standards-Version to 3.9.4 (no changes). * Remove build dependency on quilt (not needed with source format '3.0 (quilt)'). * Remove duplicated sections from binary packages in debian/control. -- gregor herrmann Tue, 12 Mar 2013 21:03:54 +0100 tuxguitar (1.2-13) unstable; urgency=low [ Philippe Coval ] * upgrade xulrunner (Closes: #661216) * open to comaintenance in pkg-java team [ tony mancill ] * Convert d/copyright to machine readable format. * Update Standards-Version to 3.9.3. -- tony mancill Sat, 25 Feb 2012 10:46:31 -0800 tuxguitar (1.2-12) unstable; urgency=low * Add xulrunner-8.0 and 9.0 to list of dependencies (Closes: #647542) * Modify debian/rules for BuildArchTarget release goal. -- tony mancill Mon, 21 Nov 2011 16:25:53 -0800 tuxguitar (1.2-11) unstable; urgency=low * Reorder build depends to address kfreebsd build problem. -- tony mancill Mon, 31 Oct 2011 07:33:41 -0700 tuxguitar (1.2-10) unstable; urgency=low * debian/control: - Add xulrunner-7.0 as an alternate dependency. (Closes: #644921) * debian/patches/01-tuxguitar-rzr.patch: Handle xulrunner-7.0. * debian/patches/03-CVE-2010-3385.patch: Refresh/rediff. (Thanks to Daniel T Chen for the patch.) -- tony mancill Sun, 16 Oct 2011 08:43:16 -0700 tuxguitar (1.2-9.1) unstable; urgency=low * Non-maintainer upload, with co-maintainer's permission. * Fix "depends on obsolete xulrunner-1.9.1": update Depends and 01-tuxguitar-rzr.patch (closes: #637372). -- gregor herrmann Thu, 11 Aug 2011 22:16:07 +0200 tuxguitar (1.2-9) unstable; urgency=low * Update debian/control - build/depend on swt-gtk-3 (3.7) instead of 3.6. - replace build-dep on gcj with gcj-jdk - replace dependency on libswt-mozilla-gtk-3-jni with libswt-webkit-gtk-3-jni * Update debian/patches/01-tuxguitar-rzr.patch for classpath changes -- tony mancill Tue, 26 Jul 2011 22:59:03 -0700 tuxguitar (1.2-8) unstable; urgency=low * Update depend on swt-gtk 3.6 (Closes: #621864) * Bump Standards-Version to 3.9.2. -- tony mancill Sat, 09 Apr 2011 23:08:37 -0700 tuxguitar (1.2-7) unstable; urgency=medium * Apply patch for CVE-2010-3385 (Closes: #598307) Thanks to Etienne Millon -- tony mancill Tue, 12 Oct 2010 06:32:31 -0700 tuxguitar (1.2-6) unstable; urgency=low [ Philippe Coval ] * Vcs-Browser points to web version [ tony mancill ] * remove audio/midi from mime types in desktop file (closes: #592059) -- tony mancill Sun, 22 Aug 2010 21:56:54 -0700 tuxguitar (1.2-5) unstable; urgency=low * debian/tuxguitar.install: - Add tuxguitar-community.jar to plugins (Closes: #586968) -- tony mancill Tue, 06 Jul 2010 22:10:19 -0700 tuxguitar (1.2-4) unstable; urgency=low * Address bashism in /usr/bin/tuxguitar (Closes: #581142) (Thank you to Raphael Geissert) * Switch to dpkg-source 3.0 (quilt) format - remove debian/README.source - remove patch-related targets in debian/rules - remove build-dep on quilt * debian/compat - upgrade to debhelper 7 * Remove extraneous LICENSE file. -- tony mancill Mon, 17 May 2010 22:22:45 -0700 tuxguitar (1.2-3) unstable; urgency=low * Modify tuxguitar.sh to find swt-gtk-3.5.1.jar (Closes: #575898) -- tony mancill Tue, 04 May 2010 20:50:20 -0700 tuxguitar (1.2-2) unstable; urgency=low * Unbuild tuxguitar-gervill (Closes: #570556) : - since it depends on unpackaged component * Added jack plugin (Closes: #569999) * Merged upstream files in patch (Closes: #569910) -- Philippe Coval Sun, 21 Feb 2010 22:51:26 +0100 tuxguitar (1.2-1.1) unstable; urgency=low * Non-maintainer upload. * debian/control: - Update swt-gtk dependency to 3.5 to fix FTBFS. (Closes: #564347) - Change XS-Vcs-* fields to Vcs-*. - Add ${misc:Depends}. - Bump Standards-Version to 3.8.4. * debian/rules: Don't install redundant LICENSE doc. -- nobled Sun, 07 Feb 2010 01:40:52 +0000 tuxguitar (1.2-1) unstable; urgency=low * New upstream release (Closes: #510742) * Merged patch : tuxguitar_1.1-1ubuntu1.patch * Added Makefile : from upstream repo * debian/* : - Migrated to quilt - Updated standards -- Philippe Coval Fri, 20 Nov 2009 16:14:19 +0100 tuxguitar (1.1-1.1) unstable; urgency=low * Non-maintainer upload for transition to xulrunner 1.9.1. (Closes: #548683) * debian/control: Depend on a xulrunner-1.9.1. * misc/tuxguitar.sh: Detect xulrunner 1.9.1. -- Mike Hommey Sat, 10 Oct 2009 16:20:19 +0200 tuxguitar (1.1-1ubuntu1) karmic; urgency=low * Use Java Sound API and Gervill by default (LP: #311319) * Changed maintainer to MOTU developers * Depend on xulrunner 1.9.1 instead of 1.9 (LP: #424727) -- Teemu Heinämäki Wed, 5 Sep 2009 11:39:51 +0300 tuxguitar (1.1-1) unstable; urgency=low * New Upstream Release (Closes: #489859) (LP: #366476) * Merged patch : tuxguitar_1.0.dak-1ubuntu1.patch * debian/README.txt - suggests to install tuxguitar-jsa -- Philippe Coval Sat, 25 Apr 2009 19:49:27 +0200 tuxguitar (1.0.dak-1ubuntu1) jaunty; urgency=low * Merge from debian unstable. * debian/control - Replace build dependency openjdk-6-jdk with default-jdk. - Remove unnecessary build dependencies gcj, java-gcj-compat-dev, sun-java5-jdk, icedtea-java7-jdk, libswt3.2-gtk-java. - Replace runtime dependency openjdk-6-jre with default-jre. - Remove unnecessary runtime java-gcj-compat, sun-java6-jre, sun-java5-jre, libswt3.2-gtk-java. Replaced java-virtual-machine with java2-runtime. (LP: #250137) * debian/rules - Set JAVA_HOME to the value corresponding to default-jdk. * misc/tuxguitar.sh - Ubuntu specific change for correct path of xulrunner-1.9 installation. -- Onkar Shinde Tue, 13 Jan 2009 00:52:49 +0530 tuxguitar (1.0.dak-1) unstable; urgency=low [ Philippe Coval ] * debian/control ; debian/rules : - set to main since openjdk supports sound (Closes: #505612) - uses ${shlibs:Depends} vs hardcoded libs (Closes: #506883) - depends on at least xulrunner for browsing doc (Closes: #493557) [ Ben Hutchings ] * Move virtual packages to end of dependency alternations * Move OpenJDK dependencies to start of dependency alternations * Replace recommendation of Sun JVM with OpenJDK * Fix "2<" to "2>" in postinst and postrm * Avoid adding current directory to LD_LIBRARY_PATH -- Ben Hutchings Wed, 10 Dec 2008 03:15:10 +0000 tuxguitar (1.0-1ubuntu1) intrepid; urgency=low * fix LP: #272772: packages that Depend/Recommend/Suggest firefox (meta-package) must alternatively Depend/Recommend/Suggest abrowser - update debian/control -- Alexander Sack Mon, 22 Sep 2008 03:34:37 +0200 tuxguitar (1.0-1) unstable; urgency=low * New upstream release (Closes: #481728) also (LP: #176979, #212207) -- Philippe Coval Thu, 19 Jun 2008 00:30:30 +0200 tuxguitar (0.9.99~1.0rc4-1) unstable; urgency=low * New Upstream release (1.0-rc4 retitled to 0.9.99~1.0rc4) * Fixed plugin loading bug by hardcoding path (Closes: #479668) -- Philippe Coval Sat, 17 May 2008 01:19:00 +0200 tuxguitar (0.9.99~1.0rc3-1) unstable; urgency=low * New Upstream release (1.0-rc3 retitled to 0.9.99~1.0rc3) * Updated startup script from upstream * debian/control now build with gcj by default not openjdk (Closes: #474410) -- Philippe Coval Sat, 01 May 2008 12:16:00 +0200 tuxguitar (0.9.99~1.0rc2-2) unstable; urgency=low * ADD: Support compilers and jvm's based on classpath * FIX: arch vs indep for non i386 arch (closes: #474410) -- Philippe Coval Wed, 16 Apr 2008 19:19:52 +0200 tuxguitar (0.9.99~1.0rc2-1) unstable; urgency=low * ADD: New Upstream release (1.0-rc2 retitled to 0.9.99~1.0rc2) * FIX: Only on sun-java6 supported (Closes: #466986) * FIX: Compile in 1.4 format (Closes: #466038) * ADD: plugins ALSA and OSS (natives JNI) (Closes: #439669) -- Philippe Coval Mon, 17 Mar 2008 19:37:27 +0100 tuxguitar (0.9.1-4) unstable; urgency=low * Merged Ubuntu changes (closes: #457342) * Changed maintainer to myself * Added desktop and icon -- Philippe Coval Fri, 25 Jan 2008 21:33:37 +0100 tuxguitar (0.9.1-3ubuntu1) hardy; urgency=low * Modified debian/control and GNUmakefile to make building work (LP: #176736) * changed mantainer to Ubuntu MOTU Developers. -- Teemu Heinamaki (Hippu) Sun, 16 Dec 2007 00:02:48 +0200 tuxguitar (0.9.1-3) unstable; urgency=low * Add generic wrapper script (closes: #434181) -- Philippe Coval Mon, 23 Jul 2007 08:56:56 +0200 tuxguitar (0.9.1-2) unstable; urgency=low * Fix depend bug (closes: #427340) * Fix classpath (closes: #433821) * Fix makefile for faster build (sync upstream) -- Philippe Coval Fri, 20 Jul 2007 00:20:17 +0200 tuxguitar (0.9.1-1) unstable; urgency=low * New upstream release * added support for java6 too (closes: #409543) * Fix swt bug (closes: #406122) -- Philippe Coval Sun, 4 Feb 2007 01:41:23 +0100 tuxguitar (0.9-1) unstable; urgency=low * New upstream release -- Philippe Coval Tue, 30 Jan 2007 19:05:13 +0100 tuxguitar (0.8dfsg-1) testing-proposed-updates; urgency=medium * removed janel-ant (closes: #405295) * use sun's javac path to compile * installed german locale (closes: #398972) -- Philippe Coval Sat, 6 Jan 2007 12:17:31 +0100 tuxguitar (0.8.1-1) unstable; urgency=low * New upstream release (closes: #405295 , #398972) -- Philippe Coval Wed, 3 Jan 2007 22:08:53 +0100 tuxguitar (0.8-3) unstable; urgency=low * classpath now includes swt-gtk-3.2.1 (closes: #397368) * removed unecessary dependency on libswt-gtk-3.2-jni (closes: #396591) * package architecture is now "all" -- Philippe Coval Tue, 7 Nov 2006 21:40:45 +0100 tuxguitar (0.8-2) unstable; urgency=low * suppport command line arguments -- Philippe Coval Sun, 3 Sep 2006 11:45:09 +0200 tuxguitar (0.8-1) unstable; urgency=low * New upstream release -- Philippe Coval Mon, 28 Aug 2006 21:37:59 +0200 tuxguitar (0.7-1) unstable; urgency=low * New upstream release * updated from libswt-gtk-3.1-java to libswt-gtk-3.2-java -- Philippe Coval Thu, 3 Aug 2006 22:19:50 +0200 tuxguitar (0.6-1) unstable; urgency=low * Initial release (Closes: #374287) -- Philippe Coval Sat, 17 Jun 2006 13:19:36 +0200 debian/tuxguitar.postrm0000644000000000000000000000051412254072240012466 0ustar #!/bin/sh set -e if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi if [ "$1" = "remove" ]; then if [ -x "`which update-mime-database 2>/dev/null`" ]; then update-mime-database /usr/share/mime fi if [ -x "`which update-desktop-database 2>/dev/null`" ]; then update-desktop-database -q fi fi #DEBHELPER# debian/compat0000644000000000000000000000000212254072240010362 0ustar 7 debian/tuxguitar-alsa.install0000644000000000000000000000021212254072240013521 0ustar ./TuxGuitar-alsa/tuxguitar-alsa.jar usr/share/tuxguitar/plugins/ ./debian/tmp/tuxguitar/usr/lib/jni/libtuxguitar-alsa-jni.so usr/lib/jni/ debian/README.Debian0000644000000000000000000000121412254072240011223 0ustar tuxguitar for Debian -------------------- The package has been splited into several part, the core is still tuxguitar but the sound plugins are optional. I suggest you to install tuxguitar-jsa (note that it depends OpenJDK) and does work on most systems (including pulseaudio). Tested settings are : Sound / Midi Sequencer : TuxGuitar Sequencer MIDI Port : Gervill Note that, other JSA Sound banks can be downloaded at : http://java.sun.com/products/java-media/sound/soundbanks.html TuxGuitar-gervill sound plugin is not compiled yet since it depends on non free jvm -- Philippe Coval Fri, 07 Mar 2008 21:16:53 +0100 debian/tuxguitar.docs0000644000000000000000000000001712254072240012070 0ustar AUTHORS README debian/patches/0000755000000000000000000000000012254072240010613 5ustar debian/patches/03-CVE-2010-3385.patch0000644000000000000000000000124112254072240013447 0ustar Index: tuxguitar-1.2/misc/tuxguitar.sh =================================================================== --- tuxguitar-1.2.orig/misc/tuxguitar.sh 2011-10-15 22:36:20.000000000 -0400 +++ tuxguitar-1.2/misc/tuxguitar.sh 2011-10-15 22:36:31.000000000 -0400 @@ -131,7 +131,7 @@ && t=$(mozilla_guess_) && [ -d "$t" ] && MOZILLA_FIVE_HOME=$t if [ -d "$MOZILLA_FIVE_HOME" ] ; then export MOZILLA_FIVE_HOME - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME" + export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$MOZILLA_FIVE_HOME" else echo '$MOZILLA_FIVE_HOME not valid : check doc shipped w/ tuxguitar' fi debian/patches/series0000644000000000000000000000007712254072240012034 0ustar 01-tuxguitar-rzr.patch 02-desktop.patch 03-CVE-2010-3385.patch debian/patches/02-desktop.patch0000644000000000000000000000050212254072240013521 0ustar --- a/misc/tuxguitar.desktop +++ b/misc/tuxguitar.desktop @@ -9,5 +9,5 @@ Terminal=false Type=Application Categories=AudioVideo;Audio; -MimeType=audio/x-tuxguitar;audio/x-gtp;audio/x-ptb;audio/midi; +MimeType=audio/x-tuxguitar;audio/x-gtp;audio/x-ptb; #eof "$Id: tuxguitar.desktop,v 1.2 2008/03/22 23:32:25 rzr Exp $" debian/patches/01-tuxguitar-rzr.patch0000644000000000000000000002671412254072240014733 0ustar --- /dev/null +++ b/Makefile @@ -0,0 +1,263 @@ +#! /usr/bin/make -f +# -*- makefile -*- +#ident "$Id: Makefile,v 1.19 2008/04/17 20:06:22 rzr Exp $" +#@author: created by www.philippe.coval.online.fr -- revision: $Author: rzr $ +#licence: LGPL-2.1 +#------------------------------------------------------------------------------ +default: build + +PACKAGE?=tuxguitar + +JNI_OS?=linux +JAVA_HOME?=/usr/lib/jvm/java-6-sun/ +JAVA_VERS?=1.4 + +ITEXT_JAR?=/usr/share/java/itext.jar + +SWT_JAR?=$(shell echo ` \ + ( t=/usr/share/java/swt.jar && test -r "$$t" && echo $$t ) \ + || ( t=/usr/lib/java/swt.jar && test -r "$$t" && echo $$t ) \ + || ( t=/usr/lib/java/swt-gtk-3.6.2.jar && test -r "$$t" && echo $$t ) \ + || ( t=/usr/lib/java/swt-gtk-3.5.1.jar && test -r "$$t" && echo $$t ) \ + || ( t=/usr/lib/java/swt-gtk-3.5.jar && test -r "$$t" && echo $$t ) \ + || ( t=/etc/alternatives/swt.jar && test -r "$$t" && echo $$t ) \ +` ) +SWT_PATH?=${SWT_JAR} + +PACKAGE_JAR?=${CURDIR}/TuxGuitar/${PACKAGE}.jar +TUXGUITAR_PATH?=${PACKAGE_JAR} + +PACKAGE_EXEC?=${CURDIR}/misc/${PACKAGE}.sh + +JNILIB_SUFFIX?=.so +JNILIB_PREFIX?=lib + +subdirs?=\ + TuxGuitar \ + TuxGuitar-compat \ + TuxGuitar-ascii \ + TuxGuitar-gtp \ + TuxGuitar-musicxml \ + TuxGuitar-ptb \ + TuxGuitar-tef \ +\ + TuxGuitar-pdf \ + TuxGuitar-midi \ + TuxGuitar-tray \ + TuxGuitar-lilypond \ +\ + TuxGuitar-jsa \ +\ + TuxGuitar-converter \ + TuxGuitar-community \ + TuxGuitar-tuner \ +#}subdirs + +subdirs_jni?=\ + TuxGuitar-alsa \ + TuxGuitar-oss \ + TuxGuitar-fluidsynth \ + TuxGuitar-jack \ + #}subdirs_jni + +# +export PACKAGE_JAR +### + +out_java?=\ + ./TuxGuitar/tuxguitar.jar \ + ./TuxGuitar-compat/tuxguitar-compat.jar \ + ./TuxGuitar-lilypond/tuxguitar-lilypond.jar \ + ./TuxGuitar-midi/tuxguitar-midi.jar \ + ./TuxGuitar-gtp/tuxguitar-gtp.jar \ + ./TuxGuitar-pdf/tuxguitar-pdf.jar \ + ./TuxGuitar-tef/tuxguitar-tef.jar \ + ./TuxGuitar-ascii/tuxguitar-ascii.jar \ + ./TuxGuitar-tray/tuxguitar-tray.jar \ + ./TuxGuitar-ptb/tuxguitar-ptb.jar \ + ./TuxGuitar-musicxml/tuxguitar-musicxml.jar \ + ./TuxGuitar-converter/tuxguitar-converter.jar \ + ./TuxGuitar-community/tuxguitar-community.jar \ + ./TuxGuitar-tuner/tuxguitar-tuner.jar \ + #}out_java + +out_jsa?=TuxGuitar-jsa/tuxguitar-jsa.jar + +out_sun?=\ + TuxGuitar-library-ftp/tuxguitar-browser-ftp.jar \ + TuxGuitar-library-http/tuxguitar-library-http.jar \ + #}out_sun + +out_linux?=\ + ./TuxGuitar-alsa/tuxguitar-alsa.jar \ + ./TuxGuitar-alsa/jni/libtuxguitar-alsa-jni.so \ + ./TuxGuitar-oss/tuxguitar-oss.jar \ + ./TuxGuitar-oss/jni/libtuxguitar-oss-jni.so \ + ./TuxGuitar-fluidsynth/tuxguitar-fluidsynth.jar \ + ./TuxGuitar-fluidsynth/jni/libtuxguitar-fluidsynth-jni.so \ + ./TuxGuitar-jack/tuxguitar-jack.jar \ + ./TuxGuitar-jack/jni/libtuxguitar-jack-jni.so \ + #}out_linux + +out_windows?=TuxGuitar-winmm/tuxguitar-winmm.jar + +out_macos?=TuxGuitar-CoreAudio/tuxguitar-coreaudio.jar + +#all?=${out_java} out_${JNI_OS} ${out_jsa} ${out_sun} # TODO +all?=${out_java} ${out_${JNI_OS}} ${out_jsa} + +### + +ANT_FLAGS?=\ + -Dpath.tuxguitar="${PACKAGE_JAR}" \ + -Dpath.itext="${ITEXT_JAR}" \ + -Dpath.swt="${SWT_JAR}" \ + -Dlib.swt.jar="${SWT_JAR}" \ + -Ddist.version="java" \ + -Ddist.file="NOT_EXISTENT_FILE" \ + -Dant.build.javac.source=${JAVA_VERS} \ + -Dant.build.javac.target=${JAVA_VERS} \ + -Dbuild.jni.library.dir=. \ + -Dbuild.jni.library.extension=${JNILIB_SUFFIX} \ + -Dbuild.jni.library.prefix=${JNILIB_PREFIX} \ + -lib ${CURDIR}/TuxGuitar \ + #}ANT_FLAGS + +CFLAGS?=\ + -I$(shell gcj -print-file-name=include/) + +CFLAGS+= \ +-I${JAVA_HOME}/include/ \ +-I${JAVA_HOME}/include/${JNI_OS} + +MAKE_FLAGS+=\ + SWT_PATH=${SWT_PATH} \ + JAVA_HOME=${JAVA_HOME} \ + JNILIB_SUFFIX=${JNILIB_SUFFIX} \ + JNILIB_PREFIX=${JNILIB_PREFIX} \ + CFLAGS=${CFLAGS} + #} MAKE_FLAGS + +PREFIX?=${DESTDIR}/usr +INSTALL_BIN_DIR?=${PREFIX}/bin/ +INSTALL_LIB_DIR?=${PREFIX}/lib/jni/ +INSTALL_DOC_DIR?=${PREFIX}/share/${PACKAGE}/doc/ +INSTALL_SHARE_DIR?=${PREFIX}/share/${PACKAGE}/ +INSTALL_JAR_DIR?=${INSTALL_SHARE_DIR}/ + +build: help all + +rebuild: clean fix build + +all: ${all} + +all-java: ${out_java} + +all-linux: ${out_linux} + +all-sun: ${out_sun} + +%.jar: + cd ${@D} && ant -v -d ${ANT_FLAGS} all + +%.so: + ${MAKE} -C ${@D}/../jni/ ${@F} + +#%.native: +# make -C $$t ${MAKE_FLAGS} library_jni + +subdirs: ${subdirs} + for t in $^ ; do \ + cd "${CURDIR}/$$t" && ant -v -d ${ANT_FLAGS} build ; \ + done + +fix: overide + +overide: COPYING + +COPYING: TuxGuitar + -@cp -a $/dev/null 2>&1 || f="" echo "$f" } @@ -91,36 +94,59 @@ test -r "$t/libxpcom.so" && d="$t" t="/usr/lib/xulrunner-1.9" test -r "$t/libxpcom.so" && d="$t" + t="/usr/lib/xulrunner-1.9.1" + test -r "$t/libxpcom.so" && d="$t" + t="/usr/lib/xulrunner-5.0" + test -r "$t/libxpcom.so" && d="$t" + t="/usr/lib/xulrunner-6.0" + test -r "$t/libxpcom.so" && d="$t" + t="/usr/lib/xulrunner-7.0" + test -r "$t/libxpcom.so" && d="$t" + t="/usr/lib/xulrunner-10.0" + test -r "$t/libxpcom.so" && d="$t" + t="/usr/lib/xulrunner-17.0" + test -r "$t/libxpcom.so" && d="$t" + t="/usr/lib/xulrunner-21.0" + test -r "$t/libxpcom.so" && d="$t" echo "$d" } + # env_() { + t="/etc/default/${PACKAGE}/env.sh" + [ -r "$t" ] && . "$t" + + t="/etc/${PACKAGE}/env.sh" + [ -r "$t" ] && . "$t" + # java - [ -z ${JAVA_HOME} ] && t=$(java_guess_) && [ -d "$t" ] && JAVA_HOME=$t + [ -z ${JAVA_HOME} ] && t=$(java_guess_) && [ -d "$t" ] && JAVA_HOME="$t" if [ -d "${JAVA_HOME}" ] ; then export JAVA_HOME - JAVA=${JAVA:=${JAVA_HOME}/jre/bin/java} + JAVA="${JAVA:=${JAVA_HOME}/jre/bin/java}" [ -x ${JAVA} ] && export JAVA else JAVA=${JAVA:=java} export JAVA fi - + # mozilla - [ -z ${MOZILLA_FIVE_HOME} ] && t=$(mozilla_guess_) && [ -d "$t" ] && MOZILLA_FIVE_HOME=$t + [ -z ${MOZILLA_FIVE_HOME} ] \ + && t=$(mozilla_guess_) && [ -d "$t" ] && MOZILLA_FIVE_HOME=$t if [ -d "$MOZILLA_FIVE_HOME" ] ; then export MOZILLA_FIVE_HOME - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MOZILLA_FIVE_HOME" else - echo '$MOZILLA_FIVE_HOME not valid : check doc shipped w/ tuxguitar' + echo '$MOZILLA_FIVE_HOME not valid : check doc shipped w/ tuxguitar' fi [ ! -z ${DEBUG} ] && echo "# MOZILLA_FIVE_HOME=${MOZILLA_FIVE_HOME}" [ ! -z ${DEBUG} ] && echo "# JAVA_HOME=${JAVA_HOME}"} } + tuxguitar_() { local PACKAGE=${PACKAGE:=tuxguitar} @@ -140,11 +166,11 @@ [ -r "$t" ] && CLASSPATH=${CLASSPATH}:$t JAVA_FLAGS=${JAVA_FLAGS:="-Xms128m -Xmx128m"} - JAVA_FLAGS="\ -${JAVA_FLAGS} \ - -Djava.library.path=${PACKAGE_LIB} \ - -D${PACKAGE}.share.path=/usr/share/${PACKAGE} \ - -cp ${CLASSPATH}:${PACKAGE_CLASSPATH}" + JAVA_FLAGS=" ${JAVA_FLAGS} \ + -Djava.library.path=${PACKAGE_LIB} \ + -D${PACKAGE}.share.path=/usr/share/${PACKAGE} \ + -cp ${CLASSPATH}:${PACKAGE_CLASSPATH} \ + " local arg="" [ -z "$1" ] && arg="/usr/share/tuxguitar/tuxguitar.tg" # run java @@ -155,6 +181,7 @@ } # main + env_ tuxguitar_ "$@" debian/copyright0000644000000000000000000000175712254072240011131 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: TuxGuitar Source: http://tuxguitar.herac.com.ar/ Files: * Copyright: 2005-2009 Julian Casadesus License: LGPL-2.1+ Files: debian/* Copyright: 2006-2012 Philippe Coval License: LGPL-2.1+ License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library 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 Lesser General Public License for more details. . On Debian systems, the complete text of the GNU Lesser General Public License can be found in the file `/usr/share/common-licenses/LGPL-2.1'. debian/tuxguitar.manpages0000644000000000000000000000002312254072240012730 0ustar debian/tuxguitar.1 debian/tuxguitar-jsa.install0000644000000000000000000000007712254072240013367 0ustar ./TuxGuitar-jsa/tuxguitar-jsa.jar usr/share/tuxguitar/plugins/ debian/watch0000644000000000000000000000007612254072240010220 0ustar version=3 http://sf.net/tuxguitar/tuxguitar-src-(.*)\.tar\.gz debian/tuxguitar-fluidsynth.install0000644000000000000000000000023512254072240014777 0ustar ./TuxGuitar-fluidsynth/tuxguitar-fluidsynth.jar usr/share/tuxguitar/plugins/ ./debian/tmp/tuxguitar/usr/lib/jni/libtuxguitar-fluidsynth-jni.so usr/lib/jni/ debian/tuxguitar.install0000644000000000000000000000225012254072240012607 0ustar ./TuxGuitar/share/plugins/tuxguitar.jar usr/share/tuxguitar/ ./TuxGuitar/share/plugins/tuxguitar-ascii.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-compat.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-converter.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-gtp.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-lilypond.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-midi.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-musicxml.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-pdf.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-ptb.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-tef.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-tray.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-tuner.jar usr/share/tuxguitar/plugins/ ./TuxGuitar/share/plugins/tuxguitar-community.jar usr/share/tuxguitar/plugins/ ./misc/tuxguitar.xpm usr/share/pixmaps/ ./misc/tuxguitar.desktop usr/share/applications/ ./misc/tuxguitar.xml usr/share/mime/packages/