Lines 6-31
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= linux-realplayer |
8 |
PORTNAME= linux-realplayer |
9 |
PORTVERSION= 8.cs2 |
9 |
PORTVERSION= 10 |
10 |
PORTREVISION= 5 |
10 |
PORTREVISION= 1 |
11 |
CATEGORIES= multimedia audio linux |
11 |
CATEGORIES= multimedia audio linux |
12 |
MASTER_SITES= http://docs.real.com/docs/playerpatch/unix/:update |
12 |
MASTER_SITES= https://player.helixcommunity.org/2004/downloads/ |
13 |
DISTFILES= ${MAINDIST} ${UPDATEDIST:S/$/:update/} |
13 |
DISTNAME= RealPlayer${PORTVERSION}GOLD |
14 |
EXTRACT_ONLY= ${UPDATEDIST} |
14 |
EXTRACT_SUFX= .rpm |
|
|
15 |
EXTRACT_ONLY= |
15 |
|
16 |
|
16 |
MAINTAINER= ports@FreeBSD.org |
17 |
MAINTAINER= ports@FreeBSD.org |
17 |
COMMENT= Linux RealPlayer 8.0 from RealNetworks |
18 |
COMMENT= Linux RealPlayer 10 from RealNetworks |
18 |
|
19 |
|
19 |
EXTRACT_DEPENDS= rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio |
20 |
EXTRACT_DEPENDS= rpm2cpio.pl:${PORTSDIR}/archivers/rpm2cpio |
20 |
RUN_DEPENDS= ${LINUXBASE}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base \ |
21 |
RUN_DEPENDS= \ |
21 |
${LINUXBASE}/usr/lib/libesd.so.0:${PORTSDIR}/audio/linux-esound |
22 |
${LINUXBASE}/lib/libc.so.6:${PORTSDIR}/emulators/linux_base-8 \ |
22 |
|
23 |
${LINUXBASE}/usr/lib/libstdc++.so.5:${PORTSDIR}/emulators/linux_base-8 \ |
23 |
MAINDIST= rp${PORTVERSION:R}_linux20_libc6_i386_${PORTVERSION:E}_rpm |
24 |
${LINUXBASE}/usr/lib/libesd.so.0:${PORTSDIR}/audio/linux-esound \ |
24 |
UPDATEDIST= rv9_libc6_i386_cs2.tgz |
25 |
${LINUXBASE}/usr/lib/libfontconfig.so.1:${PORTSDIR}/x11-fonts/linux-fontconfig \ |
25 |
|
26 |
${LINUXBASE}/usr/lib/libgtk-x11-2.0.so.0:${PORTSDIR}/x11-toolkits/linux-gtk2 \ |
26 |
RADIR= ${PREFIX}/lib/RealPlayer${PORTVERSION:R} |
27 |
${LINUXBASE}/usr/lib/libpango-1.0.so.0:${PORTSDIR}/x11-toolkits/linux-pango \ |
27 |
WRKSRC= ${WRKDIR}/usr/lib/RealPlayer${PORTVERSION:R} |
28 |
${LINUXBASE}/usr/lib/libglib-2.0.so.0:${PORTSDIR}/devel/linux-glib2 \ |
28 |
PLUGINSDIR= ${PREFIX}/lib/netscape-linux/plugins |
29 |
${LINUXBASE}/usr/X11R6/lib/libXrandr.so.2:${PORTSDIR}/x11/linux-XFree86-libs \ |
|
|
30 |
${LINUXBASE}/usr/lib/libatk-1.0.so.0:${PORTSDIR}/accessibility/linux-atk \ |
31 |
${LINUXBASE}/usr/lib/libjpeg.so.62.0.0:${PORTSDIR}/graphics/linux-jpeg \ |
32 |
${LINUXBASE}/usr/lib/libpng.so.3:${PORTSDIR}/graphics/linux-png \ |
33 |
${LINUXBASE}/usr/lib/libjpeg.so.62.0.0:${PORTSDIR}/graphics/linux-tiff |
34 |
|
35 |
RADIR= ${PREFIX}/RealPlayer |
36 |
WRKSRC= ${WRKDIR}/usr/local/RealPlayer |
37 |
PLUGINSDIR= ${PREFIX}/lib/linux-mozilla/plugins |
29 |
RABINDIR= ${PREFIX}/bin |
38 |
RABINDIR= ${PREFIX}/bin |
30 |
|
39 |
|
31 |
# Linux binary should not be stripped by INSTALL_PROGRAM |
40 |
# Linux binary should not be stripped by INSTALL_PROGRAM |
Lines 36-43
Link Here
|
36 |
|
45 |
|
37 |
.if !exists(${DISTDIR}/${MAINDIST}) |
46 |
.if !exists(${DISTDIR}/${MAINDIST}) |
38 |
IGNORE= may not be automatically fetched due to licensing\ |
47 |
IGNORE= may not be automatically fetched due to licensing\ |
39 |
restrictions. You MUST manually fetch the Linux RPM version after\ |
48 |
restrictions. You MUST manually fetch the Linux RPM version from \ |
40 |
reading and agreeing to the license at:\ |
49 |
${MASTER_SITES} after reading and agreeing to the license at:\ |
41 |
http://forms.real.com/real/player/blackjack.html \ |
50 |
http://forms.real.com/real/player/blackjack.html \ |
42 |
- once ${DISTFILES} has been downloaded, move it to\ |
51 |
- once ${DISTFILES} has been downloaded, move it to\ |
43 |
${DISTDIR} and then restart this build. |
52 |
${DISTDIR} and then restart this build. |
Lines 49-100
Link Here
|
49 |
NO_BUILD= yes |
58 |
NO_BUILD= yes |
50 |
|
59 |
|
51 |
post-extract: |
60 |
post-extract: |
52 |
cd ${WRKDIR}; rpm2cpio.pl ${DISTDIR}/${MAINDIST} | ${CPIO} -id --quiet |
61 |
cd ${WRKDIR}; rpm2cpio.pl ${DISTDIR}/${DISTNAME} | ${CPIO} -id --quiet |
53 |
|
62 |
|
54 |
post-patch: |
63 |
post-patch: |
55 |
${REINPLACE_CMD} -e \ |
64 |
${REINPLACE_CMD} -e \ |
56 |
"s@/usr/lib@${PREFIX}/lib@" ${WRKSRC}/postinstall.sh |
65 |
"s@/bin/true@/usr/bin/true@" ${WRKSRC}/realplay |
57 |
|
66 |
|
58 |
do-install: |
67 |
do-install: |
59 |
${MKDIR} ${RADIR} |
68 |
${MKDIR} ${RADIR} |
60 |
.for f in mimeinstall.sh pluginstall.sh postinstall.sh |
69 |
cd ${WRKSRC} && ${FIND} . | \ |
61 |
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${RADIR} |
70 |
${CPIO} -pdm -L -R ${BINOWN}:${BINGRP} ${RADIR} |
62 |
.endfor |
|
|
63 |
.for f in realplay rpnp.so |
64 |
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${RADIR} |
65 |
.endfor |
66 |
.for f in LICENSE Mailcap Mime.types README app.kdelnk audiosig.rm \ |
67 |
firstrun.rm mime.kdelnk raclass.zip \ |
68 |
realplay.desktop rp7.xpm rp7doc.png rp7doc.xpm rp7mini.xpm |
69 |
${INSTALL_DATA} ${WRKSRC}/${f} ${RADIR} |
70 |
.endfor |
71 |
.for d in Codecs Common Plugins |
72 |
${MKDIR} ${RADIR}/${d} |
73 |
${INSTALL_PROGRAM} ${WRKSRC}/${d}/*.so* ${RADIR}/${d} |
74 |
.endfor |
75 |
${MKDIR} ${RADIR}/Plugins/ExtResources |
76 |
${INSTALL_PROGRAM} ${WRKSRC}/Plugins/ExtResources/* ${RADIR}/Plugins/ExtResources/ |
77 |
${INSTALL_PROGRAM} ${WRKDIR}/rv9/codecs/drv4.so.6.0 ${RADIR}/Codecs/ |
78 |
${INSTALL_PROGRAM} ${WRKDIR}/rv9/codecs/rv40.so.6.0 ${RADIR}/Codecs/ |
79 |
|
71 |
|
80 |
${LN} -sf ${RADIR}/realplay ${RABINDIR} |
72 |
${LN} -sf ${RADIR}/realplay ${RABINDIR} |
81 |
|
73 |
|
82 |
.if exists(${PLUGINSDIR}) |
74 |
.if exists(${PLUGINSDIR}) |
83 |
${LN} -sf ${RADIR}/raclass.zip ${PLUGINSDIR} |
75 |
${LN} -sf ${RADIR}/mozilla/nphelix.so ${PLUGINSDIR} |
84 |
${LN} -sf ${RADIR}/rpnp.so ${PLUGINSDIR} |
76 |
${LN} -sf ${RADIR}/mozilla/nphelix.xpt ${PLUGINSDIR} |
85 |
.endif |
77 |
.endif |
86 |
|
|
|
87 |
.if !defined(NOPORTDOCS) |
88 |
${MKDIR} ${PREFIX}/share/doc/RealPlayer8 |
89 |
${INSTALL_DATA} ${WRKSRC}/Help/readme ${PREFIX}/share/doc/RealPlayer8 |
90 |
${INSTALL_DATA} ${WRKSRC}/Help/realplay.htm ${PREFIX}/share/doc/RealPlayer8 |
91 |
${MKDIR} ${PREFIX}/share/doc/RealPlayer8/realplay |
92 |
${INSTALL_DATA} ${WRKSRC}/Help/realplay/*.htm ${PREFIX}/share/doc/RealPlayer8/realplay |
93 |
${MKDIR} ${PREFIX}/share/doc/RealPlayer8/realplay/pics |
94 |
${INSTALL_DATA} ${WRKSRC}/Help/realplay/pics/* ${PREFIX}/share/doc/RealPlayer8/realplay/pics |
95 |
.endif |
96 |
|
97 |
post-install: |
98 |
@${CAT} ${PKGMESSAGE} |
99 |
|
78 |
|
100 |
.include <bsd.port.post.mk> |
79 |
.include <bsd.port.post.mk> |