d3d44c6497
Reported by: Jon Feuss <jon.feuss@feuss.net> (via private e-mail)
116 lines
3.6 KiB
Makefile
116 lines
3.6 KiB
Makefile
# ex: ts=8
|
|
# New ports collection makefile for: tuxguitar
|
|
# Date created: 26 April 2007
|
|
# Whom: Pietro Cerutti (gahr@gahr.ch)
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= tuxguitar
|
|
DISTVERSION= 1.0-rc4
|
|
PORTREVISION= 3
|
|
CATEGORIES= audio java
|
|
MASTER_SITES= SF
|
|
DISTNAME= ${PORTNAME}-src-${DISTVERSION}
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
COMMENT= A Multitrack tablature editor and player
|
|
|
|
BUILD_DEPENDS= ${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt \
|
|
${JAVALIBDIR}/itext.jar:${PORTSDIR}/devel/itext \
|
|
ant:${PORTSDIR}/devel/apache-ant \
|
|
gcj42:${PORTSDIR}/lang/gcc42-withgcjawt
|
|
RUN_DEPENDS= ${JAVALIBDIR}/swt.jar:${PORTSDIR}/x11-toolkits/swt \
|
|
${JAVALIBDIR}/itext.jar:${PORTSDIR}/devel/itext
|
|
|
|
MAKE_ENV= "PREFIX=${PREFIX}" "INSTALL_DOC_DIR=${DOCSDIR}" \
|
|
"INSTALL_SHARE_DIR=${DATADIR}"
|
|
|
|
USE_JAVA= yes
|
|
USE_GMAKE= yes
|
|
USE_LDCONFIG= yes
|
|
JAVA_VERSION= 1.4+
|
|
JAVA_VENDOR= bsdjava sun blackdown
|
|
|
|
.if !defined(WITHOUT_MAN)
|
|
MAN1= tuxguitar.1
|
|
.endif
|
|
|
|
USE_GECKO= mozilla firefox seamonkey
|
|
|
|
.include <bsd.port.pre.mk>
|
|
.include "${.CURDIR}/../../www/mozilla/bsd.gecko.mk"
|
|
|
|
PLUGINS= ascii compat converter gtp jsa lilypond midi musicxml \
|
|
oss pdf ptb tef tray
|
|
|
|
SUB_FILES= tuxguitar
|
|
SUB_LIST= DATADIR=${DATADIR} \
|
|
PREFIX=${PREFIX} \
|
|
JAVALIBDIR=${JAVALIBDIR} \
|
|
GECKO=${GECKO}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|linux|freebsd|;s|JAVA_VERS|JAVA_PORT_VERSION|g; \
|
|
/TuxGuitar-alsa/d' \
|
|
${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
|
|
${REINPLACE_CMD} -e 's|$${path.swt}|${JAVALIBDIR}/swt.jar|g' \
|
|
${WRKSRC}/TuxGuitar-lilypond/build.xml \
|
|
${WRKSRC}/TuxGuitar-midi/build.xml \
|
|
${WRKSRC}/TuxGuitar-pdf/build.xml \
|
|
${WRKSRC}/TuxGuitar-tray/build.xml \
|
|
${WRKSRC}/TuxGuitar-converter/build.xml \
|
|
${WRKSRC}/TuxGuitar-jsa/build.xml \
|
|
${WRKSRC}/TuxGuitar-oss/build.xml
|
|
${REINPLACE_CMD} -e 's|$${lib.swt.jar}|${JAVALIBDIR}/swt.jar|g' \
|
|
${WRKSRC}/TuxGuitar/build.xml
|
|
${REINPLACE_CMD} -e 's|$${path.itext}|${JAVALIBDIR}/itext.jar|g' \
|
|
${WRKSRC}/TuxGuitar-pdf/build.xml
|
|
${REINPLACE_CMD} -e 's|gcj|${LOCALBASE}/bin/gcj42|g' \
|
|
${WRKSRC}/TuxGuitar-oss/jni/GNUmakefile
|
|
|
|
do-install:
|
|
${INSTALL} -d ${DATADIR}
|
|
${INSTALL} -d ${DATADIR}/plugins
|
|
# Main program and plugins
|
|
${INSTALL_SCRIPT} ${WRKDIR}/tuxguitar ${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/TuxGuitar/tuxguitar.jar ${DATADIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/misc/*.tg ${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/TuxGuitar-oss/jni/libtuxguitar-oss-jni.so ${PREFIX}/lib
|
|
.for p in ${PLUGINS}
|
|
${INSTALL_DATA} ${WRKSRC}/TuxGuitar-${p}/tuxguitar-${p}.jar ${DATADIR}/plugins
|
|
.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
|
|
${INSTALL} -d ${PREFIX}/share/pixmaps
|
|
${INSTALL_DATA} ${WRKSRC}/misc/tuxguitar.xpm ${PREFIX}/share/pixmaps
|
|
|
|
# Desktop entry
|
|
${INSTALL} -d ${PREFIX}/share/applications
|
|
${INSTALL_DATA} ${WRKSRC}/misc/tuxguitar.desktop ${PREFIX}/share/applications
|
|
|
|
.if !defined(WITHOUT_MAN)
|
|
# MAN page
|
|
${INSTALL_MAN} ${WRKSRC}/misc/tuxguitar.1 ${MANPREFIX}/man/man1
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC}/TuxGuitar/doc && ${COPYTREE_SHARE} \* ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|