blob: 0e4d888aaed1089070dc4485e4b46d4f5b99f660 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: buildlink3.mk,v 1.12 2006/10/01 14:20:58 rillig Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
BUILDTOOL_BUILDLINK3_MK:= ${BUILDTOOL_BUILDLINK3_MK}+
.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= buildtool
.endif
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nbuildtool}
BUILDLINK_PACKAGES+= buildtool
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}buildtool
.if !empty(BUILDTOOL_BUILDLINK3_MK:M+)
BUILDLINK_API_DEPENDS.buildtool+= buildtool>=0.16
BUILDLINK_PKGSRCDIR.buildtool?= ../../devel/buildtool
BUILDLINK_DEPMETHOD.buildtool?= build
BUILDTOOL= ${BUILDLINK_PREFIX.buildtool}/bin/buildtool
USE_TOOLS+= m4
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ${BUILDTOOL} config
CONFIGURE_ENV+= BT_FLAGS_CC=${CFLAGS:Q}
CONFIGURE_ENV+= BT_FLAGS_CPP=${CPPFLAGS:Q}
CONFIGURE_ENV+= BT_FLAGS_CXX=${CXXFLAGS:Q}
CONFIGURE_ENV+= BT_FLAGS_LD=${LDFLAGS:Q}
CONFIGURE_ENV+= BT_PROG_AWK=${TOOLS_AWK:Q}
CONFIGURE_ENV+= BT_PROG_CC=${CC:Q}
CONFIGURE_ENV+= BT_PROG_CXX=${CXX:Q}
CONFIGURE_ENV+= BT_PROG_LD=${LD:Q}
CONFIGURE_ENV+= BT_PROG_M4=${TOOLS_M4:Q}
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
. if !target(do-build)
do-build:
${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${BUILDTOOL} build
. endif
. if !target(do-install)
do-install:
${_PKG_SILENT}${_PKG_DEBUG}${_ULIMIT_CMD}cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} ${BUILDTOOL} install
. endif
.endif # BUILDTOOL_BUILDLINK3_MK
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
|