Rename launch script from realplayergold to realplay so that the browser

plugin can find it.  Bump PKGREVISION.

Make use of subst.mk while here.
This commit is contained in:
sketch 2007-01-31 16:58:18 +00:00
parent fea96101c3
commit 77d882e57b

View file

@ -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"