1 # $NetBSD: modules.mk,v 1.15 2009/06/14 22:58:11 joerg Exp $
3 # This Makefile fragment is intended to be included by packages that install
4 # GTK2 modules. It takes care of rebuilding the corresponding databases at
5 # (de)installation time.
7 # The following variables can be defined:
8 # GTK2_IMMODULES - Set to YES if the package installs immodules.
11 .if
!defined
(GTK2_MODULES_MK
)
12 GTK2_MODULES_MK
= # defined
14 GTK_QUERY_IMMODULES
= ${BUILDLINK_PREFIX.gtk2
}/bin
/gtk-query-immodules-2.0
16 .if defined
(_BUILDING_GTK2
)
17 BUILDLINK_PREFIX.gtk2
= ${PREFIX}
21 .if defined
(GTK2_IMMODULES
) && !empty
(GTK2_IMMODULES
:M
[Yy
][Ee
][Ss
])
22 FILES_SUBST
+= GTK_IMMODULES_DB
=${GTK_IMMODULES_DB
:Q
}
23 FILES_SUBST
+= GTK_QUERY_IMMODULES
=${GTK_QUERY_IMMODULES
:Q
}
24 GTK_IMMODULES_DB
= ${BUILDLINK_PREFIX.gtk2
}/libdata
/gtk-2.0
/gtk.immodules
25 INSTALL_TEMPLATES
+= ..
/..
/x11
/gtk2
/files
/immodules.tmpl
26 DEINSTALL_TEMPLATES
+= ..
/..
/x11
/gtk2
/files
/immodules.tmpl
29 PRINT_PLIST_AWK
+= /^libdata\
/gtk-2.0
/ { next
; }
31 .if
!defined
(_BUILDING_GTK2
)
32 .
include "../../x11/gtk2/buildlink3.mk"
35 .
endif # GTK2_MODULES_MK