aboutsummaryrefslogtreecommitdiff
path: root/audio/musiccontrol
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2004-11-15 01:51:47 +0000
committerHerve Quiroz <hq@FreeBSD.org>2004-11-15 01:51:47 +0000
commit33aca413b5832a6097fd320afbff4a5b390fca83 (patch)
treee36528b9baa15b3561220504b3c975976991ff1a /audio/musiccontrol
parent98392b87cf99174cce62afcba7a93259bd2ed9ca (diff)
downloadports-33aca413b5832a6097fd320afbff4a5b390fca83.tar.gz
ports-33aca413b5832a6097fd320afbff4a5b390fca83.zip
Notes
Diffstat (limited to 'audio/musiccontrol')
-rw-r--r--audio/musiccontrol/Makefile15
-rw-r--r--audio/musiccontrol/files/musiccontrol4
2 files changed, 12 insertions, 7 deletions
diff --git a/audio/musiccontrol/Makefile b/audio/musiccontrol/Makefile
index a959d632ca7f..4429f62827a3 100644
--- a/audio/musiccontrol/Makefile
+++ b/audio/musiccontrol/Makefile
@@ -18,15 +18,18 @@ COMMENT= An advanced music player
RUN_DEPENDS= ${LOCALBASE}/bin/mpg123:${PORTSDIR}/audio/mpg123 \
${LOCALBASE}/bin/ogg123:${PORTSDIR}/audio/vorbis-tools \
- ${LOCALBASE}/bin/simplemod:${PORTSDIR}/audio/simplemod
+ ${LOCALBASE}/bin/simplemod:${PORTSDIR}/audio/simplemod \
+ java:${PORTSDIR}/java/javavmwrapper
-USE_JAVA= 1.3+
+USE_JAVA= yes
+JAVA_VERSION= 1.3+
NO_BUILD= yes
do-install:
- @${MKDIR} ${PREFIX}/share/java/classes
- ${INSTALL} -o 0 -g 0 -m 0644 ${DISTDIR}/MusicControl-${PORTVERSION}.jar ${PREFIX}/share/java/classes
- ${SED} 's,%%PREFIX%%,${PREFIX},g' ${FILESDIR}/musiccontrol > ${WRKDIR}/musiccontrol
- ${INSTALL} -o 0 -g 0 ${WRKDIR}/musiccontrol ${PREFIX}/bin
+ @${MKDIR} ${JAVAJARDIR}
+ ${INSTALL_DATA} ${DISTDIR}/MusicControl-${PORTVERSION}.jar ${JAVAJARDIR}/
+ ${SED} 's,%%LOCALBASE%%,${LOCALBASE},g ; s,%%JAVAJARDIR%%,${JAVAJARDIR},g' \
+ ${FILESDIR}/musiccontrol > ${WRKDIR}/musiccontrol
+ ${INSTALL_SCRIPT} ${WRKDIR}/musiccontrol ${PREFIX}/bin
.include <bsd.port.mk>
diff --git a/audio/musiccontrol/files/musiccontrol b/audio/musiccontrol/files/musiccontrol
index d289c013057f..2a47e5d7db47 100644
--- a/audio/musiccontrol/files/musiccontrol
+++ b/audio/musiccontrol/files/musiccontrol
@@ -1,3 +1,5 @@
#!/bin/sh
+#
+# $FreeBSD$
-%%PREFIX%%/bin/javavm -jar %%PREFIX%%/share/java/classes/MusicControl-0.2.jar $*
+"%%LOCALBASE%%/bin/java" -jar "%%JAVAJARDIR%%/MusicControl-0.2.jar" "$*"