blob: 7388704b848efa43bb826611ef8e6a0f65943524 (
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
|
# $NetBSD: bjam.mk,v 1.3 2006/01/21 09:02:16 jmmv Exp $
#
.include "../../devel/boost-build/buildlink3.mk"
.include "toolset.mk"
.include "../../mk/bsd.prefs.mk"
BJAM= ${BUILDLINK_PREFIX.boost-build}/bin/bjam
BJAM_ARGS+= --builddir=${WRKSRC}/build
BJAM_ARGS+= --layout=system
BJAM_ARGS+= --prefix=${PREFIX}
BJAM_ARGS+= -sBUILD=${BJAM_BUILD:Q}
BJAM_ARGS+= -sTOOLS=${BOOST_TOOLSET}
.if defined(BOOST_DEBUG) && !empty(BOOST_DEBUG:M[Yy][Ee][Ss])
BJAM_BUILD+= debug
.endif
BJAM_BUILD+= <linkflags>${COMPILER_RPATH_FLAG}${PREFIX}/lib
BJAM_BUILD+= <threading>multi
BJAM_BUILD+= release
BJAM_CMD= ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS}
bjam-build:
@cd ${WRKSRC} && ${BJAM_CMD} stage
.if ${OPSYS} == "Darwin"
@cd ${WRKSRC}/stage/lib && \
for f in *-mt.dylib; do \
${LN} -s $${f} \
`${ECHO} $${f} | ${SED} 's|.dylib|.${BOOST_VERSION}.dylib|'`; \
done
.endif
bjam-install:
@cd ${WRKSRC} && ${BJAM_CMD} install
|