diff options
author | S. Davilla <davilla@4pi.com> | 2011-04-11 13:00:28 -0400 |
---|---|---|
committer | S. Davilla <davilla@4pi.com> | 2011-04-12 18:19:24 -0400 |
commit | 3c39e45375ef23099572a4cbbd1e8d2f6869c82b (patch) | |
tree | 8529de20be6632a6ba8ed48662e40619d0b610cb /tools/darwin/depends/boost | |
parent | 1b4f11c4f023893ef3cddf0fe863da8e67f9373d (diff) |
[osx/ios] refactor depends build system to use config.site, for testing only right now
Diffstat (limited to 'tools/darwin/depends/boost')
-rw-r--r-- | tools/darwin/depends/boost/Makefile | 36 | ||||
-rw-r--r-- | tools/darwin/depends/boost/user-config.jam.in | 5 |
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@" +; |