5c827f6f0e
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+.
26 lines
733 B
Makefile
26 lines
733 B
Makefile
# $NetBSD: buildlink3.mk,v 1.20 2017/06/14 16:23:09 prlw1 Exp $
|
|
|
|
BUILDLINK_TREE+= hicolor-icon-theme
|
|
|
|
.if !defined(HICOLOR_ICON_THEME_BUILDLINK3_MK)
|
|
HICOLOR_ICON_THEME_BUILDLINK3_MK:=
|
|
|
|
BUILDLINK_API_DEPENDS.hicolor-icon-theme+= hicolor-icon-theme>=0.4
|
|
BUILDLINK_ABI_DEPENDS.hicolor-icon-theme+= hicolor-icon-theme>=0.9nb1
|
|
BUILDLINK_PKGSRCDIR.hicolor-icon-theme?=../../graphics/hicolor-icon-theme
|
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
.if !defined(HICOLOR_ICON_THEME_DEPEND_ONLY)
|
|
|
|
ICON_THEMES= yes
|
|
|
|
.if !defined(NOOP_GTK_UPDATE_ICON_CACHE)
|
|
NOOP_GTK_UPDATE_ICON_CACHE=
|
|
TOOLS_NOOP+= gtk-update-icon-cache
|
|
.endif
|
|
|
|
.endif # HICOLOR_ICON_THEME_DEPEND_ONLY
|
|
.endif # HICOLOR_ICON_THEME_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -hicolor-icon-theme
|