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.

gitian-osx-bitcoin.yml 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. ---
  2. name: "bitcoin"
  3. suites:
  4. - "precise"
  5. architectures:
  6. - "i386"
  7. packages:
  8. - "git-core"
  9. - "automake"
  10. - "faketime"
  11. - "bsdmainutils"
  12. - "pkg-config"
  13. - "p7zip-full"
  14. - "libtool"
  15. reference_datetime: "2013-06-01 00:00:00"
  16. remotes:
  17. - "url": "https://github.com/bitcoin/bitcoin.git"
  18. "dir": "bitcoin"
  19. files:
  20. - "osx-native-depends-r3.tar.gz"
  21. - "osx-depends-r4.tar.gz"
  22. - "osx-depends-qt-5.2.1-r4.tar.gz"
  23. - "MacOSX10.7.sdk.tar.gz"
  24. script: |
  25. HOST=x86_64-apple-darwin11
  26. PREFIX=`pwd`/osx-cross-depends/prefix
  27. SDK=`pwd`/osx-cross-depends/SDKs/MacOSX10.7.sdk
  28. NATIVEPREFIX=`pwd`/osx-cross-depends/native-prefix
  29. export TAR_OPTIONS="-m --mtime="$REFERENCE_DATE\\\ $REFERENCE_TIME""
  30. export SOURCES_PATH=`pwd`
  31. mkdir -p osx-cross-depends/SDKs
  32. tar -C osx-cross-depends/SDKs -xf ${SOURCES_PATH}/MacOSX10.7.sdk.tar.gz
  33. tar -C osx-cross-depends -xf osx-native-depends-r3.tar.gz
  34. tar -C osx-cross-depends -xf osx-depends-r4.tar.gz
  35. tar -C osx-cross-depends -xf osx-depends-qt-5.2.1-r4.tar.gz
  36. export PATH=`pwd`/osx-cross-depends/native-prefix/bin:$PATH
  37. cd bitcoin
  38. export ZERO_AR_DATE=1
  39. export QT_RCC_TEST=1
  40. ./autogen.sh
  41. ./configure --host=${HOST} --with-boost=${PREFIX} CC=clang CXX=clang++ OBJC=clang OBJCXX=clang++ CFLAGS="-target ${HOST} -mmacosx-version-min=10.6 --sysroot ${SDK} -msse2 -Qunused-arguments" CXXFLAGS="-target ${HOST} -mmacosx-version-min=10.6 --sysroot ${SDK} -msse2 -Qunused-arguments" LDFLAGS="-B${NATIVEPREFIX}/bin -L${PREFIX}/lib -L${SDK}/usr/lib/i686-apple-darwin10/4.2.1" CPPFLAGS="-I${NATIVEPREFIX}/lib/clang/3.2/include -I${PREFIX}/include" SSL_LIBS="-lz -lssl -lcrypto" --disable-tests -with-gui=qt5 PKG_CONFIG_LIBDIR="${PREFIX}/lib/pkgconfig" --disable-dependency-tracking --disable-maintainer-mode
  42. make dist
  43. mkdir -p distsrc
  44. cd distsrc
  45. tar --strip-components=1 -xf ../bitcoin-*.tar*
  46. ./configure --host=${HOST} --with-boost=${PREFIX} CC=clang CXX=clang++ OBJC=clang OBJCXX=clang++ CFLAGS="-target ${HOST} -mmacosx-version-min=10.6 --sysroot ${SDK} -msse2 -Qunused-arguments" CXXFLAGS="-target ${HOST} -mmacosx-version-min=10.6 --sysroot ${SDK} -msse2 -Qunused-arguments" LDFLAGS="-B${NATIVEPREFIX}/bin -L${PREFIX}/lib -L${SDK}/usr/lib/i686-apple-darwin10/4.2.1" CPPFLAGS="-I${NATIVEPREFIX}/lib/clang/3.2/include -I${PREFIX}/include" SSL_LIBS="-lz -lssl -lcrypto" --disable-tests -with-gui=qt5 PKG_CONFIG_LIBDIR="${PREFIX}/lib/pkgconfig" --disable-dependency-tracking --disable-maintainer-mode
  47. make $MAKEOPTS
  48. export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
  49. export FAKETIME=$REFERENCE_DATETIME
  50. export TZ=UTC
  51. make deploy
  52. dmg dmg Bitcoin-Qt.dmg $OUTDIR/Bitcoin-Qt.dmg