pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/firefox3 Honour official-mozilla-branding; if this...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bcea426f76f2
branches:  trunk
changeset: 551984:bcea426f76f2
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Sun Dec 21 18:13:01 2008 +0000

description:
Honour official-mozilla-branding; if this option is not set, install a
generic icon and use 'Minefield 3' for the Name field in the .desktop
file. If it is set, install a proper Firefox icon and use 'Firefox 3'
for the Name field in the .desktop file.

diffstat:

 www/firefox3/Makefile |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (36 lines):

diff -r f97f2552122c -r bcea426f76f2 www/firefox3/Makefile
--- a/www/firefox3/Makefile     Sun Dec 21 17:36:33 2008 +0000
+++ b/www/firefox3/Makefile     Sun Dec 21 18:13:01 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2008/12/21 15:53:26 jmcneill Exp $
+# $NetBSD: Makefile,v 1.15 2008/12/21 18:13:01 jmcneill Exp $
 
 MOZILLA=               firefox3        # allow coexisting with firefox2
 COMMENT=               Lightweight gecko-based web browser
@@ -80,16 +80,24 @@
 SCRIPTS_ENV+=          JEMALLOC="@comment "
 .endif
 
+.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
+MOZILLA_NAME=  Firefox 3
+MOZILLA_ICON=  ${WRKSRC}/other-licenses/branding/firefox/default48.png
+.else
+MOZILLA_NAME=  Minefield 3
+MOZILLA_ICON=  ${WRKSRC}/browser/branding/unofficial/default48.png
+.endif
+
 install-desktop:
        ${SED}                                                  \
                -e 's|@MOZILLA@|${MOZILLA}|g'                   \
-               -e 's|@MOZILLA_NAME@|Firefox 3|g'               \
+               -e 's|@MOZILLA_NAME@|${MOZILLA_NAME}|g'         \
                -e 's|@FIREFOX_ICON@|${MOZILLA}.png|g'          \
                <${.CURDIR}/../../www/firefox3/files/${MOZILLA}.desktop.in \
                >${WRKDIR}/${MOZILLA}.desktop
        ${INSTALL_DATA} ${WRKDIR}/${MOZILLA}.desktop            \
            ${PREFIX}/share/applications/${MOZILLA}.desktop
-       ${LN} -sf ${PREFIX}/lib/${MOZILLA}/chrome/icons/default/default48.png \
+       ${INSTALL_DATA} ${MOZILLA_ICON}                         \
            ${PREFIX}/share/pixmaps/${MOZILLA}.png
 
 INSTALLATION_DIRS+=    lib/${MOZILLA}/modules



Home | Main Index | Thread Index | Old Index