summaryrefslogtreecommitdiff
path: root/multimedia/RealPlayerGold/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-07-29 05:18:36 +0000
committerjlam <jlam@pkgsrc.org>2007-07-29 05:18:36 +0000
commit33f30156fb37245b360bbc293320402ecf1aba41 (patch)
tree45cad36d8470a568b9136017b2dd79c9efcc65bc /multimedia/RealPlayerGold/Makefile
parentffe106498e5f63e2e945d5b6b2ac8807a10ae78f (diff)
downloadpkgsrc-33f30156fb37245b360bbc293320402ecf1aba41.tar.gz
* Add new emulator framework in pkgsrc/mk/emulator that handles all
binary-only packages that require binary "emulation" on the native operating system. Please see pkgsrc/mk/emulator/README for more details. * Teach the plist framework to automatically use any existing PLIST.${EMUL_PLATFORM} as part of the default PLIST_SRC definition. * Convert all of the binary-only packages in pkgsrc to use the emulator framework. Most of them have been tested to install and deinstall correctly. This involves the following cleanup actions: * Remove use of custom PLIST code and use PLIST.${EMUL_PLATFORM} more consistently. * Simplify packages by using default INSTALL and DEINSTALL scripts instead of custom INSTALL/DEINSTALL code. * Remove "SUSE_COMPAT32" and "PKG_OPTIONS.suse" from pkgsrc. Packages only need to state exactly which emulations they support, and the framework handles any i386-on-x86_64 or sparc-on-sparc64 uses. * Remove "USE_NATIVE_LINUX" from pkgsrc. The framework will automatically detect when the package is installing on Linux. Specific changes to packages include: * Bump the PKGREVISIONs for all of the suse100* and suse91* packages due to changes in the +INSTALL/+DEINSTALL scripts used in all of the packages. * Remove pkgsrc/emulators/suse_linux, which is unused by any packages. * cad/lc -- remove custom code to create the distinfo file for all supported platforms; just use "emul-fetch" and "emul-distinfo" instead. * lang/Cg-compiler -- install the shared libraries under ${EMULDIR} instead of ${PREFIX}/lib so that compiled programs will find the shared libraries. * mail/thunderbird-bin-nightly -- update to latest binary distributions for supported platforms. * multimedia/ns-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch. * security/uvscan -- set LD_LIBRARY_PATH explicitly so that it's not necessary to install library symlinks into ${EMULDIR}/usr/local/lib. * www/firefox-bin-flash -- update Linux version to 9.0.48 as the older version is no longer available for interactive fetch.
Diffstat (limited to 'multimedia/RealPlayerGold/Makefile')
-rw-r--r--multimedia/RealPlayerGold/Makefile70
1 files changed, 33 insertions, 37 deletions
diff --git a/multimedia/RealPlayerGold/Makefile b/multimedia/RealPlayerGold/Makefile
index 03cf0d41b95..0137223f6aa 100644
--- a/multimedia/RealPlayerGold/Makefile
+++ b/multimedia/RealPlayerGold/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.17 2007/02/22 19:01:23 wiz Exp $
+# $NetBSD: Makefile,v 1.18 2007/07/29 05:19:45 jlam Exp $
#
DISTNAME= RealPlayer10GOLD
# Exact version obtained from the output of
# file RealPlayer10GOLD.rpm
-PKGNAME= RealPlayerGold-${PKGVER}
+PKGNAME= RealPlayerGold-10.0.8.805.20060718
PKGREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= http://forms.real.com/real/player/download.html?f=unix/
@@ -14,45 +14,29 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.real.com/linux/
COMMENT= Real Audio and Video Player
-PKGVER= 10.0.8.805.20060718
-RPMFILES= ${DISTNAME}${EXTRACT_SUFX}
-RPM2PKGARGS= -d ${PREFIX} -f ${PLIST_SRC} -p ${REALPLAYER_SUBDIR} -s3
-RPM2PKGSTRIP= 3
-EXTRACT_ONLY= # empty
-PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
-DIST_SUBDIR= ${PKGNAME_NOREV}
-
-# Verify that the version of the distfile (which changes often without the name changing)
-# is still correct. This helps sort out download errors vs out of date pkgsrc errors.
-post-fetch:
- ver=`file ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} | ${SED} -e 's;.*Player-;;g' -e 's;-;.;g'` ; \
- if [ "$$ver" != "${PKGVER}" ] ; then \
- ${ECHO} "It appears that real.com has made a new version ($$ver) available so this" ; \
- ${ECHO} "package will need updating to work correctly. That likely the reason for" ; \
- ${ECHO} "the checksum failure." ; \
- fi
-
-
-.include "../../emulators/suse_linux/Makefile.application"
-
-.if !defined(USE_NATIVE_LINUX)
-DEPENDS+= suse_base>=9.1:../../emulators/${SUSE_DIR_PREFIX}_base
-DEPENDS+= suse_fontconfig>=9.1:../../emulators/${SUSE_DIR_PREFIX}_fontconfig
-DEPENDS+= suse_freetype2>=9.1:../../emulators/${SUSE_DIR_PREFIX}_freetype2
-DEPENDS+= suse_x11>=9.1:../../emulators/${SUSE_DIR_PREFIX}_x11
-DEPENDS+= suse_gtk2>=9.1:../../emulators/${SUSE_DIR_PREFIX}_gtk2
-.endif
-
-REALPLAYER_SUBDIR= lib
-REALPLAYER_HOME= ${PREFIX}/${REALPLAYER_SUBDIR}/RealPlayer
-
RESTRICTED= Redistribution not permitted
NO_SRC_ON_FTP= ${RESTRICTED}
NO_SRC_ON_CDROM= ${RESTRICTED}
NO_BIN_ON_FTP= ${RESTRICTED}
NO_BIN_ON_CDROM= ${RESTRICTED}
-ONLY_FOR_PLATFORM= *-*-i386
+PKGVER= ${PKGNAME_NOREV:S/^RealPlayerGold-//}
+DIST_SUBDIR= ${PKGNAME_NOREV}
+
+WRKSRC= ${WRKDIR}
+BUILD_DIRS= # empty
+
+EMUL_PLATFORMS= linux-i386
+EMUL_MODULES.linux= base fontconfig freetype2 gtk2 x11
+
+EMUL_PKG_FMT= rpm
+RPM2PKG_STRIP= 3
+RPM2PKG_PREFIX= ${PREFIX}
+RPM2PKG_SUBPREFIX= lib
+RPM2PKG_STAGE= do-install
+RUN_LDCONFIG= no
+
+REALPLAYER_HOME= ${PREFIX}/lib/RealPlayer
SUBST_CLASSES+= paths
SUBST_STAGE.paths= post-install
@@ -60,12 +44,24 @@ SUBST_FILES.paths= ${REALPLAYER_HOME}/realplay
SUBST_SED.paths= -e 's,/bin/true,${TRUE},g'
SUBST_MESSAGE.paths= Fixing hardcoded paths.
+# Verify that the version of the distfile (which changes often without
+# the name changing) is still correct. This helps sort out download
+# errors vs. out-of-date-pkgsrc errors.
+#
+post-fetch:
+ ver=`file ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} | ${SED} -e 's;.*Player-;;g' -e 's;-;.;g'` ; \
+ if [ "$$ver" != "${PKGVER}" ] ; then \
+ ${ECHO} "It appears that real.com has made a new version ($$ver) available so this" ; \
+ ${ECHO} "package will need updating to work correctly. That likely the reason for" ; \
+ ${ECHO} "the checksum failure." ; \
+ fi
+
do-build:
${SED} -e 's|@REALPLAYER_HOME@|${REALPLAYER_HOME}|g' \
- ${FILESDIR}/realplay.sh > ${WRKDIR}/realplay
+ ${FILESDIR}/realplay.sh > ${WRKSRC}/realplay
post-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/realplay ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/realplay ${PREFIX}/bin
${ECHO} bin/realplay >> ${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"