aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin/depends/boost
diff options
context:
space:
mode:
Diffstat (limited to 'tools/darwin/depends/boost')
-rw-r--r--tools/darwin/depends/boost/Makefile36
-rw-r--r--tools/darwin/depends/boost/user-config.jam.in5
2 files changed, 41 insertions, 0 deletions
diff --git a/tools/darwin/depends/boost/Makefile b/tools/darwin/depends/boost/Makefile
new file mode 100644
index 0000000000..82a5dc55c6
--- /dev/null
+++ b/tools/darwin/depends/boost/Makefile
@@ -0,0 +1,36 @@
+include ../Makefile.include
+include ../config.site.mk
+
+LIBNAME=boost
+VERSION=1_44_0
+SOURCE=$(LIBNAME)_$(VERSION)
+ARCHIVE=$(SOURCE).tar.bz2
+
+LIBDYLIB=$(PREFIX)/lib/libboost_thread.dylib
+
+all: $(LIBDYLIB)
+
+$(TARBALLS_LOCATION)/$(ARCHIVE):
+ $(RETRIEVE_TOOL) $(RETRIEVE_TOOL_FLAGS) $(BASE_URL)/$(ARCHIVE)
+
+$(LIBDYLIB): $(TARBALLS_LOCATION)/$(ARCHIVE)
+ rm -rf $(SOURCE)
+ $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
+ echo $(SOURCE) > .gitignore
+ sed -e "s?@boost_flags@?$(boost_flags)?g" \
+ -e "s?@platform_gcc_version@?$(platform_gcc_version)?g" \
+ user-config.jam.in >> $(SOURCE)/tools/build/v2/user-config.jam
+ cd $(SOURCE); ./bootstrap.sh --prefix=$(PREFIX) --with-libraries=thread
+ cd $(SOURCE); ./bjam --prefix=$(PREFIX) $(bjam_args) install
+
+clean:
+ cd $(SOURCE); ./bjam --clean
+ rm -rf $(PREFIX)/include/boost
+ rm -f $(PREFIX)/lib/libboost*
+ rm -f .installed
+
+distclean::
+ rm -rf $(PREFIX)/include/boost
+ rm -f $(PREFIX)/lib/libboost*
+ rm -rf $(SOURCE) .installed
+
diff --git a/tools/darwin/depends/boost/user-config.jam.in b/tools/darwin/depends/boost/user-config.jam.in
new file mode 100644
index 0000000000..ed7353b13e
--- /dev/null
+++ b/tools/darwin/depends/boost/user-config.jam.in
@@ -0,0 +1,5 @@
+using darwin : @platform_gcc_version@ : g++-@platform_gcc_version@ :
+ <cflags>"-isysroot @boost_flags@ -fvisibility=hidden -fvisibility-inlines-hidden -DBOOST_AC_USE_PTHREADS -DBOOST_SP_USE_PTHREADS"
+ <cxxflags>"-isysroot @boost_flags@ -fvisibility=hidden -fvisibility-inlines-hidden -DBOOST_AC_USE_PTHREADS -DBOOST_SP_USE_PTHREADS"
+ <linkflags>"-Wl,-syslibroot,@boost_flags@"
+;