d63fa3cd53
* Changes in the package: - Add a buildlink3.mk file to be used to add a direct dependency on this package. This file also creates a fake "update-mime-database" wrapper in the buildlink directory so that programs can't run it directly during its build. - Add the mimedb.mk file, which can be used by packages that install mimedb extensions (into share/mime/packages) to automatically rebuild the database at (de)installation time. - The mime database files (except those installed into share/mime/packages) must not be listed in the PLIST, so add some PRINT_PLIST_AWK magic to handle this automatically. * Mime Types Changes: - Added various aliases - Make text files inherit from text/plain - Added text/x-xmi - Added application/x-javascripta * Translations: - new translations: Danish (Ole Laursen), Greek (Nikos Charonitakis), Korean (Cha Young-Ho) - updated translations: Finnish (Ville Skyttä), German (Christian Neumair)
32 lines
1.2 KiB
Makefile
32 lines
1.2 KiB
Makefile
# $NetBSD: mimedb.mk,v 1.1 2004/08/31 11:43:44 jmmv 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; }
|
|
|
|
.if !defined(NO_BUILDLINK) && !empty(USE_BUILDLINK3:M[yY][eE][sS])
|
|
. include "../../databases/shared-mime-info/buildlink3.mk"
|
|
.endif
|
|
|
|
.endif # SHARED_MIME_INFO_MIMEDB_MK
|