summaryrefslogtreecommitdiff
path: root/www/opera/Makefile
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2005-04-30 22:25:15 +0000
committertron <tron@pkgsrc.org>2005-04-30 22:25:15 +0000
commitc1a71c3dc60fb6a4844e4467424d95a775b29d5a (patch)
tree5ceae07be625e26d23be4d6e1468515de4725397 /www/opera/Makefile
parentc4f2f58a966f2243e8c9f12aa8716f089b827e26 (diff)
downloadpkgsrc-c1a71c3dc60fb6a4844e4467424d95a775b29d5a.tar.gz
Replace outdated an insecure "opera7" package with a new "opera" package
based on version 8.0. Major changes since version 7.54u2: - New and improved security features - "Fit to window width" abolishes horizontal scrolling - Improved default menu and toolbar setups - Support for XmlHttpRequest giving full Gmail support - New Start bar gives easy access to useful features - Notification of blocked pop-ups - Simple retrieval of closed pages and blocked pop-ups. - Elegant e-mail attachment handling - Improved newsfeed reader - Automated weekly check for new updates - New User JavaScript feature
Diffstat (limited to 'www/opera/Makefile')
-rw-r--r--www/opera/Makefile143
1 files changed, 143 insertions, 0 deletions
diff --git a/www/opera/Makefile b/www/opera/Makefile
new file mode 100644
index 00000000000..6e689768b4c
--- /dev/null
+++ b/www/opera/Makefile
@@ -0,0 +1,143 @@
+# $NetBSD: Makefile,v 1.32 2005/04/30 22:25:15 tron Exp $
+
+DISTNAME= opera-${OPERA_PKG_VERSION:S/u/pl/}
+PKGREVISION= # empty
+CATEGORIES= www
+MASTER_SITES= http://www.panix.com/opera/files/${OPERA_DIR}/ \
+ ftp://ftp.hu-berlin.de/pub/www/opera/${OPERA_DIR}/ \
+ http://ftp.sunet.se/pub/www/clients/Opera/${OPERA_DIR}/ \
+ http://opera.online.no/${OPERA_DIR}/ \
+ ftp://ftp.task.gda.pl/pub/opera/${OPERA_DIR}/ \
+ ftp://ftp.tuwien.ac.at/infosys/browsers/opera/${OPERA_DIR}/ \
+ ftp://ftp.opera.com/pub/opera/${OPERA_DIR}/
+DISTFILES= opera-${OPERA_DIST_VERSION}${OPERA_ARCH}-${OPERA_LANG}${EXTRACT_SUFX}
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.opera.com/
+COMMENT= Small, fast and customizable WWW client
+
+ONLY_FOR_PLATFORM= NetBSD-*-i386 SunOS-*-sparc FreeBSD-*-i386
+
+LICENSE= opera-license
+
+#PKG_INSTALLATION_TYPES= overwrite pkgviews
+
+NO_CONFIGURE= YES
+NO_TOOLS= YES
+USE_LANGUAGES= # empty
+
+.include "../../mk/bsd.prefs.mk"
+
+OPERA_LANG= en
+OPERA_VER_DATE= 20050415
+OPERA_PKG_VERSION= 8.0
+
+_OPERA_OPSYS?= ${OPSYS}
+_OPERA_MACHINE_ARCH?= ${MACHINE_ARCH}
+
+.if (${_OPERA_OPSYS} == NetBSD)
+DEPENDS+= suse_x11>=7.3:../../emulators/${SUSE_DIR_PREFIX}_x11
+
+# we need the DIST_SUBDIR=. because of the inclusion of suse's Makefile.common
+DIST_SUBDIR= .
+EXTRACT_ONLY= # empty
+PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
+
+EXTRACT_SUFX= .rpm
+OPERA_ARCH= .i386
+OPERA_DIR= linux/${OPERA_PKG_VERSION:S/.//g:C/beta.*//}/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= 0
+
+.elif (${_OPERA_OPSYS} == FreeBSD)
+EXTRACT_SUFX= .tar.bz2
+OPERA_ARCH= .i386.freebsd
+OPERA_DIR= unix/freebsd/${OPERA_PKG_VERSION:S/.//g:}/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}
+
+OWN_DIRS= ${PREFIX}/share/opera/plugins
+
+.elif (${_OPERA_OPSYS} == SunOS) && (${_OPERA_MACHINE_ARCH} == sparc)
+EXTRACT_SUFX= .tar.bz2
+OPERA_ARCH= -sol8-sparc-local
+OPERA_DIR= unix/solaris/${OPERA_PKG_VERSION:S/.//g}/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}
+
+BUILD_DEFS+= INSTALL_ETC_OPERARC
+INSTALL_ETC_OPERARC?= no
+OWN_DIRS= ${PREFIX}/lib/opera/plugins
+
+. if !empty(INSTALL_ETC_OPERARC:M[yY][eE][sS])
+CONF_FILES+= ${PREFIX}/share/opera/config/opera6rc \
+ /etc/opera6rc
+CONF_FILES+= ${PREFIX}/share/opera/config/opera6rc.fixed \
+ /etc/opera6rc.fixed
+. endif
+
+PLIST_SUBST+= OPERA_VER_DATE=${OPERA_VER_DATE}
+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
+USE_PKGINSTALL= YES
+
+SUBST_CLASSES+= opera7
+SUBST_STAGE.opera7= pre-install
+SUBST_FILES.opera7= ${WRKSRC}/man/opera.1
+SUBST_SED.opera7= -e 's,/usr/,${PREFIX}/,g'
+
+.endif
+
+do-build:
+.if (${_OPERA_OPSYS} == NetBSD)
+ @ ${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"
+
+post-install-manpage:
+ # The SuSE common makefile defines "MANCOMPRESSED".
+. if defined(MANCOMPRESSED)
+ ${GZIP_CMD} ${EMULDIR}/usr/share/man/man1/opera.1
+ ${LN} -fs ../../${EMULSUBDIR}/usr/share/man/man1/opera.1.gz \
+ ${PREFIX}/man/man1
+. else
+ ${LN} -fs ../../${EMULSUBDIR}/usr/share/man/man1/opera \
+ ${PREFIX}/man/man1
+. endif
+.endif
+
+.if (((${_OPERA_OPSYS} == SunOS) && (${_OPERA_MACHINE_ARCH} == sparc)) || (${_OPERA_OPSYS} == FreeBSD))
+do-install:
+ @cd ${WRKSRC} && ${ECHO} "n" | ./install.sh --prefix=${PREFIX}
+ @${ECHO} "=> You can ignore any previous lines about opera6rc"
+ @${ECHO}
+
+post-install:
+ @${INSTALL_MAN} ${WRKSRC}/man/opera.1 ${PREFIX}/man/man1
+.endif
+
+# regenerate distinfo for all ports supported by this package
+opera-distinfo:
+ ( echo '$$NetBSD: Makefile,v 1.32 2005/04/30 22:25:15 tron Exp $$'; 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"