pkgsrc/databases/shared-mime-info/buildlink3.mk
jmmv d63fa3cd53 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)
2004-08-31 11:43:44 +00:00

38 lines
1.3 KiB
Makefile

# $NetBSD: buildlink3.mk,v 1.1 2004/08/31 11:43:44 jmmv Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
SHARED_MIME_INFO_BUILDLINK3_MK:= ${SHARED_MIME_INFO_BUILDLINK3_MK}+
.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= shared-mime-info
.endif
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nshared-mime-info}
BUILDLINK_PACKAGES+= shared-mime-info
.if !empty(SHARED_MIME_INFO_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.shared-mime-info+= shared-mime-info>=0.15
BUILDLINK_PKGSRCDIR.shared-mime-info?= ../../databases/shared-mime-info
.endif # SHARED_MIME_INFO_BUILDLINK3_MK
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.if !empty(SHARED_MIME_INFO_BUILDLINK3_MK:M+)
BUILDLINK_TARGETS+= shared-mime-info-buildlink-fake
_SMI_FAKE_UPDATEDB= ${BUILDLINK_DIR}/bin/update-mime-database
shared-mime-info-buildlink-fake:
${_PKG_SILENT}${_PKG_DEBUG} \
if [ ! -f ${_SMI_FAKE_UPDATEDB} ]; then \
${ECHO_BUILDLINK_MSG} "Creating ${_SMI_FAKE_UPDATEDB}"; \
${MKDIR} ${_SMI_FAKE_UPDATEDB:H}; \
${ECHO} "#!/bin/sh" > ${_SMI_FAKE_UPDATEDB}; \
${ECHO} "echo '[pkgsrc] Doing nothing for update-mime-database' \$$*" >> ${_SMI_FAKE_UPDATEDB}; \
${CHMOD} +x ${_SMI_FAKE_UPDATEDB}; \
fi
.endif # SHARED_MIME_INFO_BUILDLINK3_MK
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}