# New ports collection makefile for:	xpi-clear_cache_button
# Date created:				14 September 2011
# Whom:					Barbara <barbara.xxx1975@libero.it>
#
# $FreeBSD: ports/www/xpi-clear_cache_button/Makefile,v 1.3 2011/12/28 15:54:02 rene Exp $
#

PORTNAME=	clear_cache_button
PORTVERSION=	0.9f
DISTVERSIONSUFFIX=	-fx
PORTREVISION=	2
CATEGORIES=	www

MAINTAINER=	barbara.xxx1975@libero.it
COMMENT=	Adds a button to the toolbar that clears the browser cache

USE_XPI=	*firefox*

SUB_FILES=	pkg-message

XPI_ID=		{563e4790-7e70-11da-a72b-0800200c9a66}
XPI_NUM=	1801
XPI_FILES=	chrome/content/options.js \
		chrome/content/options.xul \
		chrome/content/overlay.js \
		chrome/content/overlay.xul \
		chrome/locale/en-US/clearcache.properties \
		chrome/locale/en-US/overlay.dtd \
		chrome/skin/classic/logo_16.png \
		chrome/skin/classic/logo_24.png \
		chrome/skin/classic/logo_32.png \
		chrome/skin/classic/overlay.css \
		chrome.manifest \
		install.rdf

XPI_DIRS=	chrome/skin/classic chrome/skin \
		chrome/locale/en-US chrome/locale \
		chrome/content \
		chrome

.include "${.CURDIR}/../xpi-adblock/Makefile.xpi"

post-patch:
	@${REINPLACE_CMD} -e 's|<em:maxVersion>6\.\*<|<em:maxVersion>99.*<|' \
	    ${WRKSRC}/install.rdf

pre-install:
	@${RM} -f ${WRKSRC}/install.rdf.bak

post-install:
	@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}

.include <bsd.port.mk>
