mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
101 lines
3.4 KiB
Makefile
101 lines
3.4 KiB
Makefile
# New ports collection makefile for: opera
|
|
# Date created: November 5th 2000
|
|
# Whom: des
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= opera
|
|
PORTVERSION= ${OPERA_VER}
|
|
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_BUILD}.${ARCH}.freebsd
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
COMMENT= Blazingly fast, full-featured, standards-compliant browser
|
|
|
|
LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
|
|
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/update-mime-database:${PORTSDIR}/misc/shared-mime-info
|
|
RUN_DEPENDS= ${LOCALBASE}/bin/update-mime-database:${PORTSDIR}/misc/shared-mime-info
|
|
|
|
OPERA_VER= 11.10
|
|
OPERA_BUILD= 2092
|
|
MASTER_SITES_VER_PATH= unix/${OPERA_VER:S/.//}
|
|
|
|
USE_XZ= yes
|
|
USE_XORG= x11 xext sm ice xft xrender
|
|
USE_GNOME= desktopfileutils
|
|
INSTALLS_ICONS= yes
|
|
|
|
MAN1= opera.1 opera-widget-manager.1
|
|
MANCOMPRESSED= yes
|
|
|
|
NO_BUILD= yes
|
|
|
|
OPTIONS= CUPS "Enable support for printing (requires CUPS)" on \
|
|
VIDEO "Enable support for HTML5 video (requires GStreamer)" on \
|
|
GTK "Use GTK backend" off \
|
|
KDE4 "Use KDE4 backend" off
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if !defined(WITHOUT_CUPS)
|
|
LIB_DEPENDS+= cups.2:${PORTSDIR}/print/cups-client
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_VIDEO)
|
|
USE_GSTREAMER+= vorbis ogg theora good
|
|
.endif
|
|
|
|
.if defined(WITH_GTK)
|
|
USE_GNOME+= gtk20
|
|
.endif
|
|
|
|
.if defined(WITH_KDE4)
|
|
USE_KDE4+= kdelibs
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
|
|
OPERA_ARCH= ${ARCH:S,i386,intel,}
|
|
|
|
.if ${OSVERSION} < 700000
|
|
IGNORE= Only for FreeBSD 7.x and higher
|
|
.endif
|
|
|
|
post-extract:
|
|
@${MV} ${WRKSRC}/share/man ${WRKSRC}/man
|
|
|
|
do-install:
|
|
@${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}.1.gz ${MANPREFIX}/man/man1/
|
|
@${INSTALL_MAN} ${WRKSRC}/man/man1/${PORTNAME}-widget-manager.1.gz ${MANPREFIX}/man/man1/
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/install
|
|
@${REINPLACE_CMD} -e 's|share/man|man|g' ${WRKSRC}/install
|
|
@(cd ${WRKSRC} && ./install --text --system --unattended)
|
|
@${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
|
|
@${CP} ${LOCALBASE}/lib/opera/operapluginwrapper ${LOCALBASE}/lib/opera/operapluginwrapper.freebsd
|
|
@${INSTALL_SCRIPT} ${PATCHDIR}/operapluginwrapper ${LOCALBASE}/lib/opera/
|
|
-${LOCALBASE}/bin/update-desktop-database
|
|
-${LOCALBASE}/bin/update-mime-database ${LOCALBASE}/share/mime
|
|
|
|
.include <bsd.port.post.mk>
|