summaryrefslogtreecommitdiff
path: root/devel/boost_build/Makefile
blob: 5cc29ca43ae8e139817e5d305f682c2b0f2f0cf7 (plain) (blame)
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
PORTNAME=	build
DISTVERSION=	5.3.2
CATEGORIES=	devel
PKGNAMEPREFIX=	boost-

MAINTAINER=	fluffy@FreeBSD.org
COMMENT=	Extensible cross-platform build tool suite
WWW=		https://boostorg.github.io/build/index.html

LICENSE=	BSL
LICENSE_FILE=	${WRKSRC}/LICENSE.txt

RUN_DEPENDS=	${LOCALBASE}/bin/bjam:devel/boost-jam

USES=		compiler:c++11-lang python:test shebangfix tar:bzip2

USE_GITHUB=	yes
GH_ACCOUNT=	boostorg
GH_PROJECT=	build
GH_TAGNAME=	be69c44

DATADIR=	${PREFIX}/share/b2

CONFLICTS_INSTALL=	b2

PORTSCOUT=	skipv:2014.10 # a very old version is labeled with YYYY.MM scheme in their repository

SHEBANG_GLOB=	*.py

SUB_FILES=	pkg-message

MAKE_CMD=	./bootstrap.sh
ALL_TARGET=	${CHOSEN_COMPILER_TYPE} ${WITH_DEBUG:D--debug}
MAKE_FLAGS=	--cxx="${CXX}" --cxxflags="${CXXFLAGS:N-O*}" BOOST_BUILD_PATH=${DATADIR}
_MAKE_JOBS=	#
MAKEFILE=	#
INSTALL_ENV=	BOOST_BUILD_PATH=${DATADIR}

do-install:
	cd ${WRKSRC} && ./b2 toolset=${CHOSEN_COMPILER_TYPE} install --prefix=${STAGEDIR}${PREFIX}

do-test: # test target fails: https://github.com/boostorg/build/issues/698
	cd ${WRKSRC} && ./b2 toolset=${CHOSEN_COMPILER_TYPE} test --prefix=${STAGEDIR}${PREFIX}

.include <bsd.port.mk>