2002-12-07 03:38:52 +01:00
|
|
|
# $NetBSD: Makefile,v 1.16 2002/12/07 02:38:52 schmonz Exp $
|
2000-12-25 10:35:58 +01:00
|
|
|
|
2001-06-19 00:20:03 +02:00
|
|
|
PKGNAME= realplayer-8.0.1
|
2000-12-25 10:35:58 +01:00
|
|
|
WRKSRC= ${WRKDIR}/RealPlayer8
|
|
|
|
CATEGORIES= audio
|
|
|
|
MASTER_SITES= # empty
|
|
|
|
EXTRACT_SUFX= .bin
|
|
|
|
|
2002-08-20 15:56:47 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${MACHINE} == "i386"
|
|
|
|
DISTNAME= rp8_linux20_libc6_i386_cs2
|
2002-08-21 05:54:02 +02:00
|
|
|
.elif ${MACHINE} == "sparc"
|
2002-08-20 15:56:47 +02:00
|
|
|
DISTNAME= rp8_solaris27_sparc_cs2
|
2002-09-29 01:52:42 +02:00
|
|
|
.else
|
|
|
|
DISTNAME= must_be_defined
|
2002-08-20 15:56:47 +02:00
|
|
|
.endif
|
|
|
|
|
2000-12-25 10:35:58 +01:00
|
|
|
MAINTAINER= packages@netbsd.org
|
|
|
|
HOMEPAGE= http://www.real.com/products/player/
|
2001-02-16 14:30:32 +01:00
|
|
|
COMMENT= RealAudio and RealVideo player
|
2000-12-25 10:35:58 +01:00
|
|
|
|
2002-08-20 15:56:47 +02:00
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
. if ${MACHINE} == "i386"
|
2002-04-04 14:29:46 +02:00
|
|
|
DEPENDS+= suse_x11>=6.1:../../emulators/${SUSE_DIR_PREFIX}_x11
|
2002-08-21 05:54:02 +02:00
|
|
|
. elif ${MACHINE} == "sparc"
|
2002-08-20 15:56:47 +02:00
|
|
|
. if !exists(/emul/svr4/usr/lib/ld.so)
|
2002-12-07 03:38:52 +01:00
|
|
|
PKG_FAIL_REASON= "${PKGNAME} requires Solaris libraries - see compat_svr4(8)"
|
2002-08-20 15:56:47 +02:00
|
|
|
. endif
|
|
|
|
. endif
|
|
|
|
.endif
|
2000-12-25 10:35:58 +01:00
|
|
|
|
|
|
|
RESTRICTED= "Redistribution not permitted"
|
|
|
|
NO_SRC_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_SRC_ON_CDROM= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_FTP= ${RESTRICTED}
|
|
|
|
NO_BIN_ON_CDROM= ${RESTRICTED}
|
|
|
|
|
2002-08-20 15:56:47 +02:00
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-sparc SunOS-*-sparc
|
2000-12-25 10:35:58 +01:00
|
|
|
|
|
|
|
CRYPTO= # defined
|
2002-08-09 15:07:06 +02:00
|
|
|
INTERACTIVE_STAGE= fetch extract
|
2000-12-25 10:35:58 +01:00
|
|
|
CHECK_SHLIBS= NO
|
|
|
|
|
|
|
|
XAUTHORITY?= ${HOME}/.Xauthority
|
|
|
|
.if exists(${XAUTHORITY})
|
|
|
|
EXTRACT_CMD= HOME=${WRKDIR} XAUTHORITY=${XAUTHORITY} ${RP_INSTALLER}
|
|
|
|
.else
|
|
|
|
EXTRACT_CMD= HOME=${WRKDIR} ${RP_INSTALLER}
|
|
|
|
.endif
|
|
|
|
|
2002-09-23 02:44:50 +02:00
|
|
|
DOWNLOAD= http://forms.real.com/real/player/unix/unix.html
|
2000-12-25 10:35:58 +01:00
|
|
|
RP_INSTALLER= ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
REALPLAYER_HOME= ${PREFIX}/lib/RealPlayer8
|
|
|
|
NS_PLUGINS_DIR= ${PREFIX}/lib/netscape/plugins
|
2001-01-29 12:34:21 +01:00
|
|
|
MESSAGE_SUBST+= REALPLAYER_HOME=${REALPLAYER_HOME}
|
2000-12-25 10:35:58 +01:00
|
|
|
|
2002-02-26 22:28:47 +01:00
|
|
|
_FETCH_MESSAGE= \
|
|
|
|
${ECHO} "==============================================================="; \
|
2002-08-20 15:56:47 +02:00
|
|
|
${ECHO} " RealPlayer 8 (Self-Extracting) must be fetched"; \
|
|
|
|
${ECHO} " into ${DISTDIR} from"; \
|
2002-02-26 22:28:47 +01:00
|
|
|
${ECHO} " ${DOWNLOAD}."; \
|
|
|
|
${ECHO} "==============================================================="
|
|
|
|
|
2001-10-25 21:42:43 +02:00
|
|
|
pre-extract:
|
|
|
|
@delay=15; \
|
|
|
|
${SED} -e "s|@WRKSRC@|${WRKSRC}|g" \
|
|
|
|
-e "s|@delay@|$${delay}|g" \
|
|
|
|
${FILESDIR}/extract_instructions; \
|
|
|
|
sleep $${delay}
|
|
|
|
@if [ ! -x ${RP_INSTALLER} ]; then \
|
|
|
|
${CHMOD} +x ${RP_INSTALLER}; \
|
|
|
|
fi
|
2000-12-25 10:35:58 +01:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
${MV} -f mimeinstall.sh mimeinstall.sh.old; \
|
|
|
|
${SED} -e "s,@PREFIX@,${PREFIX},g" \
|
|
|
|
-e "s,@REALPLAYER_HOME@,${REALPLAYER_HOME},g" \
|
2001-06-19 00:20:03 +02:00
|
|
|
mimeinstall.sh.old > mimeinstall.sh; \
|
2000-12-25 10:35:58 +01:00
|
|
|
${CHMOD} +x mimeinstall.sh
|
2001-06-19 00:20:03 +02:00
|
|
|
${SED} -e "s,@REALPLAYER_HOME@,${REALPLAYER_HOME},g" \
|
|
|
|
${FILESDIR}/realplay.sh > ${WRKDIR}/realplay.sh
|
2000-12-25 10:35:58 +01:00
|
|
|
|
|
|
|
pre-install:
|
2001-07-14 14:37:45 +02:00
|
|
|
${FIND} ${WRKSRC} \( -name "*.orig" -o -name "*.old" \) -print \
|
|
|
|
| ${XARGS} ${RM}
|
2000-12-25 10:35:58 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_SCRIPT} ${WRKDIR}/realplay.sh ${PREFIX}/bin/realplay
|
|
|
|
cd ${WRKDIR}; ${PAX} -rw RealPlayer8 ${PREFIX}/lib
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${NS_PLUGINS_DIR}
|
|
|
|
${INSTALL_DATA} ${REALPLAYER_HOME}/raclass.zip ${NS_PLUGINS_DIR}
|
|
|
|
${INSTALL_DATA} ${REALPLAYER_HOME}/rpnp.so ${NS_PLUGINS_DIR}
|
|
|
|
|
2002-04-04 14:29:46 +02:00
|
|
|
.include "../../emulators/suse_linux/Makefile.application"
|