blob: 4cca186633d3f9b9c8f9da83a20ea1ef5483dd77 (
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
|
# $NetBSD: buildlink2.mk,v 1.4 2003/09/05 18:50:33 jmmv Exp $
.if !defined(BUILDTOOL_BUILDLINK2_MK)
BUILDTOOL_BUILDLINK2_MK= # defined
BUILDLINK_PACKAGES+= buildtool
BUILDLINK_DEPENDS.buildtool?= buildtool>=0.14
BUILDLINK_PKGSRCDIR.buildtool?= ../../devel/buildtool
BUILDLINK_DEPMETHOD.buildtool?= build
EVAL_PREFIX+= BUILDLINK_PREFIX.buildtool=buildtool
BUILDLINK_PREFIX.buildtool_DEFAULT= ${LOCALBASE}
BUILDTOOL= ${BUILDLINK_PREFIX.buildtool}/bin/buildtool
BUILD_TARGET= all
INSTALL_TARGET= install
HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ${BUILDTOOL} config
CONFIGURE_ENV+= BT_FLAGS_CC="${CFLAGS}"
CONFIGURE_ENV+= BT_FLAGS_CPP="${CPPFLAGS}"
CONFIGURE_ENV+= BT_FLAGS_CXX="${CXXFLAGS}"
CONFIGURE_ENV+= BT_FLAGS_LD="${LDFLAGS}"
CONFIGURE_ENV+= BT_PROG_AWK="${AWK}"
CONFIGURE_ENV+= BT_PROG_CC="${CC}"
CONFIGURE_ENV+= BT_PROG_CXX="${CXX}"
CONFIGURE_ENV+= BT_PROG_LD="${LD}"
CONFIGURE_ENV+= BT_PROG_M4="${M4}"
CONFIGURE_ARGS+= --prefix=${PREFIX}
.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_BUILDLINK2_MK
|