summaryrefslogtreecommitdiff
path: root/databases/shared-mime-info/Makefile
diff options
context:
space:
mode:
authorjmmv <jmmv>2004-08-31 11:43:44 +0000
committerjmmv <jmmv>2004-08-31 11:43:44 +0000
commite16e10a237f4320561fc190e18dcc437f33b9c4c (patch)
treeac879ac565f1bfa58a46c1f3f8b14dbe3be12b3a /databases/shared-mime-info/Makefile
parent6ffb666fcf726e9a16793ceca5dc2207742f9e61 (diff)
downloadpkgsrc-e16e10a237f4320561fc190e18dcc437f33b9c4c.tar.gz
Update to 0.15:
* 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)
Diffstat (limited to 'databases/shared-mime-info/Makefile')
-rw-r--r--databases/shared-mime-info/Makefile18
1 files changed, 16 insertions, 2 deletions
diff --git a/databases/shared-mime-info/Makefile b/databases/shared-mime-info/Makefile
index 1962bfe8186..05b009ff99e 100644
--- a/databases/shared-mime-info/Makefile
+++ b/databases/shared-mime-info/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.3 2004/06/05 00:07:54 xtraeme Exp $
+# $NetBSD: Makefile,v 1.4 2004/08/31 11:43:44 jmmv Exp $
#
-DISTNAME= shared-mime-info-0.14
+DISTNAME= shared-mime-info-0.15
CATEGORIES= databases
MASTER_SITES= http://freedesktop.org/Software/shared-mime-info/
@@ -14,10 +14,24 @@ PKG_INSTALLATION_TYPES= overwrite pkgviews
GNU_CONFIGURE= YES
USE_BUILDLINK3= YES
USE_LIBTOOL= YES
+USE_PKGINSTALL= YES
USE_PKGLOCALEDIR= YES
+CONFIGURE_ARGS+= --disable-update-mimedb
+
CPPFLAGS+= -DPREFIX=\"\\\"${PREFIX}\\\"\"
+INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
+DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
+
+FILES_SUBST+= MIMEDB_PATH="${PREFIX}/share/mime"
+FILES_SUBST+= UPDATE_MIMEDB="${PREFIX}/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; next; }
+PRINT_PLIST_AWK+= /^@dirrm share\/mime/ { next; }
+
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/pkgconfig/buildlink3.mk"