diff options
author | jlam <jlam@pkgsrc.org> | 2007-07-29 05:18:36 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2007-07-29 05:18:36 +0000 |
commit | 33f30156fb37245b360bbc293320402ecf1aba41 (patch) | |
tree | 45cad36d8470a568b9136017b2dd79c9efcc65bc /www/opera/Makefile | |
parent | ffe106498e5f63e2e945d5b6b2ac8807a10ae78f (diff) | |
download | pkgsrc-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 'www/opera/Makefile')
-rw-r--r-- | www/opera/Makefile | 125 |
1 files changed, 49 insertions, 76 deletions
diff --git a/www/opera/Makefile b/www/opera/Makefile index 3f257c2a91d..365171ff54c 100644 --- a/www/opera/Makefile +++ b/www/opera/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.69 2007/07/19 19:09:44 xtraeme Exp $ +# $NetBSD: Makefile,v 1.70 2007/07/29 05:20:00 jlam Exp $ DISTNAME= opera-${OPERA_PKG_VERSION:S/u/pl/} CATEGORIES= www @@ -14,57 +14,76 @@ MAINTAINER= jdolecek@NetBSD.org HOMEPAGE= http://www.opera.com/ COMMENT= Small, fast and customizable WWW client -ONLY_FOR_PLATFORM= NetBSD-*-i386 SunOS-*-sparc FreeBSD-*-i386 DragonFly-*-i386 - LICENSE= opera-850-license -#PKG_INSTALLATION_TYPES= overwrite pkgviews +EMUL_PLATFORMS= freebsd-i386 +EMUL_PLATFORMS+= linux-i386 +EMUL_PLATFORMS+= solaris-sparc -NO_CONFIGURE= YES -USE_LANGUAGES= # empty +EMUL_MODULES.linux= x11 +SUSE_VERSION_REQD= 7.3 -.include "../../mk/bsd.prefs.mk" +USE_LANGUAGES= # empty +BUILD_DIRS= # empty +EMUL_PKG_FMT= plain OPERA_LANG= en OPERA_VER_DATE= 20070716 OPERA_PKG_VERSION= 9.22 OPERA_PKG_VERSION_DIR= 922 -_OPERA_OPSYS?= ${OPSYS} -_OPERA_MACHINE_ARCH?= ${MACHINE_ARCH} - -.if (${_OPERA_OPSYS} == NetBSD) || (${_OPERA_OPSYS} == DragonFly) -DEPENDS+= suse_x11>=7.3:../../emulators/${SUSE_DIR_PREFIX}_x11 +.include "../../mk/bsd.prefs.mk" -# we need to define DIST_SUBDIR because of the inclusion of suse's Makefile.common -DIST_SUBDIR= # empty -EXTRACT_ONLY= # empty -PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC +# This package installs from an RPM directly into "/usr" on a Linux +# system, which can't be managed by pkgsrc. +# +NOT_FOR_PLATFORMS= Linux-*-* +.if ${EMUL_PLATFORM} == "linux-i386" EXTRACT_SUFX= .rpm OPERA_ARCH= .i386 OPERA_DIR= linux/${OPERA_PKG_VERSION_DIR}/final/${OPERA_LANG}/${OPERA_ARCH:S/.//}/static OPERA_DIST_VERSION= ${OPERA_PKG_VERSION:C/beta.*//:C/u.*//}-${OPERA_VER_DATE}.1-static-qt -RPMFILES= ${DISTFILES} -RPM2PKGSTRIP= 1 +WRKSRC= ${WRKDIR} +BUILD_DIRS= # empty + +EMUL_PKG_FMT= rpm +RPM2PKG_PREFIX= ${PREFIX} +RPM2PKG_SUBPREFIX= ${EMULSUBDIR} +RPM2PKG_STAGE= do-install + +do-build: + ${SED} -e 's#@EMULDIR@#${EMULDIR}#g' \ + ${FILESDIR}/opera.sh > ${WRKDIR}/opera + +post-install: + ${INSTALL_SCRIPT} ${WRKDIR}/opera ${PREFIX}/bin + ${LN} -fs ${EMULDIR}/usr/share/man/man1/opera.1 \ + ${PREFIX}/${PKGMANDIR}/man1 + ${ECHO} "bin/opera" >> ${RPM2PKG_PLIST} + ${ECHO} "${PKGMANDIR}/man1/opera.1" >> ${RPM2PKG_PLIST} -.elif (${_OPERA_OPSYS} == FreeBSD) +.elif ${EMUL_PLATFORM} == "freebsd-i386" +ONLY_FOR_PLATFORM+= FreeBSD-*-i386 +EXTRACT_SUFX= .tar.bz2 OPERA_ARCH= .i386.freebsd OPERA_DIR= unix/freebsd/${OPERA_PKG_VERSION_DIR}/final/${OPERA_LANG}/static OPERA_DIST_VERSION= ${OPERA_PKG_VERSION:C/u.*//}-${OPERA_VER_DATE}.1-static-qt -WRKSRC= ${WRKDIR}/opera-${OPERA_DIST_VERSION}${OPERA_ARCH}-${OPERA_LANG} +WRKSRC= ${WRKDIR}/opera-${OPERA_DIST_VERSION}${OPERA_ARCH}-${OPERA_LANG}-655 OWN_DIRS= ${PREFIX}/share/opera/plugins -.elif (${_OPERA_OPSYS} == SunOS) && (${_OPERA_MACHINE_ARCH} == sparc) +.elif ${EMUL_PLATFORM} == "solaris-sparc" +ONLY_FOR_PLATFORM+= SunOS-*-sparc* EXTRACT_SUFX= .tar.bz2 +SOLARIS_VERSION_REQD= 8 OPERA_ARCH= -sol8-sparc -OPERA_DIR= unix/solaris/${OPERA_PKG_VERSION_DIR}/final/${OPERA_LANG}/${_OPERA_MACHINE_ARCH}/static +OPERA_DIR= unix/solaris/${OPERA_PKG_VERSION_DIR}/final/${OPERA_LANG}/sparc/static OPERA_DIST_VERSION= ${OPERA_PKG_VERSION:C/u.*//}-${OPERA_VER_DATE}.1-static-qt -WRKSRC= ${WRKDIR}/opera-${OPERA_DIST_VERSION}${OPERA_ARCH}-${OPERA_LANG}-641 +WRKSRC= ${WRKDIR}/opera-${OPERA_DIST_VERSION}${OPERA_ARCH}-${OPERA_LANG}-655 BUILD_DEFS+= INSTALL_ETC_OPERARC INSTALL_ETC_OPERARC?= no @@ -76,55 +95,23 @@ CONF_FILES+= ${PREFIX}/share/opera/config/opera6rc \ CONF_FILES+= ${PREFIX}/share/opera/config/opera6rc.fixed \ /etc/opera6rc.fixed . endif +.endif + +INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 PLIST_SUBST+= OPERA_VER_DATE=${OPERA_VER_DATE:Q} PLIST_SUBST+= OPERA_PKG_VERSION=${OPERA_PKG_VERSION:C/u.*//} -.endif - -.if (((${_OPERA_OPSYS} == SunOS) && (${_OPERA_MACHINE_ARCH} == sparc)) || (${_OPERA_OPSYS} == FreeBSD)) -NO_BUILD= YES - +.if ${EMUL_PKG_FMT} == "plain" SUBST_CLASSES+= opera SUBST_STAGE.opera= post-build SUBST_FILES.opera= man/opera.1 SUBST_SED.opera= -e 's,/usr/,${PREFIX}/,g' -.endif - -INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 - -do-build: -.if (${_OPERA_OPSYS} == NetBSD) || (${_OPERA_OPSYS} == DragonFly) - @ ${SED} -e 's#@EMULDIR@#${EMULDIR}#g' ${FILESDIR}/opera.sh > \ - ${WRKDIR}/opera - -post-install: post-install-manpage - ${INSTALL_SCRIPT} ${WRKDIR}/opera ${PREFIX}/bin - -.include "../../emulators/suse_linux/Makefile.application" - -.if !defined(MANCOMPRESSED) -USE_TOOLS+= gzip -.endif - -.PHONY: post-install-manpage -post-install-manpage: -# The SuSE common makefile defines "MANCOMPRESSED=yes". -. if defined(MANCOMPRESSED) && !empty(MANCOMPRESSED:M[yY][eE][sS]) - ${LN} -fs ../../${EMULSUBDIR}/usr/share/man/man1/opera.1.gz \ - ${PREFIX}/${PKGMANDIR}/man1 -. else - ${GUNZIP_CMD} -c ${EMULDIR}/usr/share/man/man1/opera.1.gz > - ${PREFIX}/${PKGMANDIR}/man1/opera.1 -. endif -.endif - -.if (((${_OPERA_OPSYS} == SunOS) && (${_OPERA_MACHINE_ARCH} == sparc)) || (${_OPERA_OPSYS} == FreeBSD)) do-install: - @${ECHO} "n" > ${WRKSRC}/inst.cmd - @${ECHO} "n" >> ${WRKSRC}/inst.cmd - @cd ${WRKSRC} && ${CAT} ${WRKSRC}/inst.cmd | ./install.sh --prefix=${PREFIX:Q} + @(${ECHO} "n"; ${ECHO} "n") > ${WRKSRC}/inst.cmd + @cd ${WRKSRC} && ${CAT} ${WRKSRC}/inst.cmd | \ + ./install.sh --prefix=${PREFIX:Q} @${ECHO} "=> You can ignore any previous lines about opera6rc" @${ECHO} @@ -132,18 +119,4 @@ post-install: @${INSTALL_MAN} ${WRKSRC}/man/opera.1 ${PREFIX}/${PKGMANDIR}/man1 .endif -# regenerate distinfo for all ports supported by this package -.PHONY: opera-distinfo -opera-distinfo: - ( ${ECHO} '$$'NetBSD'$$'; \ - ${ECHO} ''; \ - _OPERA_OPSYS=NetBSD ${MAKE} distinfo 1>&2; \ - ${GREP} opera distinfo; \ - _OPERA_OPSYS=FreeBSD ${MAKE} distinfo 1>&2; \ - ${GREP} opera distinfo; \ - _OPERA_OPSYS=SunOS _OPERA_MACHINE_ARCH=sparc make distinfo 1>&2; \ - ${GREP} opera distinfo; \ - ) > distinfo.new - ${MV} -f distinfo.new distinfo - .include "../../mk/bsd.pkg.mk" |