summaryrefslogtreecommitdiff
path: root/audio/realplayer
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-10-25 19:42:43 +0000
committerjlam <jlam@pkgsrc.org>2001-10-25 19:42:43 +0000
commitef9d1e497528d4e5bd602632f2824a498c30eefc (patch)
tree7b93bd332a2340069778d3b783fc9541f602e739 /audio/realplayer
parent5581f2698040658285308f0f249ad972de981f71 (diff)
downloadpkgsrc-ef9d1e497528d4e5bd602632f2824a498c30eefc.tar.gz
Remove the need for a separate pre-extract script by moving what needs to
be said and done into the package Makefile pre-extract target.
Diffstat (limited to 'audio/realplayer')
-rw-r--r--audio/realplayer/Makefile17
-rw-r--r--audio/realplayer/files/extract_instructions (renamed from audio/realplayer/scripts/pre-extract)22
2 files changed, 12 insertions, 27 deletions
diff --git a/audio/realplayer/Makefile b/audio/realplayer/Makefile
index c896817d72f..05732c37e85 100644
--- a/audio/realplayer/Makefile
+++ b/audio/realplayer/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2001/07/14 12:37:53 jlam Exp $
+# $NetBSD: Makefile,v 1.6 2001/10/25 19:42:43 jlam Exp $
DISTNAME= rp8_linux20_libc6_i386_cs2
PKGNAME= realplayer-8.0.1
@@ -32,11 +32,6 @@ EXTRACT_CMD= HOME=${WRKDIR} XAUTHORITY=${XAUTHORITY} ${RP_INSTALLER}
EXTRACT_CMD= HOME=${WRKDIR} ${RP_INSTALLER}
.endif
-NO_CONFIGURE= # defined
-SCRIPTS_ENV+= CAT="${CAT}"
-SCRIPTS_ENV+= CHMOD="${CHMOD}"
-SCRIPTS_ENV+= RP_INSTALLER="${RP_INSTALLER}"
-
DOWNLOAD= http://proforma.real.com/real/player/unix/unix.html
RP_INSTALLER= ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
REALPLAYER_HOME= ${PREFIX}/lib/RealPlayer8
@@ -53,7 +48,15 @@ do-fetch:
${FALSE}; \
fi
-# scripts/pre-extract
+pre-extract:
+ @delay=15; \
+ ${SED} -e "s|@WRKSRC@|${WRKSRC}|g" \
+ -e "s|@delay@|$${delay}|g" \
+ ${FILESDIR}/extract_instructions; \
+ sleep $${delay}
+ @if [ ! -x ${RP_INSTALLER} ]; then \
+ ${CHMOD} +x ${RP_INSTALLER}; \
+ fi
do-build:
cd ${WRKSRC}; \
diff --git a/audio/realplayer/scripts/pre-extract b/audio/realplayer/files/extract_instructions
index 9096487f4ba..c1208c781d1 100644
--- a/audio/realplayer/scripts/pre-extract
+++ b/audio/realplayer/files/extract_instructions
@@ -1,13 +1,3 @@
-#!/bin/sh
-#
-# $NetBSD: pre-extract,v 1.2 2001/09/27 06:36:47 jlam Exp $
-
-# The number of seconds to pause before continuing with the extraction
-# process.
-#
-delay=15
-
-${CAT} << EOF
===========================================================================
Now running the RealPlayer installation program.
@@ -16,7 +6,7 @@ ${CAT} << EOF
2) Make sure the "Destination Directory" is:
- ${WRKSRC}
+ @WRKSRC@
(it should be the first choice on the drop-down menu), then press
'Finish'.
@@ -30,12 +20,4 @@ ${CAT} << EOF
===========================================================================
-Be sure to read the above! Proceeding in ${delay} seconds...
-EOF
-
-sleep ${delay}
-
-if [ ! -x ${RP_INSTALLER} ]
-then
- ${CHMOD} +x ${RP_INSTALLER}
-fi
+Be sure to read the above! Proceeding in @delay@ seconds...