17e39f419d
The actual fix as been done by "pkglint -F */*/buildlink3.mk", and was reviewed manually. There are some .include lines that still are indented with zero spaces although the surrounding .if is indented. This is existing practice.
30 lines
1.1 KiB
Makefile
30 lines
1.1 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.16 2018/01/07 13:04:00 rillig 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>=1.0nb1
|
|
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
|
|
|
|
.endif # SHARED_MIME_INFO_BUILDLINK3_MK
|
|
|
|
BUILDLINK_TREE+= -shared-mime-info
|