2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2014 Alexander Pyhalov. All rights reserved.
14 # Copyright 2015-2017 Aurelien Larcher. All rights reserved.
18 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_VERSION
= 1.78.0
23 COMPONENT_SRC_VERSION
= $(subst .
,_
,$(COMPONENT_VERSION
))
24 COMPONENT_SUMMARY
= boost
- free peer-reviewed portable C
++ source libraries
25 COMPONENT_SRC
= $(COMPONENT_NAME
)_
$(COMPONENT_SRC_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
27 COMPONENT_ARCHIVE_HASH
= sha256
:8681f175d4bdb26c52222665793eef08490d7758529330f98d3b29dd0735bccc
28 COMPONENT_ARCHIVE_URL
= https
://boostorg.jfrog.io
/artifactory
/main
/release
/$(COMPONENT_VERSION
)/source
/$(COMPONENT_ARCHIVE
)
29 COMPONENT_PROJECT_URL
= https
://www.boost.org
30 COMPONENT_FMRI
= system
/library
/boost
31 COMPONENT_CLASSIFICATION
= System
/Libraries
32 COMPONENT_LICENSE
= Boost Software license
33 COMPONENT_LICENSE_FILE
= LICENSE_1_0.txt
35 TEST_TARGET
= $(NO_TESTS
)
36 include $(WS_MAKE_RULES
)/common.mk
38 PATH.prepend
+= $(GCC_BINDIR
)
40 DOCDIR
= $(USRSHAREDOCDIR
)/$(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
44 COMPONENT_BUILD_ENV
+= PATH
="$(PATH)" CC
="$(CC)" CXX
="$(CXX)" LDFLAGS
="$(LDFLAGS)"
46 # Force CPU detection to workaround failure in some virtual environments
47 COMPONENT_BUILD_ENV
+= OPENBLAS_CORETYPE
=Prescott
49 BJAM
= .
/b2
-d
+2 -q address-model
=$(BITS
) cflags="$(CFLAGS)" cxxflags="$(CXXFLAGS)"
51 BJAM_BUILD_ARGS
= $(filter -j
%,$(COMPONENT_BUILD_ARGS
))
52 BJAM_BUILD_ARGS
+= -sBUILD
="release <threading>single/multi"
53 BJAM_BUILD_ARGS
+= --prefix=$(PROTOUSRDIR
)
54 BJAM_BUILD_ARGS
+= --libdir=$(PROTOUSRLIBDIR
$(BITS
))
55 BJAM_BUILD_ARGS
+= -sGCC_ROOT_DIRECTORY
=$(GCC_ROOT
) -sGCC
=gcc
-sGXX
=g
++
56 BJAM_BUILD_ARGS
+= --user-config
=.
/user-config.jam
58 BJAM_BUILD_OPTIONS
:= --without-python
59 BJAM_BUILD_OPTIONS
+= --without-mpi
60 BJAM_BUILD_OPTIONS
+= --without-graph_parallel
61 BJAM_BUILD_ARGS
+= $(BJAM_BUILD_OPTIONS
)
63 COMPONENT_PRE_BUILD_ACTION
= cd
$(@D
) && $(TOUCH
) user-config.jam
;
65 COMPONENT_BUILD_ACTION
= cd
$(@D
); echo
"Build $(BITS)-bit"; \
66 $(ENV
) $(COMPONENT_BUILD_ENV
) \
67 .
/bootstrap.sh
--prefix=$(USRDIR
) --libdir=$(USRLIBDIR
$(BITS
)) \
68 --with-toolset
=gcc
--with-icu
=$(USRDIR
) && \
69 $(BJAM
) $(BJAM_BUILD_ARGS
) release stage
71 COMPONENT_INSTALL_ACTION
= cd
$(@D
); echo
"Install $(BITS)-bit"; \
72 $(ENV
) $(COMPONENT_INSTALL_ENV
) \
73 $(BJAM
) $(BJAM_BUILD_ARGS
) install
75 COMPONENT_POST_INSTALL_ACTION
= \
76 $(MKDIR
) $(PROTO_DIR
)$(DOCDIR
); \
79 \
( -name \
*.htm\
* -o
-name \
*.css
-o
-name \
*.js \
80 -o
-name \
*.gif
-o
-name \
*.jpg
-o
-name \
*.png
-o
-name \
*.PNG
-o
-name \
*.ico \
81 -o
-name \
*.qbk
-o
-name \
*.pattern \
) | \
82 $(GTAR
) -cf
- --files-from
=- |
$(GTAR
) -C
$(PROTO_DIR
)$(DOCDIR
) -xf
- ;
84 # Build dependencies for boost locale
85 REQUIRED_PACKAGES
+= developer
/icu
87 # Auto-generated dependencies
88 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
89 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
90 REQUIRED_PACKAGES
+= compress
/bzip2
91 REQUIRED_PACKAGES
+= compress
/xz
92 REQUIRED_PACKAGES
+= compress
/zstd
93 REQUIRED_PACKAGES
+= library
/icu
94 REQUIRED_PACKAGES
+= library
/zlib
95 REQUIRED_PACKAGES
+= system
/library
96 REQUIRED_PACKAGES
+= system
/library
/math