diff options
author | jmcneill <jmcneill> | 2008-12-21 18:13:01 +0000 |
---|---|---|
committer | jmcneill <jmcneill> | 2008-12-21 18:13:01 +0000 |
commit | 938d9ee21327007a174d5c98fd1d84a2a6489f56 (patch) | |
tree | 70fb9f2e448f196c8f956faa848366c205f8ad67 /www | |
parent | f14d3a4dae1592c1ad25098c3bf27360f847249d (diff) | |
download | pkgsrc-938d9ee21327007a174d5c98fd1d84a2a6489f56.tar.gz |
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 (limited to 'www')
-rw-r--r-- | www/firefox3/Makefile | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/www/firefox3/Makefile b/www/firefox3/Makefile index 39e4cbb7c32..2b65ff341c9 100644 --- a/www/firefox3/Makefile +++ b/www/firefox3/Makefile @@ -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 @@ PLIST_SUBST+= JEMALLOC="@comment " 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 |