aboutsummaryrefslogtreecommitdiffstats
path: root/www/opera/Makefile
blob: 574e415a85c17e8ce1d978e3f31e30cf6e83aa0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# New ports collection makefile for:        opera
# Date created:                 November 5th 2000
# Whom:                     des
#
# $FreeBSD$
#

PORTNAME=   opera
PORTVERSION=    ${OPERA_VER}.${OPERA_DATE}
PORTREVISION=   1
CATEGORIES= www ipv6
MASTER_SITES=   ftp://ftp.opera.com/pub/opera/${MASTER_SITES_VER_PATH} \
        ftp://opera.inode.at/${MASTER_SITES_VER_PATH} \
        http://gd.tuwien.ac.at/infosys/browsers/opera/${MASTER_SITES_VER_PATH} \
        http://ftp.ucr.ac.cr/WWW/opera/${MASTER_SITES_VER_PATH} \
        http://www.microrpm.ca/pub/opera/${MASTER_SITES_VER_PATH} \
        http://opera.eurenet.net/${MASTER_SITES_VER_PATH} \
        ftp://opera.ftp.fu-berlin.de/${MASTER_SITES_VER_PATH} \
        http://ftp.ntua.gr/pub/www/Opera/${MASTER_SITES_VER_PATH} \
        ftp://ftp.wayne.edu/opera/${MASTER_SITES_VER_PATH} \
        http://mirrors.dedipower.com/opera/${MASTER_SITES_VER_PATH} \
        ftp://ftp.mirror.ac.uk/sites/ftp.opera.com/${MASTER_SITES_VER_PATH} \
        http://opera.nedmirror.nl/${MASTER_SITES_VER_PATH} \
        ftp://ftp.tiscali.nl/pub/mirrors/opera/${MASTER_SITES_VER_PATH} \
        ${MASTER_SITE_RINGSERVER:S,%SUBDIR%,net/www/opera/${MASTER_SITES_VER_PATH}&,} \
        http://T32.TecNik93.com/FreeBSD/others_ports/${PORTNAME}${PKGNAMESUFFIX}/sources/
DISTNAME=   ${PORTNAME}-${OPERA_VER}${OPERA_MINVER}-freebsd${OPERA_TYPE}-shared-qt3.${ARCH}

MAINTAINER= freebsd-maintainer@opera.com
COMMENT=    Blazingly fast, full-featured, standards-compliant browser, devel version

OPERA_VER=  10.10
OPERA_MINVER=
OPERA_REL=  final
OPERA_DATE= 20091120
OPERA_BUILD=    4742
OPERA_LIB=  shared
MASTER_SITES_VER_PATH=  unix/freebsd/${OPERA_VER:S/.//}${OPERA_MINVER}/en/${OPERA_ARCH}/${OPERA_LIB}/
WRKSRC=     ${WRKDIR}/${PORTNAME}-${OPERA_VER}-${OPERA_BUILD}.freebsd${OPERA_TYPE}-shared-qt3.${ARCH}

DATADIR=    ${PREFIX}/share/${PORTNAME}${PKGNAMESUFFIX}
DOCSDIR=    ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}

USE_BZIP2=  yes
USE_QT_VER= 3

MAN1=       ${PORTNAME}.1

NO_BUILD=   yes

.include <bsd.port.pre.mk>

ONLY_FOR_ARCHS= i386 amd64

OPERA_ARCH= ${ARCH:S,i386,intel,}

.if ${OSVERSION} >= 700000
OPERA_TYPE= 7
.else
OPERA_TYPE= 6
.endif

do-install:
    @(cd ${WRKSRC} && ./install.sh --prefix=${PREFIX} --docdir=${DOCSDIR} --sharedir=${DATADIR} --exec_prefix=${DATADIR}/bin --plugindir=${DATADIR}/plugins)
    @${CP} ${DATADIR}/bin/operapluginwrapper ${DATADIR}/bin/operapluginwrapper.freebsd
    @${INSTALL_SCRIPT} ${PATCHDIR}/operapluginwrapper ${DATADIR}/bin
    @${INSTALL_DATA} ${WRKSRC}/usr/local/share/opera/defaults/pluginpath.ini ${DATADIR}/defaults
    @${REINPLACE_CMD} -e 's|/usr/X11R6/lib/browser_plugins|${LOCALBASE}/lib/browser_plugins/symlinks/opera|g' \
        ${DATADIR}/defaults/pluginpath.ini
    @${RM} ${DATADIR}/defaults/pluginpath.ini.bak

.include <bsd.port.post.mk>