1999-02-12 16:42:21 +01:00
|
|
|
# New ports collection makefile for: linux-realplayer
|
|
|
|
# Date created: 31 January 1999
|
|
|
|
# Whom: Kris Kennaway <kkennawa@physics.adelaide.edu.au>
|
|
|
|
#
|
1999-08-25 06:36:31 +02:00
|
|
|
# $FreeBSD$
|
1999-02-12 16:42:21 +01:00
|
|
|
#
|
|
|
|
|
2000-04-08 23:25:03 +02:00
|
|
|
PORTNAME= linux-realplayer
|
2008-01-04 19:07:05 +01:00
|
|
|
DISTVERSION= 10.0.9.809-20070726
|
2002-11-28 01:09:51 +01:00
|
|
|
CATEGORIES= multimedia audio linux
|
2008-01-04 19:07:05 +01:00
|
|
|
MASTER_SITES= https://helixcommunity.org/download.php/2479/:player \
|
2007-04-04 15:18:01 +02:00
|
|
|
http://ftp.nluug.nl/ftp/pub/os/Linux/distr/pardusrepo/sources/:playeralt \
|
|
|
|
ftp://fr2.rpmfind.net/linux/sourceforge/m/mp/mplayer-tru/:codecs
|
|
|
|
DISTFILES= RealPlayer-${DISTVERSION}.i586.rpm:player,playeralt \
|
2006-01-17 08:04:43 +01:00
|
|
|
mplayer-codecs-linux-real-20040626-1.i386.rpm:codecs
|
1999-02-12 16:42:21 +01:00
|
|
|
|
2007-04-04 15:18:01 +02:00
|
|
|
MAINTAINER= multimedia@FreeBSD.org
|
2004-12-15 22:02:13 +01:00
|
|
|
COMMENT= Linux RealPlayer 10 from RealNetworks
|
1999-02-12 16:42:21 +01:00
|
|
|
|
2003-12-12 14:43:05 +01:00
|
|
|
EXTRACT_DEPENDS= rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio
|
1999-02-12 16:42:21 +01:00
|
|
|
|
2004-12-15 22:02:13 +01:00
|
|
|
WRKSRC= ${WRKDIR}/usr/local/RealPlayer
|
2005-07-08 18:04:04 +02:00
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
Mega-patch to cleanup the ports infrastructure regarding our linux bits:
- USE_LINUX now implies NO_FILTER_SHLIBS=yes. It also doesn't use FreeBSD
tools to strip binaries anymore, so it's not neccesary anymore to override
STRIP and STRIP_CMD.
- USE_LINUX_PREFIX implies NO_MTREE now.
- In the USE_LINUX case, USE_XLIB now depends upon the linux X11 libraries
instead upon the native FreeBSD libraries.
- The variable LINUX_BASE_PORT contains a string which is suitable as an
item in *_DEPENDS, so if a port BATCH_DEPENDS or FETCH_DEPENDS upon the
default (or overriden) linux base, ${LINUX_BASE_PORT} should be used
instead of a hardcoded reference.
- Change all ports to comply to the "new world order".
- The Ports Collection now allows to override the default linux_base port.
Specify e.g. OVERRIDE_LINUX_BASE_PORT=rh-9 in /etc/make.conf to use
${PORTSDIR}/emulators/linux_base-rh-9 (the logic is to use
${PORTSDIR}/emulators/linux_base-${OVERRIDE_LINUX_BASE_PORT}).
- If USE_LINUX or OVERRIDE_LINUX_BASE doesn't point to an existing linux_base
port and if USE_LINUX isn't set to "yes" (case insensitive), the port will
be marked as IGNORE. [1]
- Readd USE_LINUX knobs into several ports and make several uses of a
conditional dependency ("USE_LINUX?=") into an unconditional one
("USE_LINUX=") which where removed/changed by Trevor to allow the use of
alternative linux_base ports. While this is a nice goal, the implementation
resulted in missing dependencies. The OVERRIDE_LINUX_BASE_PORT knob
in this commit is supposed to fix the problem while keeping the feature.
Basicaly this includes a backout of Trevor's commit, to prevent confusion
I mention it here explicitely.
- Use the correct prefix (X11- instead of LOCAL- or LINUX-) for some ports.
Chase dependencies for this.
- Changes to make linux_devtools installable on amd64, remove some stray
device nodes (they don't work on recent OS versions and aren't really
needed).
- Make linux_base-8 PREFIX clean and remove some stray device nodes.
Additionally tell a little bit more about how to setup NIS/YP [2].
- Update the PGSQL dependency in the linux-opengroupware port to a recent
version (the old one isn't available anymore), I don't know if this
works (at least it isn't more broken than before).
- Use PREFIX/usr/share/doc instead of PREFIX/usr/doc in the divx4linux
ports, the former path exists already and gets populated by other
packages too (PREFIX=LINUXPREFIX!).
- Fix some obvious (non-linuxolator) bugs in some linux ports while being
there.
- Bump PORTREVISION where neccesary.
Requested by: portmgr (linimon) [1]
Submittted by: Gerrit Kuehn <gerrit_huehn@gruft.fido.de [2]
Approved by: portmgr (kris, linimon), maintainers (or maintainer timeout)
Tested on: ports cluster (kris)
Reviewed by: silence on emulation@
Superseedes PR: 69997
Maintainer approval from:
chris@chrisburkert.de
cracauer@cons.org
des
girgen
jamie@bishopston.net
mezz
mi
nivit@users.sf.net
pat
simond@irrelevant.org
riggs@rrr.de
Udo.Schweigert@Siemens.com
2005-06-18 00:59:29 +02:00
|
|
|
USE_LINUX= yes
|
2009-03-19 18:28:51 +01:00
|
|
|
USE_LINUX_APPS= gtk2 xorglibs
|
2006-03-27 21:06:35 +02:00
|
|
|
RESTRICTED= Redistribution not allowed
|
2004-12-15 22:02:13 +01:00
|
|
|
NO_BUILD= yes
|
2007-10-25 01:37:25 +02:00
|
|
|
WANT_GNOME= yes
|
2009-04-26 13:10:04 +02:00
|
|
|
FETCH_ARGS= -pRr
|
1999-02-12 16:42:21 +01:00
|
|
|
|
2004-12-15 22:02:13 +01:00
|
|
|
RADIR= ${PREFIX}/lib/RealPlayer
|
|
|
|
PLUGINSDIR= ${PREFIX}/lib/linux-mozilla/plugins
|
|
|
|
RABINDIR= ${PREFIX}/bin
|
|
|
|
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
2008-11-18 20:10:39 +01:00
|
|
|
PLIST_SUB+= NLS="" LINUXBASE="${LINUXBASE}"
|
2004-12-15 22:02:13 +01:00
|
|
|
.endif
|
|
|
|
|
1999-02-12 16:42:21 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-10-14 10:54:54 +02:00
|
|
|
.if exists(${LOCALBASE}/share/icons)
|
2004-12-15 22:02:13 +01:00
|
|
|
WITH_ICONS= yes
|
|
|
|
PLIST_SUB+= ICONS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ICONS="@comment "
|
1999-02-12 16:42:21 +01:00
|
|
|
.endif
|
|
|
|
|
2007-10-25 01:37:25 +02:00
|
|
|
.if ${HAVE_GNOME:Mgnomehier}!=""
|
2004-12-15 22:02:13 +01:00
|
|
|
WITH_GNOME= yes
|
|
|
|
PLIST_SUB+= GNOME=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= GNOME="@comment "
|
|
|
|
.endif
|
1999-02-12 16:42:21 +01:00
|
|
|
|
2004-12-15 22:02:13 +01:00
|
|
|
.if defined(WITH_ICONS) || defined(WITH_GNOME)
|
|
|
|
PLIST_SUB+= X11=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= X11="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-extract:
|
|
|
|
@${MKDIR} ${WRKDIR}
|
2006-01-17 08:04:43 +01:00
|
|
|
@set -x; for f in ${_DISTFILES}; do\
|
|
|
|
cd ${WRKDIR}; rpm2cpio.pl ${DISTDIR}/$$f | \
|
2006-11-08 22:27:48 +01:00
|
|
|
${CPIO} -idm --quiet; \
|
2006-01-17 08:04:43 +01:00
|
|
|
done
|
2003-03-03 14:18:43 +01:00
|
|
|
|
2003-04-19 22:07:48 +02:00
|
|
|
post-patch:
|
2004-12-15 22:02:13 +01:00
|
|
|
@${SED} 's|/usr/local|${PREFIX}|' \
|
|
|
|
< ${FILESDIR}/realplay > ${WRKSRC}/realplay
|
2003-04-19 22:07:48 +02:00
|
|
|
|
2000-07-11 17:13:02 +02:00
|
|
|
do-install:
|
2006-03-27 21:06:35 +02:00
|
|
|
@${MKDIR} ${RADIR}
|
2004-12-15 22:02:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${WRKSRC}/README ${RADIR}
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/realplay.bin ${RADIR}
|
Mega-patch to cleanup the ports infrastructure regarding our linux bits:
- USE_LINUX now implies NO_FILTER_SHLIBS=yes. It also doesn't use FreeBSD
tools to strip binaries anymore, so it's not neccesary anymore to override
STRIP and STRIP_CMD.
- USE_LINUX_PREFIX implies NO_MTREE now.
- In the USE_LINUX case, USE_XLIB now depends upon the linux X11 libraries
instead upon the native FreeBSD libraries.
- The variable LINUX_BASE_PORT contains a string which is suitable as an
item in *_DEPENDS, so if a port BATCH_DEPENDS or FETCH_DEPENDS upon the
default (or overriden) linux base, ${LINUX_BASE_PORT} should be used
instead of a hardcoded reference.
- Change all ports to comply to the "new world order".
- The Ports Collection now allows to override the default linux_base port.
Specify e.g. OVERRIDE_LINUX_BASE_PORT=rh-9 in /etc/make.conf to use
${PORTSDIR}/emulators/linux_base-rh-9 (the logic is to use
${PORTSDIR}/emulators/linux_base-${OVERRIDE_LINUX_BASE_PORT}).
- If USE_LINUX or OVERRIDE_LINUX_BASE doesn't point to an existing linux_base
port and if USE_LINUX isn't set to "yes" (case insensitive), the port will
be marked as IGNORE. [1]
- Readd USE_LINUX knobs into several ports and make several uses of a
conditional dependency ("USE_LINUX?=") into an unconditional one
("USE_LINUX=") which where removed/changed by Trevor to allow the use of
alternative linux_base ports. While this is a nice goal, the implementation
resulted in missing dependencies. The OVERRIDE_LINUX_BASE_PORT knob
in this commit is supposed to fix the problem while keeping the feature.
Basicaly this includes a backout of Trevor's commit, to prevent confusion
I mention it here explicitely.
- Use the correct prefix (X11- instead of LOCAL- or LINUX-) for some ports.
Chase dependencies for this.
- Changes to make linux_devtools installable on amd64, remove some stray
device nodes (they don't work on recent OS versions and aren't really
needed).
- Make linux_base-8 PREFIX clean and remove some stray device nodes.
Additionally tell a little bit more about how to setup NIS/YP [2].
- Update the PGSQL dependency in the linux-opengroupware port to a recent
version (the old one isn't available anymore), I don't know if this
works (at least it isn't more broken than before).
- Use PREFIX/usr/share/doc instead of PREFIX/usr/doc in the divx4linux
ports, the former path exists already and gets populated by other
packages too (PREFIX=LINUXPREFIX!).
- Fix some obvious (non-linuxolator) bugs in some linux ports while being
there.
- Bump PORTREVISION where neccesary.
Requested by: portmgr (linimon) [1]
Submittted by: Gerrit Kuehn <gerrit_huehn@gruft.fido.de [2]
Approved by: portmgr (kris, linimon), maintainers (or maintainer timeout)
Tested on: ports cluster (kris)
Reviewed by: silence on emulation@
Superseedes PR: 69997
Maintainer approval from:
chris@chrisburkert.de
cracauer@cons.org
des
girgen
jamie@bishopston.net
mezz
mi
nivit@users.sf.net
pat
simond@irrelevant.org
riggs@rrr.de
Udo.Schweigert@Siemens.com
2005-06-18 00:59:29 +02:00
|
|
|
${BRANDELF} -t Linux ${RADIR}/realplay.bin
|
2004-12-15 22:02:13 +01:00
|
|
|
.for dir in codecs common lib plugins share/default share/realplay
|
2006-03-27 21:06:35 +02:00
|
|
|
@${MKDIR} ${RADIR}/${dir}
|
2004-12-15 22:02:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${dir}/* ${RADIR}/${dir}
|
|
|
|
.endfor
|
1999-02-12 16:42:21 +01:00
|
|
|
|
2006-01-17 08:04:43 +01:00
|
|
|
# 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
|
|
|
|
|
2004-12-15 22:02:13 +01:00
|
|
|
.if !defined(WITHOUT_NLS)
|
2006-03-27 21:06:35 +02:00
|
|
|
@${MKDIR} ${RADIR}/share/locale
|
2006-11-08 22:27:48 +01:00
|
|
|
${CP} -Rp ${WRKSRC}/share/locale/* ${RADIR}/share/locale
|
2004-12-15 22:02:13 +01:00
|
|
|
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${RADIR}/share/locale
|
2008-11-18 20:10:39 +01:00
|
|
|
.for c in de es fr hi it ja ko pl pt_BR zh_CN zh_TW
|
|
|
|
${LN} -sf ${RADIR}/share/locale/${c}/player.mo \
|
|
|
|
${LINUXBASE}/usr/share/locale/${c}/LC_MESSAGES/realplay.mo
|
|
|
|
.endfor
|
2000-07-11 17:13:02 +02:00
|
|
|
.endif
|
|
|
|
|
2006-03-27 21:06:35 +02:00
|
|
|
@${MKDIR} ${PLUGINSDIR}
|
2004-12-15 22:02:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/mozilla/* ${PLUGINSDIR}
|
|
|
|
|
2006-03-27 21:06:35 +02:00
|
|
|
@${MKDIR} ${PREFIX}/bin
|
2004-12-15 22:02:13 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/realplay ${PREFIX}/bin
|
|
|
|
|
|
|
|
.if defined(WITH_ICONS)
|
|
|
|
. for size in 16x16 32x32 48x48 192x192
|
2006-10-14 10:54:54 +02:00
|
|
|
@${MKDIR} ${LOCALBASE}/share/icons/hicolor/${size}/apps
|
2004-12-15 22:02:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/share/icons/realplay_${size}.png \
|
2006-10-14 10:54:54 +02:00
|
|
|
${LOCALBASE}/share/icons/hicolor/${size}/apps
|
2004-12-15 22:02:13 +01:00
|
|
|
. endfor
|
|
|
|
. for size in 48x48 192x192
|
2006-10-14 10:54:54 +02:00
|
|
|
@${MKDIR} ${LOCALBASE}/share/icons/hicolor/${size}/mimetypes
|
2004-12-15 22:02:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/share/icons/mime-*_${size}.png \
|
2006-10-14 10:54:54 +02:00
|
|
|
${LOCALBASE}/share/icons/hicolor/${size}/mimetypes
|
2004-12-15 22:02:13 +01:00
|
|
|
. endfor
|
2000-07-11 17:13:02 +02:00
|
|
|
.endif
|
1999-02-12 16:42:21 +01:00
|
|
|
|
2004-12-15 22:02:13 +01:00
|
|
|
.if defined(WITH_GNOME)
|
2007-10-25 01:37:25 +02:00
|
|
|
@${MKDIR} ${LOCALBASE}/share/pixmaps
|
2006-10-14 10:54:54 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/share/realplay.png \
|
2007-10-25 01:37:25 +02:00
|
|
|
${LOCALBASE}/share/pixmaps
|
2004-12-15 22:02:13 +01:00
|
|
|
|
2007-10-25 01:37:25 +02:00
|
|
|
@${MKDIR} ${LOCALBASE}/share/applications
|
2004-12-15 22:02:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/share/realplay.desktop \
|
2007-10-25 01:37:25 +02:00
|
|
|
${LOCALBASE}/share/applications
|
2004-12-15 22:02:13 +01:00
|
|
|
|
2007-10-25 01:37:25 +02:00
|
|
|
@${MKDIR} ${LOCALBASE}/share/application-registry
|
2004-12-15 22:02:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/share/realplay.applications \
|
2007-10-25 01:37:25 +02:00
|
|
|
${LOCALBASE}/share/application-registry
|
2004-12-15 22:02:13 +01:00
|
|
|
|
2007-10-25 01:37:25 +02:00
|
|
|
@${MKDIR} ${LOCALBASE}/share/mime-info
|
2004-12-15 22:02:13 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/share/realplay.keys ${WRKSRC}/share/realplay.mime \
|
2007-10-25 01:37:25 +02:00
|
|
|
${LOCALBASE}/share/mime-info
|
2004-12-15 22:02:13 +01:00
|
|
|
.endif
|
1999-02-12 16:42:21 +01:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|