Add fetching and installing of the 'dnet' codec from the collection,

that came with the version 9 of the player. For licensing reasons Real
no longer ships the codec and considers it obsolete.

It is, however, in use by some major content providers -- most notably
Amazon (samples of CD audio tracks). Tested on 6.x/amd64 and 5.x/i386.

Instead of bumping PORTREVISION, change the PORTVERSION to include the
vendor's "nano-version" (PORTVERSION is now 10.0.6.776).

There really ought to be some rejoicing...
This commit is contained in:
Mikhail Teterin 2006-01-17 07:04:43 +00:00
parent 427ec51769
commit bf98501181
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=153705
3 changed files with 24 additions and 6 deletions

View file

@ -6,10 +6,12 @@
#
PORTNAME= linux-realplayer
PORTVERSION= 10.0.6
PORTVERSION= 10.0.6.776
CATEGORIES= multimedia audio linux
MASTER_SITES= https://helixcommunity.org/download.php/1589/
DISTNAME= RealPlayer-10.0.6.776-20050915.i586
MASTER_SITES= https://helixcommunity.org/download.php/1589/:player \
ftp://rpmfind.net/linux/sourceforge/m/mp/mplayer-tru/:codecs
DISTFILES= RealPlayer-${PORTVERSION}-20050915.i586.rpm:player \
mplayer-codecs-linux-real-20040626-1.i386.rpm:codecs
EXTRACT_SUFX= .rpm
MAINTAINER= ports@FreeBSD.org
@ -60,8 +62,10 @@ PLIST_SUB+= X11="@comment "
do-extract:
@${MKDIR} ${WRKDIR}
cd ${WRKDIR}; rpm2cpio.pl ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} | \
${CPIO} -id --quiet
@set -x; for f in ${_DISTFILES}; do\
cd ${WRKDIR}; rpm2cpio.pl ${DISTDIR}/$$f | \
${CPIO} -id --quiet; \
done
post-patch:
@${SED} 's|/usr/local|${PREFIX}|' \
@ -72,12 +76,19 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/LICENSE ${WRKSRC}/README ${RADIR}
${INSTALL_PROGRAM} ${WRKSRC}/realplay.bin ${RADIR}
${BRANDELF} -t Linux ${RADIR}/realplay.bin
.for dir in codecs common lib plugins share/default share/realplay
${MKDIR} ${RADIR}/${dir}
${INSTALL_DATA} ${WRKSRC}/${dir}/* ${RADIR}/${dir}
.endfor
# Extra codecs from the RealPlayer-9 -- no longer shipped by Real,
# but still in use by major content providers, such as Amazon:
.for c in dnet ddnt
${INSTALL_DATA} ${WRKDIR}/usr/lib/codecs/$c.so.6.0 \
${RADIR}/codecs/
${LN} -s $c.so.6.0 ${RADIR}/codecs/$c.so
.endfor
.if !defined(WITHOUT_NLS)
${MKDIR} ${RADIR}/share/locale
${CP} -R ${WRKSRC}/share/locale/* ${RADIR}/share/locale

View file

@ -1,3 +1,6 @@
MD5 (RealPlayer-10.0.6.776-20050915.i586.rpm) = 870215a8ed4f50c76bbc42212511e8e7
SHA256 (RealPlayer-10.0.6.776-20050915.i586.rpm) = 2ad41b9dcfeab520518e4a089ad33827b92be26d8f423c32e213971e004eb9d7
SIZE (RealPlayer-10.0.6.776-20050915.i586.rpm) = 6643315
MD5 (mplayer-codecs-linux-real-20040626-1.i386.rpm) = c4126cba33257f4d78907c7d254b8200
SHA256 (mplayer-codecs-linux-real-20040626-1.i386.rpm) = 338c8e595a95c9ab5192e4fbd4e5e86faf9a6040fab51381d53950ddad75c2e9
SIZE (mplayer-codecs-linux-real-20040626-1.i386.rpm) = 595298

View file

@ -7,6 +7,10 @@ lib/RealPlayer/codecs/atrc.so
lib/RealPlayer/codecs/colorcvt.so
lib/RealPlayer/codecs/cook.so
lib/RealPlayer/codecs/cvt1.so
lib/RealPlayer/codecs/ddnt.so.6.0
lib/RealPlayer/codecs/dnet.so.6.0
lib/RealPlayer/codecs/ddnt.so
lib/RealPlayer/codecs/dnet.so
lib/RealPlayer/codecs/drv1.so
lib/RealPlayer/codecs/drv2.so
lib/RealPlayer/codecs/drvc.so