blob: 77f8e9afd0ae593ef673f67aaffbea00eb4e12f1 (
plain)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# $NetBSD: Makefile,v 1.104 2013/04/06 08:56:35 obache Exp $
DISTNAME= opera-${OPERA_PKG_VERSION}-${OPERA_PKG_BUILD}.${OPERA_ARCH}.${EMUL_OPSYS}
PKGNAME= opera-${OPERA_PKG_VERSION:S/u/pl/}
CATEGORIES= www
MASTER_SITES+= ${MASTER_SITE_OPERA:=${OPERA_DIR}/}
EXTRACT_SUFX= .tar.xz
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.opera.com/
COMMENT= Standards-compliant graphical Web browser
LICENSE= opera-1200-license
EMUL_PLATFORMS= freebsd-i386 freebsd-x86_64 \
linux-i386 linux-x86_64
.include "../../mk/bsd.prefs.mk"
MASTER_SITE_OPERA+= ftp://get.opera.com/pub/opera/ \
http://ftp.sunet.se/pub/www/clients/Opera/ \
ftp://ftp.task.gda.pl/pub/opera/ \
ftp://ftp.tuwien.ac.at/infosys/browsers/opera/ \
ftp://opera.nsc.no/pub/nsc.no/mirrors/operasoftware/ \
ftp://ftp.opera.com/pub/opera/ \
http://ftp.yz.yamagata-u.ac.jp/pub/opera/
USE_LANGUAGES= # empty
NO_BUILD= yes
OPERA_PKG_BUILD= 1748
OPERA_PKG_VERSION= 12.15
OPERA_PKG_VERSION_DIR= 1215
PLIST_VARS+= ia32w linux
.if ${EMUL_OPSYS} == "linux"
EMUL_MODULES.linux= base x11 fontconfig
EMUL_REQD= suse>=11.3
OPERA_ARCH.x86_64= x86_64
OPERA_OPSYS_SUBDIR= linux
.if !defined(EMUL_IS_NATIVE) && ${OPSYS} == "NetBSD"
TOOLS_CREATE+= md5
TOOLS_SCRIPT.md5= /usr/bin/md5 -n "$$2" | { read sum file; echo $$sum; }
.endif
.if ${EMUL_ARCH} == "x86_64"
PLIST.ia32w= yes
.endif
PLIST.linux= yes
.elif ${EMUL_OPSYS} == "freebsd"
OPERA_ARCH.x86_64= amd64
OPERA_OPSYS_SUBDIR= unix
# XXX: TBD
#. if defined(EMUL_IS_NATIVE)
#DEPENDS+= {gtk2+-[0-9]*,kdelibs4-[0-9]*}:../../x11/gtk2
#CHECK_SHLIBS_SUPPORTED= no
#. endif
.endif
OPERA_ARCH= ${OPERA_ARCH.${EMUL_ARCH}:U${EMUL_ARCH}}
OPERA_DIR= ${OPERA_OPSYS_SUBDIR}/${OPERA_PKG_VERSION_DIR}
MANCOMPRESSED= yes
SUBST_CLASSES+= plugin
SUBST_STAGE.plugin= post-install
SUBST_FILES.plugin= ${DESTDIR}${PREFIX}/share/opera/defaults/pluginpath.ini
SUBST_SED.plugin= -e 's,/usr/local/,${PREFIX}/,g'
.if ${PKGMANDIR} != "share/man"
post-extract:
${RUN} cd ${WRKSRC}; mv share/man ${PKGMANDIR}
SUBST_CLASSES+= manpath
SUBST_STAGE.manpath= post-extract
SUBST_FILES.manpath= install
SUBST_SED.manpath= -e 's,share/man,${PKGMANDIR},g'
.endif
do-install:
${RUN} cd ${WRKSRC}; \
${SH} ./install --quiet --prefix ${PREFIX} --force \
--repackage ${DESTDIR}${PREFIX}
.include "../../databases/shared-mime-info/mimedb.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
|