<?xml version="1.0"?>
<package name="boost">
	<description>Boost C++ Libraries</description>
	<releases>
		<release version="1_90_0" revision="1">
			<deps>
				<dep name="icu"/>
				<dep name="Python3"/>
			</deps>
			<build>
				<script>
					<archive name="boost_$VERSION">
						<!-- acknowledge that using boost stacktrace with libc++ on platforms other than x86-64 may cause memory leaks (not an issue with libstdc++ from GCC)
						     https://github.com/boostorg/stacktrace/issues/163 -->
						<cmd>[ "$ARCH" = "x86_64" ] || sed -i -e 's/ifndef BOOST_STACKTRACE_LIBCXX_RUNTIME_MAY_CAUSE_MEMORY_LEAK/if 0/' libs/stacktrace/src/from_exception.cpp</cmd>

						<cmd>./bootstrap.sh --prefix=/usr --with-python=python3</cmd>
						<cmd>./b2 stage -j$(nproc) threading=multi runtime-link=shared link=shared</cmd>
						<cmd>./b2 install threading=multi runtime-link=shared link=shared</cmd>
					</archive>
				</script>
			</build>
		</release>
	</releases>
</package>
