blob: 3d23e1a1cb1e8542041402eaa6cfe812ff58aa1e (
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: mimedb.mk,v 1.5 2006/06/15 22:13:58 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that install
# mime customization files. It takes care of registering them in the global
# mime database.
#
.if !defined(SHARED_MIME_INFO_MIMEDB_MK)
SHARED_MIME_INFO_MIMEDB_MK= # defined
.include "../../mk/bsd.prefs.mk"
INSTALL_TEMPLATES+= ${.CURDIR}/../../databases/shared-mime-info/files/install.tmpl
DEINSTALL_TEMPLATES+= ${.CURDIR}/../../databases/shared-mime-info/files/install.tmpl
FILES_SUBST+= MIMEDB_PATH="${BUILDLINK_PREFIX.shared-mime-info}/share/mime"
FILES_SUBST+= UPDATE_MIMEDB="${BUILDLINK_PREFIX.shared-mime-info}/bin/update-mime-database"
PRINT_PLIST_AWK+= /^share\/mime\/packages/ { print; next; }
PRINT_PLIST_AWK+= /^share\/mime\// { next; }
PRINT_PLIST_AWK+= /^@dirrm share\/mime\/packages$$/ \
{ print "@comment in shared-mime-info: " $$0; \
next; }
PRINT_PLIST_AWK+= /^@dirrm share\/mime\// { next; }
PRINT_PLIST_AWK+= /^@dirrm share\/mime$$/ { next; }
.include "../../databases/shared-mime-info/buildlink3.mk"
.endif # SHARED_MIME_INFO_MIMEDB_MK
|