pkgsrc/databases/shared-mime-info/mimedb.mk
jlam da2fc85390 Don't check for USE_BUILDLINK3 anymore in these files. These are included
by other package Makefiles, and with the deprecation of USE_BUILDLINK3
support in the infrastructure files, these had the potential to break
existing packages.
2005-03-24 22:42:58 +00:00

30 lines
1.1 KiB
Makefile

# $NetBSD: mimedb.mk,v 1.2 2005/03/24 22:42: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"
USE_PKGINSTALL= YES
INSTALL_EXTRA_TMPL+= ${.CURDIR}/../../databases/shared-mime-info/files/install.tmpl
DEINSTALL_EXTRA_TMPL+= ${.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