2008-06-02 17:41:02 +02:00
|
|
|
# ex: ts=8
|
With TuxGuitar, you will be able to compose music using the following features
* Tablature editor
* Score Viewer
* Multitrack display
* Autoscroll while playing
* Note duration management
* Various effects (bend, slide, vibrato, hammer-on/pull-off)
* Support for triplets (5,6,7,9,10,11,12)
* Repeat open and close
* Time signature management
* Tempo management
* Imports and exports gp3,gp4 and gp5 files
WWW: http://www.tuxguitar.com.ar/
PR: ports/112169
Submitted by: Pietro Cerutti (gahr at gahr.ch)
2007-04-27 09:36:45 +02:00
|
|
|
# New ports collection makefile for: tuxguitar
|
|
|
|
# Date created: 26 April 2007
|
|
|
|
# Whom: Pietro Cerutti (gahr@gahr.ch)
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tuxguitar
|
2009-04-11 09:51:05 +02:00
|
|
|
PORTVERSION= 1.1
|
2009-11-27 10:08:23 +01:00
|
|
|
PORTREVISION= 2
|
With TuxGuitar, you will be able to compose music using the following features
* Tablature editor
* Score Viewer
* Multitrack display
* Autoscroll while playing
* Note duration management
* Various effects (bend, slide, vibrato, hammer-on/pull-off)
* Support for triplets (5,6,7,9,10,11,12)
* Repeat open and close
* Time signature management
* Tempo management
* Imports and exports gp3,gp4 and gp5 files
WWW: http://www.tuxguitar.com.ar/
PR: ports/112169
Submitted by: Pietro Cerutti (gahr at gahr.ch)
2007-04-27 09:36:45 +02:00
|
|
|
CATEGORIES= audio java
|
2009-08-22 02:13:26 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/TuxGuitar/TuxGuitar-${PORTVERSION}:src \
|
2009-08-17 09:50:13 +02:00
|
|
|
${MASTER_SITE_LOCAL}/gahr/:fluid \
|
|
|
|
http://people.freebsd.org/~gahr/distfiles/:fluid \
|
2008-10-10 02:24:26 +02:00
|
|
|
http://www.alsa-project.org/~james/sound-fonts/:fluid
|
|
|
|
DISTFILES= ${PORTNAME}-src-${DISTVERSION}${EXTRACT_SUFX}:src \
|
|
|
|
8MBGMSFX.SF2:fluid
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}-src-${DISTVERSION}${EXTRACT_SUFX}
|
With TuxGuitar, you will be able to compose music using the following features
* Tablature editor
* Score Viewer
* Multitrack display
* Autoscroll while playing
* Note duration management
* Various effects (bend, slide, vibrato, hammer-on/pull-off)
* Support for triplets (5,6,7,9,10,11,12)
* Repeat open and close
* Time signature management
* Tempo management
* Imports and exports gp3,gp4 and gp5 files
WWW: http://www.tuxguitar.com.ar/
PR: ports/112169
Submitted by: Pietro Cerutti (gahr at gahr.ch)
2007-04-27 09:36:45 +02:00
|
|
|
|
2008-02-21 22:20:01 +01:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
With TuxGuitar, you will be able to compose music using the following features
* Tablature editor
* Score Viewer
* Multitrack display
* Autoscroll while playing
* Note duration management
* Various effects (bend, slide, vibrato, hammer-on/pull-off)
* Support for triplets (5,6,7,9,10,11,12)
* Repeat open and close
* Time signature management
* Tempo management
* Imports and exports gp3,gp4 and gp5 files
WWW: http://www.tuxguitar.com.ar/
PR: ports/112169
Submitted by: Pietro Cerutti (gahr at gahr.ch)
2007-04-27 09:36:45 +02:00
|
|
|
COMMENT= A Multitrack tablature editor and player
|
|
|
|
|
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt \
|
2008-03-13 01:16:17 +01:00
|
|
|
${JAVALIBDIR}/itext.jar:${PORTSDIR}/devel/itext \
|
2009-04-11 09:51:05 +02:00
|
|
|
${JAVALIBDIR}/gervill.jar:${PORTSDIR}/audio/gervill \
|
2009-08-19 15:27:24 +02:00
|
|
|
ant:${PORTSDIR}/devel/apache-ant
|
2007-07-28 02:32:35 +02:00
|
|
|
RUN_DEPENDS= ${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt \
|
2009-04-11 09:51:05 +02:00
|
|
|
${JAVALIBDIR}/itext.jar:${PORTSDIR}/devel/itext \
|
|
|
|
${JAVALIBDIR}/gervill.jar:${PORTSDIR}/audio/gervill
|
2008-06-26 23:11:15 +02:00
|
|
|
LIB_DEPENDS= fluidsynth.2:${PORTSDIR}/audio/fluidsynth
|
2007-07-28 02:32:35 +02:00
|
|
|
|
2008-07-25 11:05:42 +02:00
|
|
|
MAKE_ENV+= PREFIX=${PREFIX} INSTALL_DOC_DIR=${DOCSDIR} \
|
|
|
|
INSTALL_SHARE_DIR=${DATADIR}
|
With TuxGuitar, you will be able to compose music using the following features
* Tablature editor
* Score Viewer
* Multitrack display
* Autoscroll while playing
* Note duration management
* Various effects (bend, slide, vibrato, hammer-on/pull-off)
* Support for triplets (5,6,7,9,10,11,12)
* Repeat open and close
* Time signature management
* Tempo management
* Imports and exports gp3,gp4 and gp5 files
WWW: http://www.tuxguitar.com.ar/
PR: ports/112169
Submitted by: Pietro Cerutti (gahr at gahr.ch)
2007-04-27 09:36:45 +02:00
|
|
|
|
|
|
|
USE_JAVA= yes
|
2009-11-27 10:08:23 +01:00
|
|
|
USE_GECKO= libxul
|
2008-03-13 01:16:17 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
JAVA_VERSION= 1.4+
|
2009-08-19 15:27:24 +02:00
|
|
|
JAVA_VENDOR= freebsd bsdjava sun blackdown
|
2008-06-26 23:11:15 +02:00
|
|
|
NOCCACHE= yes
|
2008-03-13 01:16:17 +01:00
|
|
|
|
2008-10-10 02:24:26 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION}
|
|
|
|
|
2008-03-13 01:16:17 +01:00
|
|
|
.if !defined(WITHOUT_MAN)
|
|
|
|
MAN1= tuxguitar.1
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2009-04-11 09:51:05 +02:00
|
|
|
PLUGINS= ascii browser-ftp compat converter fluidsynth gervill gtp \
|
|
|
|
jsa lilypond midi musicxml oss pdf ptb tef tray tuner
|
2008-03-13 01:16:17 +01:00
|
|
|
|
|
|
|
SUB_FILES= tuxguitar
|
|
|
|
SUB_LIST= DATADIR=${DATADIR} \
|
|
|
|
PREFIX=${PREFIX} \
|
|
|
|
JAVALIBDIR=${JAVALIBDIR} \
|
|
|
|
GECKO=${GECKO}
|
With TuxGuitar, you will be able to compose music using the following features
* Tablature editor
* Score Viewer
* Multitrack display
* Autoscroll while playing
* Note duration management
* Various effects (bend, slide, vibrato, hammer-on/pull-off)
* Support for triplets (5,6,7,9,10,11,12)
* Repeat open and close
* Time signature management
* Tempo management
* Imports and exports gp3,gp4 and gp5 files
WWW: http://www.tuxguitar.com.ar/
PR: ports/112169
Submitted by: Pietro Cerutti (gahr at gahr.ch)
2007-04-27 09:36:45 +02:00
|
|
|
|
2008-10-10 02:24:26 +02:00
|
|
|
post-extract:
|
|
|
|
${CP} ${DISTDIR}/8MBGMSFX.SF2 ${WRKDIR}
|
|
|
|
|
2007-04-27 10:56:25 +02:00
|
|
|
post-patch:
|
2008-06-02 17:41:02 +02:00
|
|
|
${REINPLACE_CMD} -e 's|linux|freebsd|;s|JAVA_VERS|JAVA_PORT_VERSION|g; \
|
2009-04-11 09:51:05 +02:00
|
|
|
/TuxGuitar-alsa/d; s|/usr/lib/jvm/java-6-sun/|${JAVA_HOME}|;' \
|
2008-06-02 17:41:02 +02:00
|
|
|
${WRKSRC}/Makefile
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|%%LOCALBASE%%|${LOCALBASE}|g; \
|
|
|
|
s|%%JAVAJARDIR%%|${JAVAJARDIR}|g; \
|
|
|
|
s|%%PREFIX%%|${PREFIX}|g; \
|
|
|
|
s|%%DATADIR%%|${DATADIR}|g; \
|
|
|
|
s|%%DISTVERSION%%|${DISTVERSION}|g; \
|
|
|
|
s|%%DOCSDIR%%|${DOCSDIR}|g' \
|
|
|
|
${WRKSRC}/TuxGuitar/build.properties
|
2009-04-11 09:51:05 +02:00
|
|
|
.for p in ${PLUGINS}
|
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|$${path.swt}|${JAVALIBDIR}/swt.jar|; \
|
|
|
|
s|$${path.itext}|${JAVALIBDIR}/itext.jar|' \
|
|
|
|
${WRKSRC}/TuxGuitar-${p}/build.xml
|
|
|
|
.endfor
|
2008-06-02 17:41:02 +02:00
|
|
|
${REINPLACE_CMD} -e 's|$${lib.swt.jar}|${JAVALIBDIR}/swt.jar|g' \
|
|
|
|
${WRKSRC}/TuxGuitar/build.xml
|
2009-04-11 09:51:05 +02:00
|
|
|
${REINPLACE_CMD} -e 's|$${path.gervill}|${JAVALIBDIR}/gervill.jar|g' \
|
|
|
|
${WRKSRC}/TuxGuitar-gervill/build.xml
|
|
|
|
|
2008-06-26 23:11:15 +02:00
|
|
|
${REINPLACE_CMD} -e 's|CFLAGS?|CFLAGS+|g;\
|
2009-08-19 17:50:26 +02:00
|
|
|
s|$$(shell gcj -print-file-name=include/)|${JAVA_HOME}/include -I${JAVA_HOME}/include/freebsd -I${LOCALBASE}/include|;\
|
2008-06-26 23:11:15 +02:00
|
|
|
s|/usr/lib|${LOCALBASE}/lib|' \
|
|
|
|
${WRKSRC}/TuxGuitar-oss/jni/GNUmakefile \
|
|
|
|
${WRKSRC}/TuxGuitar-fluidsynth/jni/GNUmakefile
|
2007-04-27 10:56:25 +02:00
|
|
|
|
With TuxGuitar, you will be able to compose music using the following features
* Tablature editor
* Score Viewer
* Multitrack display
* Autoscroll while playing
* Note duration management
* Various effects (bend, slide, vibrato, hammer-on/pull-off)
* Support for triplets (5,6,7,9,10,11,12)
* Repeat open and close
* Time signature management
* Tempo management
* Imports and exports gp3,gp4 and gp5 files
WWW: http://www.tuxguitar.com.ar/
PR: ports/112169
Submitted by: Pietro Cerutti (gahr at gahr.ch)
2007-04-27 09:36:45 +02:00
|
|
|
do-install:
|
2008-06-02 17:41:02 +02:00
|
|
|
${INSTALL} -d ${DATADIR}
|
|
|
|
${INSTALL} -d ${DATADIR}/plugins
|
2008-03-13 01:16:17 +01:00
|
|
|
# Main program and plugins
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/tuxguitar ${PREFIX}/bin
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/TuxGuitar/tuxguitar.jar ${DATADIR}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/misc/*.tg ${DATADIR}
|
2008-10-10 02:24:26 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/8MBGMSFX.SF2 ${DATADIR}
|
2008-06-02 17:41:02 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/TuxGuitar-oss/jni/libtuxguitar-oss-jni.so ${PREFIX}/lib
|
2008-06-26 23:11:15 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/TuxGuitar-fluidsynth/jni/libtuxguitar-fluidsynth-jni.so ${PREFIX}/lib
|
2008-03-13 01:16:17 +01:00
|
|
|
.for p in ${PLUGINS}
|
2008-06-02 17:41:02 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/TuxGuitar-${p}/tuxguitar-${p}.jar ${DATADIR}/plugins
|
2008-03-13 01:16:17 +01:00
|
|
|
.endfor
|
|
|
|
# Inline documentation
|
|
|
|
cd ${WRKSRC}/TuxGuitar/share/help && ${COPYTREE_SHARE} \* ${DATADIR}/help
|
|
|
|
cd ${WRKSRC}/TuxGuitar/share/lang && ${COPYTREE_SHARE} \* ${DATADIR}/lang
|
|
|
|
cd ${WRKSRC}/TuxGuitar/share/scales && ${COPYTREE_SHARE} \* ${DATADIR}/scales
|
|
|
|
cd ${WRKSRC}/TuxGuitar/share/skins && ${COPYTREE_SHARE} \* ${DATADIR}/skins
|
|
|
|
|
|
|
|
# XPM icon
|
2008-06-02 17:41:02 +02:00
|
|
|
${INSTALL} -d ${PREFIX}/share/pixmaps
|
2008-03-13 01:16:17 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/misc/tuxguitar.xpm ${PREFIX}/share/pixmaps
|
|
|
|
|
2008-06-02 17:41:02 +02:00
|
|
|
# Desktop entry
|
|
|
|
${INSTALL} -d ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/misc/tuxguitar.desktop ${PREFIX}/share/applications
|
|
|
|
|
2008-03-13 01:16:17 +01:00
|
|
|
.if !defined(WITHOUT_MAN)
|
2008-06-02 17:41:02 +02:00
|
|
|
# MAN page
|
2008-03-13 18:15:47 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/misc/tuxguitar.1 ${MANPREFIX}/man/man1
|
2008-03-13 01:16:17 +01:00
|
|
|
.endif
|
With TuxGuitar, you will be able to compose music using the following features
* Tablature editor
* Score Viewer
* Multitrack display
* Autoscroll while playing
* Note duration management
* Various effects (bend, slide, vibrato, hammer-on/pull-off)
* Support for triplets (5,6,7,9,10,11,12)
* Repeat open and close
* Time signature management
* Tempo management
* Imports and exports gp3,gp4 and gp5 files
WWW: http://www.tuxguitar.com.ar/
PR: ports/112169
Submitted by: Pietro Cerutti (gahr at gahr.ch)
2007-04-27 09:36:45 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
2008-03-13 01:16:17 +01:00
|
|
|
cd ${WRKSRC}/TuxGuitar/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}
|
With TuxGuitar, you will be able to compose music using the following features
* Tablature editor
* Score Viewer
* Multitrack display
* Autoscroll while playing
* Note duration management
* Various effects (bend, slide, vibrato, hammer-on/pull-off)
* Support for triplets (5,6,7,9,10,11,12)
* Repeat open and close
* Time signature management
* Tempo management
* Imports and exports gp3,gp4 and gp5 files
WWW: http://www.tuxguitar.com.ar/
PR: ports/112169
Submitted by: Pietro Cerutti (gahr at gahr.ch)
2007-04-27 09:36:45 +02:00
|
|
|
.endif
|
2008-10-10 02:24:26 +02:00
|
|
|
@${ECHO}
|
|
|
|
@${ECHO} "SoundFonts for the FluidSynth plugin are available at:"
|
|
|
|
@${ECHO} "${DATADIR}/8MBGMSFX.SF2"
|
|
|
|
@${ECHO} "Add this path in the FluidSynth plugin configuration to"
|
|
|
|
@${ECHO} "enable them."
|
|
|
|
@${ECHO}
|
With TuxGuitar, you will be able to compose music using the following features
* Tablature editor
* Score Viewer
* Multitrack display
* Autoscroll while playing
* Note duration management
* Various effects (bend, slide, vibrato, hammer-on/pull-off)
* Support for triplets (5,6,7,9,10,11,12)
* Repeat open and close
* Time signature management
* Tempo management
* Imports and exports gp3,gp4 and gp5 files
WWW: http://www.tuxguitar.com.ar/
PR: ports/112169
Submitted by: Pietro Cerutti (gahr at gahr.ch)
2007-04-27 09:36:45 +02:00
|
|
|
|
2008-03-13 01:16:17 +01:00
|
|
|
.include <bsd.port.post.mk>
|