summaryrefslogtreecommitdiff
path: root/x11/gtk3/modules.mk
blob: 504791746ac54f97397aa96d0d1416df71272f1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $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