# New ports collection makefile for:		opera-linuxplugins
# Date created:					December 17th 2006
# Whom:						Arjan van Leeuwen <freebsd-maintainer@opera.com>
#
# $FreeBSD: ports/www/opera-linuxplugins/Makefile,v 1.27 2012/02/19 11:25:17 dinoex Exp $
#

PORTNAME=	opera
PORTVERSION=	${OPERA_VER}
PORTREVISION=	1
CATEGORIES=	www linux
MASTER_SITES=	ftp://opera.inode.at/${MASTER_SITES_VER_PATH} \
		http://gd.tuwien.ac.at/infosys/browsers/opera/${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} \
		http://mirrors.dedipower.com/opera/${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}&,} \
		ftp://ftp.opera.com/pub/opera/${MASTER_SITES_VER_PATH}
PKGNAMESUFFIX=	-linuxplugins
DISTNAME=	${PORTNAME}-${OPERA_VER}-${OPERA_BUILD}.i386.linux

MAINTAINER=	dinoex@FreeBSD.org
COMMENT=	Linux plugin support for the native Opera browser

RUN_DEPENDS=	${PREFIX}/lib/opera/operapluginwrapper:${PORTSDIR}/${PKGCATEGORY}/opera

OPERA_VER?=	11.61
OPERA_BUILD?=	1250
MASTER_SITES_VER_PATH=	linux/${OPERA_VER:S/.//}/

USE_XZ=		yes
USE_LINUX=	yes
USE_LINUX_APPS=	xorglibs

ONLY_FOR_ARCHS=	i386 amd64

NO_BUILD=	yes
EXPLICIT_PACKAGE_DEPENDS=	yes

PLIST_FILES=	lib/opera/operapluginwrapper.linux

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/lib/opera/operapluginwrapper ${PREFIX}/lib/opera/operapluginwrapper.linux

.include <bsd.port.mk>
