diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2008-03-13 00:16:17 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2008-03-13 00:16:17 +0000 |
commit | 841c09214062415bcc469bc3635f2ef497fecd5f (patch) | |
tree | 159668881aca45ff3158f96138d75c9c2b7bde83 /audio/tuxguitar/files | |
parent | 163a0f52bd50c3a2cea76535ba31906d6aa3ac6a (diff) | |
download | ports-841c09214062415bcc469bc3635f2ef497fecd5f.tar.gz ports-841c09214062415bcc469bc3635f2ef497fecd5f.zip |
Notes
Diffstat (limited to 'audio/tuxguitar/files')
-rw-r--r-- | audio/tuxguitar/files/patch-Makefile | 42 | ||||
-rw-r--r-- | audio/tuxguitar/files/patch-TuxGuitar-oss-jni_GNUmakefile | 10 | ||||
-rw-r--r-- | audio/tuxguitar/files/patch-build-freebsd.xml | 63 | ||||
-rw-r--r-- | audio/tuxguitar/files/patch-build.properties | 64 | ||||
-rw-r--r-- | audio/tuxguitar/files/tuxguitar.in | 21 |
5 files changed, 73 insertions, 127 deletions
diff --git a/audio/tuxguitar/files/patch-Makefile b/audio/tuxguitar/files/patch-Makefile new file mode 100644 index 000000000000..4839d357aed4 --- /dev/null +++ b/audio/tuxguitar/files/patch-Makefile @@ -0,0 +1,42 @@ +--- Makefile.orig 2008-03-11 22:09:54.000000000 +0100 ++++ Makefile 2008-03-12 21:23:14.000000000 +0100 +@@ -8,16 +8,16 @@ + + PACKAGE?=tuxguitar + +-JNI_OS?=linux ++JNI_OS?=freebsd + JAVA_HOME?=/usr/lib/jvm/java-6-sun/ + JAVA_VERS?=1.4 + +-ITEXT_JAR?=/usr/share/java/itext.jar ++ITEXT_JAR?=$(JAVALIBDIR)/itext.jar + + # debian/3.3 + #SWT_PATH?=/usr/share/java/swt.jar + # ubuntu/3.2 +-SWT_JAR?=/usr/lib/java/swt.jar ++SWT_JAR?=$(JAVALIBDIR)/swt.jar + SWT_PATH?=${SWT_JAR} + + PACKAGE_JAR?=${CURDIR}/TuxGuitar/${PACKAGE}.jar +@@ -75,6 +75,10 @@ + ./TuxGuitar-oss/tuxguitar-oss.jar \ + #}jars_linux + ++jars_freebsd?=\ ++ ./TuxGuitar-oss/tuxguitar-oss.jar \ ++ #}jars_freebsd ++ + jars_windows?=TuxGuitar-winmm/tuxguitar-winmm.jar + + jars_macos?=TuxGuitar-CoreAudio/tuxguitar-coreaudio.jar +@@ -124,6 +128,8 @@ + + all_linux: ${all_linux} + ++all_freebsd: ${all_freebsd} ++ + all_sun: ${all_sun} + + %.jar: diff --git a/audio/tuxguitar/files/patch-TuxGuitar-oss-jni_GNUmakefile b/audio/tuxguitar/files/patch-TuxGuitar-oss-jni_GNUmakefile new file mode 100644 index 000000000000..076ca75799ec --- /dev/null +++ b/audio/tuxguitar/files/patch-TuxGuitar-oss-jni_GNUmakefile @@ -0,0 +1,10 @@ +--- TuxGuitar-oss/jni/GNUmakefile.orig 2008-03-12 21:27:15.000000000 +0100 ++++ TuxGuitar-oss/jni/GNUmakefile 2008-03-12 21:27:23.000000000 +0100 +@@ -1,6 +1,6 @@ + CXX = gcc + +-INCLUDES = -I $(JAVA_HOME)/include/ -I $(JAVA_HOME)/include/linux/ ++INCLUDES = -I $(JAVA_HOME)/include/ -I $(JAVA_HOME)/include/freebsd + + LIBRARY = $(LIBRARY_PREFIX)$(LIBRARY_NAME)$(LIBRARY_EXTENSION) + diff --git a/audio/tuxguitar/files/patch-build-freebsd.xml b/audio/tuxguitar/files/patch-build-freebsd.xml deleted file mode 100644 index ef175f7a975f..000000000000 --- a/audio/tuxguitar/files/patch-build-freebsd.xml +++ /dev/null @@ -1,63 +0,0 @@ ---- build-freebsd.xml.orig Thu Apr 26 14:30:52 2007 -+++ build-freebsd.xml Thu Apr 26 14:30:39 2007 -@@ -0,0 +1,60 @@ -+<?xml version="1.0" encoding="iso-8859-1"?> -+ -+<project name="Tux Guitar" basedir="." > -+ <description> -+ Tux-Guitar -+ </description> -+ -+ <property name="file.script" value="tuxguitar" /> -+ <property name="file.properties" value="${src.build.dir}${file.separator}defaults.properties" /> -+ -+ <target name="clean" > -+ <delete quiet="true" file="tuxguitar" /> -+ </target> -+ -+ <target name="install" > -+ <mkdir dir="${build.bin.dir}" /> -+ <copy todir="${build.bin.dir}"> -+ <fileset file="${file.script}"/> -+ </copy> -+ <chmod file="${build.bin.dir}/${file.script}" perm="755"/> -+ </target> -+ -+ <target name="build" > -+ <echo file="${file.properties}" append="false">font.default=Sans,6,2${line.separator}</echo> -+ <echo file="${file.properties}" append="true">font.note=Sans,7,1${line.separator}</echo> -+ <echo file="${file.properties}" append="true">font.time-signature=Sans,13,3${line.separator}</echo> -+ <echo file="${file.properties}" append="true">font.printer.default=Sans,6,2${line.separator}</echo> -+ <echo file="${file.properties}" append="true">font.printer.note=Sans,6,0${line.separator}</echo> -+ <echo file="${file.properties}" append="true">font.printer.time-signature=Sans,12,3${line.separator}</echo> -+ -+ -+ <echo file="${file.script}" append="false">#!/bin/sh${line.separator}</echo> -+ <echo file="${file.script}" append="true">##SCRIPT DIR${line.separator}</echo> -+ <echo file="${file.script}" append="true">DIR_NAME=`dirname "$0"`${line.separator}</echo> -+ <echo file="${file.script}" append="true">DIR_NAME=`cd "$DIR_NAME"; pwd`${line.separator}</echo> -+ <echo file="${file.script}" append="true">cd "${DIR_NAME}"${line.separator}</echo> -+ <echo file="${file.script}" append="true">##JAVA${line.separator}</echo> -+ <echo file="${file.script}" append="true">if [ "${JAVA}" = "" ]; then${line.separator}</echo> -+ <echo file="${file.script}" append="true"> if [ "${JAVA_HOME}" != "" ]; then${line.separator}</echo> -+ <echo file="${file.script}" append="true"> JAVA=${JAVA_HOME}/bin/java${line.separator}</echo> -+ <echo file="${file.script}" append="true"> else${line.separator}</echo> -+ <echo file="${file.script}" append="true"> JAVA=java${line.separator}</echo> -+ <echo file="${file.script}" append="true"> fi${line.separator}</echo> -+ <echo file="${file.script}" append="true">fi${line.separator}</echo> -+ <echo file="${file.script}" append="true">##CLASSPATH${line.separator}</echo> -+ <echo file="${file.script}" append="true">CLASSPATH=$CLASSPATH:${build.jar.dir}TuxGuitar.jar:${lib.swt.jar}:${lib.itext.jar}:${build.share.dir}${line.separator}</echo> -+ <echo file="${file.script}" append="true">##LIBRARY_PATH${line.separator}</echo> -+ <echo file="${file.script}" append="true">LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${lib.swt.jni}${line.separator}</echo> -+ <echo file="${file.script}" append="true">##MAINCLASS${line.separator}</echo> -+ <echo file="${file.script}" append="true">MAINCLASS=org.herac.tuxguitar.gui.TuxGuitar${line.separator}</echo> -+ <echo file="${file.script}" append="true">##JVM ARGUMENTS${line.separator}</echo> -+ <echo file="${file.script}" append="true">VM_ARGS="-Xms128m -Xmx128m"${line.separator}</echo> -+ <echo file="${file.script}" append="true">##LAUNCH${line.separator}</echo> -+ <echo file="${file.script}" append="true">${JAVA} ${VM_ARGS} -cp :${CLASSPATH} -Djava.library.path="${LD_LIBRARY_PATH}" ${MAINCLASS} "$1" "$2"${line.separator}</echo> -+ <chmod file="${file.script}" perm="755"/> -+ </target> -+ -+ <target name="package" /> -+ -+</project> diff --git a/audio/tuxguitar/files/patch-build.properties b/audio/tuxguitar/files/patch-build.properties deleted file mode 100644 index faa6df6a761b..000000000000 --- a/audio/tuxguitar/files/patch-build.properties +++ /dev/null @@ -1,64 +0,0 @@ ---- build.properties.orig Tue Jan 22 22:30:10 2008 -+++ build.properties Thu Apr 26 22:47:43 2007 -@@ -1,51 +1,11 @@ --########## DEFAULT LINUX BUILD PROPERTIES ########## --lib.swt.jni=lib/ --lib.swt.jar=lib/swt.jar --lib.itext.jar=lib/itext-1.4.5.jar --lib.janel-ant.jar=lib/janel-ant-0.1.jar -+########## FREEBSD BUILD PROPERTIES ########## -+lib.swt.jni=/usr/local/lib -+lib.swt.jar=/usr/local/share/java/classes/swt.jar -+lib.itext.jar=/usr/local/share/java/classes/itext.jar - build.version=0.9 --build.dist=linux --build.jar.dir=./ --build.bin.dir=./ --build.share.dir=./share/ --build.doc.dir=./doc/ -+build.dist=freebsd -+build.jar.dir=/usr/local/share/java/classes/ -+build.bin.dir=/usr/local/bin -+build.share.dir=/usr/local/share/tuxguitar/ -+build.doc.dir=/usr/local/share/doc/TuxGuitar-${build.version} - build.manifest.classpath=${lib.swt.jar} ${lib.itext.jar} ${build.share.dir} -- --########## UBUNTU DAPPER BUILD PROPERTIES ########## --#lib.swt.jni=/usr/lib/jni/ --#lib.swt.jar=/usr/lib/java/swt.jar --#lib.itext.jar=/usr/lib/java/itext-1.4.5.jar --#build.version=0.9-ubuntu-6.10-1 --#build.dist=ubuntu --#build.prefix=/usr --#build.jar.dir=${build.prefix}/lib/java/ --#build.bin.dir=${build.prefix}/bin/ --#build.share.dir=${build.prefix}/share/TuxGuitar-${build.version}/ --#build.doc.dir=${build.prefix}/share/doc/TuxGuitar-${build.version}/ --#build.manifest.classpath=${lib.swt.jar} ./itext-1.4.2.jar ${build.share.dir} -- --########## DEFAULT MAC BUILD PROPERTIES ########## --#lib.swt.jni=lib/ --#lib.swt.jar=lib/swt.jar --#lib.itext.jar=lib/itext-1.4.5.jar --#lib.janel-ant.jar=lib/janel-ant-0.1.jar --#build.version=0.9 --#build.dist=mac --#build.jar.dir=./ --#build.bin.dir=./ --#build.share.dir=./share/ --#build.doc.dir=./doc/ --#build.manifest.classpath=${lib.swt.jar} ${lib.itext.jar} ${build.share.dir} -- --########## WINDOWS BUILD PROPERTIES ############ --#lib.swt.jni=lib\\ --#lib.swt.jar=lib\\swt.jar --#lib.itext.jar=lib\\itext-1.4.5.jar --#lib.janel-ant.jar=lib\\janel-ant-0.1.jar --#build.version=0.9 --#build.dist=windows --#build.jar.dir= --#build.bin.dir= --#build.share.dir=share\\ --#build.doc.dir=doc\\ --#build.manifest.classpath=${lib.swt.jar} ${lib.itext.jar} ${build.share.dir} -\ No newline at end of file diff --git a/audio/tuxguitar/files/tuxguitar.in b/audio/tuxguitar/files/tuxguitar.in new file mode 100644 index 000000000000..ab40c8787f0d --- /dev/null +++ b/audio/tuxguitar/files/tuxguitar.in @@ -0,0 +1,21 @@ +#! /bin/sh + +PACKAGE_MAIN=org.herac.tuxguitar.gui.TGMain +ARGS=%%DATADIR%%/tuxguitar.tg + +CLASSPATH=${CLASSPATH} +CLASSPATH=${CLASSPATH}:%%DATADIR%% +CLASSPATH=${CLASSPATH}:%%DATADIR%%/tuxguitar.jar +CLASSPATH=${CLASSPATH}:%%JAVALIBDIR%%/swt.jar +CLASSPATH=${CLASSPATH}:%%JAVALIBDIR%%/itext.jar + +JAVA_FLAGS="-Xms128m -Xmx128m -cp ${CLASSPATH}" + +# We need this because FreeBSD's SWT lacks browser support +SWT_HACK="-Dos.name=linux" + +MOZILLA_FIVE_HOME=%%PREFIX%%/lib/%%GECKO%% java ${SWT_HACK} \ + ${JAVA_FLAGS} \ + -cp ${CLASSPATH} \ + ${PACKAGE_MAIN} \ + %%DATADIR%%/tuxguitar.tg |