c16221a4db
and add a new helper target and script, "show-buildlink3", that outputs a listing of the buildlink3.mk files included as well as the depth at which they are included. For example, "make show-buildlink3" in fonts/Xft2 displays: zlib fontconfig iconv zlib freetype2 expat freetype2 Xrender renderproto
39 lines
1.4 KiB
Makefile
39 lines
1.4 KiB
Makefile
# $NetBSD: buildlink3.mk,v 1.8 2006/07/08 23:10:40 jlam 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
|
|
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}shared-mime-info
|
|
|
|
.if !empty(SHARED_MIME_INFO_BUILDLINK3_MK:M+)
|
|
BUILDLINK_API_DEPENDS.shared-mime-info+= shared-mime-info>=0.15
|
|
BUILDLINK_ABI_DEPENDS.shared-mime-info+= shared-mime-info>=0.16nb2
|
|
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:
|
|
${_PKG_SILENT}${_PKG_DEBUG}set -e; \
|
|
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} "echo '[pkgsrc] Doing nothing for update-mime-database' \$$*" >> ${_SMI_FAKE_UPDATEDB}; \
|
|
${CHMOD} +x ${_SMI_FAKE_UPDATEDB}; \
|
|
fi
|
|
.endif # SHARED_MIME_INFO_BUILDLINK3_MK
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/glib2/buildlink3.mk"
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|