pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/firefox firefox: Install scalable icon sizes, bump...
details: https://anonhg.NetBSD.org/pkgsrc/rev/52818f2e0f95
branches: trunk
changeset: 458469:52818f2e0f95
user: nia <nia%pkgsrc.org@localhost>
date: Thu Sep 16 16:46:24 2021 +0000
description:
firefox: Install scalable icon sizes, bump PKGREVISION
diffstat:
www/firefox/Makefile | 50 ++++++++++++++------------------------------------
www/firefox/PLIST | 11 +++++++++--
2 files changed, 23 insertions(+), 38 deletions(-)
diffs (111 lines):
diff -r 0bc32b464816 -r 52818f2e0f95 www/firefox/Makefile
--- a/www/firefox/Makefile Thu Sep 16 16:25:01 2021 +0000
+++ b/www/firefox/Makefile Thu Sep 16 16:46:24 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.491 2021/08/25 11:50:43 manu Exp $
+# $NetBSD: Makefile,v 1.492 2021/09/16 16:46:24 nia Exp $
FIREFOX_VER= ${MOZ_BRANCH}${MOZ_BRANCH_MINOR}
MOZ_BRANCH= 91.0
@@ -6,7 +6,7 @@
DISTNAME= firefox-${FIREFOX_VER}.source
PKGNAME= ${DISTNAME:S/.source//:S/b/beta/:S/esr//}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= www
MASTER_SITES+= ${MASTER_SITE_MOZILLA:=firefox/releases/${FIREFOX_VER}/source/}
EXTRACT_SUFX= .tar.xz
@@ -93,41 +93,15 @@
CHECK_WRKREF_SKIP+= lib/${MOZILLA}/omni.ja
MOZILLA= ${PKGBASE}
-MOZILLA_ICON= ${WRKSRC}/${OBJDIR}/dist/${MOZILLA}/browser/chrome/icons/default/default48.png
+
.if !empty(PKG_OPTIONS:Mofficial-mozilla-branding)
-MOZILLA_NAME= Firefox
+MOZILLA_NAME= Firefox
+MOZILLA_BRANDING= official
.else
-MOZILLA_NAME= Browser
+MOZILLA_NAME= Browser
+MOZILLA_BRANDING= unofficial
.endif
-#
-# Generate list of subst entries for various .cargo-checksum.json files. These
-# are all handled together in one big substitution to simplify things rather
-# than one substitution entry per file, but are kept separate below to ease
-# updating and verification.
-#
-
-#CKSUM_CRATES+= third_party/rust/libc
-
-# patch-third__party_rust_libc_src_unix_bsd_netbsdlike_netbsd_mod.rs
-#CKSUMS+= a3540eab4dbc52e006e84e288bad17e1dae3865fea49020e0ed8b5a7724a9532
-#CKSUMS+= 5e58a2109f5eff0f497dfac150c161c1d517a2227b49e086da96c3d66522ac3a
-
-#CKSUM_CRATES+= third_party/rust/getrandom
-
-# patch-third__party_rust_getrandom_src_lib.rs
-#CKSUMS+= 0e52f6bde42d7bb05c297ce1c25b9879d61b28caba98f6226a152bff538db6c2
-#CKSUMS+= 394425b4ba03c21c494e64d993678f7014575b1e3d590b9ee452b5c2d83ec4ac
-
-#SUBST_CLASSES+= cksum
-#SUBST_STAGE.cksum= pre-configure
-#.for crate in ${CKSUM_CRATES}
-#SUBST_FILES.cksum+= ${crate}/.cargo-checksum.json
-#.endfor
-#.for from to in ${CKSUMS}
-#SUBST_SED.cksum+= -e 's,${from},${to},g'
-#.endfor
-
pre-configure:
cd ${WRKSRC} && autoconf
cd ${WRKSRC}/js/src && autoconf
@@ -173,7 +147,7 @@
post-build:
${SED} -e 's|@MOZILLA@|${MOZILLA}|g' \
-e 's|@MOZILLA_NAME@|${MOZILLA_NAME}|g' \
- -e 's|@FIREFOX_ICON@|${MOZILLA}.png|g' \
+ -e 's|@FIREFOX_ICON@|${MOZILLA}|g' \
< ${FILESDIR}/desktop.in \
> ${WRKDIR}/desktop
@@ -185,8 +159,12 @@
${CHMOD} 755 ${DESTDIR}${PREFIX}/bin/${MOZILLA}
${INSTALL_DATA} ${WRKDIR}/desktop \
${DESTDIR}${PREFIX}/share/applications/${MOZILLA}.desktop
- ${INSTALL_DATA} ${MOZILLA_ICON} \
- ${DESTDIR}${PREFIX}/share/pixmaps/${MOZILLA}.png
+.for i in 16 22 24 32 48 64 128 256
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps
+ ${INSTALL_DATA} ${WRKSRC}/browser/branding/${MOZILLA_BRANDING}/default${i}.png \
+ ${DESTDIR}${PREFIX}/share/icons/hicolor/${i}x${i}/apps/${MOZILLA}.png
+.endfor
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 0bc32b464816 -r 52818f2e0f95 www/firefox/PLIST
--- a/www/firefox/PLIST Thu Sep 16 16:25:01 2021 +0000
+++ b/www/firefox/PLIST Thu Sep 16 16:46:24 2021 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.177 2021/08/13 14:57:52 ryoon Exp $
+@comment $NetBSD: PLIST,v 1.178 2021/09/16 16:46:24 nia Exp $
bin/firefox
lib/firefox/application.ini
lib/firefox/browser/chrome/icons/default/default128.png
@@ -33,4 +33,11 @@
lib/firefox/plugin-container
lib/firefox/removed-files
share/applications/firefox.desktop
-share/pixmaps/firefox.png
+share/icons/hicolor/128x128/apps/firefox.png
+share/icons/hicolor/16x16/apps/firefox.png
+share/icons/hicolor/22x22/apps/firefox.png
+share/icons/hicolor/24x24/apps/firefox.png
+share/icons/hicolor/256x256/apps/firefox.png
+share/icons/hicolor/32x32/apps/firefox.png
+share/icons/hicolor/48x48/apps/firefox.png
+share/icons/hicolor/64x64/apps/firefox.png
Home |
Main Index |
Thread Index |
Old Index