summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorsketch <sketch>2007-01-31 16:58:18 +0000
committersketch <sketch>2007-01-31 16:58:18 +0000
commitdc3b585492a4b3c444cc1f13684220fdd5b03099 (patch)
tree9e22f8c9999fc22ee91cecf334c7e1272ab5694c /multimedia
parent42052d9a809ecab99185e44d15ba55a804f77cf1 (diff)
downloadpkgsrc-dc3b585492a4b3c444cc1f13684220fdd5b03099.tar.gz
Rename launch script from realplayergold to realplay so that the browser
plugin can find it. Bump PKGREVISION. Make use of subst.mk while here.
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/RealPlayerGold/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/multimedia/RealPlayerGold/Makefile b/multimedia/RealPlayerGold/Makefile
index fee68372b35..91c877589d6 100644
--- a/multimedia/RealPlayerGold/Makefile
+++ b/multimedia/RealPlayerGold/Makefile
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile,v 1.14 2006/09/29 21:21:54 dmcmahill Exp $
+# $NetBSD: Makefile,v 1.15 2007/01/31 16:58:18 sketch Exp $
#
DISTNAME= RealPlayer10GOLD
# Exact version obtained from the output of
# file RealPlayer10GOLD.rpm
PKGNAME= RealPlayerGold-${PKGVER}
+PKGREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://forms.real.com/real/player/download.html?f=unix/
EXTRACT_SUFX= .rpm
@@ -53,17 +54,20 @@ NO_BIN_ON_CDROM= ${RESTRICTED}
ONLY_FOR_PLATFORM= *-*-i386
+SUBST_CLASSES+= paths
+SUBST_STAGE.paths= post-install
+SUBST_FILES.paths= ${REALPLAYER_HOME}/realplay
+SUBST_SED.paths= -e 's,/bin/true,${TRUE},g'
+SUBST_MESSAGE.paths= Fixing hardcoded paths.
+
.include "../../mk/x11.buildlink3.mk"
do-build:
${SED} -e 's|@REALPLAYER_HOME@|${REALPLAYER_HOME}|g' \
- ${FILESDIR}/realplay.sh > ${WRKDIR}/realplayergold
+ ${FILESDIR}/realplay.sh > ${WRKDIR}/realplay
post-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/realplayergold ${PREFIX}/bin
- ${ECHO} bin/realplayergold >> ${PLIST_SRC}
- ${SED} -e 's|/bin/true|${TRUE}|g' < ${REALPLAYER_HOME}/realplay \
- > ${WRKDIR}/realplay
- ${INSTALL_SCRIPT} ${WRKDIR}/realplay ${REALPLAYER_HOME}
+ ${INSTALL_SCRIPT} ${WRKDIR}/realplay ${PREFIX}/bin
+ ${ECHO} bin/realplay >> ${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"