summaryrefslogtreecommitdiff
path: root/audio/linux-realplayer/Makefile
blob: 78f5006dd2e872519ae9fee3f8da71840f115883 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# New ports collection makefile for:   linux-realplayer
# Version required:    5.0
# Date created:        31 January 1999
# Whom:                Kris Kennaway <kkennawa@physics.adelaide.edu.au>
#
# $FreeBSD$
#

DISTNAME=	rv50_linux20
PKGNAME=	linux-realplayer-5.0
CATEGORIES=	audio
MASTER_SITES=	

MAINTAINER=	kris@FreeBSD.org

RUN_DEPENDS=	/compat/linux/usr/i486-linux-libc5/lib/libc.so.5:${PORTSDIR}/emulators/linux_base

ONLY_FOR_ARCHS= i386
NO_CDROM=       "Redistribution not allowed"
NO_BUILD=	yes
WRKSRC=		${WRKDIR}/rvplayer5.0/

LIBFILES=	libdecdnet.so libra14_4.so libra28_8.so libradnet.so \
		librarv10.so librasipr.so librv10dec.so librvcore.so \
		librvplayer.so

DATAFILES=	License.txt Mailcap Mime.types RAObserver.class \
		RAPlayer.class rvplayer.ad

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DISTNAME}.tar.gz)
IGNORE=		may not be automatically fetched due to licensing\
		restrictions.  You MUST manually fetch the Linux ELF version after\
		reading and agreeing to the license at:\
		http://www.real.com/products/player/50player/downloadrealplayer.html?wp=dl1198&src=download\
		- once ${DISTFILES} has been downloaded, move it to\
		${DISTDIR} and then restart this build.
.endif

do-install:

	${MKDIR} ${PREFIX}/lib/rvplayer5.0/
	${MKDIR} ${PREFIX}/share/rvplayer5.0/

.for i in ${DATAFILES}
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/lib/rvplayer5.0/
.endfor

.if !defined(NOPORTSDOCS)
	${MKDIR} ${PREFIX}/share/doc/rvplayer5.0/
	${CP} -rp ${WRKSRC}/README ${WRKSRC}/index.htm ${WRKSRC}/doc/ \
		 ${PREFIX}/share/doc/rvplayer5.0/
.endif

.for i in ${LIBFILES}
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/lib/rvplayer5.0/
.endfor

	${INSTALL_PROGRAM} ${WRKSRC}/rvplayer ${PREFIX}/bin/
	/usr/bin/brandelf -t Linux ${PREFIX}/bin/rvplayer

	${INSTALL_DATA} ${WRKSRC}/welcome.rm ${PREFIX}/share/rvplayer5.0/

	@${ECHO_MSG} ---------------------------------------------------------------
	@${ECHO_MSG} You must add ${PREFIX}/lib/rvplayer5.0 to your
	@${ECHO_MSG} LD_LIBRARY_PATH environment variable to use RealPlayer 5.0.
	@${ECHO_MSG}
	@${ECHO_MSG} To use the Netscape plugin, you must have a Linux version of
	@${ECHO_MSG} netscape \(e.g., ${PORTSDIR}/www/linux-netscape4/\) - see
	@${ECHO_MSG} ${PREFIX}/share/doc/rvplayer5.0/plugin.html for instructions.
	@${ECHO_MSG}
	@${ECHO_MSG} To use rvplayer as an external helper app for Netscape \(any
	@${ECHO_MSG} version\), follow the instructions in
	@${ECHO_MSG} ${PREFIX}/share/doc/rvplayer5.0/browser.htm.
	@${ECHO_MSG} ---------------------------------------------------------------

.include <bsd.port.post.mk>