summaryrefslogtreecommitdiff
path: root/x11/gtk3
diff options
context:
space:
mode:
authorprlw1 <prlw1@pkgsrc.org>2017-06-14 16:23:09 +0000
committerprlw1 <prlw1@pkgsrc.org>2017-06-14 16:23:09 +0000
commit8dd99e554e1fc3d7fdf0d84d40203778c90bcbe4 (patch)
tree82615598735fe5be3f7419c4692fccd58adb04ed /x11/gtk3
parent7b3176e84991c07b2d32b6b091b7e2b72453cf87 (diff)
downloadpkgsrc-8dd99e554e1fc3d7fdf0d84d40203778c90bcbe4.tar.gz
Essentially from OBATA Akio in private mail, June 2015:
Introduce Icon Theme cache handling framework Icon Theme cache files are used by GTK+ and maintained with the gtk-update-icon-cache tool. Each Icon Theme package duplicates its own maintainance scripts: only the specified icon theme directory differs. With this framework, if packages have ICON_THEMES=yes, associated icon themes will be detected and their cache files will be maintained automatically. Change cache handling behaviour as follows: * Icon theme caches will be updated if either gtk2+ or gtk3+ gtk-update-icon-cache tool is available. * With installation of gtk2+ package, not only hicolor icon theme but also any other icon theme cache files will be updated. * Prevent removal of icon caches at deinstall, gtk3+ may be installed and using them. * Ditto with gtk3+, gtk2+ may not be installed now, so caches must be maintained by gtk3+.
Diffstat (limited to 'x11/gtk3')
-rw-r--r--x11/gtk3/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/x11/gtk3/Makefile b/x11/gtk3/Makefile
index a49c32c39f4..6bf9dbe7b58 100644
--- a/x11/gtk3/Makefile
+++ b/x11/gtk3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.92 2017/05/19 13:29:05 prlw1 Exp $
+# $NetBSD: Makefile,v 1.93 2017/06/14 16:23:09 prlw1 Exp $
DISTNAME= gtk+-3.22.9
PKGNAME= ${DISTNAME:S/gtk/gtk3/}
@@ -70,6 +70,10 @@ CPPFLAGS+= -DPREFIX="\"${PREFIX}\""
post-install:
${RM} -f ${DESTDIR}${GTK3_IMMODULES_DB}
+FILES_SUBST+= GTK_UPDATE_ICON_CACHE="${PREFIX}/bin/gtk-update-icon-cache"
+FILES_SUBST+= ICON_THEME_DIR="${LOCALBASE}/share/icons"
+INSTALL_TEMPLATES+= ../../x11/gtk2/files/icon-cache.tmpl
+
_BUILDING_GTK3= yes
.include "modules.mk"