blob: c4599aeb7a113e1c964661dc062efc17f243acd2 (
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
30
31
32
33
|
# $NetBSD: buildlink3.mk,v 1.12 2011/04/22 13:41:57 obache Exp $
BUILDLINK_TREE+= shared-mime-info
.if !defined(SHARED_MIME_INFO_BUILDLINK3_MK)
SHARED_MIME_INFO_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.shared-mime-info+= shared-mime-info>=0.15
BUILDLINK_ABI_DEPENDS.shared-mime-info+= shared-mime-info>=0.90nb1
BUILDLINK_PKGSRCDIR.shared-mime-info?= ../../databases/shared-mime-info
BUILDLINK_TARGETS+= shared-mime-info-buildlink-fake
_SMI_FAKE_UPDATEDB= ${BUILDLINK_DIR}/bin/update-mime-database
.PHONY: shared-mime-info-buildlink-fake
shared-mime-info-buildlink-fake:
${RUN} \
if [ ! -f ${_SMI_FAKE_UPDATEDB:Q} ]; then \
${ECHO_BUILDLINK_MSG} "Creating "${_SMI_FAKE_UPDATEDB:Q}; \
${MKDIR} ${_SMI_FAKE_UPDATEDB:H}; \
${ECHO} "#!/bin/sh" > ${_SMI_FAKE_UPDATEDB}; \
${ECHO} 'if [ "$$1" = "-v" ]; then' ${BUILDLINK_PREFIX.shared-mime-info}/bin/update-mime-database "-v; fi" >> ${_SMI_FAKE_UPDATEDB}; \
${ECHO} "echo '[pkgsrc] Doing nothing for update-mime-database' \$$*" >> ${_SMI_FAKE_UPDATEDB}; \
${CHMOD} +x ${_SMI_FAKE_UPDATEDB}; \
fi
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.endif # SHARED_MIME_INFO_BUILDLINK3_MK
BUILDLINK_TREE+= -shared-mime-info
|