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
30 lines
912 B
Makefile
30 lines
912 B
Makefile
# $NetBSD: buildlink3.mk,v 1.9 2006/07/08 23:11:11 jlam Exp $
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
|
|
|
|
RUBY_RDTOOL_BUILDLINK3_MK:= ${RUBY_RDTOOL_BUILDLINK3_MK}+
|
|
|
|
.if !empty(BUILDLINK_DEPTH:M+)
|
|
BUILDLINK_DEPENDS+= ${RUBY_PKGPREFIX}-rdtool
|
|
.endif
|
|
|
|
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:N${RUBY_PKGPREFIX}-rdtool}
|
|
BUILDLINK_PACKAGES+= ${RUBY_PKGPREFIX}-rdtool
|
|
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}${RUBY_PKGPREFIX}-rdtool
|
|
|
|
.if !empty(RUBY_RDTOOL_BUILDLINK3_MK:M+)
|
|
|
|
RUBY_RD= rd2
|
|
RUBY_RD_VERSION = 0.6.18
|
|
RUBY_RD_REQD= 0.6.14
|
|
|
|
# create string for dependency list
|
|
RUBY_RD_LIST= ${RUBY_VERSION_LIST:C/([1-9][0-9]*)/ruby&-rdtool/g}
|
|
|
|
BUILDLINK_FILES.ruby18-rdtool+= bin/rd2
|
|
BUILDLINK_DEPMETHOD.ruby18-rdtool?= build
|
|
BUILDLINK_API_DEPENDS.ruby18-rdtool+= {${RUBY_RD_LIST}}>=0.6.14
|
|
BUILDLINK_PKGSRCDIR.ruby18-rdtool?= ../../textproc/ruby-rdtool
|
|
.endif
|
|
|
|
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|