boost_build, revive and bump version (#9410)

This commit is contained in:
Schrijvers Luc
2023-09-12 17:22:09 +00:00
committed by GitHub
parent 1760a9857f
commit 347ddfbda9
3 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
SUMMARY="Makes it easy to build C++ projects, everywhere"
DESCRIPTION="You name your executables and libraries and list their sources. \
Boost.Build takes care about compiling your sources with right options, \
creating static and shared libraries, making executables, and other chores — \
whether you're using gcc, msvc, or a dozen more supported C++ compilers — on \
Windows, OSX, Linux and commercial UNIX systems."
HOMEPAGE="https://www.boost.org/build/index.html"
COPYRIGHT="2006, 2014 Vladimir Prus"
LICENSE="Boost v1.0"
REVISION="1"
SOURCE_URI="https://github.com/boostorg/build/archive/boost-$portVersion.tar.gz"
CHECKSUM_SHA256="6630adb18e9fdddf354ce16ee7c358fa79aa0ae264da3b5604cbed6769ce84e5"
SOURCE_DIR="build-boost-$portVersion"
PATCHES="boost_build-$portVersion.patchset"
ARCHITECTURES="all x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
boost_build$secondaryArchSuffix
cmd:b2$secondaryArchSuffix
cmd:bjam$secondaryArchSuffix
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
"
BUILD()
{
export LIBS=-lbsd
sh bootstrap.sh
}
INSTALL()
{
runConfigure ./b2 install
}

View File

@@ -0,0 +1,23 @@
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,66 @@
From 9d46b34056b2deae1c541431fa70808af18e65e0 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sat, 30 Sep 2017 13:03:23 +0000
Subject: Hack in Haiku support
diff --git a/src/engine/Jambase b/src/engine/Jambase
index 385c6f3..b7d0c1a 100644
--- a/src/engine/Jambase
+++ b/src/engine/Jambase
@@ -51,7 +51,7 @@ BOOST_BUILD_PATH.user-value = $(BOOST_BUILD_PATH) ;
# Policy.
if ! $(BOOST_BUILD_PATH) && $(UNIX)
{
- BOOST_BUILD_PATH = /usr/share/boost-build ;
+ BOOST_BUILD_PATH = /system/data/boost-build ;
}
diff --git a/src/engine/build.jam b/src/engine/build.jam
index de567dd..9ef355a 100644
--- a/src/engine/build.jam
+++ b/src/engine/build.jam
@@ -220,7 +220,7 @@ toolset gcc gcc : "-o " : -D
[ opt --debug : -g -O0 -fno-inline ]
[ opt --profile : -O3 -g -pg ]
-I$(--python-include) -I$(--extra-include) -Wno-long-long
- : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
+ : -L$(--python-lib[1]) -l$(--python-lib[2]) -lbsd ;
## GCC 2.x, 3.x on CYGWIN but without cygwin1.dll
toolset gcc-nocygwin gcc : "-o " : -D
: -s -O3 -mno-cygwin
diff --git a/src/engine/build.sh b/src/engine/build.sh
index 005e4d9..27df891 100755
--- a/src/engine/build.sh
+++ b/src/engine/build.sh
@@ -156,6 +156,13 @@ case $BOOST_JAM_TOOLSET in
BOOST_JAM_OS="NT"
;;
+ *haiku*)
+ BOOST_JAM_CC=gcc
+ BOOST_JAM_OPT_JAM="$BOOST_JAM_OPT_JAM $CFLAGS -lbsd"
+ BOOST_JAM_OPT_MKJAMBASE="$BOOST_JAM_OPT_MKJAMBASE $CFLAGS -lbsd"
+ BOOST_JAM_OPT_YYACC="$BOOST_JAM_OPT_YYACC $CFLAGS -lbsd"
+ ;;
+
*)
BOOST_JAM_CC=gcc
esac
diff --git a/src/engine/jambase.c b/src/engine/jambase.c
index 436c683..5c16716 100644
--- a/src/engine/jambase.c
+++ b/src/engine/jambase.c
@@ -30,7 +30,7 @@ char *jambase[] = {
"\n",
"if ! $(BOOST_BUILD_PATH) && $(UNIX)\n",
"{\n",
-"BOOST_BUILD_PATH = /usr/share/boost-build ;\n",
+"BOOST_BUILD_PATH = /system/data/boost-build ;\n",
"}\n",
"\n",
"\n",
--
2.37.3