summaryrefslogtreecommitdiff
path: root/graphics/gdk-pixbuf2/loaders.mk
blob: ab748a7a9b636386e7e904fa5e1a9847b3d7529c (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
# $NetBSD: loaders.mk,v 1.3 2017/09/30 14:05:24 adam 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.

.if !defined(GTK2_LOADERS_MK)
GTK2_LOADERS_MK=	# defined

.if defined(_BUILDING_GTK2)
BUILDLINK_PREFIX.gdk-pixbuf2=	${PREFIX}
.endif

GDK_PIXBUF_QUERY_LOADERS= \
 ${BUILDLINK_PREFIX.gdk-pixbuf2}/bin/gdk-pixbuf-query-loaders
GDK_PIXBUF_LOADERS_DB= \
 ${BUILDLINK_PREFIX.gdk-pixbuf2}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
FILES_SUBST+=	GDK_PIXBUF_LOADERS_DB=${GDK_PIXBUF_LOADERS_DB:Q}
FILES_SUBST+=	GDK_PIXBUF_QUERY_LOADERS=${GDK_PIXBUF_QUERY_LOADERS:Q}
INSTALL_TEMPLATES+=	../../graphics/gdk-pixbuf2/files/loaders.tmpl
DEINSTALL_TEMPLATES+=	../../graphics/gdk-pixbuf2/files/loaders.tmpl

#PRINT_PLIST_AWK+=	/^lib\/gdk-pixbuf-2.0/2.10.0/loaders.cache { next; }

.if !defined(_BUILDING_GTK2)
.  include "../../graphics/gdk-pixbuf2/buildlink3.mk"
.endif

.endif			# GTK2_LOADERS_MK