pkgsrc/devel/boost-jam/bjam.mk

41 lines
957 B
Makefile

# $NetBSD: bjam.mk,v 1.3 2008/02/05 22:39:41 heinz Exp $
#
.include "../../devel/boost-jam/buildlink3.mk"
.include "../../devel/boost-build/toolset.mk"
.include "../../mk/bsd.prefs.mk"
BJAM= ${BUILDLINK_PREFIX.boost-jam}/bin/bjam
BJAM_ARGS+= --builddir=${WRKSRC}/build
BJAM_ARGS+= --layout=system
BJAM_ARGS+= --toolset=${BOOST_TOOLSET}
.if ${OPSYS} == "Darwin"
BJAM_ARGS+= -sTARGET_LIBDIR=${PREFIX}/lib
.endif
BJAM_ARGS+= ${BJAM_BUILD}
BJAM_BUILD+= debug
BJAM_BUILD+= release
BJAM_BUILD+= threading=multi
BJAM_BUILD+= link=shared,static
BJAM_CMD= ${SETENV} ${MAKE_ENV} ${BJAM} ${BJAM_ARGS}
PKG_OPTIONS_VAR= PKG_OPTIONS.boost
PKG_SUPPORTED_OPTIONS= debug
.include "../../mk/bsd.options.mk"
PLIST_SRC+= PLIST
UNLIMIT_RESOURCES+= datasize
bjam-build:
@${_ULIMIT_CMD} \
cd ${WRKSRC} && ${BJAM_CMD} --prefix=${PREFIX} stage
bjam-install:
@${_ULIMIT_CMD} \
cd ${WRKSRC} && ${BJAM_CMD} --prefix=${DESTDIR}${PREFIX} install