Added boost.
authorDaniel G <giri@nwrk.biz>
Tue, 22 Jan 2019 01:51:47 +0000 (02:51 +0100)
committerDaniel G <giri@nwrk.biz>
Tue, 22 Jan 2019 01:51:47 +0000 (02:51 +0100)
_template/packages/boost/.gitignore [new file with mode: 0644]
_template/packages/boost/Makefile [new file with mode: 0644]
_template/packages/boost/boost_1_68_0.zip [new file with mode: 0644]

diff --git a/_template/packages/boost/.gitignore b/_template/packages/boost/.gitignore
new file mode 100644 (file)
index 0000000..5f2cde1
--- /dev/null
@@ -0,0 +1 @@
+boost_1_68_0/
diff --git a/_template/packages/boost/Makefile b/_template/packages/boost/Makefile
new file mode 100644 (file)
index 0000000..f48da82
--- /dev/null
@@ -0,0 +1,38 @@
+############################################################################
+# Workfile: Makefile
+# Author: Daniel Giritzer, S1810567004 (daniel@giritzer.eu)
+# Date: 03.12.2018
+# Description: Universal Makefile for Unix based Operating Systems
+############################################################################
+WORKDIR = $(shell pwd)
+
+all: unpack linux clean windows
+
+unpack:
+       unzip -o boost_1_68_0.zip
+
+windows: unpack
+       echo "using gcc : mingw : i686-w64-mingw32-g++ : <rc>/usr/bin/x86_64-w64-mingw32-windres ;" > $(WORKDIR)/boost_1_68_0/user-config.jam
+       cd $(WORKDIR)/boost_1_68_0; \
+       ./bootstrap.sh; \
+       ./b2 --user-config="user-config.jam" cflags="-m32 -mwindows" cxxflags="-m32 -mwindows" linkflags="-m32 -static-libgcc -static-libstdc++"  address-model=32 toolset=gcc-mingw link=static target-os=windows runtime-link=static variant=release --with-system --with-date_time --with-regex --with-thread
+       mkdir -p $(WORKDIR)/../../include
+       mkdir -p $(WORKDIR)/../../lib/mingw32
+       cp -rf $(WORKDIR)/boost_1_68_0/boost $(WORKDIR)/../../include
+       cp -r  $(WORKDIR)/boost_1_68_0/stage/lib/* ../../lib/mingw32/
+
+linux: unpack
+       cd $(WORKDIR)/boost_1_68_0; \
+       ./bootstrap.sh; \
+       ./b2 cflags="-m32" cxxflags="-m32" linkflags="-m32 -static-libgcc -static-libstdc++" address-model=32 link=static runtime-link=static variant=release --with-system --with-date_time --with-regex --with-thread
+       mkdir -p $(WORKDIR)/../../include
+       mkdir -p $(WORKDIR)/../../lib/linux32
+       cp -rf $(WORKDIR)/boost_1_68_0/boost $(WORKDIR)/../../include
+       cp -r  $(WORKDIR)/boost_1_68_0/stage/lib/* ../../lib/linux32/
+
+clean:
+       cd $(WORKDIR)/boost_1_68_0; \
+       ./bootstrap.sh; \
+       ./b2 --clean
+       rm -rf $(WORKDIR)/boost_1_68_0/user-config.jam
+       rm -rf $(WORKDIR)/boost_1_68_0/stage/lib
diff --git a/_template/packages/boost/boost_1_68_0.zip b/_template/packages/boost/boost_1_68_0.zip
new file mode 100644 (file)
index 0000000..45d7082
Binary files /dev/null and b/_template/packages/boost/boost_1_68_0.zip differ