flatten 20260225
This commit is contained in:
10
resources/packages/boost/Makefile-python.project
Executable file
10
resources/packages/boost/Makefile-python.project
Executable file
@@ -0,0 +1,10 @@
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
PROJECTS := libs/python/src libs/python/src/converter libs/python/src/object
|
||||
INCPATH := -I . -I ../../Include/python
|
||||
LIBFILE := libboost-python.a
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
|
||||
|
||||
10
resources/packages/boost/Makefile-system.project
Executable file
10
resources/packages/boost/Makefile-system.project
Executable file
@@ -0,0 +1,10 @@
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
PROJECTS := libs/system/src
|
||||
INCPATH := -I .
|
||||
LIBFILE := libboost-system.a
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
|
||||
|
||||
10
resources/packages/boost/Makefile-threads.project
Executable file
10
resources/packages/boost/Makefile-threads.project
Executable file
@@ -0,0 +1,10 @@
|
||||
include $(MAKEDIR)/Makefile.base
|
||||
|
||||
PROJECTS := libs/thread/src libs/thread/src/pthread
|
||||
INCPATH := -I .
|
||||
LIBFILE := libboost-thread.a
|
||||
COPYTO := ../../sdk/lib
|
||||
|
||||
include $(MAKEDIR)/Makefile.lib
|
||||
|
||||
|
||||
6
resources/packages/boost/Makefile.project
Executable file
6
resources/packages/boost/Makefile.project
Executable file
@@ -0,0 +1,6 @@
|
||||
#include $(MAKEDIR)/Makefile.base
|
||||
|
||||
all_projects:
|
||||
$(MAKE) -f Makefile-threads.project
|
||||
$(MAKE) -f Makefile-system.project
|
||||
# $(MAKE) -f Makefile-python.project
|
||||
26
resources/packages/boost/class.cpp.patch
Executable file
26
resources/packages/boost/class.cpp.patch
Executable file
@@ -0,0 +1,26 @@
|
||||
--- class.cpp 2015-09-02 08:07:49.000000000 -0400
|
||||
+++ class-new.cpp 2016-01-16 12:30:22.000000000 -0500
|
||||
@@ -308,6 +308,23 @@
|
||||
((objects::instance<>*)self)->objects = this;
|
||||
}
|
||||
|
||||
+// Uninstall the instance data for a C++ object into a Python instance
|
||||
+// object.
|
||||
+void instance_holder::uninstall(PyObject* self) throw()
|
||||
+{
|
||||
+ assert(self->ob_type->ob_type == &class_metatype_object);
|
||||
+ instance_holder **chain = &(((objects::instance<>*)self)->objects);
|
||||
+
|
||||
+ // iterate through, looking for the pointer that points to this
|
||||
+ while ( *chain && *chain != this )
|
||||
+ chain = &((*chain)->m_next);
|
||||
+
|
||||
+ // set that pointer to point to the m_next
|
||||
+ if (*chain)
|
||||
+ *chain = m_next;
|
||||
+
|
||||
+ m_next = 0;
|
||||
+}
|
||||
|
||||
namespace objects
|
||||
{
|
||||
10
resources/packages/boost/instance_holder.hpp.patch
Executable file
10
resources/packages/boost/instance_holder.hpp.patch
Executable file
@@ -0,0 +1,10 @@
|
||||
--- instance_holder.hpp 2015-09-02 08:07:49.000000000 -0400
|
||||
+++ instance_holder-new.hpp 2016-01-16 12:35:58.000000000 -0500
|
||||
@@ -32,6 +32,7 @@
|
||||
virtual void* holds(type_info, bool null_ptr_only) = 0;
|
||||
|
||||
void install(PyObject* inst) throw();
|
||||
+ void uninstall(PyObject* inst) throw();
|
||||
|
||||
// These functions should probably be located elsewhere.
|
||||
|
||||
39
resources/packages/boost/prepare
Executable file
39
resources/packages/boost/prepare
Executable file
@@ -0,0 +1,39 @@
|
||||
set -x
|
||||
|
||||
LIB=boost
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
mkdir -p sdk/include
|
||||
pushd sdk/include
|
||||
ln -fs ../../boost/$LIB/boost boost
|
||||
popd
|
||||
|
||||
mkdir boost
|
||||
pushd boost
|
||||
|
||||
mkdir -p ../../downloads
|
||||
pushd ../../downloads
|
||||
# wget -N https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2
|
||||
# wget -N https://boostorg.jfrog.io/artifactory/main/release/1.85.0/source/boost_1_85_0.tar.bz2
|
||||
wget -N https://gigenet.dl.sourceforge.net/project/boost/boost/1.85.0/boost_1_85_0.tar.bz2
|
||||
popd
|
||||
|
||||
ln -s ../../downloads/boost_*
|
||||
|
||||
$DIR/../../prepare-template $LIB $DIR
|
||||
|
||||
patch $LIB/boost/python/instance_holder.hpp < $DIR/instance_holder.hpp.patch
|
||||
patch $LIB/libs/python/src/object/class.cpp < $DIR/class.cpp.patch
|
||||
patch $LIB/boost/multiprecision/tommath.hpp < $DIR/tommath.hpp.patch
|
||||
|
||||
cp $DIR/Makefile* $LIB
|
||||
|
||||
pushd $LIB
|
||||
MAKE_PROJECT_FILE=Makefile-threads.project make
|
||||
MAKE_PROJECT_FILE=Makefile-system.project make
|
||||
# MAKE_PROJECT_FILE=Makefile-python.project make
|
||||
popd
|
||||
|
||||
popd
|
||||
|
||||
|
||||
4
resources/packages/boost/tommath.hpp.patch
Normal file
4
resources/packages/boost/tommath.hpp.patch
Normal file
@@ -0,0 +1,4 @@
|
||||
16c16
|
||||
< #include <tommath.h>
|
||||
---
|
||||
> #include <tommath/tommath.h>
|
||||
Reference in New Issue
Block a user