a6c8bc588c
* installing GSettings schemas, so prepare it with framework in glib2. * fixes immodule cache path. Bump PKGREVISION.
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
# $NetBSD: modules.mk,v 1.3 2011/11/27 11:26:21 obache Exp $
|
|
#
|
|
# This Makefile fragment is intended to be included by packages that install
|
|
# GTK3 modules. It takes care of rebuilding the corresponding databases at
|
|
# (de)installation time.
|
|
#
|
|
# The following variables can be defined:
|
|
# GTK3_IMMODULES - Set to YES if the package installs immodules.
|
|
#
|
|
|
|
.if !defined(GTK3_MODULES_MK)
|
|
GTK3_MODULES_MK= # defined
|
|
|
|
GTK3_QUERY_IMMODULES= ${BUILDLINK_PREFIX.gtk3}/bin/gtk-query-immodules-3.0
|
|
|
|
.if defined(_BUILDING_GTK3)
|
|
BUILDLINK_PREFIX.gtk3= ${PREFIX}
|
|
GTK3_IMMODULES= YES
|
|
.endif
|
|
|
|
.if defined(GTK3_IMMODULES) && !empty(GTK3_IMMODULES:M[Yy][Ee][Ss])
|
|
FILES_SUBST+= GTK3_IMMODULES_DB=${GTK3_IMMODULES_DB:Q}
|
|
FILES_SUBST+= GTK3_QUERY_IMMODULES=${GTK3_QUERY_IMMODULES:Q}
|
|
GTK3_IMMODULES_DB= ${BUILDLINK_PREFIX.gtk3}/lib/gtk-3.0/3.0.0/immodules.cache
|
|
INSTALL_TEMPLATES+= ../../x11/gtk3/files/immodules.tmpl
|
|
DEINSTALL_TEMPLATES+= ../../x11/gtk3/files/immodules.tmpl
|
|
.endif
|
|
|
|
PRINT_PLIST_AWK+= /^libdata\/gtk-3.0/ { next; }
|
|
|
|
.if !defined(_BUILDING_GTK3)
|
|
. include "../../x11/gtk3/buildlink3.mk"
|
|
.endif
|
|
|
|
.endif # GTK3_MODULES_MK
|