You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

boost-win32.yml 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. ---
  2. name: "boost"
  3. suites:
  4. - "lucid"
  5. architectures:
  6. - "i386"
  7. packages:
  8. - "mingw32"
  9. - "faketime"
  10. - "zip"
  11. reference_datetime: "2011-01-30 00:00:00"
  12. remotes: []
  13. files:
  14. - "boost_1_49_0.tar.bz2"
  15. script: |
  16. TMPDIR="$HOME/tmpdir"
  17. mkdir -p $TMPDIR/bin/$GBUILD_BITS $TMPDIR/include
  18. tar xjf boost_1_49_0.tar.bz2
  19. cd boost_1_49_0
  20. echo "--- tmp_dir_helpers.orig.hpp 2012-06-10 01:39:25.403268210 +0200
  21. +++ tmp_dir_helpers.hpp 2012-06-10 01:41:14.653823479 +0200
  22. @@ -19,9 +19,9 @@
  23. #include <string>
  24. #if defined(BOOST_INTERPROCESS_WINDOWS)
  25. - //#define BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTTIME
  26. - //#define BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME
  27. - //#include <boost/interprocess/detail/win32_api.hpp>
  28. + #define BOOST_INTERPROCESS_HAS_WINDOWS_KERNEL_BOOTTIME
  29. + #define BOOST_INTERPROCESS_HAS_KERNEL_BOOTTIME
  30. + #include <boost/interprocess/detail/win32_api.hpp>
  31. #elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
  32. //#include <sys/sysctl.h>
  33. //#if defined(CTL_KERN) && defined (KERN_BOOTTIME)" > useboottime.patch
  34. patch boost/interprocess/detail/tmp_dir_helpers.hpp useboottime.patch
  35. echo "using gcc : 4.4 : i586-mingw32msvc-g++
  36. :
  37. <rc>i586-mingw32msvc-windres
  38. <archiver>i586-mingw32msvc-ar
  39. <cxxflags>-frandom-seed=boost1
  40. ;" > user-config.jam
  41. ./bootstrap.sh --without-icu
  42. ./bjam toolset=gcc target-os=windows threadapi=win32 threading=multi variant=release link=static --user-config=user-config.jam --without-mpi --without-python -sNO_BZIP2=1 -sNO_ZLIB=1 --layout=tagged --build-type=complete $MAKEOPTS stage
  43. for lib in chrono date_time exception filesystem graph iostreams math_c99f math_c99l math_c99 math_tr1f math_tr1l math_tr1 prg_exec_monitor program_options random regex serialization signals system test_exec_monitor thread_win32 unit_test_framework wave wserialization; do
  44. mkdir $lib
  45. (cd $lib ; ar xf ../stage/lib/libboost_${lib}-mt-s.a)
  46. mv $lib $TMPDIR/bin/$GBUILD_BITS
  47. done
  48. cp -a boost $TMPDIR/include
  49. cd $TMPDIR
  50. export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
  51. export FAKETIME=$REFERENCE_DATETIME
  52. zip -r boost-win32-1.49.0-gitian2.zip *
  53. cp boost-win32-1.49.0-gitian2.zip $OUTDIR