8ceaed1f17
by creating/deleting them from the (de)install scripts (and not registered in the PLIST). This allows pkg_tarup to work properly and also avoids some warnings during 'make replace'. Changes since 2.4.2: * GtkButton - Give extra space to children of !CAN_FOCUS buttons [Matthias Clasen] * GtkFileChooser - Make DND work when the dialog is modal [Federico Mena Quintero] * GtkToolbar - Don't show empty overflow menu [Soeren Sandmann] - Don't show initial separator in overflow menu [Soeren] - Handle dynamic changes to overflow menu [Soeren] * Documentation improvements [Bastien Nocera, Matthias] * Other bug fixes [Matthias, Soeren, Sven Neumann] * Updated translations (hu,ne)
49 lines
1.7 KiB
Makefile
49 lines
1.7 KiB
Makefile
# $NetBSD: modules.mk,v 1.9 2004/06/20 20:12:20 jmmv Exp $
|
|
#
|
|
# This Makefile fragment is intended to be included by packages that install
|
|
# GTK2 modules. It takes care of rebuilding the corresponding databases at
|
|
# (de)installation time.
|
|
#
|
|
# The following variables can be defined:
|
|
# GTK2_IMMODULES - Set to YES if the package installs immodules.
|
|
# GTK2_LOADERS - Set to YES if the package installs pixbuf loaders.
|
|
#
|
|
|
|
.if !defined(GTK2_MODULES_MK)
|
|
GTK2_MODULES_MK= # defined
|
|
|
|
GTK_QUERY_IMMODULES= ${BUILDLINK_PREFIX.gtk2}/bin/gtk-query-immodules-2.0
|
|
GDK_PIXBUF_QUERY_LOADERS= ${BUILDLINK_PREFIX.gtk2}/bin/gdk-pixbuf-query-loaders
|
|
|
|
.if defined(_BUILDING_GTK2)
|
|
BUILDLINK_PREFIX.gtk2= ${PREFIX}
|
|
GTK2_IMMODULES= YES
|
|
GTK2_LOADERS= YES
|
|
.endif
|
|
|
|
.if defined(GTK2_IMMODULES) && !empty(GTK2_IMMODULES:M[Yy][Ee][Ss])
|
|
FILES_SUBST+= GTK_IMMODULES_DB="${GTK_IMMODULES_DB}"
|
|
FILES_SUBST+= GTK_QUERY_IMMODULES="${GTK_QUERY_IMMODULES}"
|
|
GTK_IMMODULES_DB= ${BUILDLINK_PREFIX.gtk2}/libdata/gtk-2.0/gtk.immodules
|
|
INSTALL_EXTRA_TMPL+= ../../x11/gtk2/files/immodules.tmpl
|
|
DEINSTALL_EXTRA_TMPL+= ../../x11/gtk2/files/immodules.tmpl
|
|
USE_PKGINSTALL= YES
|
|
.endif
|
|
|
|
.if defined(GTK2_LOADERS) && !empty(GTK2_LOADERS:M[Yy][Ee][Ss])
|
|
FILES_SUBST+= GDK_PIXBUF_LOADERS_DB="${GDK_PIXBUF_LOADERS_DB}"
|
|
FILES_SUBST+= GDK_PIXBUF_QUERY_LOADERS="${GDK_PIXBUF_QUERY_LOADERS}"
|
|
GDK_PIXBUF_LOADERS_DB= ${BUILDLINK_PREFIX.gtk2}/libdata/gtk-2.0/gdk-pixbuf.loaders
|
|
INSTALL_EXTRA_TMPL+= ../../x11/gtk2/files/loaders.tmpl
|
|
DEINSTALL_EXTRA_TMPL+= ../../x11/gtk2/files/loaders.tmpl
|
|
USE_PKGINSTALL= YES
|
|
.endif
|
|
|
|
PRINT_PLIST_AWK+= /^libdata\/gtk-2.0/ { next; }
|
|
PRINT_PLIST_AWK+= /^@dirrm libdata\/gtk-2.0/ { next; }
|
|
|
|
.if !defined(_BUILDING_GTK2)
|
|
. include "../../x11/gtk2/buildlink3.mk"
|
|
.endif
|
|
|
|
.endif # GTK2_MODULES_MK
|