From 40a33a607008465f53d5a6195b52da563743c5c1 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Fri, 23 Jun 2000 13:44:03 +0000 Subject: - Support LOCALBASE properly (in setting path to custom wish script) PR: 19470 Submitted by: KATO Tsuguru --- audio/snowstar/Makefile | 8 +++++--- audio/snowstar/files/patch-aa | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'audio/snowstar') diff --git a/audio/snowstar/Makefile b/audio/snowstar/Makefile index 1cfcb06725d6..864dafdcd425 100644 --- a/audio/snowstar/Makefile +++ b/audio/snowstar/Makefile @@ -18,12 +18,14 @@ RUN_DEPENDS= rio:${PORTSDIR}/audio/rio \ NO_BUILD= true NO_WRKSUBDIR= true +DOC_FILES= CHANGES TODO README_Snowstar LICENSE + # somehow snowstar.tcl managed to get loaded with ^M's. post-extract: - @${MV} ${WRKSRC}/snowstar.tcl ${WRKSRC}/snowstar.tcl.dist - @${SED} -e 's/ $$//' ${WRKSRC}/snowstar.tcl.dist > ${WRKSRC}/snowstar.tcl + @${PERL} -pi -e "s|\r\n|\n|g" ${WRKSRC}/snowstar.tcl -DOC_FILES= CHANGES TODO README_Snowstar LICENSE +post-patch: + @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/snowstar.tcl do-install: ${INSTALL_SCRIPT} ${WRKSRC}/snowstar.tcl ${PREFIX}/bin/snowstar diff --git a/audio/snowstar/files/patch-aa b/audio/snowstar/files/patch-aa index f7971a8c1974..a56df5f0fbac 100644 --- a/audio/snowstar/files/patch-aa +++ b/audio/snowstar/files/patch-aa @@ -2,7 +2,7 @@ +++ snowstar.tcl Thu Nov 4 12:24:19 1999 @@ -1,4 +1,4 @@ -#!/usr/bin/wish -+#!/usr/local/bin/wish8.2 ++#!%%LOCALBASE%%/bin/wish8.2 wm title . "Snowstar 0.75.5" wm minsize . 320 240 wm resizable . 1 1 -- cgit v1.2.3