aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2011-10-18 21:04:19 +0800
committerehaupt <ehaupt@FreeBSD.org>2011-10-18 21:04:19 +0800
commit82e08157b84908c7a6d910f135c4963efd3e32d4 (patch)
treef36833277960f69f3eebc89ee88376def55f7edb /audio
parent1bf993dbcff2d36223d32d5959eadc70f2f42144 (diff)
downloadfreebsd-ports-gnome-82e08157b84908c7a6d910f135c4963efd3e32d4.tar.gz
freebsd-ports-gnome-82e08157b84908c7a6d910f135c4963efd3e32d4.tar.zst
freebsd-ports-gnome-82e08157b84908c7a6d910f135c4963efd3e32d4.zip
- Support USE_TK_WRAPPER
- Add LICENSE PR: 161632 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'audio')
-rw-r--r--audio/splaytk/Makefile37
-rw-r--r--audio/splaytk/files/patch-aa4
-rw-r--r--audio/splaytk/pkg-plist16
3 files changed, 32 insertions, 25 deletions
diff --git a/audio/splaytk/Makefile b/audio/splaytk/Makefile
index ab0650f8aa17..77a730681c14 100644
--- a/audio/splaytk/Makefile
+++ b/audio/splaytk/Makefile
@@ -5,27 +5,34 @@
# $FreeBSD$
#
-PORTNAME= splaytk
-PORTVERSION= 2.0
-PORTREVISION= 1
-CATEGORIES= audio
-MASTER_SITES= ${MASTER_SITE_SUNSITE}
-MASTER_SITE_SUBDIR= apps/sound/players
-
-MAINTAINER= ports@FreeBSD.org
+PORTNAME= splaytk
+PORTVERSION= 2.0
+PORTREVISION= 2
+CATEGORIES= audio
+MASTER_SITES= SUNSITE/apps/sound/players
+
+MAINTAINER= ports@FreeBSD.org
COMMENT= A tk based interface for splay
-RUN_DEPENDS= splay:${PORTSDIR}/audio/splay \
- wish8.2:${PORTSDIR}/x11-toolkits/tk82
+LICENSE= GPLv2
-WRKSRC= ${WRKDIR}/splay-tk-2.0
+RUN_DEPENDS= splay:${PORTSDIR}/audio/splay
NO_BUILD= yes
+WRKSRC= ${WRKDIR}/splay-tk-${PORTVERSION}
+
+USE_TK_WRAPPER= yes
+
+DATADIR= ${PREFIX}/share/splay-tk
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|%%DATADIR%%|${DATADIR}|g' ${WRKSRC}/splay-tk.tcl
do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/splay-tk.tcl ${PREFIX}/bin/splay-tk
- @${MKDIR} ${PREFIX}/lib/splay-tk
- @${INSTALL_DATA} ${WRKSRC}/*.xbm ${PREFIX}/lib/splay-tk
- @${INSTALL_DATA} ${WRKSRC}/splay-tk.gif ${PREFIX}/lib/splay-tk
+ ${INSTALL_SCRIPT} ${WRKSRC}/splay-tk.tcl ${PREFIX}/bin/splay-tk
+ @${MKDIR} ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.xbm ${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/splay-tk.gif ${DATADIR}
.include <bsd.port.mk>
diff --git a/audio/splaytk/files/patch-aa b/audio/splaytk/files/patch-aa
index 9f19c941bb7f..d3634efa5239 100644
--- a/audio/splaytk/files/patch-aa
+++ b/audio/splaytk/files/patch-aa
@@ -5,9 +5,9 @@
--- 1,9 ----
+ #!/bin/sh
+ # start up wish \
-+ exec wish8.2 "$0" "$@"
++ exec wish "$0" "$@"
+
-+ set libdir /usr/local/lib/splay-tk
++ set libdir %%DATADIR%%
+ set images ${libdir}
#####################################################################
# SPlaY-Tk v2.0p1, (C) Andrew Hobgood #
diff --git a/audio/splaytk/pkg-plist b/audio/splaytk/pkg-plist
index 2e9e05b0f951..bf9a33f8448f 100644
--- a/audio/splaytk/pkg-plist
+++ b/audio/splaytk/pkg-plist
@@ -1,9 +1,9 @@
bin/splay-tk
-lib/splay-tk/dirs.xbm
-lib/splay-tk/files.xbm
-lib/splay-tk/pause.xbm
-lib/splay-tk/play.xbm
-lib/splay-tk/quit.xbm
-lib/splay-tk/splay-tk.gif
-lib/splay-tk/stop.xbm
-@dirrm lib/splay-tk
+%%DATADIR%%/dirs.xbm
+%%DATADIR%%/files.xbm
+%%DATADIR%%/pause.xbm
+%%DATADIR%%/play.xbm
+%%DATADIR%%/quit.xbm
+%%DATADIR%%/stop.xbm
+%%DATADIR%%/splay-tk.gif
+@dirrm %%DATADIR%%