diff --git a/.travis.yml b/.travis.yml index 52ea69ad0..aae310aa0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ env: - CASHER_TIME_OUT=599 # one second less than 10m to avoid 10m timeout error: https://github.com/Project-OSRM/osrm-backend/issues/2742 - CCACHE_VERSION=3.3.1 - CMAKE_VERSION=3.6.2 - - MASON="$(pwd)/third_party/mason/mason" + - MASON="$(pwd)/scripts/mason.sh" matrix: fast_finish: true @@ -135,8 +135,13 @@ before_install: - source ./scripts/install_node.sh 4 - npm install -g "npm@>=3" # Upgrade to npm >v2 to reduce size of downloaded dependencies - npm install + # Bootstrap cmake to be able to run mason + - CMAKE_URL="https://mason-binaries.s3.amazonaws.com/${TRAVIS_OS_NAME}-x86_64/cmake/${CMAKE_VERSION}.tar.gz" + - CMAKE_DIR="mason_packages/${TRAVIS_OS_NAME}-x86_64/cmake/${CMAKE_VERSION}" + - mkdir -p ${CMAKE_DIR} + - travis_retry wget --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C ${CMAKE_DIR} || exit 1 + - export PATH=${CMAKE_DIR}/bin:${PATH} - ${MASON} install ccache ${CCACHE_VERSION} && export PATH=$(${MASON} prefix ccache ${CCACHE_VERSION})/bin:${PATH} - - ${MASON} install cmake ${CMAKE_VERSION} && export PATH=$(${MASON} prefix cmake ${CMAKE_VERSION})/bin:${PATH} - | if [[ ! -z ${CLANG_VERSION} ]]; then export CCOMPILER='clang' diff --git a/CMakeLists.txt b/CMakeLists.txt index 5893b6fd9..69aaeabbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,8 @@ option(ENABLE_LTO "Use LTO if available" OFF) option(ENABLE_FUZZING "Fuzz testing using LLVM's libFuzzer" OFF) option(ENABLE_GOLD_LINKER "Use GNU gold linker if available" ON) +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") + if(ENABLE_MASON) # versions in use set(MASON_BOOST_VERSION "1.63.0") @@ -41,8 +43,7 @@ if(ENABLE_MASON) message(FATAL_ERROR "curl command required with -DENABLE_MASON") endif() - set(MASON_COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/third_party/mason/mason) - include(${CMAKE_CURRENT_SOURCE_DIR}/third_party/mason/mason.cmake) + include(mason) endif() # be compatible with version handling before cmake 3.x @@ -78,8 +79,6 @@ include(CheckCXXCompilerFlag) include(FindPackageHandleStandardArgs) include(GNUInstallDirs) -list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") - set(bitness 32) if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(bitness 64) diff --git a/third_party/mason/mason.cmake b/cmake/mason.cmake similarity index 71% rename from third_party/mason/mason.cmake rename to cmake/mason.cmake index 31b231261..d33c3439f 100644 --- a/third_party/mason/mason.cmake +++ b/cmake/mason.cmake @@ -1,72 +1,34 @@ -string(RANDOM LENGTH 16 MASON_INVOCATION) - -# Directory where Mason packages are located; typically ends with mason_packages -if (NOT MASON_PACKAGE_DIR) - set(MASON_PACKAGE_DIR "${CMAKE_SOURCE_DIR}/mason_packages") -endif() - -# URL prefix of where packages are located. -if (NOT MASON_REPOSITORY) - set(MASON_REPOSITORY "https://mason-binaries.s3.amazonaws.com") -endif() - -# Path to Mason executable -if (NOT MASON_COMMAND) - set(MASON_COMMAND "${CMAKE_SOURCE_DIR}/.mason/mason") -endif() - -# Determine platform -# we call uname -s manually here since -# CMAKE_HOST_SYSTEM_NAME will not be defined before the project() call -execute_process( - COMMAND uname -s - OUTPUT_VARIABLE UNAME_S - OUTPUT_STRIP_TRAILING_WHITESPACE) - -if(NOT MASON_PLATFORM) - if (UNAME_S STREQUAL "Darwin") - set(MASON_PLATFORM "macos") - else() - set(MASON_PLATFORM "linux") - endif() -endif() - - -# Determine platform version string -if(MASON_PLATFORM STREQUAL "ios") - set(MASON_PLATFORM_VERSION "8.0") # Deployment target version -elseif(MASON_PLATFORM STREQUAL "android") - if (ANDROID_ABI STREQUAL "armeabi") - set(MASON_PLATFORM_VERSION "arm-v5-9") - elseif(ANDROID_ABI STREQUAL "arm64-v8a") - set(MASON_PLATFORM_VERSION "arm-v8-21") - elseif(ANDROID_ABI STREQUAL "x86") - set(MASON_PLATFORM_VERSION "x86-9") - elseif(ANDROID_ABI STREQUAL "x86_64") - set(MASON_PLATFORM_VERSION "x86-64-21") - elseif(ANDROID_ABI STREQUAL "mips") - set(MASON_PLATFORM_VERSION "mips-9") - elseif(ANDROID_ABI STREQUAL "mips64") - set(MASON_PLATFORM_VERSION "mips64-21") - else() - set(MASON_PLATFORM_VERSION "arm-v7-9") - endif() -elseif(NOT MASON_PLATFORM_VERSION) - execute_process( - COMMAND uname -m - OUTPUT_VARIABLE MASON_PLATFORM_VERSION - OUTPUT_STRIP_TRAILING_WHITESPACE) -endif() - -if(MASON_PLATFORM STREQUAL "macos") - set(MASON_PLATFORM "osx") -endif() - -set(ENV{MASON_PLATFORM} "${MASON_PLATFORM}") -set(ENV{MASON_PLATFORM_VERSION} "${MASON_PLATFORM_VERSION}") +# Mason CMake include(CMakeParseArguments) +function(mason_detect_platform) + # Determine platform + if(NOT MASON_PLATFORM) + # we call uname -s manually here since + # CMAKE_HOST_SYSTEM_NAME will not be defined before the project() call + execute_process( + COMMAND uname -s + OUTPUT_VARIABLE UNAME + OUTPUT_STRIP_TRAILING_WHITESPACE) + + if (UNAME STREQUAL "Darwin") + set(MASON_PLATFORM "osx" PARENT_SCOPE) + else() + set(MASON_PLATFORM "linux" PARENT_SCOPE) + endif() + endif() + + # Determine platform version string + if(NOT MASON_PLATFORM_VERSION) + execute_process( + COMMAND uname -m + OUTPUT_VARIABLE MASON_PLATFORM_VERSION + OUTPUT_STRIP_TRAILING_WHITESPACE) + set(MASON_PLATFORM_VERSION "${MASON_PLATFORM_VERSION}" PARENT_SCOPE) + endif() +endfunction() + function(mason_use _PACKAGE) if(NOT _PACKAGE) message(FATAL_ERROR "[Mason] No package name given") @@ -103,7 +65,7 @@ function(mason_use _PACKAGE) if (NOT EXISTS "${_CACHE_PATH}") # Download the package set(_URL "${MASON_REPOSITORY}/${_SLUG}.tar.gz") - message(STATUS "[Mason] Downloading package ${_URL}...") + message("[Mason] Downloading package ${_URL}...") set(_FAILED) set(_ERROR) @@ -123,39 +85,16 @@ function(mason_use _PACKAGE) endif() # Unpack the package - message(STATUS "[Mason] Unpacking package to ${_INSTALL_PATH_RELATIVE}...") + message("[Mason] Unpacking package to ${_INSTALL_PATH_RELATIVE}...") file(MAKE_DIRECTORY "${_INSTALL_PATH}") execute_process( COMMAND ${CMAKE_COMMAND} -E tar xzf "${_CACHE_PATH}" WORKING_DIRECTORY "${_INSTALL_PATH}") endif() - # Create a config file if it doesn't exist in the package - # TODO: remove this once all packages have a mason.ini file + # Error out if there is no config file. if(NOT EXISTS "${_INSTALL_PATH}/mason.ini") - # Change pkg-config files - file(GLOB_RECURSE _PKGCONFIG_FILES "${_INSTALL_PATH}/*.pc") - foreach(_PKGCONFIG_FILE IN ITEMS ${_PKGCONFIG_FILES}) - file(READ "${_PKGCONFIG_FILE}" _PKGCONFIG_FILE_CONTENT) - string(REGEX REPLACE "(^|\n)prefix=[^\n]*" "\\1prefix=${_INSTALL_PATH}" _PKGCONFIG_FILE_CONTENT "${_PKGCONFIG_FILE_CONTENT}") - file(WRITE "${_PKGCONFIG_FILE}" "${_PKGCONFIG_FILE_CONTENT}") - endforeach() - - if(NOT EXISTS "${MASON_COMMAND}") - message(FATAL_ERROR "[Mason] Could not find Mason command at ${MASON_COMMAND}") - endif() - - set(_FAILED) - set(_ERROR) - execute_process( - COMMAND ${MASON_COMMAND} config ${_PACKAGE} ${_VERSION} - WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} - OUTPUT_FILE "${_INSTALL_PATH}/mason.ini" - RESULT_VARIABLE _FAILED - ERROR_VARIABLE _ERROR) - if(_FAILED) - message(FATAL_ERROR "[Mason] Could not get configuration for package ${_PACKAGE} ${_VERSION}: ${_ERROR}") - endif() + message(FATAL_ERROR "[Mason] Could not find mason.ini for package ${_PACKAGE} ${_VERSION}") endif() set(MASON_PACKAGE_${_PACKAGE}_PREFIX "${_INSTALL_PATH}" CACHE STRING "${_PACKAGE} ${_INSTALL_PATH}" FORCE) @@ -229,3 +168,48 @@ macro(target_add_mason_package _TARGET _VISIBILITY _PACKAGE) target_compile_options(${_TARGET} ${_VISIBILITY} "${MASON_PACKAGE_${_PACKAGE}_OPTIONS}") target_link_libraries(${_TARGET} ${_VISIBILITY} "${MASON_PACKAGE_${_PACKAGE}_LIBRARIES}") endmacro() + +# Setup + +string(RANDOM LENGTH 16 MASON_INVOCATION) + +# Read environment variables if CMake is run in command mode +if (CMAKE_ARGC) + set(MASON_PLATFORM "$ENV{MASON_PLATFORM}") + set(MASON_PLATFORM_VERSION "$ENV{MASON_PLATFORM_VERSION}") + set(MASON_PACKAGE_DIR "$ENV{MASON_PACKAGE_DIR}") + set(MASON_REPOSITORY "$ENV{MASON_REPOSITORY}") +endif() + +# Directory where Mason packages are located; typically ends with mason_packages +if (NOT MASON_PACKAGE_DIR) + set(MASON_PACKAGE_DIR "${CMAKE_SOURCE_DIR}/mason_packages") +endif() + +# URL prefix of where packages are located. +if (NOT MASON_REPOSITORY) + set(MASON_REPOSITORY "https://mason-binaries.s3.amazonaws.com") +endif() + +mason_detect_platform() + +# Execute commands if CMake is run in command mode +if (CMAKE_ARGC) + # Collect remaining arguments for passing to mason_use + set(_MASON_ARGS) + if (${CMAKE_ARGC} LESS 5) + message(FATAL_ERROR "Usage: mason.sh [install|prefix] PACKAGE VERSION") + endif() + + if (${CMAKE_ARGV3} STREQUAL "install") + # Install the package + mason_use(${CMAKE_ARGV4} VERSION ${CMAKE_ARGV5}) + elseif (${CMAKE_ARGV3} STREQUAL "prefix") + set(PKG_PREFIX "${MASON_PACKAGE_DIR}/${MASON_PLATFORM}-${MASON_PLATFORM_VERSION}/${CMAKE_ARGV4}/${CMAKE_ARGV5}") + # CMake can't write to stdout with message() + execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${PKG_PREFIX}") + else() + message(FATAL_ERROR "Usage: mason.sh [install|prefix] PACKAGE VERSION") + endif() + +endif() diff --git a/scripts/mason.sh b/scripts/mason.sh new file mode 100755 index 000000000..696ad26ad --- /dev/null +++ b/scripts/mason.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +cmake -P cmake/mason.cmake "$@" diff --git a/scripts/update_dependencies.sh b/scripts/update_dependencies.sh index c413725a9..31c28faed 100755 --- a/scripts/update_dependencies.sh +++ b/scripts/update_dependencies.sh @@ -15,20 +15,15 @@ OSMIUM_TAG=v2.11.0 VARIANT_REPO="https://github.com/mapbox/variant.git" VARIANT_TAG=v1.1.0 -MASON_REPO="https://github.com/mapbox/mason.git" -MASON_TAG=v0.7.0 - SOL_REPO="https://github.com/ThePhD/sol2.git" SOL_TAG=v2.15.5 VARIANT_LATEST=$(curl "https://api.github.com/repos/mapbox/variant/releases/latest" | jq ".tag_name") OSMIUM_LATEST=$(curl "https://api.github.com/repos/osmcode/libosmium/releases/latest" | jq ".tag_name") -MASON_LATEST=$(curl "https://api.github.com/repos/mapbox/mason/releases/latest" | jq ".tag_name") SOL_LATEST=$(curl "https://api.github.com/repos/ThePhD/sol2/releases/latest" | jq ".tag_name") echo "Latest osmium release is $OSMIUM_LATEST, pulling in \"$OSMIUM_TAG\"" echo "Latest variant release is $VARIANT_LATEST, pulling in \"$VARIANT_TAG\"" -echo "Latest mason release is $MASON_LATEST, pulling in \"$MASON_TAG\"" echo "Latest sol2 release is $SOL_LATEST, pulling in \"$SOL_TAG\"" read -p "Update osmium (y/n) " ok @@ -51,16 +46,6 @@ then fi fi -read -p "Update mason (y/n) " ok -if [[ $ok =~ [yY] ]] -then - if [ -d "third_party/mason" ]; then - git subtree pull -P third_party/mason/ $MASON_REPO $MASON_TAG --squash - else - git subtree add -P third_party/mason/ $MASON_REPO $MASON_TAG --squash - fi -fi - read -p "Update sol2 (y/n) " ok if [[ $ok =~ [yY] ]] then diff --git a/third_party/mason/.gitignore b/third_party/mason/.gitignore deleted file mode 100644 index 2f08960af..000000000 --- a/third_party/mason/.gitignore +++ /dev/null @@ -1 +0,0 @@ -mason_packages diff --git a/third_party/mason/.travis.yml b/third_party/mason/.travis.yml deleted file mode 100644 index f7cffc379..000000000 --- a/third_party/mason/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - -install: -- | - export - if [[ ${MASON_PLATFORM:-unset} == 'unset' ]] || [[ ${MASON_PLATFORM} == 'osx' ]] || [[ ${MASON_PLATFORM} == 'linux' ]]; then - # If platform is Linux or OSX, we might still be cross compiling if the - # MASON_PLATFORM_VERSION is not the same as the host platform. - if [[ ${CXX:-unset} == 'unset' ]] || [[ ${CXX} == "clang" ]] ; then - if [[ ${MASON_PLATFORM_VERSION} == `uname -m` ]] || [[ -z ${MASON_PLATFORM_VERSION} ]]; then - echo "Installing clang for OSX/Linux via 'install' target" - source utils/toolchain.sh - which ${CC} - ${CC} -v - which ${CXX} - ${CXX} -v - fi - fi - fi - -script: -- ./test/all.sh diff --git a/third_party/mason/CHANGELOG.md b/third_party/mason/CHANGELOG.md deleted file mode 100644 index a310bf3fb..000000000 --- a/third_party/mason/CHANGELOG.md +++ /dev/null @@ -1,99 +0,0 @@ -# Mason releases - -## 0.7.0 - - - Added - - or-tools 5.1 - - jni.hpp 3.0.0 - - libpng 1.6.28 - - jpeg turbo 1.5.1 - - freetype 2.7.1 - - harfbuzz 1.4.2 (links no deps) - - harfbuzz 1.4.2-ft (links freetype 2.7.1) - - libpq and postgres 9.6.1 - - webp 0.6.0 - - protobuf 3.2.0 - - proj 4.9.3 - - libtiff 4.0.7 - - gdal 2.1.3 - - cairo 1.14.8 - - geojsonvt 6.2.0 - - tbb 2017_20161128 - - kdbush 0.1.1-1 - - benchmark 1.0.0-1 - - jni 2.0.0-1 - - earcut 0.12.2 - - libgdal 2.1.3 (minimal package of just headers, lib, data) - - - Fixed - - gcc 5.3.0-i686 lib file corrected - - unique_resource pinned to cba309e - - gdal-config to work even if not linked - - api-trace now built with g++-5 - -Changes: https://github.com/mapbox/mason/compare/v0.6.0...v0.7.0 - -## 0.6.0 - - - Added valgrind 3.12.0, earcut 0.12.1, protozero 1.5.0/1.5.1, - libprogram_options 1.62.0-cxx11abi, jemalloc 4.4.0, llnode 1.4.1, - Omnibus mesa 13.0.3, cmake 3.7.2, minjur 0.1.0, libosmium, 2.11.0, - tippecanoe 1.16.3, sqlite 3.16.2, osmium-tool 1.5.1, apitrace 6a30de1, - nsis 3.01, llvm-argdumper and lldb-server to lldb package - - Removed valgrind latest, minjur latest, tippecanoe latest - - Fixed harfbuzz package (#327), boost_regex_icu variant - -Changes: https://github.com/mapbox/mason/compare/v0.5.0...v0.6.0 - -## 0.5.0 - - - Various fixes to support cross compiling - - Support for cross compiling to cortex_a9 on travis - - Added vector-tile 1.0.0-rc4, zlib_shared 1.2.8 - - Fixes to zlib 1.2.8 ldflags - -Changes: https://github.com/mapbox/mason/compare/v0.4.0...v0.5.0 - -## 0.4.0 - - - Now defaulting to clang 3.9.1 for building binaries - - clang++ binaries no longer distribute libc++ headers on OS X (instead they depend on system) - - Reduced size of v8 libs by striping debug symbols - - Fixed minjur latest package to build in Release mode - - Added polylabel 1.0.2, protozero 1.4.5, rocksdb v4.13, libosmium 2.10.3, llvm 3.9.1, - boost 1.63.0, cmake 3.7.1, cairo 1.14.6, freetype 2.6.5, harfbuzz 1.3.0, jpeg_turbo 1.5.0, - libpng 1.6.24, pixman 0.34.0, sqlite 3.14.1, twemproxy 0.4.1, - - Removed llvm 3.8.0, clang 3.8.0, llvm 3.9.0, luabind, luajit - - Rebuilt libpq 9.5.2, libtiff 4.0.6, utfcpp 2.3.4, minjur latest - -Changes: https://github.com/mapbox/mason/compare/v0.3.0...v0.4.0 - -## 0.3.0 - - - Updated android compile flags - - Added v8 `5.1.281.47` and `3.14.5.10` - - Fixed boost library name reporting - - Added tippecanoe `1.15.1` - - Added `iwyu` and `asan_symbolize` python script to llvm+clang++ packages - -Changes: https://github.com/mapbox/mason/compare/v0.2.0...v0.3.0 - -## 0.2.0 - - - Added icu 58.1, mesa egl, boost 1.62.0, gdb 7.12, Android NDK r13b, binutils latest, - variant 1.1.4, geometry 0.9.0, geojson 0.4.0, pkgconfig 0.29.1, wagyu 1.0 - - Removed boost *all* packages - - Renamed `TRAVIS_TOKEN` to `MASON_TRAVIS_TOKEN` - - Now including llvm-ar and llvm-ranlib in clang++ package - - Now setting secure variables in mason rather than .travis.yml per package - -Changes: https://github.com/mapbox/mason/compare/v0.1.1...v0.2.0 - -## 0.1.1 - - - Added binutils 2.27, expat 2.2.0, mesa 13.0.0, and llvm 4.0.0 (in-development) - - Improved mason.cmake to support packages that report multiple static libs - - Improved llvm >= 3.8.1 packages to support `-flto` on linux - -## 0.1.0 - - First versioned release \ No newline at end of file diff --git a/third_party/mason/README.md b/third_party/mason/README.md deleted file mode 100644 index 7b78ff418..000000000 --- a/third_party/mason/README.md +++ /dev/null @@ -1,379 +0,0 @@ -# Mason - -Mason can compile C/C++ code, publish packages to S3, and install those packages via binaries. - -Mason does all its work locally inside `./mason_packages` and therefore does not require privileges for, or conflict with, system-wide packages. - -Mason works on both OS X and Linux. - -[![Build Status](https://travis-ci.org/mapbox/mason.svg?branch=master)](https://travis-ci.org/mapbox/mason) - -### Goals - -Mason is a package manager designed for developers who package standalone applications and who need complete control over dependency versions. - -Because Mason is developed by Mapbox the default S3 bucket and set of available packages are driven by Mapbox developers. For other developers: 1) fork Mason and ideally rename it to something like `mason-{yourorg}`, 2) configure it against your own s3 bucket, and 3) go ahead an publish your own packages to an S3 bucket of your creation. - -### Comparisons - -Mason is like [npm](https://github.com/npm/npm) because it installs packages in the current working directory (`./mason_packages`) rather than globally. - -Mason is like [homebrew](http://brew.sh/) because it requires no use of `sudo` to install packages. - -Mason is like linux package managers like `apt-get` or `yum` because it works on linux. - -Mason is unlike all of the above package managers because: - - - Mason runs on both Linux and OS X and creates a single set of binaries that work on >= OS X 10.8 and >= Ubuntu Precise (rather than building binaries per version). - - Mason strongly prefers static libraries over shared libraries - - Mason has zero understanding of dependency trees: it leaves complete control to the developer for how packages relate. - - Mason does not depend on any specific runtime language (like python, node.js or ruby). It is a just a few bash scripts. - - Mason depends on [travis.ci](https://travis-ci.org) for creating and publishing binaries. - -## Installation - -#### Symlink - -You need to install Mason to your user directory into `~/.mason`. - -```bash -git clone -b master --single-branch https://github.com/mapbox/mason.git ~/.mason -sudo ln -s ~/.mason/mason /usr/local/bin/mason -``` - -The second line is optional. - -#### Submodule - -Mason can be added a submodule to your repository instead of creating a global symlink. This is helpful for other contributors to get set up quickly. Make sure to include the final part of the following command `.mason/` so your submodule path has the leading `.` instead of just being `mason/`. - -```bash -git submodule add git@github.com:mapbox/mason.git .mason/ -``` - -This will append a few lines to your `.gitmodules` file. Make sure to change the `url` parameter to `https` instead of `git@github` ssh protocol. - -``` -[submodule ".mason"] - path = .mason - url = https://github.com/mapbox/mason.git -``` - -Update your `Makefile` to point to the mason scripts and provide an installation script for the necessary dependencies. The following installs two Mason packages with the `make mason_packages` command. - -```Make -MASON ?= .mason/mason - -$(MASON): - git submodule update --init - -mason_packages: $(MASON) - $(MASON) install geometry.hpp 0.7.0 - $(MASON) install variant 1.1.0 -``` - -## Usage - -Most commands are structured like this: - -```bash -mason -``` - -The `command` can be one of the following - -* `install`: Installs the specified library/version -* `remove`: Removes the specified library/version -* `build`: Forces a build from source (= skip pre-built binary detection) -* `publish`: Uploads the built binaries to the S3 bucket -* `prefix`: Prints the absolute path to the library installation directory -* `version`: Prints the actual version of the library (only useful when version is `system`) -* `cflags`: Prints C/C++ compiler flags -* `ldflags`: Prints linker flags -* `link`: Creates symlinks for packages in `mason_packages/.link` -* `trigger`: Trigger a build and publish operation on Travis CI - -### `install` - -```bash -$ mason install libuv 0.11.29 -* Downloading binary package osx-10.10/libuv/0.11.29.tar.gz... -######################################################################## 100.0% -* Installed binary package at /Users/user/mason_packages/osx-10.10/libuv/0.11.29 -``` - -Installs [libuv](https://github.com/joyent/libuv) into the current folder in the `mason_packages` directory. Libraries are versioned by platform and version number, so you can install several different versions of the same library along each other. Similarly, you can also install libraries for different platforms alongside each other, for example library binaries for OS X and iOS. - -The `install` command first checks if the specified library/version is already present for this platform, and if so, exits. This means you can run it multiple times (e.g. as part of a configuration script) without doing unnecessary work. - -Next, Mason checks whether there are pre-built binaries available in the S3 bucket for the current platform. If that is the case, they are downloaded and unzipped and the installation is complete. - -If no pre-built binaries are available, Mason is going to build the library according to the script in the `mason_packages/.build` folder, and install into the platform- and library-specific directory. - - -### `remove` - -```bash -$ mason remove libuv 0.11.29 -* Removing existing package... -/Users/user/mason_packages/osx-10.10/libuv/0.11.29/include/uv-darwin.h -[...] -/Users/user/mason_packages/osx-10.10/libuv/0.11.29 -``` - -Removes the specified library/version from the package directory. - -### `build` - -This command works like the `install` command, except that it *doesn't* check for existing library installations, and that it *doesn't* check for pre-built binaries. I.e. it first removes the current installation and *always* builds the library from source. This is useful when you are working on a build script and want to fresh builds. - -### `publish` - -Creates a gzipped tarball of the specified platform/library/version and uploads it to the `mason-binaries` S3 bucket. If you want to use this feature, you need write access to the bucket and need to specify the environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. - -### `prefix` - -```bash -~ $ mason prefix libuv 0.11.29 -/Users/user/mason_packages/osx-10.10/libuv/0.11.29 -``` - -This prints the absolute path to the installation directory of the the library/version. Likely, this folder has the typical `include` and `lib` folders. - -### `cflags` - -```bash -~ $ mason cflags libuv 0.11.29 --I/Users/user/mason_packages/osx-10.10/libuv/0.11.29/include -``` - -Prints the C/C++ compiler flags that are required to compile source code with this library. Likely, this is just the include path, but may also contain other flags. - -### `ldflags` - -```bash -~ $ mason ldflags libuv 0.11.29 --L/Users/user/mason_packages/osx-10.10/libuv/0.11.29/lib -luv -lpthread -ldl -``` - -Prints the linker flags that are required to link against this library. - -### `link` - -```bash -~ $ mason link libuv 0.11.29 -``` - -This command only works if the package has already been installed. When run it symlinks the versioned `lib`, `include`, `share`, and `bin` folders of the package into a shared structure that is unversioned. For example if `mason prefix libuv 0.11.29` was `./mason_packages/osx-10.10/libuv/0.11.29` then the library would become available at `./mason_packages/.link/lib/libuv.a` - -### `trigger` - -In order to ensure that all prebuilt binaries are consistent and reproducible, we perform the final build and publish operation on Travis CI. - -First set the `MASON_TRAVIS_TOKEN` environment variable. You can do this either by installing the `travis` gem and running `travis token` or by using `curl` to hit the Travis api directly. See details on this below. **WARNING: be careful to keep this token safe. Cycling it requires emailing support@travis-ci.com. Giving someone an access token is like giving them full access to your Travis account.** - -Once you are set up with your `MASON_TRAVIS_TOKEN` then use the `trigger` command to kick off a build: - -```bash -./mason trigger -``` - -Run this command from the root of a local mason repository checkout. It makes a request to the Travis API to build and publish the specified version of the package, using the Travis configuration in `./scripts/${MASON_NAME}/${MASON_VERSION}/.travis.yml`. - -1) Using curl and travis api to generate MASON_TRAVIS_TOKEN - -First generate a github personal access token that has `repo` scope by going to https://github.com/settings/tokens. More details at https://help.github.com/articles/creating-an-access-token-for-command-line-use/. - -Then set that in your environment and run: - -```sh -GITHUB_TOKEN= - -curl -s -i https://api.travis-ci.org/auth/github \ - -H "User-Agent: Travis/1.0" \ - -H "Content-Type: application/json" \ - -H "Accept: application/vnd.travis-ci.2+json" \ - -H "Host: api.travis-ci.org" \ - -d "{\"github_token\": \"${GITHUB_TOKEN}\"}" -``` - -2) Use the travis command - -For details see https://docs.travis-ci.com/user/triggering-builds and https://github.com/travis-ci/travis.rb#readme - -## Writing build scripts - -Each version of each package has its own directory in scripts/${package}/${version}, e.g. [`scripts/libuv/0.11.29`](https://github.com/mapbox/mason/tree/master/scripts/libuv/0.11.29). The directory must contain a file called `script.sh`, which is structured like this: - -```bash -#!/usr/bin/env bash - -MASON_NAME=libuv -MASON_VERSION=0.11.29 -MASON_LIB_FILE=lib/libuv.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libuv.pc -``` - -Declare these variables first. `MASON_NAME` and `MASON_VERSION` are mandatory. If the install script build a static library, specify the relative path in the installation directory in `MASON_LIB_FILE`. This is used to check whether an installation actually exists before proceeding to download/build the library anew. You can optionally specify `MASON_PKGCONFIG_FILE` as the relative path to the pig-config file if the library has one. If the library doesn't have one, you need to override the functions `mason_cflags` and `mason_ldflags` (see below). - -Then, we're loading the build system with - -```bash -. ${MASON_DIR}/mason.sh -``` - -Next, we're defining a function that obtains the source code and unzips it: - -```bash -function mason_load_source { - mason_download \ - https://github.com/joyent/libuv/archive/v0.11.29.tar.gz \ - 5bf49a8652f680557cbaf335a160187b2da3bf7f - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libuv-${MASON_VERSION} -} -``` - -In that function, you should use `mason_download` as a shortcut to download the tarball. The second argument to is a hash generated with `git hash-object` and used to verify that the source code downloaded matches the expected file. The function also caches downloaded tarballs in the `mason_packages/.cache` folder. - -`mason_extract_tar_gz` unpacks the archive into the `mason_packages/.build` folder. If the tarball is BZip2 compressed, you can also use `mason_extract_tar_bz2` instead. - -Lastly, the `MASON_BUILD_PATH` variable contains the path to the unpacked folder inside the `.build` directory. - -Then, you can optionally specify a function that is run before compiling, e.g. a script that generates configuration files: - -```bash -function mason_prepare_compile { - ./autogen.sh -} -``` - -The heart of the script is the `mason_compile` function because it performs the actual build of the source code. There are a few variables available that you need to use to make sure that the package will work correctly. - -```bash -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} -``` - -In particular, you have to set the build system's installation prefix to `MASON_PREFIX`. For cross-platform builds, you have to specify the `MASON_HOST_ARG`, which is empty for regular builds and is set to the correct host platform for cross-compiles (e.g. iOS builds use `--host=arm-apple-darwin`). - -If the build system supports building concurrently, you can tell it do do so by providing the number of parallel tasks from `MASON_CONCURRENCY`. - - -Next, the `mason_clean` function tells Mason how to clean up the build folder. This is required for multi-architecture builds. E.g. iOS builds perform a Simulator (Intel architecture) build first, then an iOS (ARM architecture) build. The results are `lipo`ed into one universal archive file. - -```bash -function mason_clean { - make clean -} -``` - -Finally, we're going to run the everything: - -```bash -mason_run "$@" -``` - -### Variables - -Name | Description ----|--- -`MASON_DIR` | The directory where Mason itself is installed. Defaults to the current directory. -`MASON_ROOT` | Absolute path the `mason_packages` directory. Example: `/Users/user/mason_packages`. -`MASON_PLATFORM` | Platform of the current invocation. Currently one of `osx`, `ios` or `linux`. -`MASON_PLATFORM_VERSION` | Version of the platform. It must include the architecture if the produced binaries are architecture-specific (e.g. on Linux). Example: `10.10` -`MASON_NAME` | Name specified in the `script.sh` file. Example: `libuv` -`MASON_VERSION` | Version specified in the `script.sh` file. Example: `0.11.29` -`MASON_SLUG` | Combination of the name and version. Example: `libuv-0.11.29` -`MASON_PREFIX` | Absolute installation path. Example: `/Users/user/mason_packages/osx-10.10/libuv/0.11.29` -`MASON_BUILD_PATH` | Absolute path to the build root. Example: `/Users/user/mason_packages/.build/libuv-0.11.29` -`MASON_BUCKET` | S3 bucket that is used for storing pre-built binary packages. Example: `mason-binaries` -`MASON_BINARIES` | Relative path to the gzipped tarball in the `.binaries` directory. Example: `osx-10.10/libuv/0.11.29.tar.gz` -`MASON_BINARIES_PATH` | Absolute path to the gzipped tarball. Example: `/Users/user/mason_packages/.binaries/osx-10.10/libuv/0.11.29.tar.gz` -`MASON_CONCURRENCY` | Number of CPU cores. Example: `8` -`MASON_HOST_ARG` | Cross-compilation arguments. Example: `--host=x86_64-apple-darwin` -`MASON_LIB_FILE` | Relative path to the library file in the install directory. Example: `lib/libuv.a` -`MASON_PKGCONFIG_FILE` | Relative path to the pkg-config file in the install directory. Example: `lib/pkgconfig/libuv.pc` -`MASON_XCODE_ROOT` | OS X specific; Path to the Xcode Developer directory. Example: `/Applications/Xcode.app/Contents/Developer` - - - -### Customization - -In addition to the override functions described above, you can also override the `mason_cflags` and `mason_ldflags` functions. By default, they're using `pkg-config` to determine these flags and print them to standard output. If a library doesn't include a `.pc` file, or has some other mechanism for determining the build flags, you can run them instead: - - -```bash -function mason_ldflags { - ${MASON_PREFIX}/bin/curl-config --static-libs` -} -``` - -### System packages - -Some packages ship with operating systems, or can be easily installed with operating-specific package managers. For example, `libpng` is available on most systems and the version you're using doesn't really matter since it is mature and hasn't added any significant new APIs in recent years. To create a system package for it, use this `script.sh` file: - - -```bash -#!/usr/bin/env bash - -MASON_NAME=libpng -MASON_VERSION=system -MASON_SYSTEM_PACKAGE=true - -. ${MASON_DIR}/mason.sh - -if [ ! $(pkg-config libpng --exists; echo $?) = 0 ]; then - mason_error "Cannot find libpng with pkg-config" - exit 1 -fi - -function mason_system_version { - mkdir -p "${MASON_PREFIX}" - cd "${MASON_PREFIX}" - if [ ! -f version ]; then - echo "#include -#include -#include -int main() { - assert(PNG_LIBPNG_VER == png_access_version_number()); - printf(\"%s\", PNG_LIBPNG_VER_STRING); - return 0; -} -" > version.c && ${CC:-cc} version.c $(mason_cflags) $(mason_ldflags) -o version - fi - ./version -} - -function mason_compile { - : -} - -function mason_cflags { - pkg-config libpng --cflags -} - -function mason_ldflags { - pkg-config libpng --libs -} - -mason_run "$@" -``` - -System packages are marked with `MASON_SYSTEM_PACKAGE=true`. We're also first using `pkg-config` to check whether the library is present at all. The `mason_system_version` function creates a small executable which outputs the actual version. It is the only thing that is cached in the installation directory. - -We have to override the `mason_cflags` and `mason_ldflags` commands since the regular commands return flags for static libraries, but in the case of system packages, we want to dynamically link against the package. - -## Troubleshooting - -Downloaded source tarballs are cached in `mason_packages/.cache`. If for some reason the initial download failed, but it still left a file in that directory, make sure you delete the partial download there. diff --git a/third_party/mason/cloudformation/travis.template b/third_party/mason/cloudformation/travis.template deleted file mode 100644 index 28ab9f48b..000000000 --- a/third_party/mason/cloudformation/travis.template +++ /dev/null @@ -1,73 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "mason bucket resources", - "Resources": { - "BuildUser": { - "Type": "AWS::IAM::User", - "Properties": { - "Policies": [ - { - "PolicyName": "list", - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:ListBucket" - ], - "Effect": "Allow", - "Resource": [ - "arn:aws:s3:::mason-binaries" - ] - } - ] - } - }, - { - "PolicyName": "build", - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:DeleteObject", - "s3:GetObject", - "s3:GetObjectAcl", - "s3:PutObject", - "s3:PutObjectAcl" - ], - "Effect": "Allow", - "Resource": [ - "arn:aws:s3:::mason-binaries/*" - ] - } - ] - } - } - ] - } - }, - "BuildUserKey": { - "Type": "AWS::IAM::AccessKey", - "Properties": { - "UserName": { - "Ref": "BuildUser" - } - } - } - }, - "Outputs": { - "AccessKeyId": { - "Value": { - "Ref": "BuildUserKey" - } - }, - "SecretAccessKey": { - "Value": { - "Fn::GetAtt": [ - "BuildUserKey", - "SecretAccessKey" - ] - } - } - } -} - diff --git a/third_party/mason/contributing.md b/third_party/mason/contributing.md deleted file mode 100644 index 30c8b2712..000000000 --- a/third_party/mason/contributing.md +++ /dev/null @@ -1,13 +0,0 @@ -# Release process - -- Increment version at the top of `mason` -- Update changelog -- Ensure tests are passing -- Tag a release: - -``` -TAG_NAME=$(cat mason | grep MASON_RELEASED_VERSION= | cut -c25-29) -git tag v${TAG_NAME} -a -m "v${TAG_NAME}" && git push --tags -``` - -- Go to https://github.com/mapbox/mason/releases/new and create a new release diff --git a/third_party/mason/mason b/third_party/mason/mason deleted file mode 100755 index 03f267a56..000000000 --- a/third_party/mason/mason +++ /dev/null @@ -1,87 +0,0 @@ -#!/usr/bin/env bash - -MASON_COMMAND=$1 ; shift -MASON_NAME=$1 ; shift -MASON_VERSION=$1 ; shift - -set -e -set -o pipefail - -MASON_RELEASED_VERSION="0.7.0" - -if [ "${MASON_COMMAND}" = "--version" ]; then - echo ${MASON_RELEASED_VERSION} - exit 0 -fi - -function usage { - echo "Usage: $0 " -} - -if [ -z "${MASON_COMMAND}" ]; then - usage - exit 1 -fi - -ROOTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" -MASON_DIR=${MASON_DIR:-$ROOTDIR} - -if [ "${MASON_COMMAND}" = "env" ]; then - . ${MASON_DIR}/mason.sh > /dev/null - eval echo \$${MASON_NAME} - exit -fi - -if [ -z "${MASON_NAME}" ]; then - usage - echo "Missing " - exit 1 -elif [ -z "${MASON_VERSION}" ]; then - usage - echo "Missing " - exit 1 -fi - -if [ "${MASON_COMMAND}" = "trigger" ]; then - if [ -z "${MASON_TRAVIS_TOKEN}" ]; then - echo "MASON_TRAVIS_TOKEN is not set." - exit 1 - fi - - config=$(ruby < "VI6PAoen/TwUM2ynPt8890HKq6zc/e/jTZwYX1D9/BdzkOrTcztxZxO9hP5lsnYeqcNeLXgHpO4LVxm95gjodLLkSXUNW6JndRaiCVHS7dwkN+Oe9XWJajw5z1fRJjnCxhgICfHK/J3H+klKtvOJb2OMDc6W7UAoH/OWGDbBJ5w="} - config["env"]["global"] << {"secure" => "BVefSxpbYyQbruXm61pDwnawEN0KdvM865muccfEshAM9pPxd24NoB7JYeUdkktgWnO3QCmy3RTw0ck7DbjHTt0HT6AqXcNFYjCxbLWM+jmQDnDv8bxWas/2XU8jP+vK+OUDsYE5IL7ZevBYPY1dUWv6fOQt7NPKnhoar9KsDoQ="} - config["env"]["global"] << "MASON_NAME=${MASON_NAME}" << "MASON_VERSION=${MASON_VERSION}" - puts JSON.pretty_generate(config) -RUBY - ) - - body="{ - \"request\": { - \"message\": \"Building ${MASON_NAME} ${MASON_VERSION}\", - \"branch\": \"$(git rev-parse --abbrev-ref HEAD)\", - \"config\": ${config} - } - }" - - curl -s -X POST https://api.travis-ci.org/repo/mapbox%2Fmason/requests \ - -H "Content-Type: application/json" \ - -H "Accept: application/json" \ - -H "Travis-API-Version: 3" \ - -H "Authorization: token ${MASON_TRAVIS_TOKEN}" \ - -d "$body" - - echo "Now go to https://travis-ci.org/mapbox/mason/builds to view build status" - - exit -fi - -. ${MASON_DIR}/mason.sh - -export MASON_DIR -bash "${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/script.sh" "${MASON_COMMAND}" "$@" diff --git a/third_party/mason/mason.sh b/third_party/mason/mason.sh deleted file mode 100644 index 0e78f31d6..000000000 --- a/third_party/mason/mason.sh +++ /dev/null @@ -1,730 +0,0 @@ -set -e -set -o pipefail -# set -x - -export MASON_ROOT=${MASON_ROOT:-`pwd`/mason_packages} -MASON_BUCKET=${MASON_BUCKET:-mason-binaries} -MASON_IGNORE_OSX_SDK=${MASON_IGNORE_OSX_SDK:-false} - -MASON_UNAME=`uname -s` -if [ ${MASON_UNAME} = 'Darwin' ]; then - MASON_PLATFORM=${MASON_PLATFORM:-osx} - MASON_XCODE_ROOT=`"xcode-select" -p` -elif [ ${MASON_UNAME} = 'Linux' ]; then - MASON_PLATFORM=${MASON_PLATFORM:-linux} -fi - -# In non-interactive environments like Travis CI, we can't use -s because it'll fill up the log -# way too fast -case $- in - *i*) MASON_CURL_ARGS= ;; # interactive - *) MASON_CURL_ARGS=-s ;; # non-interative -esac - -case ${MASON_UNAME} in - 'Darwin') MASON_CONCURRENCY=`sysctl -n hw.ncpu` ;; - 'Linux') MASON_CONCURRENCY=$(lscpu -p | egrep -v '^#' | wc -l) ;; - *) MASON_CONCURRENCY=1 ;; -esac - - -function mason_step { >&2 echo -e "\033[1m\033[36m* $1\033[0m"; } -function mason_substep { >&2 echo -e "\033[1m\033[36m* $1\033[0m"; } -function mason_success { >&2 echo -e "\033[1m\033[32m* $1\033[0m"; } -function mason_error { >&2 echo -e "\033[1m\033[31m$1\033[0m"; } - - -case ${MASON_ROOT} in - *\ * ) mason_error "Directory '${MASON_ROOT} contains spaces."; exit ;; -esac - -if [ ${MASON_PLATFORM} = 'osx' ]; then - export MASON_HOST_ARG="--host=x86_64-apple-darwin" - export MASON_PLATFORM_VERSION=`uname -m` - - if [[ ${MASON_IGNORE_OSX_SDK} == false ]]; then - MASON_SDK_VERSION=`xcrun --sdk macosx --show-sdk-version` - MASON_SDK_ROOT=${MASON_XCODE_ROOT}/Platforms/MacOSX.platform/Developer - MASON_SDK_PATH="${MASON_SDK_ROOT}/SDKs/MacOSX${MASON_SDK_VERSION}.sdk" - - if [[ ${MASON_SYSTEM_PACKAGE} && ${MASON_SDK_VERSION%%.*} -ge 10 && ${MASON_SDK_VERSION##*.} -ge 11 ]]; then - export MASON_DYNLIB_SUFFIX="tbd" - else - export MASON_DYNLIB_SUFFIX="dylib" - fi - - MIN_SDK_VERSION_FLAG="-mmacosx-version-min=10.8" - SYSROOT_FLAGS="-isysroot ${MASON_SDK_PATH} -arch x86_64 ${MIN_SDK_VERSION_FLAG}" - export CFLAGS="${SYSROOT_FLAGS}" - export CXXFLAGS="${CFLAGS} -fvisibility-inlines-hidden -stdlib=libc++ -std=c++11" - # NOTE: OSX needs '-stdlib=libc++ -std=c++11' in both CXXFLAGS and LDFLAGS - # to correctly target c++11 for build systems that don't know about it yet (like libgeos 3.4.2) - # But because LDFLAGS is also for C libs we can only put these flags into LDFLAGS per package - export LDFLAGS="-Wl,-search_paths_first ${SYSROOT_FLAGS}" - export CXX="/usr/bin/clang++" - export CC="/usr/bin/clang" - fi - -elif [ ${MASON_PLATFORM} = 'ios' ]; then - export MASON_HOST_ARG="--host=arm-apple-darwin" - export MASON_PLATFORM_VERSION="8.0" # Deployment target version - - MASON_SDK_VERSION=`xcrun --sdk iphoneos --show-sdk-version` - MASON_SDK_ROOT=${MASON_XCODE_ROOT}/Platforms/iPhoneOS.platform/Developer - MASON_SDK_PATH="${MASON_SDK_ROOT}/SDKs/iPhoneOS${MASON_SDK_VERSION}.sdk" - - MIN_SDK_VERSION_FLAG="-miphoneos-version-min=${MASON_PLATFORM_VERSION}" - export MASON_IOS_CFLAGS="${MIN_SDK_VERSION_FLAG} -isysroot ${MASON_SDK_PATH}" - if [[ ${MASON_SDK_VERSION%%.*} -ge 9 ]]; then - export MASON_IOS_CFLAGS="${MASON_IOS_CFLAGS} -fembed-bitcode" - export MASON_DYNLIB_SUFFIX="tbd" - else - export MASON_DYNLIB_SUFFIX="dylib" - fi - - if [ `xcrun --sdk iphonesimulator --show-sdk-version` != ${MASON_SDK_VERSION} ]; then - mason_error "iPhone Simulator SDK version doesn't match iPhone SDK version" - exit 1 - fi - - MASON_SDK_ROOT=${MASON_XCODE_ROOT}/Platforms/iPhoneSimulator.platform/Developer - MASON_SDK_PATH="${MASON_SDK_ROOT}/SDKs/iPhoneSimulator${MASON_SDK_VERSION}.sdk" - export MASON_ISIM_CFLAGS="${MIN_SDK_VERSION_FLAG} -isysroot ${MASON_SDK_PATH}" - -elif [ ${MASON_PLATFORM} = 'linux' ]; then - - export MASON_DYNLIB_SUFFIX="so" - - # Assume current system is the target platform - if [ -z ${MASON_PLATFORM_VERSION} ] ; then - export MASON_PLATFORM_VERSION=`uname -m` - fi - - export CFLAGS="-fPIC" - export CXXFLAGS="${CFLAGS} -std=c++11" - - if [ `uname -m` != ${MASON_PLATFORM_VERSION} ] ; then - # Install the cross compiler - MASON_XC_PACKAGE_NAME=gcc - MASON_XC_PACKAGE_VERSION=${MASON_XC_GCC_VERSION:-5.3.0}-${MASON_PLATFORM_VERSION} - MASON_XC_PACKAGE=${MASON_XC_PACKAGE_NAME}-${MASON_XC_PACKAGE_VERSION} - MASON_XC_ROOT=$(MASON_PLATFORM= MASON_PLATFORM_VERSION= ${MASON_DIR}/mason prefix ${MASON_XC_PACKAGE_NAME} ${MASON_XC_PACKAGE_VERSION}) - if [[ ! ${MASON_XC_ROOT} =~ ".build" ]] && [ ! -d ${MASON_XC_ROOT} ] ; then - MASON_PLATFORM= MASON_PLATFORM_VERSION= ${MASON_DIR}/mason install ${MASON_XC_PACKAGE_NAME} ${MASON_XC_PACKAGE_VERSION} - MASON_XC_ROOT=$(MASON_PLATFORM= MASON_PLATFORM_VERSION= ${MASON_DIR}/mason prefix ${MASON_XC_PACKAGE_NAME} ${MASON_XC_PACKAGE_VERSION}) - fi - - # Load toolchain specific variables - if [[ ! ${MASON_XC_ROOT} =~ ".build" ]] && [ -f ${MASON_XC_ROOT}/toolchain.sh ] ; then - source ${MASON_XC_ROOT}/toolchain.sh - fi - fi - -elif [ ${MASON_PLATFORM} = 'android' ]; then - case "${MASON_PLATFORM_VERSION}" in - arm-v5-9) export MASON_ANDROID_ABI=arm-v5 ;; - arm-v7-9) export MASON_ANDROID_ABI=arm-v7 ;; - arm-v8-21) export MASON_ANDROID_ABI=arm-v8 ;; - x86-9) export MASON_ANDROID_ABI=x86 ;; - x86-64-21) export MASON_ANDROID_ABI=x86-64 ;; - mips-9) export MASON_ANDROID_ABI=mips ;; - mips64-21) export MASON_ANDROID_ABI=mips64 ;; - *) export MASON_ANDROID_ABI=${MASON_ANDROID_ABI:-arm-v7} - esac - - CFLAGS="-g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security" - LDFLAGS="-Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now" - export CPPFLAGS="-D__ANDROID__" - - if [ ${MASON_ANDROID_ABI} = 'arm-v8' ]; then - MASON_ANDROID_TOOLCHAIN="aarch64-linux-android" - export MASON_HOST_ARG="--host=${MASON_ANDROID_TOOLCHAIN}" - - CFLAGS="-target aarch64-none-linux-android ${CFLAGS}" - - export JNIDIR="arm64-v8a" - MASON_ANDROID_ARCH="arm64" - MASON_ANDROID_PLATFORM="21" - - elif [ ${MASON_ANDROID_ABI} = 'arm-v7' ]; then - MASON_ANDROID_TOOLCHAIN="arm-linux-androideabi" - export MASON_HOST_ARG="--host=${MASON_ANDROID_TOOLCHAIN}" - - CFLAGS="-target armv7-none-linux-androideabi ${CFLAGS} -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb" - LDFLAGS="${LDFLAGS} -Wl,--fix-cortex-a8 -Wl,--exclude-libs,libunwind.a" - - export JNIDIR="armeabi-v7a" - MASON_ANDROID_ARCH="arm" - MASON_ANDROID_PLATFORM="9" - - elif [ ${MASON_ANDROID_ABI} = 'arm-v5' ]; then - MASON_ANDROID_TOOLCHAIN="arm-linux-androideabi" - export MASON_HOST_ARG="--host=${MASON_ANDROID_TOOLCHAIN}" - - CFLAGS="-target armv5te-none-linux-androideabi ${CFLAGS} -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb" - LDFLAGS="${LDFLAGS} -Wl,--exclude-libs,libunwind.a" - - export JNIDIR="armeabi" - MASON_ANDROID_ARCH="arm" - MASON_ANDROID_PLATFORM="9" - - elif [ ${MASON_ANDROID_ABI} = 'x86' ]; then - MASON_ANDROID_TOOLCHAIN="i686-linux-android" - export MASON_HOST_ARG="--host=${MASON_ANDROID_TOOLCHAIN}" - - CFLAGS="-target i686-none-linux-android ${CFLAGS}" - - export JNIDIR="x86" - MASON_ANDROID_ARCH="x86" - MASON_ANDROID_PLATFORM="9" - - elif [ ${MASON_ANDROID_ABI} = 'x86-64' ]; then - MASON_ANDROID_TOOLCHAIN="x86_64-linux-android" - export MASON_HOST_ARG="--host=${MASON_ANDROID_TOOLCHAIN}" - - export JNIDIR="x86_64" - CFLAGS="-target x86_64-none-linux-android ${CFLAGS}" - - MASON_ANDROID_ARCH="x86_64" - MASON_ANDROID_PLATFORM="21" - - elif [ ${MASON_ANDROID_ABI} = 'mips' ]; then - MASON_ANDROID_TOOLCHAIN="mipsel-linux-android" - export MASON_HOST_ARG="--host=${MASON_ANDROID_TOOLCHAIN}" - - CFLAGS="-target mipsel-none-linux-android ${CFLAGS} -mips32" - - export JNIDIR="mips" - MASON_ANDROID_ARCH="mips" - MASON_ANDROID_PLATFORM="9" - - elif [ ${MASON_ANDROID_ABI} = 'mips-64' ]; then - MASON_ANDROID_TOOLCHAIN="mips64el-linux-android" - export MASON_HOST_ARG="--host=${MASON_ANDROID_TOOLCHAIN}" - - CFLAGS="-target mips64el-none-linux-android ${CFLAGS}" - - export JNIDIR="mips64" - MASON_ANDROID_ARCH="mips64" - MASON_ANDROID_PLATFORM="21" - fi - - export MASON_DYNLIB_SUFFIX="so" - export MASON_PLATFORM_VERSION="${MASON_ANDROID_ABI}-${MASON_ANDROID_PLATFORM}" - MASON_API_LEVEL=${MASON_API_LEVEL:-android-$MASON_ANDROID_PLATFORM} - - # Installs the native SDK - export MASON_NDK_PACKAGE_VERSION=${MASON_ANDROID_ARCH}-${MASON_ANDROID_PLATFORM}-r13b - MASON_SDK_ROOT=$(MASON_PLATFORM= MASON_PLATFORM_VERSION= ${MASON_DIR}/mason prefix android-ndk ${MASON_NDK_PACKAGE_VERSION}) - if [ ! -d ${MASON_SDK_ROOT} ] ; then - MASON_PLATFORM= MASON_PLATFORM_VERSION= ${MASON_DIR}/mason install android-ndk ${MASON_NDK_PACKAGE_VERSION} - fi - MASON_SDK_PATH="${MASON_SDK_ROOT}/sysroot" - export PATH=${MASON_SDK_ROOT}/bin:${PATH} - - export CFLAGS="--sysroot=${MASON_SDK_PATH} ${CFLAGS}" - export CXXFLAGS="--sysroot=${MASON_SDK_PATH} ${CFLAGS}" - export LDFLAGS="--sysroot=${MASON_SDK_PATH} ${LDFLAGS}" - - export CXX="${MASON_ANDROID_TOOLCHAIN}-clang++" - export CC="${MASON_ANDROID_TOOLCHAIN}-clang" - export LD="${MASON_ANDROID_TOOLCHAIN}-ld" - export AR="${MASON_ANDROID_TOOLCHAIN}-ar" - export RANLIB="${MASON_ANDROID_TOOLCHAIN}-ranlib" - export STRIP="${MASON_ANDROID_TOOLCHAIN}-strip" -fi - - -# Variable defaults -MASON_HOST_ARG=${MASON_HOST_ARG:-} -MASON_PLATFORM_VERSION=${MASON_PLATFORM_VERSION:-0} -MASON_NAME=${MASON_NAME:-nopackage} -MASON_VERSION=${MASON_VERSION:-noversion} -MASON_HEADER_ONLY=${MASON_HEADER_ONLY:-false} -MASON_SLUG=${MASON_NAME}-${MASON_VERSION} -if [[ ${MASON_HEADER_ONLY} == true ]]; then - MASON_PLATFORM_ID=headers -else - MASON_PLATFORM_ID=${MASON_PLATFORM}-${MASON_PLATFORM_VERSION} -fi -MASON_PREFIX=${MASON_ROOT}/${MASON_PLATFORM_ID}/${MASON_NAME}/${MASON_VERSION} -MASON_BINARIES=${MASON_PLATFORM_ID}/${MASON_NAME}/${MASON_VERSION}.tar.gz -MASON_BINARIES_PATH=${MASON_ROOT}/.binaries/${MASON_BINARIES} - - - - -function mason_check_existing { - # skip installing if it already exists - if [ ${MASON_HEADER_ONLY:-false} = true ] ; then - if [ -d "${MASON_PREFIX}" ] ; then - mason_success "Already installed at ${MASON_PREFIX}" - exit 0 - fi - elif [ ${MASON_SYSTEM_PACKAGE:-false} = true ]; then - if [ -f "${MASON_PREFIX}/version" ] ; then - mason_success "Using system-provided ${MASON_NAME} $(set -e;mason_system_version)" - exit 0 - fi - else - if [ -f "${MASON_PREFIX}/${MASON_LIB_FILE}" ] ; then - mason_success "Already installed at ${MASON_PREFIX}" - exit 0 - fi - fi -} - - -function mason_check_installed { - # skip installing if it already exists - if [ ${MASON_HEADER_ONLY:-false} = true ] ; then - if [ -d "${MASON_PREFIX}" ] ; then - return 0 - fi - elif [ ${MASON_SYSTEM_PACKAGE:-false} = true ]; then - if [ -f "${MASON_PREFIX}/version" ] ; then - return 0 - fi - elif [ -f "${MASON_PREFIX}/${MASON_LIB_FILE}" ] ; then - return 0 - fi - mason_error "Package ${MASON_NAME} ${MASON_VERSION} isn't installed" - return 1 -} - - -function mason_clear_existing { - if [ -d "${MASON_PREFIX}" ]; then - mason_step "Removing existing package... ${MASON_PREFIX}" - rm -rf "${MASON_PREFIX}" - fi -} - - -function mason_download { - mkdir -p "${MASON_ROOT}/.cache" - cd "${MASON_ROOT}/.cache" - if [ ! -f ${MASON_SLUG} ] ; then - mason_step "Downloading $1..." - CURL_RESULT=0 - curl --retry 3 ${MASON_CURL_ARGS} -f -S -L "$1" -o ${MASON_SLUG} || CURL_RESULT=$? - if [[ ${CURL_RESULT} != 0 ]]; then - mason_error "Failed to download ${1} (returncode: $CURL_RESULT)" - exit $RESULT - fi - fi - - MASON_HASH=`git hash-object ${MASON_SLUG}` - if [ "$2" != "${MASON_HASH}" ] ; then - mason_error "Hash ${MASON_HASH} of file ${MASON_ROOT}/.cache/${MASON_SLUG} doesn't match $2" - exit 1 - fi -} - -function mason_setup_build_dir { - rm -rf "${MASON_ROOT}/.build/${MASON_SLUG}" - mkdir -p "${MASON_ROOT}/.build/" - cd "${MASON_ROOT}/.build/" -} - -function mason_extract_tar_gz { - mason_setup_build_dir - tar xzf ../.cache/${MASON_SLUG} $@ -} - -function mason_extract_tar_bz2 { - mason_setup_build_dir - tar xjf ../.cache/${MASON_SLUG} $@ -} - -function mason_extract_tar_xz { - mason_setup_build_dir - tar xJf ../.cache/${MASON_SLUG} $@ -} - -function mason_prepare_compile { - : -} - -function mason_compile { - mason_error "COMPILE FUNCTION MISSING" - exit 1 -} - -function mason_clean { - : -} - -function bash_lndir() { - oldifs=$IFS - IFS=' - ' - src=$(cd "$1" ; pwd) - dst=$(cd "$2" ; pwd) - find "$src" -type d | - while read dir; do - mkdir -p "$dst${dir#$src}" - done - - find "$src" -type f -o -type l | - while read src_f; do - dst_f="$dst${src_f#$src}" - if [[ ! -f $dst_f ]]; then - ln -s "$src_f" "$dst_f" - fi - done - IFS=$oldifs -} - - -function run_lndir() { - # TODO: cp is fast, but inconsistent across osx - #/bin/cp -R -n ${MASON_PREFIX}/* ${TARGET_SUBDIR} - mason_step "Linking ${MASON_PREFIX}" - mason_step "Links will be inside ${TARGET_SUBDIR}" - if hash lndir 2>/dev/null; then - mason_substep "Using $(which lndir) for symlinking" - lndir -silent ${MASON_PREFIX}/ ${TARGET_SUBDIR} 2>/dev/null - else - mason_substep "Using bash fallback for symlinking (install lndir for faster symlinking)" - bash_lndir ${MASON_PREFIX}/ ${TARGET_SUBDIR} - fi - mason_step "Done linking ${MASON_PREFIX}" -} - -function mason_link { - if [ ! -d "${MASON_PREFIX}" ] ; then - mason_error "${MASON_PREFIX} not found, please install first" - exit 0 - fi - TARGET_SUBDIR="${MASON_ROOT}/.link/" - mkdir -p ${TARGET_SUBDIR} - run_lndir -} - - -function mason_build { - mason_load_source - - mason_step "Building for Platform '${MASON_PLATFORM}/${MASON_PLATFORM_VERSION}'..." - cd "${MASON_BUILD_PATH}" - mason_prepare_compile - - if [ ${MASON_PLATFORM} = 'ios' ]; then - - SIMULATOR_TARGETS="i386 x86_64" - DEVICE_TARGETS="armv7 arm64" - LIB_FOLDERS= - - for ARCH in ${SIMULATOR_TARGETS} ; do - mason_substep "Building for iOS Simulator ${ARCH}..." - export CFLAGS="${MASON_ISIM_CFLAGS} -arch ${ARCH}" - export CXXFLAGS="${MASON_ISIM_CFLAGS} -arch ${ARCH}" - cd "${MASON_BUILD_PATH}" - mason_compile - cd "${MASON_PREFIX}" - mv lib lib-isim-${ARCH} - for i in lib-isim-${ARCH}/*.a ; do lipo -info $i ; done - LIB_FOLDERS="${LIB_FOLDERS} lib-isim-${ARCH}" - done - - for ARCH in ${DEVICE_TARGETS} ; do - mason_substep "Building for iOS ${ARCH}..." - export CFLAGS="${MASON_IOS_CFLAGS} -arch ${ARCH}" - export CXXFLAGS="${MASON_IOS_CFLAGS} -arch ${ARCH}" - cd "${MASON_BUILD_PATH}" - mason_compile - cd "${MASON_PREFIX}" - mv lib lib-ios-${ARCH} - for i in lib-ios-${ARCH}/*.a ; do lipo -info $i ; done - LIB_FOLDERS="${LIB_FOLDERS} lib-ios-${ARCH}" - done - - # Create universal binary - mason_substep "Creating Universal Binary..." - cd "${MASON_PREFIX}" - mkdir -p lib - for LIB in $(find ${LIB_FOLDERS} -name "*.a" | xargs basename | sort | uniq) ; do - lipo -create $(find ${LIB_FOLDERS} -name "${LIB}") -output lib/${LIB} - lipo -info lib/${LIB} - done - - cd "${MASON_PREFIX}" - rm -rf ${LIB_FOLDERS} - elif [ ${MASON_PLATFORM} = 'android' ]; then - cd "${MASON_BUILD_PATH}" - mason_compile - else - cd "${MASON_BUILD_PATH}" - mason_compile - fi - - mason_success "Installed at ${MASON_PREFIX}" - - #rm -rf ${MASON_ROOT}/.build -} - -function mason_config_custom { - # Override this function in your script to add more configuration variables - : -} - -function mason_config { - local MASON_CONFIG_CFLAGS MASON_CONFIG_LDFLAGS MASON_CONFIG_STATIC_LIBS MASON_CONFIG_PREFIX LN - local MASON_CONFIG_INCLUDE_DIRS MASON_CONFIG_DEFINITIONS MASON_CONFIG_OPTIONS - - MASON_CONFIG_CFLAGS=$(set -e;mason_cflags) - MASON_CONFIG_LDFLAGS=$(set -e;mason_ldflags) - MASON_CONFIG_STATIC_LIBS=$(set -e;mason_static_libs) - MASON_CONFIG_PREFIX="{prefix}" - - # Split up the cflags into include dirs, definitions and options. - LN=$'\n' - MASON_CONFIG_CFLAGS="${MASON_CONFIG_CFLAGS// -/${LN}-}" - MASON_CONFIG_INCLUDE_DIRS=$(echo -n "${MASON_CONFIG_CFLAGS}" | sed -nE 's/^-(I|isystem) *([^ ]+)/\2/p' | uniq) - MASON_CONFIG_DEFINITIONS=$(echo -n "${MASON_CONFIG_CFLAGS}" | sed -nE 's/^-(D) *([^ ]+)/\2/p') - MASON_CONFIG_OPTIONS=$(echo -n "${MASON_CONFIG_CFLAGS}" | sed -nE '/^-(D|I|isystem) *([^ ]+)/!p') - - echo "name=${MASON_NAME}" - echo "version=${MASON_VERSION}" - if ${MASON_HEADER_ONLY}; then - echo "header_only=${MASON_HEADER_ONLY}" - else - echo "platform=${MASON_PLATFORM}" - echo "platform_version=${MASON_PLATFORM_VERSION}" - fi - for name in include_dirs definitions options ldflags static_libs ; do - eval value=\$MASON_CONFIG_$(echo ${name} | tr '[:lower:]' '[:upper:]') - if [ ! -z "${value}" ]; then - echo ${name}=${value//${MASON_PREFIX}/${MASON_CONFIG_PREFIX}} - fi - done - mason_config_custom -} - -function mason_write_config { - local INI_FILE - INI_FILE="${MASON_PREFIX}/mason.ini" - echo "`mason_config`" > "${INI_FILE}" - mason_substep "Wrote configuration file ${INI_FILE}:" - cat ${INI_FILE} -} - -function mason_try_binary { - MASON_BINARIES_DIR=`dirname "${MASON_BINARIES}"` - mkdir -p "${MASON_ROOT}/.binaries/${MASON_BINARIES_DIR}" - - # try downloading from S3 - if [ ! -f "${MASON_BINARIES_PATH}" ] ; then - mason_step "Downloading binary package ${MASON_BINARIES}..." - curl --retry 3 ${MASON_CURL_ARGS} -f -L \ - https://${MASON_BUCKET}.s3.amazonaws.com/${MASON_BINARIES} \ - -o "${MASON_BINARIES_PATH}.tmp" && \ - mv "${MASON_BINARIES_PATH}.tmp" "${MASON_BINARIES_PATH}" || \ - mason_step "Binary not available yet for https://${MASON_BUCKET}.s3.amazonaws.com/${MASON_BINARIES}" - else - mason_step "Updating binary package ${MASON_BINARIES}..." - curl --retry 3 ${MASON_CURL_ARGS} -f -L -z "${MASON_BINARIES_PATH}" \ - https://${MASON_BUCKET}.s3.amazonaws.com/${MASON_BINARIES} \ - -o "${MASON_BINARIES_PATH}.tmp" - if [ $? -eq 0 ] ; then - if [ -f "${MASON_BINARIES_PATH}.tmp" ]; then - mv "${MASON_BINARIES_PATH}.tmp" "${MASON_BINARIES_PATH}" - else - mason_step "Binary package is still up to date" - fi - else - mason_step "Binary not available yet for ${MASON_BINARIES}" - fi - fi - - # unzip the file if it exists - if [ -f "${MASON_BINARIES_PATH}" ] ; then - mkdir -p "${MASON_PREFIX}" - cd "${MASON_PREFIX}" - - # Try to force the ownership of the unpacked files - # to the current user using fakeroot if available - `which fakeroot` tar xzf "${MASON_BINARIES_PATH}" - - if [ ! -z ${MASON_PKGCONFIG_FILE:-} ] ; then - if [ -f "${MASON_PREFIX}/${MASON_PKGCONFIG_FILE}" ] ; then - # Change the prefix - MASON_ESCAPED_PREFIX=$(echo "${MASON_PREFIX}" | sed -e 's/[\/&]/\\&/g') - sed -i.bak "s/prefix=.*/prefix=${MASON_ESCAPED_PREFIX}/" \ - "${MASON_PREFIX}/${MASON_PKGCONFIG_FILE}" - fi - fi - - mason_success "Installed binary package at ${MASON_PREFIX}" - exit 0 - fi -} - - -function mason_pkgconfig { - MASON_PKGCONFIG_FILES="" - for pkgconfig_file in ${MASON_PKGCONFIG_FILE}; do - MASON_PKGCONFIG_FILES="${MASON_PKGCONFIG_FILES} ${MASON_PREFIX}/${pkgconfig_file}" - done - echo pkg-config ${MASON_PKGCONFIG_FILES} -} - -function mason_cflags { - local FLAGS - FLAGS=$(set -e;`mason_pkgconfig` --static --cflags) - # Replace double-prefix in case we use a sysroot. - echo ${FLAGS//${MASON_SYSROOT}${MASON_PREFIX}/${MASON_PREFIX}} -} - -function mason_ldflags { - local FLAGS - FLAGS=$(set -e;`mason_pkgconfig` --static --libs) - # Replace double-prefix in case we use a sysroot. - echo ${FLAGS//${MASON_SYSROOT}${MASON_PREFIX}/${MASON_PREFIX}} -} - -function mason_static_libs { - if [ -z "${MASON_LIB_FILE}" ]; then - mason_substep "Linking ${MASON_NAME} ${MASON_VERSION} dynamically" - elif [ -f "${MASON_PREFIX}/${MASON_LIB_FILE}" ]; then - echo "${MASON_PREFIX}/${MASON_LIB_FILE}" - else - mason_error "No static library file '${MASON_PREFIX}/${MASON_LIB_FILE}'" - exit 1 - fi -} - -function mason_prefix { - echo ${MASON_PREFIX} -} - -function mason_version { - if [ ${MASON_SYSTEM_PACKAGE:-false} = true ]; then - mason_system_version - else - echo ${MASON_VERSION} - fi -} - -function mason_list_existing_package { - local PREFIX RESULT - PREFIX=$1 - RESULT=$(aws s3api head-object --bucket mason-binaries --key $PREFIX/$MASON_NAME/$MASON_VERSION.tar.gz 2>/dev/null) - if [ ! -z "${RESULT}" ]; then - printf "%-30s %6.1fM %s\n" \ - "${PREFIX}" \ - "$(bc -l <<< "$(echo ${RESULT} | jq -r .ContentLength) / 1000000")" \ - "$(echo ${RESULT} | jq -r .LastModified)" - else - printf "%-30s %s\n" "${PREFIX}" "" - fi -} - -function mason_list_existing { - if [ ${MASON_SYSTEM_PACKAGE:-false} = true ]; then - mason_error "System packages don't have published packages." - exit 1 - elif [ ${MASON_HEADER_ONLY:-false} = true ]; then - mason_list_existing_package headers - else - for PREFIX in $(jq -r .CommonPrefixes[].Prefix[0:-1] <<< "$(aws s3api list-objects --bucket=mason-binaries --delimiter=/)") ; do - if [ ${PREFIX} != "headers" -a ${PREFIX} != "prebuilt" ] ; then - mason_list_existing_package ${PREFIX} - fi - done - fi -} - -function mason_publish { - local CONTENT_TYPE DATE MD5 SIGNATURE - if [ ! ${MASON_HEADER_ONLY:-false} = true ] && [ ! -z ${MASON_LIB_FILE:-} ] && [ ! -f "${MASON_PREFIX}/${MASON_LIB_FILE}" ]; then - mason_error "Required library file ${MASON_PREFIX}/${MASON_LIB_FILE} doesn't exist." - exit 1 - fi - - if [ -z "${AWS_ACCESS_KEY_ID}" ]; then - mason_error "AWS_ACCESS_KEY_ID is not set." - exit 1 - fi - - if [ -z "${AWS_SECRET_ACCESS_KEY}" ]; then - mason_error "AWS_SECRET_ACCESS_KEY is not set." - exit 1 - fi - - mkdir -p `dirname ${MASON_BINARIES_PATH}` - cd "${MASON_PREFIX}" - rm -rf "${MASON_BINARIES_PATH}" - tar czf "${MASON_BINARIES_PATH}" . - (cd "${MASON_ROOT}/.binaries" && ls -lh "${MASON_BINARIES}") - mason_step "Uploading binary package..." - - CONTENT_TYPE="application/octet-stream" - DATE="$(LC_ALL=C date -u +"%a, %d %b %Y %X %z")" - MD5="$(openssl md5 -binary < "${MASON_BINARIES_PATH}" | base64)" - SIGNATURE="$(printf "PUT\n$MD5\n$CONTENT_TYPE\n$DATE\nx-amz-acl:public-read\n/${MASON_BUCKET}/${MASON_BINARIES}" | openssl sha1 -binary -hmac "$AWS_SECRET_ACCESS_KEY" | base64)" - - curl -S -T "${MASON_BINARIES_PATH}" https://${MASON_BUCKET}.s3.amazonaws.com/${MASON_BINARIES} \ - -H "Date: $DATE" \ - -H "Authorization: AWS $AWS_ACCESS_KEY_ID:$SIGNATURE" \ - -H "Content-Type: $CONTENT_TYPE" \ - -H "Content-MD5: $MD5" \ - -H "x-amz-acl: public-read" - - echo https://${MASON_BUCKET}.s3.amazonaws.com/${MASON_BINARIES} - curl -f -I https://${MASON_BUCKET}.s3.amazonaws.com/${MASON_BINARIES} -} - -function mason_run { - if [ "$1" == "install" ]; then - if [ ${MASON_SYSTEM_PACKAGE:-false} = true ]; then - mason_check_existing - mason_clear_existing - mason_build - mason_write_config - mason_success "Installed system-provided ${MASON_NAME} $(set -e;mason_system_version)" - else - mason_check_existing - mason_clear_existing - mason_try_binary - mason_build - mason_write_config - fi - elif [ "$1" == "link" ]; then - mason_link - elif [ "$1" == "remove" ]; then - mason_clear_existing - elif [ "$1" == "publish" ]; then - mason_publish - elif [ "$1" == "build" ]; then - mason_clear_existing - mason_build - mason_write_config - elif [ "$1" == "cflags" ]; then - mason_check_installed - mason_cflags - elif [ "$1" == "ldflags" ]; then - mason_check_installed - mason_ldflags - elif [ "$1" == "config" ]; then - mason_check_installed - mason_config - elif [ "$1" == "static_libs" ]; then - mason_check_installed - mason_static_libs - elif [ "$1" == "version" ]; then - mason_check_installed - mason_version - elif [ "$1" == "prefix" ]; then - mason_prefix - elif [ "$1" == "existing" ]; then - mason_list_existing - elif [ $1 ]; then - mason_error "Unknown command '$1'" - exit 1 - else - mason_error "Usage: $0 " - exit 1 - fi -} diff --git a/third_party/mason/scripts/7z/9.20.1/.travis.yml b/third_party/mason/scripts/7z/9.20.1/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/7z/9.20.1/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/7z/9.20.1/script.sh b/third_party/mason/scripts/7z/9.20.1/script.sh deleted file mode 100755 index 0a334ac31..000000000 --- a/third_party/mason/scripts/7z/9.20.1/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=7z -MASON_VERSION=9.20.1 -MASON_LIB_FILE=bin/7z - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://downloads.sourceforge.net/project/p7zip/p7zip/9.20.1/p7zip_9.20.1_src_all.tar.bz2 \ - 30b1ff90105134947c67427bfc5c570857051f50 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/p7zip_${MASON_VERSION} -} - -function mason_prepare_compile { - if [ $(uname -s) = 'Darwin' ]; then - cp makefile.macosx_64bits makefile.machine - elif [ $(uname -s) = 'Linux' ]; then - cp makefile.linux_clang_amd64 makefile.linux - fi -} - -function mason_compile { - make all3 -j${MASON_CONCURRENCY} - mkdir -p "${MASON_PREFIX}" - cp -rv bin "${MASON_PREFIX}" -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/Qt/system/script.sh b/third_party/mason/scripts/Qt/system/script.sh deleted file mode 100755 index ff8b98e6b..000000000 --- a/third_party/mason/scripts/Qt/system/script.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=Qt -MASON_VERSION=system -MASON_SYSTEM_PACKAGE=true - -. ${MASON_DIR}/mason.sh - -QT_LIBS=(${2:-QtCore}) - -if hash qmake 2>/dev/null; then - QMAKE_CMD=qmake -#Some systems such as Fedora23 uses qmake-qt5 -elif hash qmake-qt5 2>/dev/null; then - QMAKE_CMD=qmake-qt5 -elif hash qmake-qt4 2>/dev/null; then - QMAKE_CMD=qmake-qt4 -else - mason_error "Can't find qmake executable" - exit 1 -fi - -# Qt5 libs are called Qt5*, so we have to use the correct name to pkg-config -QT_VERSION_MAJOR=$($QMAKE_CMD -query QT_VERSION | cut -d. -f1) -if [ ${QT_VERSION_MAJOR} -gt 4 ] ; then - QT_LIBS=(${QT_LIBS[@]/#Qt/Qt${QT_VERSION_MAJOR}}) -fi - -for LIB in ${QT_LIBS[@]} ; do - if ! `pkg-config ${LIB} --exists` ; then - mason_error "Can't find ${LIB}" - exit 1 - fi -done - -function mason_system_version { - if [ ${QT_VERSION_MAJOR} -gt 4 ] ; then - pkg-config Qt${QT_VERSION_MAJOR}Core --modversion - else - pkg-config QtCore --modversion - fi -} - -function mason_build { - : -} - -# pkg-config on OS X returns "-framework\ QtCore", which results in invalid arguments. -function cleanup_args { - python -c "import sys, re; print re.sub(r'(-framework)\\\\', r'\\1', ' '.join(sys.argv[1:]))" "$@" -} - -function mason_cflags { - echo ${MASON_CFLAGS} $(cleanup_args `pkg-config ${QT_LIBS[@]} --cflags`) -} - -function mason_ldflags { - echo ${MASON_LDFLAGS} $(cleanup_args `pkg-config ${QT_LIBS[@]} --libs`) -} - -mason_run "$@" diff --git a/third_party/mason/scripts/afl/2.19b/.travis.yml b/third_party/mason/scripts/afl/2.19b/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/afl/2.19b/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/afl/2.19b/script.sh b/third_party/mason/scripts/afl/2.19b/script.sh deleted file mode 100644 index 70da9db5a..000000000 --- a/third_party/mason/scripts/afl/2.19b/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=afl -MASON_VERSION=2.19b -MASON_LIB_FILE=bin/afl-fuzz - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://lcamtuf.coredump.cx/afl/releases/afl-2.19b.tgz \ - 6627c7b7c873e26fb7fbb6fd574c93676442d8b2 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - ${MASON_DIR}/mason install clang 3.8.0 - MASON_CLANG=$(${MASON_DIR}/mason prefix clang 3.8.0) -} - -function mason_compile { - export PATH=${MASON_CLANG}/bin:$PATH CXX=clang++ CC=clang - make -j${MASON_CONCURRENCY} - cd llvm_mode - make -j${MASON_CONCURRENCY} - cd .. - PREFIX=${MASON_PREFIX} make install -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/README.md b/third_party/mason/scripts/android-ndk/README.md deleted file mode 100644 index dff5af1ad..000000000 --- a/third_party/mason/scripts/android-ndk/README.md +++ /dev/null @@ -1,4 +0,0 @@ -- Versions are a concatenation of the architecture slug and the NDK release version -- Starting with r13, they are named "--" -- They contain a toolchain.sh + toolchain.cmake file -- Eventually we're going to remove Android-vars from mason.sh diff --git a/third_party/mason/scripts/android-ndk/arm-9-r10e/.travis.yml b/third_party/mason/scripts/android-ndk/arm-9-r10e/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/arm-9-r10e/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm-9-r10e/script.sh b/third_party/mason/scripts/android-ndk/arm-9-r10e/script.sh deleted file mode 100755 index 36101fd70..000000000 --- a/third_party/mason/scripts/android-ndk/arm-9-r10e/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=arm-9-r10e -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin \ - dea2dd3939eea3289cab075804abb153014b78d3 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin \ - 285606ba6882d27d99ed469fc5533cc3c93967f5 - fi - - mason_setup_build_dir - chmod +x ../.cache/${MASON_SLUG} - ../.cache/${MASON_SLUG} > /dev/null - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r10e -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="arm-linux-androideabi-4.9" \ - --llvm-version="3.6" \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="arm" \ - --platform="android-9" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/arm-9-r11c/.travis.yml b/third_party/mason/scripts/android-ndk/arm-9-r11c/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/arm-9-r11c/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm-9-r11c/script.sh b/third_party/mason/scripts/android-ndk/arm-9-r11c/script.sh deleted file mode 100755 index ce0bf4ac9..000000000 --- a/third_party/mason/scripts/android-ndk/arm-9-r11c/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=arm-9-r11c -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip \ - 0c6fa2017dd5237f6270887c85feedc4aafb3aef - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip \ - 0c646e2fceb3ef853e1832f4aa3a0dc4c16d2229 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r11c - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r11c -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="arm-linux-androideabi-clang" \ - --use-llvm \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="arm" \ - --platform="android-9" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/arm-9-r12b/.travis.yml b/third_party/mason/scripts/android-ndk/arm-9-r12b/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/arm-9-r12b/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm-9-r12b/script.sh b/third_party/mason/scripts/android-ndk/arm-9-r12b/script.sh deleted file mode 100755 index 636425ea1..000000000 --- a/third_party/mason/scripts/android-ndk/arm-9-r12b/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=arm-9-r12b -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip \ - 1a3bbdde35a240086b022cdf13ddcf40c27caa6e - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip \ - c6286e131c233c25537a306eae0a29d50b352b91 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r12b - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r12b -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make_standalone_toolchain.py \ - --force \ - --arch arm \ - --api 9 \ - --stl libc++ \ - --install-dir "${MASON_PREFIX}" - - # NDK r12 ships with .so files which are preferred when linking, but cause - # errors on devices when it's not present. - find "${MASON_PREFIX}" -name "libstdc++.so" -delete -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/arm-9-r13b/.travis.yml b/third_party/mason/scripts/android-ndk/arm-9-r13b/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/arm-9-r13b/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm-9-r13b/script.sh b/third_party/mason/scripts/android-ndk/arm-9-r13b/script.sh deleted file mode 100755 index 5f78dbda0..000000000 --- a/third_party/mason/scripts/android-ndk/arm-9-r13b/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=arm-9-r13b -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip \ - b822dd239f63cd2e1e72c823c41bd732da2e5ad6 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip \ - b95dd1fba5096ca3310a67e90b2a5a8aca3ddec7 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r13b - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r13b -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make_standalone_toolchain.py \ - --force \ - --arch arm \ - --api 9 \ - --stl libc++ \ - --install-dir "${MASON_PREFIX}" - - # NDK r12 ships with .so files which are preferred when linking, but cause - # errors on devices when it's not present. - find "${MASON_PREFIX}" -name "libstdc++.so" -delete -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/arm-v5-9-r13b/.travis.yml b/third_party/mason/scripts/android-ndk/arm-v5-9-r13b/.travis.yml deleted file mode 100644 index 972226179..000000000 --- a/third_party/mason/scripts/android-ndk/arm-v5-9-r13b/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm-v5-9-r13b/script.sh b/third_party/mason/scripts/android-ndk/arm-v5-9-r13b/script.sh deleted file mode 100755 index 94940f80b..000000000 --- a/third_party/mason/scripts/android-ndk/arm-v5-9-r13b/script.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=$(basename $(dirname "${BASH_SOURCE[0]}")) -MASON_LIB_FILE= - -export MASON_ANDROID_TOOLCHAIN="arm-linux-androideabi" -export MASON_CFLAGS="-target armv5te-none-linux-androideabi -march=armv5te -mtune=xscale -msoft-float -fno-integrated-as -mthumb" -export MASON_LDFLAGS="-Wl,--exclude-libs,libunwind.a" -export MASON_ANDROID_ABI="armeabi" -export MASON_ANDROID_NDK_ARCH="arm" - -. ${MASON_DIR}/scripts/android-ndk/script-${MASON_VERSION##*-}.sh diff --git a/third_party/mason/scripts/android-ndk/arm-v7-9-r13b/.travis.yml b/third_party/mason/scripts/android-ndk/arm-v7-9-r13b/.travis.yml deleted file mode 100644 index 972226179..000000000 --- a/third_party/mason/scripts/android-ndk/arm-v7-9-r13b/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm-v7-9-r13b/script.sh b/third_party/mason/scripts/android-ndk/arm-v7-9-r13b/script.sh deleted file mode 100755 index c718c0336..000000000 --- a/third_party/mason/scripts/android-ndk/arm-v7-9-r13b/script.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=$(basename $(dirname "${BASH_SOURCE[0]}")) -MASON_LIB_FILE= - -export MASON_ANDROID_TOOLCHAIN="arm-linux-androideabi" -export MASON_CFLAGS="-target armv7-none-linux-androideabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fno-integrated-as -mthumb" -export MASON_LDFLAGS="-Wl,--fix-cortex-a8 -Wl,--exclude-libs,libunwind.a" -export MASON_ANDROID_ABI="armeabi-v7a" -export MASON_ANDROID_NDK_ARCH="arm" - -. ${MASON_DIR}/scripts/android-ndk/script-${MASON_VERSION##*-}.sh diff --git a/third_party/mason/scripts/android-ndk/arm-v8-21-r13b/.travis.yml b/third_party/mason/scripts/android-ndk/arm-v8-21-r13b/.travis.yml deleted file mode 100644 index 972226179..000000000 --- a/third_party/mason/scripts/android-ndk/arm-v8-21-r13b/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm-v8-21-r13b/script.sh b/third_party/mason/scripts/android-ndk/arm-v8-21-r13b/script.sh deleted file mode 100755 index 921f70910..000000000 --- a/third_party/mason/scripts/android-ndk/arm-v8-21-r13b/script.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=$(basename $(dirname "${BASH_SOURCE[0]}")) -MASON_LIB_FILE= - -export MASON_ANDROID_TOOLCHAIN="aarch64-linux-android" -export MASON_CFLAGS="-target aarch64-none-linux-android" -export MASON_LDFLAGS="" -export MASON_ANDROID_ABI="arm64-v8a" -export MASON_ANDROID_NDK_ARCH="arm64" - -. ${MASON_DIR}/scripts/android-ndk/script-${MASON_VERSION##*-}.sh diff --git a/third_party/mason/scripts/android-ndk/arm64-21-r10e-gcc/.travis.yml b/third_party/mason/scripts/android-ndk/arm64-21-r10e-gcc/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/arm64-21-r10e-gcc/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm64-21-r10e-gcc/script.sh b/third_party/mason/scripts/android-ndk/arm64-21-r10e-gcc/script.sh deleted file mode 100755 index d4760b036..000000000 --- a/third_party/mason/scripts/android-ndk/arm64-21-r10e-gcc/script.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=arm64-21-r10e-gcc -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin \ - dea2dd3939eea3289cab075804abb153014b78d3 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin \ - 285606ba6882d27d99ed469fc5533cc3c93967f5 - fi - - mason_setup_build_dir - chmod +x ../.cache/${MASON_SLUG} - ../.cache/${MASON_SLUG} > /dev/null - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r10e -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="aarch64-linux-android-4.9" \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --arch="arm64" \ - --platform="android-21" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/arm64-21-r10e/.travis.yml b/third_party/mason/scripts/android-ndk/arm64-21-r10e/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/arm64-21-r10e/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm64-21-r10e/script.sh b/third_party/mason/scripts/android-ndk/arm64-21-r10e/script.sh deleted file mode 100755 index 1c28c5e1d..000000000 --- a/third_party/mason/scripts/android-ndk/arm64-21-r10e/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=arm64-21-r10e -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin \ - dea2dd3939eea3289cab075804abb153014b78d3 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin \ - 285606ba6882d27d99ed469fc5533cc3c93967f5 - fi - - mason_setup_build_dir - chmod +x ../.cache/${MASON_SLUG} - ../.cache/${MASON_SLUG} > /dev/null - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r10e -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="aarch64-linux-android-4.9" \ - --llvm-version="3.6" \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="arm64" \ - --platform="android-21" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/arm64-21-r11c/.travis.yml b/third_party/mason/scripts/android-ndk/arm64-21-r11c/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/arm64-21-r11c/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm64-21-r11c/script.sh b/third_party/mason/scripts/android-ndk/arm64-21-r11c/script.sh deleted file mode 100755 index de0fd7e8a..000000000 --- a/third_party/mason/scripts/android-ndk/arm64-21-r11c/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=arm64-21-r11c -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip \ - 0c6fa2017dd5237f6270887c85feedc4aafb3aef - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip \ - 0c646e2fceb3ef853e1832f4aa3a0dc4c16d2229 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r11c - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r11c -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="aarch64-linux-android-clang" \ - --use-llvm \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="arm64" \ - --platform="android-21" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/arm64-21-r12b/.travis.yml b/third_party/mason/scripts/android-ndk/arm64-21-r12b/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/arm64-21-r12b/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm64-21-r12b/script.sh b/third_party/mason/scripts/android-ndk/arm64-21-r12b/script.sh deleted file mode 100755 index 4eda9561a..000000000 --- a/third_party/mason/scripts/android-ndk/arm64-21-r12b/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=arm64-21-r12b -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip \ - 1a3bbdde35a240086b022cdf13ddcf40c27caa6e - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip \ - c6286e131c233c25537a306eae0a29d50b352b91 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r12b - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r12b -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make_standalone_toolchain.py \ - --force \ - --arch arm64 \ - --api 21 \ - --stl libc++ \ - --install-dir "${MASON_PREFIX}" - - # NDK r12 ships with .so files which are preferred when linking, but cause - # errors on devices when it's not present. - find "${MASON_PREFIX}" -name "libstdc++.so" -delete -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/arm64-21-r13b/.travis.yml b/third_party/mason/scripts/android-ndk/arm64-21-r13b/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/arm64-21-r13b/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/arm64-21-r13b/script.sh b/third_party/mason/scripts/android-ndk/arm64-21-r13b/script.sh deleted file mode 100755 index 622fef6a8..000000000 --- a/third_party/mason/scripts/android-ndk/arm64-21-r13b/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=arm64-21-r13b -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip \ - b822dd239f63cd2e1e72c823c41bd732da2e5ad6 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip \ - b95dd1fba5096ca3310a67e90b2a5a8aca3ddec7 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r13b - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r13b -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make_standalone_toolchain.py \ - --force \ - --arch arm64 \ - --api 21 \ - --stl libc++ \ - --install-dir "${MASON_PREFIX}" - - # NDK r12 ships with .so files which are preferred when linking, but cause - # errors on devices when it's not present. - find "${MASON_PREFIX}" -name "libstdc++.so" -delete -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/mips-64-21-r13b/.travis.yml b/third_party/mason/scripts/android-ndk/mips-64-21-r13b/.travis.yml deleted file mode 100644 index 972226179..000000000 --- a/third_party/mason/scripts/android-ndk/mips-64-21-r13b/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/mips-64-21-r13b/script.sh b/third_party/mason/scripts/android-ndk/mips-64-21-r13b/script.sh deleted file mode 100755 index b7766dd08..000000000 --- a/third_party/mason/scripts/android-ndk/mips-64-21-r13b/script.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=$(basename $(dirname "${BASH_SOURCE[0]}")) -MASON_LIB_FILE= - -export MASON_ANDROID_TOOLCHAIN="mips64el-linux-android" -export MASON_CFLAGS="-target mips64el-none-linux-android" -export MASON_LDFLAGS="" -export MASON_ANDROID_ABI="mips64" -export MASON_ANDROID_NDK_ARCH="mips64" - -. ${MASON_DIR}/scripts/android-ndk/script-${MASON_VERSION##*-}.sh - diff --git a/third_party/mason/scripts/android-ndk/mips-9-r10e/.travis.yml b/third_party/mason/scripts/android-ndk/mips-9-r10e/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/mips-9-r10e/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/mips-9-r10e/script.sh b/third_party/mason/scripts/android-ndk/mips-9-r10e/script.sh deleted file mode 100755 index 6a08b0d58..000000000 --- a/third_party/mason/scripts/android-ndk/mips-9-r10e/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=mips-9-r10e -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin \ - dea2dd3939eea3289cab075804abb153014b78d3 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin \ - 285606ba6882d27d99ed469fc5533cc3c93967f5 - fi - - mason_setup_build_dir - chmod +x ../.cache/${MASON_SLUG} - ../.cache/${MASON_SLUG} > /dev/null - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r10e -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="mipsel-linux-android-4.9" \ - --llvm-version="3.6" \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="mips" \ - --platform="android-9" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/mips-9-r11c/.travis.yml b/third_party/mason/scripts/android-ndk/mips-9-r11c/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/mips-9-r11c/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/mips-9-r11c/script.sh b/third_party/mason/scripts/android-ndk/mips-9-r11c/script.sh deleted file mode 100755 index bcab58d76..000000000 --- a/third_party/mason/scripts/android-ndk/mips-9-r11c/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=mips-9-r11c -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip \ - 0c6fa2017dd5237f6270887c85feedc4aafb3aef - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip \ - 0c646e2fceb3ef853e1832f4aa3a0dc4c16d2229 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r11c - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r11c -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="mipsel-linux-android-clang" \ - --use-llvm \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="mips" \ - --platform="android-9" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/mips-9-r12b/.travis.yml b/third_party/mason/scripts/android-ndk/mips-9-r12b/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/mips-9-r12b/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/mips-9-r12b/script.sh b/third_party/mason/scripts/android-ndk/mips-9-r12b/script.sh deleted file mode 100755 index 127ba5809..000000000 --- a/third_party/mason/scripts/android-ndk/mips-9-r12b/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=mips-9-r12b -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip \ - 1a3bbdde35a240086b022cdf13ddcf40c27caa6e - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip \ - c6286e131c233c25537a306eae0a29d50b352b91 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r12b - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r12b -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make_standalone_toolchain.py \ - --force \ - --arch mips \ - --api 9 \ - --stl libc++ \ - --install-dir "${MASON_PREFIX}" - - # NDK r12 ships with .so files which are preferred when linking, but cause - # errors on devices when it's not present. - find "${MASON_PREFIX}" -name "libstdc++.so" -delete -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/mips-9-r13b/.travis.yml b/third_party/mason/scripts/android-ndk/mips-9-r13b/.travis.yml deleted file mode 100644 index 972226179..000000000 --- a/third_party/mason/scripts/android-ndk/mips-9-r13b/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/mips-9-r13b/script.sh b/third_party/mason/scripts/android-ndk/mips-9-r13b/script.sh deleted file mode 100755 index 63a05d6b7..000000000 --- a/third_party/mason/scripts/android-ndk/mips-9-r13b/script.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=$(basename $(dirname "${BASH_SOURCE[0]}")) -MASON_LIB_FILE= - -export MASON_ANDROID_TOOLCHAIN="mipsel-linux-android" -export MASON_CFLAGS="-target mipsel-none-linux-android -mips32" -export MASON_LDFLAGS="" -export MASON_ANDROID_ABI="mips" -export MASON_ANDROID_NDK_ARCH="mips" - -. ${MASON_DIR}/scripts/android-ndk/script-${MASON_VERSION##*-}.sh diff --git a/third_party/mason/scripts/android-ndk/mips64-21-r10e/.travis.yml b/third_party/mason/scripts/android-ndk/mips64-21-r10e/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/mips64-21-r10e/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/mips64-21-r10e/script.sh b/third_party/mason/scripts/android-ndk/mips64-21-r10e/script.sh deleted file mode 100755 index 83e34d7f6..000000000 --- a/third_party/mason/scripts/android-ndk/mips64-21-r10e/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=mips64-21-r10e -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin \ - dea2dd3939eea3289cab075804abb153014b78d3 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin \ - 285606ba6882d27d99ed469fc5533cc3c93967f5 - fi - - mason_setup_build_dir - chmod +x ../.cache/${MASON_SLUG} - ../.cache/${MASON_SLUG} > /dev/null - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r10e -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="mips64el-linux-android-4.9" \ - --llvm-version="3.6" \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="mips64" \ - --platform="android-21" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/mips64-21-r11c/.travis.yml b/third_party/mason/scripts/android-ndk/mips64-21-r11c/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/mips64-21-r11c/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/mips64-21-r11c/script.sh b/third_party/mason/scripts/android-ndk/mips64-21-r11c/script.sh deleted file mode 100755 index c87d0e8e4..000000000 --- a/third_party/mason/scripts/android-ndk/mips64-21-r11c/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=mips64-21-r11c -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip \ - 0c6fa2017dd5237f6270887c85feedc4aafb3aef - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip \ - 0c646e2fceb3ef853e1832f4aa3a0dc4c16d2229 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r11c - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r11c -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="mips64el-linux-android-clang" \ - --use-llvm \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="mips64" \ - --platform="android-21" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/mips64-21-r12b/.travis.yml b/third_party/mason/scripts/android-ndk/mips64-21-r12b/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/mips64-21-r12b/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/mips64-21-r12b/script.sh b/third_party/mason/scripts/android-ndk/mips64-21-r12b/script.sh deleted file mode 100755 index 371a3c933..000000000 --- a/third_party/mason/scripts/android-ndk/mips64-21-r12b/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=mips64-21-r12b -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip \ - 1a3bbdde35a240086b022cdf13ddcf40c27caa6e - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip \ - c6286e131c233c25537a306eae0a29d50b352b91 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r12b - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r12b -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make_standalone_toolchain.py \ - --force \ - --arch mips64 \ - --api 21 \ - --stl libc++ \ - --install-dir "${MASON_PREFIX}" - - # NDK r12 ships with .so files which are preferred when linking, but cause - # errors on devices when it's not present. - find "${MASON_PREFIX}" -name "libstdc++.so" -delete -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/mips64-21-r13b/.travis.yml b/third_party/mason/scripts/android-ndk/mips64-21-r13b/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/mips64-21-r13b/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/mips64-21-r13b/script.sh b/third_party/mason/scripts/android-ndk/mips64-21-r13b/script.sh deleted file mode 100755 index 87cb05873..000000000 --- a/third_party/mason/scripts/android-ndk/mips64-21-r13b/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=mips64-21-r13b -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip \ - b822dd239f63cd2e1e72c823c41bd732da2e5ad6 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip \ - b95dd1fba5096ca3310a67e90b2a5a8aca3ddec7 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r13b - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r13b -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make_standalone_toolchain.py \ - --force \ - --arch mips64 \ - --api 21 \ - --stl libc++ \ - --install-dir "${MASON_PREFIX}" - - # NDK r12 ships with .so files which are preferred when linking, but cause - # errors on devices when it's not present. - find "${MASON_PREFIX}" -name "libstdc++.so" -delete -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/script-r13b.sh b/third_party/mason/scripts/android-ndk/script-r13b.sh deleted file mode 100644 index d831f5a4d..000000000 --- a/third_party/mason/scripts/android-ndk/script-r13b.sh +++ /dev/null @@ -1,52 +0,0 @@ -export MASON_ANDROID_PLATFORM_VERSION=${MASON_VERSION%-*} -export MASON_ANDROID_NDK_VERSION=${MASON_VERSION##*-} -export MASON_ANDROID_NDK_API_LEVEL=${MASON_ANDROID_PLATFORM_VERSION##*-} - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-${MASON_ANDROID_NDK_VERSION}-darwin-x86_64.zip \ - b822dd239f63cd2e1e72c823c41bd732da2e5ad6 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-${MASON_ANDROID_NDK_VERSION}-linux-x86_64.zip \ - b95dd1fba5096ca3310a67e90b2a5a8aca3ddec7 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-${MASON_ANDROID_NDK_VERSION} - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-${MASON_ANDROID_NDK_VERSION} -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make_standalone_toolchain.py \ - --force \ - --arch ${MASON_ANDROID_NDK_ARCH} \ - --api ${MASON_ANDROID_NDK_API_LEVEL} \ - --stl libc++ \ - --install-dir "${MASON_PREFIX}" - - # NDK r12 ships with .so files which are preferred when linking, but cause - # errors on devices when it's not present. - find "${MASON_PREFIX}" -name "libstdc++.so" -delete - - # Add a toolchain.sh and toolchain.cmake file. - ROOT="${MASON_PREFIX}" ${MASON_DIR}/scripts/android-ndk/write_toolchain-${MASON_ANDROID_NDK_VERSION}.sh - - # Copy the gdbserver - mkdir -p "${MASON_PREFIX}/prebuilt" - cp -rv "${MASON_BUILD_PATH}/prebuilt/android-${MASON_ANDROID_NDK_ARCH}/gdbserver" "${MASON_PREFIX}/prebuilt" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/write_toolchain-r13b.sh b/third_party/mason/scripts/android-ndk/write_toolchain-r13b.sh deleted file mode 100755 index f9ea0ce3d..000000000 --- a/third_party/mason/scripts/android-ndk/write_toolchain-r13b.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -set -e -set -o pipefail -set -u - -export CFLAGS="${MASON_CFLAGS} --sysroot=\${MASON_XC_ROOT}/sysroot -g -DANDROID -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -Wa,--noexecstack -Wformat -Werror=format-security" -export LDFLAGS="${MASON_LDFLAGS} --sysroot=\${MASON_XC_ROOT}/sysroot -Wl,--build-id -Wl,--warn-shared-textrel -Wl,--fatal-warnings -Wl,--no-undefined -Wl,-z,noexecstack -Qunused-arguments -Wl,-z,relro -Wl,-z,now" - -# Write CMake toolchain file -CMAKE_TOOLCHAIN="${ROOT}/toolchain.cmake" -echo "set(CMAKE_SYSTEM_NAME Android)" > "${CMAKE_TOOLCHAIN}" -echo "set(CMAKE_SYSTEM_VERSION 1)" >> "${CMAKE_TOOLCHAIN}" -echo "set(CMAKE_C_COMPILER \"\${MASON_XC_ROOT}/bin/${MASON_ANDROID_TOOLCHAIN}-clang\")" >> "${CMAKE_TOOLCHAIN}" -echo "set(CMAKE_CXX_COMPILER \"\${MASON_XC_ROOT}/bin/${MASON_ANDROID_TOOLCHAIN}-clang++\")" >> "${CMAKE_TOOLCHAIN}" -echo "set(CMAKE_RANLIB \"\${MASON_XC_ROOT}/bin/${MASON_ANDROID_TOOLCHAIN}-ranlib\")" >> "${CMAKE_TOOLCHAIN}" -echo "set(CMAKE_C_FLAGS \"${CFLAGS} \${CMAKE_C_FLAGS}\")" >> "${CMAKE_TOOLCHAIN}" -echo "set(CMAKE_CXX_FLAGS \"${CFLAGS} \${CMAKE_CXX_FLAGS}\")" >> "${CMAKE_TOOLCHAIN}" -echo "set(CMAKE_EXE_LINKER_FLAGS \"${LDFLAGS} \${CMAKE_EXE_LINKER_FLAGS}\")" >> "${CMAKE_TOOLCHAIN}" -echo "set(CMAKE_SHARED_LINKER_FLAGS \"${LDFLAGS} \${CMAKE_SHARED_LINKER_FLAGS}\")" >> "${CMAKE_TOOLCHAIN}" -echo "set(STRIP_COMMAND \"\${MASON_XC_ROOT}/bin/${MASON_ANDROID_TOOLCHAIN}-strip\")" >> "${CMAKE_TOOLCHAIN}" -echo "set(ANDROID_TOOLCHAIN \"${MASON_ANDROID_TOOLCHAIN}\")" >> "${CMAKE_TOOLCHAIN}" -echo "set(ANDROID_ABI \"${MASON_ANDROID_ABI}\")" >> "${CMAKE_TOOLCHAIN}" -echo "set(ANDROID_NATIVE_API_LEVEL \"${MASON_ANDROID_NDK_API_LEVEL}\")" >> "${CMAKE_TOOLCHAIN}" - -# Write shell script toolchain file -SHELL_TOOLCHAIN="${ROOT}/toolchain.sh" -echo "export CC=\"\${MASON_XC_ROOT}/bin/${MASON_ANDROID_TOOLCHAIN}-clang\"" >> "${SHELL_TOOLCHAIN}" -echo "export CXX=\"\${MASON_XC_ROOT}/bin/${MASON_ANDROID_TOOLCHAIN}-clang++\"" >> "${SHELL_TOOLCHAIN}" -echo "export LD=\"\${MASON_XC_ROOT}/bin/${MASON_ANDROID_TOOLCHAIN}-ld\"" >> "${SHELL_TOOLCHAIN}" -echo "export LINK=\"\${MASON_XC_ROOT}/bin/${MASON_ANDROID_TOOLCHAIN}-clang++\"" >> "${SHELL_TOOLCHAIN}" -echo "export AR=\"\${MASON_XC_ROOT}/bin/${MASON_ANDROID_TOOLCHAIN}-ar\"" >> "${SHELL_TOOLCHAIN}" -echo "export RANLIB=\"\${MASON_XC_ROOT}/bin/${MASON_ANDROID_TOOLCHAIN}-ranlib\"" >> "${SHELL_TOOLCHAIN}" -echo "export STRIP=\"\${MASON_XC_ROOT}/bin/${MASON_ANDROID_TOOLCHAIN}-strip\"" >> "${SHELL_TOOLCHAIN}" -echo "export CFLAGS=\"${CFLAGS} \${CFLAGS}\"" >> "${SHELL_TOOLCHAIN}" -echo "export CXXFLAGS=\"${CFLAGS} \${CXXFLAGS}\"" >> "${SHELL_TOOLCHAIN}" -echo "export ANDROID_TOOLCHAIN=\"${MASON_ANDROID_TOOLCHAIN}\"" >> "${SHELL_TOOLCHAIN}" -echo "export ANDROID_ABI=\"${MASON_ANDROID_ABI}\"" >> "${SHELL_TOOLCHAIN}" -echo "export ANDROID_NATIVE_API_LEVEL=\"${MASON_ANDROID_NDK_API_LEVEL}\"" >> "${SHELL_TOOLCHAIN}" diff --git a/third_party/mason/scripts/android-ndk/x86-64-21-r13b/.travis.yml b/third_party/mason/scripts/android-ndk/x86-64-21-r13b/.travis.yml deleted file mode 100644 index 972226179..000000000 --- a/third_party/mason/scripts/android-ndk/x86-64-21-r13b/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/x86-64-21-r13b/script.sh b/third_party/mason/scripts/android-ndk/x86-64-21-r13b/script.sh deleted file mode 100755 index 81261060c..000000000 --- a/third_party/mason/scripts/android-ndk/x86-64-21-r13b/script.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=$(basename $(dirname "${BASH_SOURCE[0]}")) -MASON_LIB_FILE= - -export MASON_ANDROID_TOOLCHAIN="x86_64-linux-android" -export MASON_CFLAGS="-target x86_64-none-linux-android" -export MASON_LDFLAGS="" -export MASON_ANDROID_ABI="x86_64" -export MASON_ANDROID_NDK_ARCH="x86_64" - -. ${MASON_DIR}/scripts/android-ndk/script-${MASON_VERSION##*-}.sh diff --git a/third_party/mason/scripts/android-ndk/x86-9-r10e/.travis.yml b/third_party/mason/scripts/android-ndk/x86-9-r10e/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/x86-9-r10e/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/x86-9-r10e/script.sh b/third_party/mason/scripts/android-ndk/x86-9-r10e/script.sh deleted file mode 100755 index 8da030800..000000000 --- a/third_party/mason/scripts/android-ndk/x86-9-r10e/script.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=x86-9-r10e -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin \ - dea2dd3939eea3289cab075804abb153014b78d3 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin \ - 285606ba6882d27d99ed469fc5533cc3c93967f5 - fi - - mason_setup_build_dir - chmod +x ../.cache/${MASON_SLUG} - ../.cache/${MASON_SLUG} > /dev/null - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r10e -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="x86-4.9" \ - --llvm-version="3.6" \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="x86" \ - --platform="android-9" - - mkdir -p ${MASON_PREFIX}/prebuilt/android-x86/gdbserver - cp -Rv ${MASON_BUILD_PATH}/prebuilt/android-x86/gdbserver/* \ - ${MASON_PREFIX}/prebuilt/android-x86/gdbserver/ -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/x86-9-r11c/.travis.yml b/third_party/mason/scripts/android-ndk/x86-9-r11c/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/x86-9-r11c/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/x86-9-r11c/script.sh b/third_party/mason/scripts/android-ndk/x86-9-r11c/script.sh deleted file mode 100755 index 4c7453cd2..000000000 --- a/third_party/mason/scripts/android-ndk/x86-9-r11c/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=x86-9-r11c -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip \ - 0c6fa2017dd5237f6270887c85feedc4aafb3aef - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip \ - 0c646e2fceb3ef853e1832f4aa3a0dc4c16d2229 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r11c - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r11c -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="x86-clang" \ - --use-llvm \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="x86" \ - --platform="android-9" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/x86-9-r12b/.travis.yml b/third_party/mason/scripts/android-ndk/x86-9-r12b/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/x86-9-r12b/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/x86-9-r12b/script.sh b/third_party/mason/scripts/android-ndk/x86-9-r12b/script.sh deleted file mode 100755 index 7e7989f08..000000000 --- a/third_party/mason/scripts/android-ndk/x86-9-r12b/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=x86-9-r12b -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip \ - 1a3bbdde35a240086b022cdf13ddcf40c27caa6e - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip \ - c6286e131c233c25537a306eae0a29d50b352b91 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r12b - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r12b -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make_standalone_toolchain.py \ - --force \ - --arch x86 \ - --api 9 \ - --stl libc++ \ - --install-dir "${MASON_PREFIX}" - - # NDK r12 ships with .so files which are preferred when linking, but cause - # errors on devices when it's not present. - find "${MASON_PREFIX}" -name "libstdc++.so" -delete -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/x86-9-r13b/.travis.yml b/third_party/mason/scripts/android-ndk/x86-9-r13b/.travis.yml deleted file mode 100644 index 972226179..000000000 --- a/third_party/mason/scripts/android-ndk/x86-9-r13b/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/x86-9-r13b/script.sh b/third_party/mason/scripts/android-ndk/x86-9-r13b/script.sh deleted file mode 100755 index 793828c5d..000000000 --- a/third_party/mason/scripts/android-ndk/x86-9-r13b/script.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=$(basename $(dirname "${BASH_SOURCE[0]}")) -MASON_LIB_FILE= - -export MASON_ANDROID_TOOLCHAIN="i686-linux-android" -export MASON_CFLAGS="-target i686-none-linux-android" -export MASON_LDFLAGS="" -export MASON_ANDROID_ABI="x86" -export MASON_ANDROID_NDK_ARCH="x86" - -. ${MASON_DIR}/scripts/android-ndk/script-${MASON_VERSION##*-}.sh diff --git a/third_party/mason/scripts/android-ndk/x86_64-21-r10e/.travis.yml b/third_party/mason/scripts/android-ndk/x86_64-21-r10e/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/x86_64-21-r10e/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/x86_64-21-r10e/script.sh b/third_party/mason/scripts/android-ndk/x86_64-21-r10e/script.sh deleted file mode 100755 index 41ba22e4c..000000000 --- a/third_party/mason/scripts/android-ndk/x86_64-21-r10e/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=x86_64-21-r10e -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-darwin-x86_64.bin \ - dea2dd3939eea3289cab075804abb153014b78d3 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/ndk/android-ndk-r10e-linux-x86_64.bin \ - 285606ba6882d27d99ed469fc5533cc3c93967f5 - fi - - mason_setup_build_dir - chmod +x ../.cache/${MASON_SLUG} - ../.cache/${MASON_SLUG} > /dev/null - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r10e -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="x86_64-4.9" \ - --llvm-version="3.6" \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="x86_64" \ - --platform="android-21" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/x86_64-21-r11c/.travis.yml b/third_party/mason/scripts/android-ndk/x86_64-21-r11c/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/x86_64-21-r11c/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/x86_64-21-r11c/script.sh b/third_party/mason/scripts/android-ndk/x86_64-21-r11c/script.sh deleted file mode 100755 index 097153734..000000000 --- a/third_party/mason/scripts/android-ndk/x86_64-21-r11c/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=x86_64-21-r11c -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-darwin-x86_64.zip \ - 0c6fa2017dd5237f6270887c85feedc4aafb3aef - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r11c-linux-x86_64.zip \ - 0c646e2fceb3ef853e1832f4aa3a0dc4c16d2229 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r11c - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r11c -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make-standalone-toolchain.sh \ - --toolchain="x86_64-clang" \ - --use-llvm \ - --package-dir="${MASON_BUILD_PATH}/package-dir/" \ - --install-dir="${MASON_PREFIX}" \ - --stl="libcxx" \ - --arch="x86_64" \ - --platform="android-21" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/x86_64-21-r12b/.travis.yml b/third_party/mason/scripts/android-ndk/x86_64-21-r12b/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/x86_64-21-r12b/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/x86_64-21-r12b/script.sh b/third_party/mason/scripts/android-ndk/x86_64-21-r12b/script.sh deleted file mode 100755 index 49a78981d..000000000 --- a/third_party/mason/scripts/android-ndk/x86_64-21-r12b/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=x86_64-21-r12b -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip \ - 1a3bbdde35a240086b022cdf13ddcf40c27caa6e - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r12b-linux-x86_64.zip \ - c6286e131c233c25537a306eae0a29d50b352b91 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r12b - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r12b -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make_standalone_toolchain.py \ - --force \ - --arch x86_64 \ - --api 21 \ - --stl libc++ \ - --install-dir "${MASON_PREFIX}" - - # NDK r12 ships with .so files which are preferred when linking, but cause - # errors on devices when it's not present. - find "${MASON_PREFIX}" -name "libstdc++.so" -delete -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/android-ndk/x86_64-21-r13b/.travis.yml b/third_party/mason/scripts/android-ndk/x86_64-21-r13b/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/android-ndk/x86_64-21-r13b/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/android-ndk/x86_64-21-r13b/script.sh b/third_party/mason/scripts/android-ndk/x86_64-21-r13b/script.sh deleted file mode 100755 index ff4788f8e..000000000 --- a/third_party/mason/scripts/android-ndk/x86_64-21-r13b/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=android-ndk -MASON_VERSION=x86_64-21-r13b -MASON_LIB_FILE= - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip \ - b822dd239f63cd2e1e72c823c41bd732da2e5ad6 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - http://dl.google.com/android/repository/android-ndk-r13b-linux-x86_64.zip \ - b95dd1fba5096ca3310a67e90b2a5a8aca3ddec7 - fi - - mason_setup_build_dir - rm -rf ./android-ndk-r13b - unzip -q ../.cache/${MASON_SLUG} $@ - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/android-ndk-r13b -} - -function mason_compile { - rm -rf ${MASON_PREFIX} - mkdir -p ${MASON_PREFIX} - - ${MASON_BUILD_PATH}/build/tools/make_standalone_toolchain.py \ - --force \ - --arch x86_64 \ - --api 21 \ - --stl libc++ \ - --install-dir "${MASON_PREFIX}" - - # NDK r12 ships with .so files which are preferred when linking, but cause - # errors on devices when it's not present. - find "${MASON_PREFIX}" -name "libstdc++.so" -delete -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/apitrace/6a30de1/.travis.yml b/third_party/mason/scripts/apitrace/6a30de1/.travis.yml deleted file mode 100644 index 156e282ba..000000000 --- a/third_party/mason/scripts/apitrace/6a30de1/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - dist: trusty - sudo: false - env: CXX=g++-5 CC=gcc-5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/apitrace/6a30de1/script.sh b/third_party/mason/scripts/apitrace/6a30de1/script.sh deleted file mode 100755 index f92c967b5..000000000 --- a/third_party/mason/scripts/apitrace/6a30de1/script.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=apitrace -MASON_VERSION=6a30de1 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/apitrace/apitrace/archive/${MASON_VERSION}.tar.gz \ - 622308260cbbe770672ee0753f650aafa7e1a04e - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-6a30de197ad8221e6481510155025a9f93dfd5c3 -} - -function mason_compile { - cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo \ - -DCMAKE_INSTALL_PREFIX="${MASON_PREFIX}" - make -C build - make -C build install -} - -function mason_ldflags { - : -} - -function mason_cflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/benchmark/1.0.0-1/.travis.yml b/third_party/mason/scripts/benchmark/1.0.0-1/.travis.yml deleted file mode 100644 index 54dd6670c..000000000 --- a/third_party/mason/scripts/benchmark/1.0.0-1/.travis.yml +++ /dev/null @@ -1,45 +0,0 @@ -language: cpp - -sudo: false - -matrix: - exclude: - - os: linux - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux - compiler: clang - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.7 - - george-edison55-precise-backports - packages: - - clang-3.7 - - cmake - - cmake-data - -cache: apt - - -before_install: -- if [[ ${MASON_PLATFORM} == "osx" || ${MASON_PLATFORM} == "ios" ]]; then brew install cmake ; fi - -before_script: - - if [[ ${MASON_PLATFORM} == "linux" && ${CXX} == "clang++" ]]; then export CXX="clang++-3.7" CC="clang-3.7" ; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/benchmark/1.0.0-1/script.sh b/third_party/mason/scripts/benchmark/1.0.0-1/script.sh deleted file mode 100755 index e916e37a5..000000000 --- a/third_party/mason/scripts/benchmark/1.0.0-1/script.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=benchmark -MASON_VERSION=1.0.0-1 -MASON_LIB_FILE=lib/libbenchmark.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/google/benchmark/archive/v1.0.0.tar.gz \ - dcf87e5faead951fd1e9ab103cb36a7c8ebe4837 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/benchmark-1.0.0 -} - -function mason_compile { - rm -rf build - mkdir -p build - cd build - if [ ${MASON_PLATFORM} == 'ios' ] ; then - # Make sure CMake thinks we're cross-compiling and manually set the exit codes - # because CMake can't run the test programs - echo "set (CMAKE_SYSTEM_NAME Darwin)" > toolchain.cmake - cmake \ - -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \ - -DRUN_HAVE_STD_REGEX=1 \ - -DRUN_HAVE_POSIX_REGEX=0 \ - -DRUN_HAVE_STEADY_CLOCK=0 \ - -DCMAKE_CXX_FLAGS="${CFLAGS:-}" \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX="${MASON_PREFIX}" \ - -DBENCHMARK_ENABLE_LTO=ON \ - -DBENCHMARK_ENABLE_TESTING=OFF \ - .. - else - cmake \ - ${MASON_CMAKE_TOOLCHAIN} \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX="${MASON_PREFIX}" \ - -DBENCHMARK_ENABLE_LTO=ON \ - -DBENCHMARK_ENABLE_TESTING=OFF \ - .. - fi - - make install -j${MASON_CONCURRENCY} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -} - -function mason_ldflags { - echo -lpthread -} - -function mason_static_libs { - echo ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/benchmark/1.0.0/.travis.yml b/third_party/mason/scripts/benchmark/1.0.0/.travis.yml deleted file mode 100644 index 54dd6670c..000000000 --- a/third_party/mason/scripts/benchmark/1.0.0/.travis.yml +++ /dev/null @@ -1,45 +0,0 @@ -language: cpp - -sudo: false - -matrix: - exclude: - - os: linux - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux - compiler: clang - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.7 - - george-edison55-precise-backports - packages: - - clang-3.7 - - cmake - - cmake-data - -cache: apt - - -before_install: -- if [[ ${MASON_PLATFORM} == "osx" || ${MASON_PLATFORM} == "ios" ]]; then brew install cmake ; fi - -before_script: - - if [[ ${MASON_PLATFORM} == "linux" && ${CXX} == "clang++" ]]; then export CXX="clang++-3.7" CC="clang-3.7" ; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/benchmark/1.0.0/script.sh b/third_party/mason/scripts/benchmark/1.0.0/script.sh deleted file mode 100755 index 96f176084..000000000 --- a/third_party/mason/scripts/benchmark/1.0.0/script.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=benchmark -MASON_VERSION=1.0.0 -MASON_LIB_FILE=lib/libbenchmark.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/google/benchmark/archive/v1.0.0.tar.gz \ - dcf87e5faead951fd1e9ab103cb36a7c8ebe4837 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/benchmark-${MASON_VERSION} -} - -function mason_compile { - rm -rf build - mkdir -p build - cd build - if [ ${MASON_PLATFORM} == 'ios' ] ; then - # Make sure CMake thinks we're cross-compiling and manually set the exit codes - # because CMake can't run the test programs - echo "set (CMAKE_SYSTEM_NAME Darwin)" > toolchain.cmake - cmake \ - -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \ - -DRUN_HAVE_STD_REGEX=1 \ - -DRUN_HAVE_POSIX_REGEX=0 \ - -DRUN_HAVE_STEADY_CLOCK=0 \ - -DCMAKE_CXX_FLAGS="${CFLAGS:-}" \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX="${MASON_PREFIX}" \ - -DBENCHMARK_ENABLE_LTO=ON \ - -DBENCHMARK_ENABLE_TESTING=OFF \ - .. - else - cmake \ - ${MASON_CMAKE_TOOLCHAIN} \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX="${MASON_PREFIX}" \ - -DBENCHMARK_ENABLE_LTO=ON \ - -DBENCHMARK_ENABLE_TESTING=OFF \ - .. - fi - - make install -j${MASON_CONCURRENCY} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -} - -function mason_ldflags { - echo -lpthread -} - -function mason_static_libs { - echo ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/binutils/2.26/.travis.yml b/third_party/mason/scripts/binutils/2.26/.travis.yml deleted file mode 100644 index a1f374f9a..000000000 --- a/third_party/mason/scripts/binutils/2.26/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: generic - -sudo: false - -addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.7 - packages: - - clang-3.7 - -matrix: - include: - - os: linux - compiler: clang - env: CXX=clang++-3.7 CC=clang-3.7 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/binutils/2.26/script.sh b/third_party/mason/scripts/binutils/2.26/script.sh deleted file mode 100755 index d485fc884..000000000 --- a/third_party/mason/scripts/binutils/2.26/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=binutils -MASON_VERSION=2.26 -MASON_LIB_FILE=bin/ld - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://ftp.gnu.org/gnu/binutils/${MASON_NAME}-${MASON_VERSION}.tar.bz2 \ - 05b22d6ef8003e76f7d05500363a3ee8cc66a7ae - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_strip_ldflags { - shift # -L... - shift # -lpng16 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/binutils/2.27/.travis.yml b/third_party/mason/scripts/binutils/2.27/.travis.yml deleted file mode 100644 index 45cea9a63..000000000 --- a/third_party/mason/scripts/binutils/2.27/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - - bison - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/binutils/2.27/script.sh b/third_party/mason/scripts/binutils/2.27/script.sh deleted file mode 100755 index 649013ae7..000000000 --- a/third_party/mason/scripts/binutils/2.27/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=binutils -MASON_VERSION=2.27 -MASON_LIB_FILE=bin/ld - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://ftp.gnu.org/gnu/binutils/${MASON_NAME}-${MASON_VERSION}.tar.bz2 \ - 7e62c56ea660080882af2c8644d566765a77a0b8 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - # we unset CFLAGS otherwise they will clobber defaults inside binutils - unset CFLAGS - ./configure \ - --prefix=${MASON_PREFIX} \ - --enable-gold \ - --enable-plugins \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/binutils/f0e9390be/.travis.yml b/third_party/mason/scripts/binutils/f0e9390be/.travis.yml deleted file mode 100644 index 5961bb0ba..000000000 --- a/third_party/mason/scripts/binutils/f0e9390be/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - - bison - - texinfo - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/binutils/f0e9390be/script.sh b/third_party/mason/scripts/binutils/f0e9390be/script.sh deleted file mode 100755 index 711796651..000000000 --- a/third_party/mason/scripts/binutils/f0e9390be/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=binutils -MASON_VERSION=f0e9390be -MASON_LIB_FILE=bin/ld - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} - git clone git://sourceware.org/git/binutils-gdb.git ${MASON_BUILD_PATH} - cd ${MASON_BUILD_PATH} - git checkout f0e9390be5bbfa3ee777d81dacfccd713ebddb68 - cd ../ -} - -function mason_compile { - # we unset CFLAGS otherwise they will clobber defaults inside binutils - unset CFLAGS - ./configure \ - --prefix=${MASON_PREFIX} \ - --enable-gold \ - --enable-plugins \ - --enable-static \ - --disable-shared \ - --disable-werror \ - --disable-dependency-tracking - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost/1.57.0/.travis.yml b/third_party/mason/scripts/boost/1.57.0/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/boost/1.57.0/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost/1.57.0/script.sh b/third_party/mason/scripts/boost/1.57.0/script.sh deleted file mode 100755 index 4cc53c06e..000000000 --- a/third_party/mason/scripts/boost/1.57.0/script.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=boost -MASON_VERSION=1.57.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -BOOST_ROOT=${MASON_PREFIX} - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/1.57.0/boost_1_57_0.tar.bz2 \ - 397306fa6d0858c4885fbba7d43a0164dcb7f53e - - mason_extract_tar_bz2 boost_1_57_0/boost - - MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_1_57_0 -} - -function mason_prefix { - echo "${BOOST_ROOT}" -} - -function mason_compile { - mkdir -p ${BOOST_ROOT}/include - mv ${MASON_ROOT}/.build/boost_1_57_0/boost ${BOOST_ROOT}/include - - # work around NDK bug https://code.google.com/p/android/issues/detail?id=79483 - - patch ${BOOST_ROOT}/include/boost/core/demangle.hpp <<< "19a20,21 -> #if !defined(__ANDROID__) -> -25a28,29 -> #endif -> -" - -} - -function mason_cflags { - echo "-I${BOOST_ROOT}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost/1.58.0/.travis.yml b/third_party/mason/scripts/boost/1.58.0/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/boost/1.58.0/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost/1.58.0/script.sh b/third_party/mason/scripts/boost/1.58.0/script.sh deleted file mode 100755 index cff5ed8dd..000000000 --- a/third_party/mason/scripts/boost/1.58.0/script.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=boost -MASON_VERSION=1.58.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -BOOST_ROOT=${MASON_PREFIX} - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/1.58.0/boost_1_58_0.tar.bz2 \ - 43e46651e762e4daf72a5d21dca86ae151e65378 - - mason_extract_tar_bz2 boost_1_58_0/boost - - MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_1_58_0 -} - -function mason_prefix { - echo "${BOOST_ROOT}" -} - -function mason_compile { - mkdir -p ${BOOST_ROOT}/include - mv ${MASON_ROOT}/.build/boost_1_58_0/boost ${BOOST_ROOT}/include - - # work around NDK bug https://code.google.com/p/android/issues/detail?id=79483 - - patch ${BOOST_ROOT}/include/boost/core/demangle.hpp <<< "19a20,21 -> #if !defined(__ANDROID__) -> -25a28,29 -> #endif -> -" - -} - -function mason_cflags { - echo "-I${BOOST_ROOT}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost/1.59.0/.travis.yml b/third_party/mason/scripts/boost/1.59.0/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/boost/1.59.0/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost/1.59.0/script.sh b/third_party/mason/scripts/boost/1.59.0/script.sh deleted file mode 100755 index 20a2cbbb6..000000000 --- a/third_party/mason/scripts/boost/1.59.0/script.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=boost -MASON_VERSION=1.59.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -BOOST_ROOT=${MASON_PREFIX} - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.bz2 \ - ff2e48f4d7e3c4b393d41e07a2f5d923b990967d - - mason_extract_tar_bz2 boost_1_59_0/boost - - MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_1_59_0 -} - -function mason_prefix { - echo "${BOOST_ROOT}" -} - -function mason_compile { - mkdir -p ${BOOST_ROOT}/include - mv ${MASON_ROOT}/.build/boost_1_59_0/boost ${BOOST_ROOT}/include - - # work around NDK bug https://code.google.com/p/android/issues/detail?id=79483 - - patch ${BOOST_ROOT}/include/boost/core/demangle.hpp <<< "19a20,21 -> #if !defined(__ANDROID__) -> -25a28,29 -> #endif -> -" - -} - -function mason_cflags { - echo "-I${BOOST_ROOT}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost/1.60.0/.travis.yml b/third_party/mason/scripts/boost/1.60.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/boost/1.60.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost/1.60.0/script.sh b/third_party/mason/scripts/boost/1.60.0/script.sh deleted file mode 100755 index e33e4b6f0..000000000 --- a/third_party/mason/scripts/boost/1.60.0/script.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=boost -MASON_VERSION=1.60.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -BOOST_ROOT=${MASON_PREFIX} - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/1.60.0/boost_1_60_0.tar.bz2 \ - 40a65135d34c3e3a3cdbe681f06745c086e5b941 - - mason_extract_tar_bz2 boost_1_60_0/boost - - MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_1_60_0 -} - -function mason_prefix { - echo "${BOOST_ROOT}" -} - -function mason_compile { - mkdir -p ${BOOST_ROOT}/include - mv ${MASON_ROOT}/.build/boost_1_60_0/boost ${BOOST_ROOT}/include - - # work around NDK bug https://code.google.com/p/android/issues/detail?id=79483 - - patch ${BOOST_ROOT}/include/boost/core/demangle.hpp <<< "19a20,21 -> #if !defined(__ANDROID__) -> -25a28,29 -> #endif -> -" - -} - -function mason_cflags { - echo "-I${BOOST_ROOT}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost/1.61.0/.travis.yml b/third_party/mason/scripts/boost/1.61.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/boost/1.61.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost/1.61.0/base.sh b/third_party/mason/scripts/boost/1.61.0/base.sh deleted file mode 100644 index f219747fd..000000000 --- a/third_party/mason/scripts/boost/1.61.0/base.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -# NOTE: use the ./util/new_boost.sh script to create new versions - -export MASON_VERSION=1.61.0 -export BOOST_VERSION=${MASON_VERSION//./_} -export BOOST_TOOLSET="clang" -export BOOST_TOOLSET_CXX="clang++" -export BOOST_ARCH="x86" -export BOOST_SHASUM=0a72c541e468d76a957adc14e54688dd695d566f diff --git a/third_party/mason/scripts/boost/1.61.0/common.sh b/third_party/mason/scripts/boost/1.61.0/common.sh deleted file mode 100644 index fe7e3833a..000000000 --- a/third_party/mason/scripts/boost/1.61.0/common.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env bash - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${MASON_VERSION}/boost_${BOOST_VERSION}.tar.bz2 \ - ${BOOST_SHASUM} - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} ${BOOST_TOOLSET_CXX} - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_prefix { - echo "${MASON_PREFIX}" -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - local LOCAL_LDFLAGS - LOCAL_LDFLAGS="-L${MASON_PREFIX}/lib" - if [[ ${BOOST_LIBRARY:-false} != false ]]; then - LOCAL_LDFLAGS="${LOCAL_LDFLAGS} -l${BOOST_LIBRARY}" - fi - echo $LOCAL_LDFLAGS -} diff --git a/third_party/mason/scripts/boost/1.61.0/script.sh b/third_party/mason/scripts/boost/1.61.0/script.sh deleted file mode 100755 index 22f3d3506..000000000 --- a/third_party/mason/scripts/boost/1.61.0/script.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env bash - -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# inherit from boost base (used for all boost library packages) -source ${HERE}/base.sh - -# this package is the one that is header-only -MASON_NAME=boost -MASON_HEADER_ONLY=true -unset MASON_LIB_FILE - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${HERE}/common.sh - -# override default unpacking to just unpack headers -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${MASON_VERSION}/boost_${BOOST_VERSION}.tar.bz2 \ - ${BOOST_SHASUM} - - mason_extract_tar_bz2 boost_${BOOST_VERSION}/boost - - MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION} -} - -# override default "compile" target for just the header install -function mason_compile { - mkdir -p ${MASON_PREFIX}/include - cp -r ${MASON_ROOT}/.build/boost_${BOOST_VERSION}/boost ${MASON_PREFIX}/include - - # work around NDK bug https://code.google.com/p/android/issues/detail?id=79483 - - patch ${MASON_PREFIX}/include/boost/core/demangle.hpp <<< "19a20,21 -> #if !defined(__ANDROID__) -> -25a28,29 -> #endif -> -" - - # work around https://github.com/Project-OSRM/node-osrm/issues/191 - patch ${MASON_PREFIX}/include/boost/interprocess/detail/os_file_functions.hpp <<< "471c471 -< return ::open(name, (int)mode); ---- -> return ::open(name, (int)mode,S_IRUSR|S_IWUSR); -" - -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost/1.62.0/.travis.yml b/third_party/mason/scripts/boost/1.62.0/.travis.yml deleted file mode 100644 index 15c3ad555..000000000 --- a/third_party/mason/scripts/boost/1.62.0/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost/1.62.0/base.sh b/third_party/mason/scripts/boost/1.62.0/base.sh deleted file mode 100644 index ad030fc27..000000000 --- a/third_party/mason/scripts/boost/1.62.0/base.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -# NOTE: use the ./utils/new_boost.sh script to create new versions - -export MASON_VERSION=1.62.0 -export BOOST_VERSION=${MASON_VERSION//./_} -export BOOST_TOOLSET="clang" -export BOOST_TOOLSET_CXX="clang++" -export BOOST_ARCH="x86" -export BOOST_SHASUM=f4151eec3e9394146b7bebcb17b83149de0a6c23 -# special override to ensure each library shares the cached download -export MASON_DOWNLOAD_SLUG="boost-${MASON_VERSION}" diff --git a/third_party/mason/scripts/boost/1.62.0/common.sh b/third_party/mason/scripts/boost/1.62.0/common.sh deleted file mode 100644 index 70c45d38a..000000000 --- a/third_party/mason/scripts/boost/1.62.0/common.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env bash - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${MASON_VERSION}/boost_${BOOST_VERSION}.tar.bz2 \ - ${BOOST_SHASUM} - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} ${BOOST_TOOLSET_CXX} - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_prefix { - echo "${MASON_PREFIX}" -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - local LOCAL_LDFLAGS - LOCAL_LDFLAGS="-L${MASON_PREFIX}/lib" - if [[ ${BOOST_LIBRARY:-false} != false ]]; then - LOCAL_LDFLAGS="${LOCAL_LDFLAGS} -lboost_${BOOST_LIBRARY}" - fi - echo $LOCAL_LDFLAGS -} diff --git a/third_party/mason/scripts/boost/1.62.0/script.sh b/third_party/mason/scripts/boost/1.62.0/script.sh deleted file mode 100755 index 2790bbe9a..000000000 --- a/third_party/mason/scripts/boost/1.62.0/script.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash - -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# inherit from boost base (used for all boost library packages) -source ${HERE}/base.sh - -# this package is the one that is header-only -MASON_NAME=boost -MASON_HEADER_ONLY=true - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${HERE}/common.sh - -# override default unpacking to just unpack headers -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${MASON_VERSION}/boost_${BOOST_VERSION}.tar.bz2 \ - ${BOOST_SHASUM} - - mason_extract_tar_bz2 boost_${BOOST_VERSION}/boost - - MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION} -} - -# override default "compile" target for just the header install -function mason_compile { - mkdir -p ${MASON_PREFIX}/include - cp -r ${MASON_ROOT}/.build/boost_${BOOST_VERSION}/boost ${MASON_PREFIX}/include - - # work around NDK bug https://code.google.com/p/android/issues/detail?id=79483 - - patch ${MASON_PREFIX}/include/boost/core/demangle.hpp <<< "19a20,21 -> #if !defined(__ANDROID__) -> -25a28,29 -> #endif -> -" - - # work around https://github.com/Project-OSRM/node-osrm/issues/191 - patch ${MASON_PREFIX}/include/boost/interprocess/detail/os_file_functions.hpp <<< "471c471 -< return ::open(name, (int)mode); ---- -> return ::open(name, (int)mode,S_IRUSR|S_IWUSR); -" - -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost/1.63.0/.travis.yml b/third_party/mason/scripts/boost/1.63.0/.travis.yml deleted file mode 100644 index 15c3ad555..000000000 --- a/third_party/mason/scripts/boost/1.63.0/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost/1.63.0/base.sh b/third_party/mason/scripts/boost/1.63.0/base.sh deleted file mode 100644 index 68f713f7b..000000000 --- a/third_party/mason/scripts/boost/1.63.0/base.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -# NOTE: use the ./utils/new_boost.sh script to create new versions - -export MASON_VERSION=1.63.0 -export BOOST_VERSION=${MASON_VERSION//./_} -export BOOST_TOOLSET="clang" -export BOOST_TOOLSET_CXX="clang++" -export BOOST_ARCH="x86" -export BOOST_SHASUM=5c5cf0fd35a5950ed9e00ba54153df47747803f9 -# special override to ensure each library shares the cached download -export MASON_DOWNLOAD_SLUG="boost-${MASON_VERSION}" diff --git a/third_party/mason/scripts/boost/1.63.0/common.sh b/third_party/mason/scripts/boost/1.63.0/common.sh deleted file mode 100644 index 70c45d38a..000000000 --- a/third_party/mason/scripts/boost/1.63.0/common.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env bash - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${MASON_VERSION}/boost_${BOOST_VERSION}.tar.bz2 \ - ${BOOST_SHASUM} - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} ${BOOST_TOOLSET_CXX} - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_prefix { - echo "${MASON_PREFIX}" -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - local LOCAL_LDFLAGS - LOCAL_LDFLAGS="-L${MASON_PREFIX}/lib" - if [[ ${BOOST_LIBRARY:-false} != false ]]; then - LOCAL_LDFLAGS="${LOCAL_LDFLAGS} -lboost_${BOOST_LIBRARY}" - fi - echo $LOCAL_LDFLAGS -} diff --git a/third_party/mason/scripts/boost/1.63.0/script.sh b/third_party/mason/scripts/boost/1.63.0/script.sh deleted file mode 100755 index 2790bbe9a..000000000 --- a/third_party/mason/scripts/boost/1.63.0/script.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash - -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# inherit from boost base (used for all boost library packages) -source ${HERE}/base.sh - -# this package is the one that is header-only -MASON_NAME=boost -MASON_HEADER_ONLY=true - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${HERE}/common.sh - -# override default unpacking to just unpack headers -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${MASON_VERSION}/boost_${BOOST_VERSION}.tar.bz2 \ - ${BOOST_SHASUM} - - mason_extract_tar_bz2 boost_${BOOST_VERSION}/boost - - MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION} -} - -# override default "compile" target for just the header install -function mason_compile { - mkdir -p ${MASON_PREFIX}/include - cp -r ${MASON_ROOT}/.build/boost_${BOOST_VERSION}/boost ${MASON_PREFIX}/include - - # work around NDK bug https://code.google.com/p/android/issues/detail?id=79483 - - patch ${MASON_PREFIX}/include/boost/core/demangle.hpp <<< "19a20,21 -> #if !defined(__ANDROID__) -> -25a28,29 -> #endif -> -" - - # work around https://github.com/Project-OSRM/node-osrm/issues/191 - patch ${MASON_PREFIX}/include/boost/interprocess/detail/os_file_functions.hpp <<< "471c471 -< return ::open(name, (int)mode); ---- -> return ::open(name, (int)mode,S_IRUSR|S_IWUSR); -" - -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost/system/script.sh b/third_party/mason/scripts/boost/system/script.sh deleted file mode 100755 index 303e80b4e..000000000 --- a/third_party/mason/scripts/boost/system/script.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=boost -MASON_VERSION=system -MASON_SYSTEM_PACKAGE=true - -. ${MASON_DIR}/mason.sh - -if [ -d '/usr/local/include/boost' ]; then - BOOST_ROOT='/usr/local' -elif [ -d '/usr/include/boost' ]; then - BOOST_ROOT='/usr' -else - mason_error "Cannot find Boost" - exit 1 -fi - -function mason_system_version { - # Use host compiler to produce a binary that can run on the host - HOST_CXX=`MASON_PLATFORM= mason env CXX` - HOST_CFLAGS=`MASON_PLATFORM= mason env CFLAGS` - - mkdir -p "${MASON_PREFIX}" - cd "${MASON_PREFIX}" - if [ ! -f version ]; then - echo "#include -#include -int main() { - printf(\"%d.%d.%d\", BOOST_VERSION / 100000, BOOST_VERSION / 100 % 1000, BOOST_VERSION % 100); - return 0; -} -" > version.cpp && ${HOST_CXX} ${HOST_CFLAGS} version.cpp $(mason_cflags) -o version - fi - ./version -} - -function mason_build { - if [ ${MASON_PLATFORM} = 'ios' ]; then - mkdir -p ${MASON_PREFIX}/include - ln -sf ${BOOST_ROOT}/include/boost ${MASON_PREFIX}/include/ - else - mkdir -p ${MASON_PREFIX}/{include,lib} - ln -sf ${BOOST_ROOT}/include/boost ${MASON_PREFIX}/include/ - ln -sf ${BOOST_ROOT}/lib/libboost_* ${MASON_PREFIX}/lib/ - fi -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - if [ ${MASON_PLATFORM} = 'ios' ]; then - echo "" - else - echo "-L${MASON_PREFIX}/lib" - fi -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libatomic/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libatomic/1.61.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libatomic/1.61.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libatomic/1.61.0/script.sh b/third_party/mason/scripts/boost_libatomic/1.61.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libatomic/1.61.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libatomic/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libatomic/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libatomic/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libatomic/1.62.0/script.sh b/third_party/mason/scripts/boost_libatomic/1.62.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libatomic/1.62.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libatomic/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libatomic/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libatomic/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libatomic/1.63.0/script.sh b/third_party/mason/scripts/boost_libatomic/1.63.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libatomic/1.63.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libchrono/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libchrono/1.61.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libchrono/1.61.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libchrono/1.61.0/script.sh b/third_party/mason/scripts/boost_libchrono/1.61.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libchrono/1.61.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libchrono/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libchrono/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libchrono/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libchrono/1.62.0/script.sh b/third_party/mason/scripts/boost_libchrono/1.62.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libchrono/1.62.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libchrono/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libchrono/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libchrono/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libchrono/1.63.0/script.sh b/third_party/mason/scripts/boost_libchrono/1.63.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libchrono/1.63.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libdate_time/1.57.0/.travis.yml b/third_party/mason/scripts/boost_libdate_time/1.57.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/boost_libdate_time/1.57.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libdate_time/1.57.0/script.sh b/third_party/mason/scripts/boost_libdate_time/1.57.0/script.sh deleted file mode 100755 index 1cb0750f3..000000000 --- a/third_party/mason/scripts/boost_libdate_time/1.57.0/script.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash - -BOOST_VERSION1="1.57.0" -BOOST_VERSION2="1_57_0" -BOOST_LIBRARY="date_time" -BOOST_TOOLSET="clang" -BOOST_ARCH="x86" - -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_VERSION=1.57.0 -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION1}/boost_${BOOST_VERSION2}.tar.bz2 \ - 397306fa6d0858c4885fbba7d43a0164dcb7f53e - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION2} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} clang++ - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_ldflags { - echo "-lboost_${BOOST_LIBRARY}" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libdate_time/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libdate_time/1.61.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libdate_time/1.61.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libdate_time/1.61.0/script.sh b/third_party/mason/scripts/boost_libdate_time/1.61.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libdate_time/1.61.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libdate_time/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libdate_time/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libdate_time/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libdate_time/1.62.0/script.sh b/third_party/mason/scripts/boost_libdate_time/1.62.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libdate_time/1.62.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libdate_time/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libdate_time/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libdate_time/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libdate_time/1.63.0/script.sh b/third_party/mason/scripts/boost_libdate_time/1.63.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libdate_time/1.63.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libfilesystem/1.57.0/.travis.yml b/third_party/mason/scripts/boost_libfilesystem/1.57.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/boost_libfilesystem/1.57.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libfilesystem/1.57.0/patch.diff b/third_party/mason/scripts/boost_libfilesystem/1.57.0/patch.diff deleted file mode 100644 index ad1637b72..000000000 --- a/third_party/mason/scripts/boost_libfilesystem/1.57.0/patch.diff +++ /dev/null @@ -1,10 +0,0 @@ ---- libs/filesystem/src/operations.cpp 2015-05-01 18:49:26.000000000 -0700 -+++ libs/filesystem/src/operations.cpp 2015-05-01 18:49:22.000000000 -0700 -@@ -1416,6 +1416,7 @@ - // - See the fchmodat() Linux man page: - // "http://man7.org/linux/man-pages/man2/fchmodat.2.html" - # if defined(AT_FDCWD) && defined(AT_SYMLINK_NOFOLLOW) \ -+ && !(defined(__APPLE__)) \ - && !(defined(__SUNPRO_CC) || defined(__sun) || defined(sun)) \ - && !(defined(linux) || defined(__linux) || defined(__linux__)) - if (::fchmodat(AT_FDCWD, p.c_str(), mode_cast(prms), diff --git a/third_party/mason/scripts/boost_libfilesystem/1.57.0/script.sh b/third_party/mason/scripts/boost_libfilesystem/1.57.0/script.sh deleted file mode 100755 index a0f7be7df..000000000 --- a/third_party/mason/scripts/boost_libfilesystem/1.57.0/script.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/env bash - -BOOST_VERSION1="1.57.0" -BOOST_VERSION2="1_57_0" -BOOST_LIBRARY="filesystem" -BOOST_TOOLSET="clang" -BOOST_ARCH="x86" - -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_VERSION=1.57.0 -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION1}/boost_${BOOST_VERSION2}.tar.bz2 \ - 397306fa6d0858c4885fbba7d43a0164dcb7f53e - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION2} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p0 < ./patch.diff - - gen_config ${BOOST_TOOLSET} clang++ - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_ldflags { - echo "-lboost_${BOOST_LIBRARY}" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libfilesystem/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libfilesystem/1.61.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libfilesystem/1.61.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libfilesystem/1.61.0/script.sh b/third_party/mason/scripts/boost_libfilesystem/1.61.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libfilesystem/1.61.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libfilesystem/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libfilesystem/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libfilesystem/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libfilesystem/1.62.0/script.sh b/third_party/mason/scripts/boost_libfilesystem/1.62.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libfilesystem/1.62.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libfilesystem/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libfilesystem/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libfilesystem/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libfilesystem/1.63.0/script.sh b/third_party/mason/scripts/boost_libfilesystem/1.63.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libfilesystem/1.63.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libiostreams/1.57.0/.travis.yml b/third_party/mason/scripts/boost_libiostreams/1.57.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/boost_libiostreams/1.57.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libiostreams/1.57.0/script.sh b/third_party/mason/scripts/boost_libiostreams/1.57.0/script.sh deleted file mode 100755 index ecae1e915..000000000 --- a/third_party/mason/scripts/boost_libiostreams/1.57.0/script.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash - -BOOST_VERSION1="1.57.0" -BOOST_VERSION2="1_57_0" -BOOST_LIBRARY="iostreams" -BOOST_TOOLSET="clang" -BOOST_ARCH="x86" - -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_VERSION=1.57.0 -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION1}/boost_${BOOST_VERSION2}.tar.bz2 \ - 397306fa6d0858c4885fbba7d43a0164dcb7f53e - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION2} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} clang++ - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_ldflags { - echo "-lboost_${BOOST_LIBRARY}" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libiostreams/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libiostreams/1.61.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libiostreams/1.61.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libiostreams/1.61.0/script.sh b/third_party/mason/scripts/boost_libiostreams/1.61.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libiostreams/1.61.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libiostreams/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libiostreams/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libiostreams/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libiostreams/1.62.0/script.sh b/third_party/mason/scripts/boost_libiostreams/1.62.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libiostreams/1.62.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libiostreams/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libiostreams/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libiostreams/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libiostreams/1.63.0/script.sh b/third_party/mason/scripts/boost_libiostreams/1.63.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libiostreams/1.63.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libprogram_options/1.57.0/.travis.yml b/third_party/mason/scripts/boost_libprogram_options/1.57.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.57.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libprogram_options/1.57.0/script.sh b/third_party/mason/scripts/boost_libprogram_options/1.57.0/script.sh deleted file mode 100755 index ed6f39fe6..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.57.0/script.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/usr/bin/env bash - -BOOST_VERSION1="1.57.0" -BOOST_VERSION2="1_57_0" -BOOST_LIBRARY="program_options" -BOOST_TOOLSET="clang" -BOOST_ARCH="x86" - -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_VERSION=1.57.0 -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION1}/boost_${BOOST_VERSION2}.tar.bz2 \ - 397306fa6d0858c4885fbba7d43a0164dcb7f53e - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION2} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} clang++ - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_ldflags { - echo "-lboost_${BOOST_LIBRARY}" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libprogram_options/1.59.0/.travis.yml b/third_party/mason/scripts/boost_libprogram_options/1.59.0/.travis.yml deleted file mode 100644 index 7a9e22f62..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.59.0/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libprogram_options/1.59.0/script.sh b/third_party/mason/scripts/boost_libprogram_options/1.59.0/script.sh deleted file mode 100755 index ca8e225b9..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.59.0/script.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env bash - -BOOST_VERSION1="1.59.0" -BOOST_VERSION2="1_59_0" -BOOST_LIBRARY="program_options" -BOOST_TOOLSET="clang" -BOOST_ARCH="x86" - -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_VERSION=${BOOST_VERSION1} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION1}/boost_${BOOST_VERSION2}.tar.bz2 \ - ff2e48f4d7e3c4b393d41e07a2f5d923b990967d - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION2} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} clang++ - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libprogram_options/1.60.0/.travis.yml b/third_party/mason/scripts/boost_libprogram_options/1.60.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.60.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libprogram_options/1.60.0/script.sh b/third_party/mason/scripts/boost_libprogram_options/1.60.0/script.sh deleted file mode 100755 index 9f657ca90..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.60.0/script.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env bash - -BOOST_VERSION1="1.60.0" -BOOST_VERSION2="1_60_0" -BOOST_LIBRARY="program_options" -BOOST_TOOLSET="clang" -BOOST_ARCH="x86" - -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_VERSION=${BOOST_VERSION1} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION1}/boost_${BOOST_VERSION2}.tar.bz2 \ - 40a65135d34c3e3a3cdbe681f06745c086e5b941 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION2} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} clang++ - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libprogram_options/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libprogram_options/1.61.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.61.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libprogram_options/1.61.0/script.sh b/third_party/mason/scripts/boost_libprogram_options/1.61.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.61.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libprogram_options/1.62.0-cxx11abi/.travis.yml b/third_party/mason/scripts/boost_libprogram_options/1.62.0-cxx11abi/.travis.yml deleted file mode 100644 index af8da0474..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.62.0-cxx11abi/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: cpp - -matrix: - include: - - os: linux - sudo: true - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- sudo perl -i -p -e "s/# define _GLIBCXX_USE_DUAL_ABI 0/# define _GLIBCXX_USE_DUAL_ABI 1/g;" /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libprogram_options/1.62.0-cxx11abi/script.sh b/third_party/mason/scripts/boost_libprogram_options/1.62.0-cxx11abi/script.sh deleted file mode 100755 index e11f76702..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.62.0-cxx11abi/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE |cut -d- -f1) -source ${BASE_PATH}/base.sh - -# XXX: Append the -cxx11abi prefix to the package -export BOOST_VERSION_DOWNLOAD=$MASON_VERSION -export MASON_VERSION=$MASON_VERSION-cxx11abi - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -export CXXFLAGS="${CXXFLAGS} -D_GLIBCXX_USE_CXX11_ABI=1" - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION_DOWNLOAD}/boost_${BOOST_VERSION}.tar.bz2 \ - ${BOOST_SHASUM} - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION} - - mason_extract_tar_bz2 -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libprogram_options/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libprogram_options/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libprogram_options/1.62.0/script.sh b/third_party/mason/scripts/boost_libprogram_options/1.62.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.62.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libprogram_options/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libprogram_options/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libprogram_options/1.63.0/script.sh b/third_party/mason/scripts/boost_libprogram_options/1.63.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libprogram_options/1.63.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libpython/1.57.0/.travis.yml b/third_party/mason/scripts/boost_libpython/1.57.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/boost_libpython/1.57.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libpython/1.57.0/patch.diff b/third_party/mason/scripts/boost_libpython/1.57.0/patch.diff deleted file mode 100644 index f0fa2b156..000000000 --- a/third_party/mason/scripts/boost_libpython/1.57.0/patch.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- libs/python/src/converter/builtin_converters.cpp 2012-12-07 11:51:06.000000000 -0800 -+++ libs/python/src/converter/builtin_converters.cpp 2014-04-01 17:24:37.000000000 -0700 -@@ -32,7 +32,9 @@ - - void shared_ptr_deleter::operator()(void const*) - { -+ PyGILState_STATE gil = PyGILState_Ensure(); - owner.reset(); -+ PyGILState_Release(gil); - } - - namespace diff --git a/third_party/mason/scripts/boost_libpython/1.57.0/script.sh b/third_party/mason/scripts/boost_libpython/1.57.0/script.sh deleted file mode 100755 index c75c8c679..000000000 --- a/third_party/mason/scripts/boost_libpython/1.57.0/script.sh +++ /dev/null @@ -1,122 +0,0 @@ -#!/usr/bin/env bash - -BOOST_VERSION1="1.57.0" -BOOST_VERSION2="1_57_0" -BOOST_LIBRARY="python" -BOOST_TOOLSET="clang" -BOOST_ARCH="x86" - -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_VERSION=1.57.0 -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION1}/boost_${BOOST_VERSION2}.tar.bz2 \ - 397306fa6d0858c4885fbba7d43a0164dcb7f53e - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION2} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function write_python_config() { -# usage: -# write_python_config -PYTHON_VERSION=$2 -# note: apple pythons need '/System' -PYTHON_BASE=$3 -# note: python 3 uses 'm' -PYTHON_VARIANT=$4 -if [[ ${UNAME} == 'Darwin' ]]; then - echo " - using python - : ${PYTHON_VERSION} # version - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/include/python${PYTHON_VERSION}${PYTHON_VARIANT} # includes - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} # a lib actually symlink - : ${BOOST_TOOLSET} # condition - ; - " >> $1 -else - if [[ ${UNAME} == 'FreeBSD' ]]; then - echo " - using python - : ${PYTHON_VERSION} # version - : /usr/local/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : /usr/local/include/python${PYTHON_VERSION} # includes - : /usr/local/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} - : ${BOOST_TOOLSET} # condition - ; - " >> $1 - else - echo " - using python - : ${PYTHON_VERSION} # version - : /usr/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : /usr/include/python${PYTHON_VERSION} # includes - : /usr/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} - : ${BOOST_TOOLSET} # condition - ; - " >> $1 - fi -fi -} - -function mason_compile { - # patch to workaround crashes in python.input - # https://github.com/mapnik/mapnik/issues/1968 - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p0 < ./patch.diff - - gen_config ${BOOST_TOOLSET} clang++ - write_python_config user-config.jam "2.7" "/System" "" - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_ldflags { - echo "-lboost_${BOOST_LIBRARY}" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libpython/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libpython/1.61.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libpython/1.61.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libpython/1.61.0/patch.diff b/third_party/mason/scripts/boost_libpython/1.61.0/patch.diff deleted file mode 100644 index f0fa2b156..000000000 --- a/third_party/mason/scripts/boost_libpython/1.61.0/patch.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- libs/python/src/converter/builtin_converters.cpp 2012-12-07 11:51:06.000000000 -0800 -+++ libs/python/src/converter/builtin_converters.cpp 2014-04-01 17:24:37.000000000 -0700 -@@ -32,7 +32,9 @@ - - void shared_ptr_deleter::operator()(void const*) - { -+ PyGILState_STATE gil = PyGILState_Ensure(); - owner.reset(); -+ PyGILState_Release(gil); - } - - namespace diff --git a/third_party/mason/scripts/boost_libpython/1.61.0/script.sh b/third_party/mason/scripts/boost_libpython/1.61.0/script.sh deleted file mode 100755 index d1b6c4a21..000000000 --- a/third_party/mason/scripts/boost_libpython/1.61.0/script.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -function write_python_config() { -# usage: -# write_python_config -PYTHON_VERSION=$2 -# note: apple pythons need '/System' -PYTHON_BASE=$3 -# note: python 3 uses 'm' -PYTHON_VARIANT=$4 -if [[ ${UNAME} == 'Darwin' ]]; then - echo " - using python - : ${PYTHON_VERSION} # version - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/include/python${PYTHON_VERSION}${PYTHON_VARIANT} # includes - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} # a lib actually symlink - : ${BOOST_TOOLSET} # condition - ; - " >> $1 -else - if [[ ${UNAME} == 'FreeBSD' ]]; then - echo " - using python - : ${PYTHON_VERSION} # version - : /usr/local/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : /usr/local/include/python${PYTHON_VERSION} # includes - : /usr/local/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} - : ${BOOST_TOOLSET} # condition - ; - " >> $1 - else - echo " - using python - : ${PYTHON_VERSION} # version - : /usr/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : /usr/include/python${PYTHON_VERSION} # includes - : /usr/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} - : ${BOOST_TOOLSET} # condition - ; - " >> $1 - fi -fi -} - -function mason_compile { - # patch to workaround crashes in python.input - # https://github.com/mapnik/mapnik/issues/1968 - mason_step "Loading patch ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff" - patch -N -p0 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - write_python_config user-config.jam "2.7" "/System" "" - gen_config ${BOOST_TOOLSET} ${BOOST_TOOLSET_CXX} - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libpython/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libpython/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libpython/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libpython/1.62.0/patch.diff b/third_party/mason/scripts/boost_libpython/1.62.0/patch.diff deleted file mode 100644 index f0fa2b156..000000000 --- a/third_party/mason/scripts/boost_libpython/1.62.0/patch.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- libs/python/src/converter/builtin_converters.cpp 2012-12-07 11:51:06.000000000 -0800 -+++ libs/python/src/converter/builtin_converters.cpp 2014-04-01 17:24:37.000000000 -0700 -@@ -32,7 +32,9 @@ - - void shared_ptr_deleter::operator()(void const*) - { -+ PyGILState_STATE gil = PyGILState_Ensure(); - owner.reset(); -+ PyGILState_Release(gil); - } - - namespace diff --git a/third_party/mason/scripts/boost_libpython/1.62.0/script.sh b/third_party/mason/scripts/boost_libpython/1.62.0/script.sh deleted file mode 100755 index d1b6c4a21..000000000 --- a/third_party/mason/scripts/boost_libpython/1.62.0/script.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -function write_python_config() { -# usage: -# write_python_config -PYTHON_VERSION=$2 -# note: apple pythons need '/System' -PYTHON_BASE=$3 -# note: python 3 uses 'm' -PYTHON_VARIANT=$4 -if [[ ${UNAME} == 'Darwin' ]]; then - echo " - using python - : ${PYTHON_VERSION} # version - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/include/python${PYTHON_VERSION}${PYTHON_VARIANT} # includes - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} # a lib actually symlink - : ${BOOST_TOOLSET} # condition - ; - " >> $1 -else - if [[ ${UNAME} == 'FreeBSD' ]]; then - echo " - using python - : ${PYTHON_VERSION} # version - : /usr/local/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : /usr/local/include/python${PYTHON_VERSION} # includes - : /usr/local/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} - : ${BOOST_TOOLSET} # condition - ; - " >> $1 - else - echo " - using python - : ${PYTHON_VERSION} # version - : /usr/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : /usr/include/python${PYTHON_VERSION} # includes - : /usr/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} - : ${BOOST_TOOLSET} # condition - ; - " >> $1 - fi -fi -} - -function mason_compile { - # patch to workaround crashes in python.input - # https://github.com/mapnik/mapnik/issues/1968 - mason_step "Loading patch ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff" - patch -N -p0 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - write_python_config user-config.jam "2.7" "/System" "" - gen_config ${BOOST_TOOLSET} ${BOOST_TOOLSET_CXX} - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libpython/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libpython/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libpython/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libpython/1.63.0/patch.diff b/third_party/mason/scripts/boost_libpython/1.63.0/patch.diff deleted file mode 100644 index f0fa2b156..000000000 --- a/third_party/mason/scripts/boost_libpython/1.63.0/patch.diff +++ /dev/null @@ -1,12 +0,0 @@ ---- libs/python/src/converter/builtin_converters.cpp 2012-12-07 11:51:06.000000000 -0800 -+++ libs/python/src/converter/builtin_converters.cpp 2014-04-01 17:24:37.000000000 -0700 -@@ -32,7 +32,9 @@ - - void shared_ptr_deleter::operator()(void const*) - { -+ PyGILState_STATE gil = PyGILState_Ensure(); - owner.reset(); -+ PyGILState_Release(gil); - } - - namespace diff --git a/third_party/mason/scripts/boost_libpython/1.63.0/script.sh b/third_party/mason/scripts/boost_libpython/1.63.0/script.sh deleted file mode 100755 index d1b6c4a21..000000000 --- a/third_party/mason/scripts/boost_libpython/1.63.0/script.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -function write_python_config() { -# usage: -# write_python_config -PYTHON_VERSION=$2 -# note: apple pythons need '/System' -PYTHON_BASE=$3 -# note: python 3 uses 'm' -PYTHON_VARIANT=$4 -if [[ ${UNAME} == 'Darwin' ]]; then - echo " - using python - : ${PYTHON_VERSION} # version - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/include/python${PYTHON_VERSION}${PYTHON_VARIANT} # includes - : ${PYTHON_BASE}/Library/Frameworks/Python.framework/Versions/${PYTHON_VERSION}/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} # a lib actually symlink - : ${BOOST_TOOLSET} # condition - ; - " >> $1 -else - if [[ ${UNAME} == 'FreeBSD' ]]; then - echo " - using python - : ${PYTHON_VERSION} # version - : /usr/local/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : /usr/local/include/python${PYTHON_VERSION} # includes - : /usr/local/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} - : ${BOOST_TOOLSET} # condition - ; - " >> $1 - else - echo " - using python - : ${PYTHON_VERSION} # version - : /usr/bin/python${PYTHON_VERSION}${PYTHON_VARIANT} # cmd-or-prefix - : /usr/include/python${PYTHON_VERSION} # includes - : /usr/lib/python${PYTHON_VERSION}/config${PYTHON_VARIANT} - : ${BOOST_TOOLSET} # condition - ; - " >> $1 - fi -fi -} - -function mason_compile { - # patch to workaround crashes in python.input - # https://github.com/mapnik/mapnik/issues/1968 - mason_step "Loading patch ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff" - patch -N -p0 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - write_python_config user-config.jam "2.7" "/System" "" - gen_config ${BOOST_TOOLSET} ${BOOST_TOOLSET_CXX} - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libregex/1.57.0/.travis.yml b/third_party/mason/scripts/boost_libregex/1.57.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/boost_libregex/1.57.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libregex/1.57.0/script.sh b/third_party/mason/scripts/boost_libregex/1.57.0/script.sh deleted file mode 100755 index bcab4a16d..000000000 --- a/third_party/mason/scripts/boost_libregex/1.57.0/script.sh +++ /dev/null @@ -1,78 +0,0 @@ -#!/usr/bin/env bash - -BOOST_VERSION1="1.57.0" -BOOST_VERSION2="1_57_0" -BOOST_LIBRARY="regex" -BOOST_TOOLSET="clang" -BOOST_ARCH="x86" - -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_VERSION=1.57.0 -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION1}/boost_${BOOST_VERSION2}.tar.bz2 \ - 397306fa6d0858c4885fbba7d43a0164dcb7f53e - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION2} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_prepare_compile { - ${MASON_DIR}/mason install icu 54.1 - MASON_ICU=$(${MASON_DIR}/mason prefix icu 54.1) - BOOST_LDFLAGS="-L${MASON_ICU}/lib -licuuc -licui18n -licudata" -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} clang++ - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -sHAVE_ICU=1 -sICU_PATH=${MASON_ICU} \ - linkflags="${BOOST_LDFLAGS}" \ - -d2 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_ldflags { - echo "-lboost_${BOOST_LIBRARY}" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libregex/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libregex/1.61.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libregex/1.61.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libregex/1.61.0/script.sh b/third_party/mason/scripts/boost_libregex/1.61.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libregex/1.61.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libregex/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libregex/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libregex/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libregex/1.62.0/script.sh b/third_party/mason/scripts/boost_libregex/1.62.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libregex/1.62.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libregex/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libregex/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libregex/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libregex/1.63.0/script.sh b/third_party/mason/scripts/boost_libregex/1.63.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libregex/1.63.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libregex_icu/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libregex_icu/1.61.0/.travis.yml deleted file mode 100644 index 21f1e72db..000000000 --- a/third_party/mason/scripts/boost_libregex_icu/1.61.0/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libregex_icu/1.61.0/script.sh b/third_party/mason/scripts/boost_libregex_icu/1.61.0/script.sh deleted file mode 100755 index de94e5385..000000000 --- a/third_party/mason/scripts/boost_libregex_icu/1.61.0/script.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -# Note: cannot deduce from directory since it is named in a custom way -#BOOST_LIBRARY=${THIS_DIR#boost_lib} -BOOST_LIBRARY=regex -MASON_NAME=boost_lib${BOOST_LIBRARY}_icu -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -function mason_prepare_compile { - ${MASON_DIR}/mason install icu 55.1 - MASON_ICU=$(${MASON_DIR}/mason prefix icu 55.1) -} - -# custom compile that gets icu working -function mason_compile { - gen_config ${BOOST_TOOLSET} ${BOOST_TOOLSET_CXX} - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - echo 'int main() { return 0; }' > libs/regex/build/has_icu_test.cpp - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -sHAVE_ICU=1 -sICU_PATH=${MASON_ICU} --reconfigure --debug-configuration \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libregex_icu/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libregex_icu/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libregex_icu/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libregex_icu/1.62.0/script.sh b/third_party/mason/scripts/boost_libregex_icu/1.62.0/script.sh deleted file mode 100755 index de94e5385..000000000 --- a/third_party/mason/scripts/boost_libregex_icu/1.62.0/script.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -# Note: cannot deduce from directory since it is named in a custom way -#BOOST_LIBRARY=${THIS_DIR#boost_lib} -BOOST_LIBRARY=regex -MASON_NAME=boost_lib${BOOST_LIBRARY}_icu -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -function mason_prepare_compile { - ${MASON_DIR}/mason install icu 55.1 - MASON_ICU=$(${MASON_DIR}/mason prefix icu 55.1) -} - -# custom compile that gets icu working -function mason_compile { - gen_config ${BOOST_TOOLSET} ${BOOST_TOOLSET_CXX} - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - echo 'int main() { return 0; }' > libs/regex/build/has_icu_test.cpp - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -sHAVE_ICU=1 -sICU_PATH=${MASON_ICU} --reconfigure --debug-configuration \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libregex_icu/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libregex_icu/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libregex_icu/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libregex_icu/1.63.0/script.sh b/third_party/mason/scripts/boost_libregex_icu/1.63.0/script.sh deleted file mode 100755 index de94e5385..000000000 --- a/third_party/mason/scripts/boost_libregex_icu/1.63.0/script.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -# Note: cannot deduce from directory since it is named in a custom way -#BOOST_LIBRARY=${THIS_DIR#boost_lib} -BOOST_LIBRARY=regex -MASON_NAME=boost_lib${BOOST_LIBRARY}_icu -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -function mason_prepare_compile { - ${MASON_DIR}/mason install icu 55.1 - MASON_ICU=$(${MASON_DIR}/mason prefix icu 55.1) -} - -# custom compile that gets icu working -function mason_compile { - gen_config ${BOOST_TOOLSET} ${BOOST_TOOLSET_CXX} - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - echo 'int main() { return 0; }' > libs/regex/build/has_icu_test.cpp - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -sHAVE_ICU=1 -sICU_PATH=${MASON_ICU} --reconfigure --debug-configuration \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libsystem/1.57.0/.travis.yml b/third_party/mason/scripts/boost_libsystem/1.57.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/boost_libsystem/1.57.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libsystem/1.57.0/script.sh b/third_party/mason/scripts/boost_libsystem/1.57.0/script.sh deleted file mode 100755 index 5a1f92447..000000000 --- a/third_party/mason/scripts/boost_libsystem/1.57.0/script.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash - -BOOST_VERSION1="1.57.0" -BOOST_VERSION2="1_57_0" -BOOST_LIBRARY="system" -BOOST_TOOLSET="clang" -BOOST_ARCH="x86" - -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_VERSION=1.57.0 -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION1}/boost_${BOOST_VERSION2}.tar.bz2 \ - 397306fa6d0858c4885fbba7d43a0164dcb7f53e - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION2} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} clang++ - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_ldflags { - echo "-lboost_${BOOST_LIBRARY}" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libsystem/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libsystem/1.61.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libsystem/1.61.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libsystem/1.61.0/script.sh b/third_party/mason/scripts/boost_libsystem/1.61.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libsystem/1.61.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libsystem/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libsystem/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libsystem/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libsystem/1.62.0/script.sh b/third_party/mason/scripts/boost_libsystem/1.62.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libsystem/1.62.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libsystem/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libsystem/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libsystem/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libsystem/1.63.0/script.sh b/third_party/mason/scripts/boost_libsystem/1.63.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libsystem/1.63.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libtest/1.57.0/.travis.yml b/third_party/mason/scripts/boost_libtest/1.57.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/boost_libtest/1.57.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libtest/1.57.0/script.sh b/third_party/mason/scripts/boost_libtest/1.57.0/script.sh deleted file mode 100755 index 57104ca44..000000000 --- a/third_party/mason/scripts/boost_libtest/1.57.0/script.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash - -BOOST_VERSION1="1.57.0" -BOOST_VERSION2="1_57_0" -BOOST_LIBRARY="test" -BOOST_TOOLSET="clang" -BOOST_ARCH="x86" - -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_VERSION=1.57.0 -MASON_LIB_FILE=lib/libboost_unit_test_framework.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION1}/boost_${BOOST_VERSION2}.tar.bz2 \ - 397306fa6d0858c4885fbba7d43a0164dcb7f53e - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION2} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} clang++ - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/* ${MASON_PREFIX}/ -} - -function mason_ldflags { - echo "-lboost_${BOOST_LIBRARY}" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libtest/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libtest/1.61.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libtest/1.61.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libtest/1.61.0/script.sh b/third_party/mason/scripts/boost_libtest/1.61.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libtest/1.61.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libtest/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libtest/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libtest/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libtest/1.62.0/script.sh b/third_party/mason/scripts/boost_libtest/1.62.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libtest/1.62.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libtest/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libtest/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libtest/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libtest/1.63.0/script.sh b/third_party/mason/scripts/boost_libtest/1.63.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libtest/1.63.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libthread/1.57.0/.travis.yml b/third_party/mason/scripts/boost_libthread/1.57.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/boost_libthread/1.57.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libthread/1.57.0/script.sh b/third_party/mason/scripts/boost_libthread/1.57.0/script.sh deleted file mode 100755 index 318accde5..000000000 --- a/third_party/mason/scripts/boost_libthread/1.57.0/script.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash - -BOOST_VERSION1="1.57.0" -BOOST_VERSION2="1_57_0" -BOOST_LIBRARY="thread" -BOOST_TOOLSET="clang" -BOOST_ARCH="x86" - -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_VERSION=1.57.0 -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/boost/boost/${BOOST_VERSION1}/boost_${BOOST_VERSION2}.tar.bz2 \ - 397306fa6d0858c4885fbba7d43a0164dcb7f53e - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/boost_${BOOST_VERSION2} - - mason_extract_tar_bz2 -} - -function gen_config() { - echo "using $1 : : $(which $2)" > user-config.jam - if [[ "${AR:-false}" != false ]] || [[ "${RANLIB:-false}" != false ]]; then - echo ' : ' >> user-config.jam - if [[ "${AR:-false}" != false ]]; then - echo "${AR} " >> user-config.jam - fi - if [[ "${RANLIB:-false}" != false ]]; then - echo "${RANLIB} " >> user-config.jam - fi - fi - echo ' ;' >> user-config.jam -} - -function mason_compile { - gen_config ${BOOST_TOOLSET} clang++ - if [[ ! -f ./b2 ]] ; then - ./bootstrap.sh - fi - CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" - ./b2 \ - --with-${BOOST_LIBRARY} \ - --prefix=${MASON_PREFIX} \ - -j${MASON_CONCURRENCY} \ - -d0 \ - --ignore-site-config --user-config=user-config.jam \ - architecture="${BOOST_ARCH}" \ - toolset="${BOOST_TOOLSET}" \ - link=static \ - variant=release \ - linkflags="${LDFLAGS:-" "}" \ - cxxflags="${CXXFLAGS:-" "}" \ - stage - mkdir -p $(dirname ${MASON_PREFIX}/${MASON_LIB_FILE}) - mv stage/${MASON_LIB_FILE} ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_ldflags { - echo "-lboost_${BOOST_LIBRARY}" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libthread/1.61.0/.travis.yml b/third_party/mason/scripts/boost_libthread/1.61.0/.travis.yml deleted file mode 100644 index a2a44f11f..000000000 --- a/third_party/mason/scripts/boost_libthread/1.61.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - sudo: false - env: CXX=clang++-3.5 CC=clang-3.5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libthread/1.61.0/script.sh b/third_party/mason/scripts/boost_libthread/1.61.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libthread/1.61.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libthread/1.62.0/.travis.yml b/third_party/mason/scripts/boost_libthread/1.62.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libthread/1.62.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libthread/1.62.0/script.sh b/third_party/mason/scripts/boost_libthread/1.62.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libthread/1.62.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boost_libthread/1.63.0/.travis.yml b/third_party/mason/scripts/boost_libthread/1.63.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/boost_libthread/1.63.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boost_libthread/1.63.0/script.sh b/third_party/mason/scripts/boost_libthread/1.63.0/script.sh deleted file mode 100755 index 24b9c6418..000000000 --- a/third_party/mason/scripts/boost_libthread/1.63.0/script.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# key properties unique to this library -THIS_DIR=$(basename $(dirname $HERE)) -BOOST_LIBRARY=${THIS_DIR#boost_lib} -MASON_NAME=boost_lib${BOOST_LIBRARY} -MASON_LIB_FILE=lib/libboost_${BOOST_LIBRARY}.a -# hack for inconsistently named test lib -if [[ ${MASON_LIB_FILE} == "lib/libboost_test.a" ]]; then - MASON_LIB_FILE=lib/libboost_unit_test_framework.a -fi - -# inherit from boost base (used for all boost library packages) -BASE_PATH=${HERE}/../../boost/$(basename $HERE) -source ${BASE_PATH}/base.sh - -# setup mason env -. ${MASON_DIR}/mason.sh - -# source common build functions -source ${BASE_PATH}/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/boringssl/a6aabff2e6e95a71b2f966447eebd53e57d8bf83/.travis.yml b/third_party/mason/scripts/boringssl/a6aabff2e6e95a71b2f966447eebd53e57d8bf83/.travis.yml deleted file mode 100644 index bca00074e..000000000 --- a/third_party/mason/scripts/boringssl/a6aabff2e6e95a71b2f966447eebd53e57d8bf83/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=arm - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=x86 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/boringssl/a6aabff2e6e95a71b2f966447eebd53e57d8bf83/boringssl_asm_x86_64_fPIC.diff b/third_party/mason/scripts/boringssl/a6aabff2e6e95a71b2f966447eebd53e57d8bf83/boringssl_asm_x86_64_fPIC.diff deleted file mode 100644 index 28a60b849..000000000 --- a/third_party/mason/scripts/boringssl/a6aabff2e6e95a71b2f966447eebd53e57d8bf83/boringssl_asm_x86_64_fPIC.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- update_gypi_and_asm.py_ 2015-01-22 11:13:43.000000000 -0800 -+++ update_gypi_and_asm.py 2015-01-22 11:13:59.000000000 -0800 -@@ -15,7 +15,7 @@ - OS_ARCH_COMBOS = [ - ('linux', 'arm', 'elf', [''], 'S'), - ('linux', 'x86', 'elf', ['-fPIC'], 'S'), -- ('linux', 'x86_64', 'elf', [''], 'S'), -+ ('linux', 'x86_64', 'elf', ['-fPIC'], 'S'), - ('mac', 'x86', 'macosx', ['-fPIC'], 'S'), - ('mac', 'x86_64', 'macosx', [''], 'S'), - ('win', 'x86_64', 'masm', [''], 'asm'), diff --git a/third_party/mason/scripts/boringssl/a6aabff2e6e95a71b2f966447eebd53e57d8bf83/script.sh b/third_party/mason/scripts/boringssl/a6aabff2e6e95a71b2f966447eebd53e57d8bf83/script.sh deleted file mode 100755 index ca3f6ee8a..000000000 --- a/third_party/mason/scripts/boringssl/a6aabff2e6e95a71b2f966447eebd53e57d8bf83/script.sh +++ /dev/null @@ -1,80 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=boringssl -MASON_VERSION=a6aabff2e6e95a71b2f966447eebd53e57d8bf83 -MASON_LIB_FILE=lib/libboringssl.a - -. ${MASON_DIR}/mason.sh - -MASON_PWD=$(pwd) - -function mason_load_source { - # get gyp build scripts - URL=https://chromium.googlesource.com/experimental/chromium/src/+archive/master/third_party/boringssl.tar.gz - # we don't use `mason_download` here because the hash changes every download (google must be generating on the fly) - mkdir -p "${MASON_ROOT}/.cache" - cd "${MASON_ROOT}/.cache" - if [ ! -f ${MASON_SLUG} ] ; then - mason_step "Downloading ${URL}..." - curl --retry 3 -f -# -L "${URL}" -o ${MASON_SLUG} - fi - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/ -} - -function mason_compile { - # get code - git clone --depth 1 https://boringssl.googlesource.com/boringssl src - # get gyp - git clone --depth 1 https://chromium.googlesource.com/external/gyp.git - - # TODO - download this patch from remote to be able to work non-locally - patch ./update_gypi_and_asm.py < ${MASON_PWD}/boringssl_asm_x86_64_fPIC.diff - # regenerate gyp configs - python update_gypi_and_asm.py - - if [[ "${MASON_PLATFORM}" == "android" ]]; then - if [[ "${MASON_ANDROID_ARCH}" == "arm" ]]; then - export GYP_DEFINES="component=static_library OS=android target_arch=arm" - elif [[ "${MASON_ANDROID_ARCH}" == "x86" ]]; then - export GYP_DEFINES="component=static_library OS=android target_arch=ia32" - else - # Note: mips will be arch "mipsel" - export GYP_DEFINES="component=static_library OS=android target_arch=${MASON_ANDROID_ARCH}" - fi - else - export GYP_DEFINES="component=static_library target_arch=`uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm.*/arm/;s/i86pc/ia32/"`" - fi - - # generate makefiles - echo "{ 'target_defaults': { 'standalone_static_library': 1 } }" > config.gypi - ./gyp/gyp boringssl.gyp --depth=. -Iconfig.gypi --generator-output=./build --format=make -Dcomponent=static_library -Dtarget_arch=x64 - - # compile - make -j${MASON_CONCURRENCY} -C build V=1 - - # install - mkdir -p ${MASON_PREFIX}/lib - if [[ "${MASON_PLATFORM}" == "osx" ]]; then - cp build/out/Default/libboringssl.a ${MASON_PREFIX}/lib/libboringssl.a - else - cp build/out/Default/obj.target/libboringssl.a ${MASON_PREFIX}/lib/libboringssl.a - fi - (cd ${MASON_PREFIX}/lib/ && ln -s libboringssl.a libssl.a && ln -s libboringssl.a libcrypto.a) - cp -r src/include ${MASON_PREFIX}/include -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo -L${MASON_PREFIX}/lib -lboringssl -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/bzip2/1.0.6/.travis.yml b/third_party/mason/scripts/bzip2/1.0.6/.travis.yml deleted file mode 100644 index 597bb78d9..000000000 --- a/third_party/mason/scripts/bzip2/1.0.6/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: generic - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - diff --git a/third_party/mason/scripts/bzip2/1.0.6/script.sh b/third_party/mason/scripts/bzip2/1.0.6/script.sh deleted file mode 100755 index 68e64e619..000000000 --- a/third_party/mason/scripts/bzip2/1.0.6/script.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=bzip2 -MASON_VERSION=1.0.6 -MASON_LIB_FILE=lib/libbz2.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz \ - e47e9034c4116f467618cfaaa4d3aca004094007 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function read_link() { - case "$(uname -s)" in - 'Linux') readlink -f $1;; - 'Darwin') readlink $1;; - *) echo 1;; - esac -} - -function mason_compile { - make install PREFIX=${MASON_PREFIX} CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" - # symlinks are not portable, so now we recurse into /bin directory - # and fix them to be portable by being relative - cd ${MASON_PREFIX}/bin - for i in $(ls *); do - if [[ -L $i ]]; then - ln -sf $(basename $(read_link $i)) $i - fi - done - # TODO: android may need ranlib manual call -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -lbz2" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/cairo/1.12.18/.travis.yml b/third_party/mason/scripts/cairo/1.12.18/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/cairo/1.12.18/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/cairo/1.12.18/patch.diff b/third_party/mason/scripts/cairo/1.12.18/patch.diff deleted file mode 100644 index 507131cf4..000000000 --- a/third_party/mason/scripts/cairo/1.12.18/patch.diff +++ /dev/null @@ -1,123 +0,0 @@ -diff --git a/build/configure.ac.tools b/build/configure.ac.tools -index a24dbce..aaf0e5d 100644 ---- a/build/configure.ac.tools -+++ b/build/configure.ac.tools -@@ -10,16 +10,3 @@ AC_C_INLINE - - dnl =========================================================================== - --PKG_PROG_PKG_CONFIG() --if test "x$PKG_CONFIG" = x; then -- AC_MSG_ERROR([pkg-config >= $PKGCONFIG_REQUIRED required but not found (http://pkgconfig.freedesktop.org/)]) --fi -- --dnl Check for recent pkg-config which supports Requires.private --case `$PKG_CONFIG --version` in --[0.?|0.?.?|0.1[0-7]|0.1[0-7].?]) PKGCONFIG_REQUIRES="Requires"; ;; --*) PKGCONFIG_REQUIRES="Requires.private"; ;; --esac -- --AC_SUBST(PKGCONFIG_REQUIRES) -- -diff --git a/configure.ac b/configure.ac -index a04baae..a162a6a 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -321,26 +321,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(gallium, Gallium3D, no, [ - dnl =========================================================================== - - CAIRO_ENABLE_FUNCTIONS(png, PNG, yes, [ -- use_png=no -- AC_ARG_VAR([png_REQUIRES], [module name for libpng to search for using pkg-config]) -- if test "x$png_REQUIRES" = x; then -- # libpng13 is GnuWin32's libpng-1.2.8 :-( -- for l in libpng libpng14 libpng12 libpng13 libpng10; do -- if $PKG_CONFIG --exists $l ; then -- png_REQUIRES=$l -- use_png=yes -- break -- fi -- done -- else -- use_png=yes -- fi -- -- if test "x$use_png" = "xyes" ; then -- PKG_CHECK_MODULES(png, $png_REQUIRES, , : ) -- else -- AC_MSG_WARN([Could not find libpng in the pkg-config search path]) -- fi -+ use_png=yes - ]) - - dnl =========================================================================== -@@ -491,35 +472,7 @@ FREETYPE_MIN_RELEASE=2.1.9 - FREETYPE_MIN_VERSION=9.7.3 - - CAIRO_ENABLE_FONT_BACKEND(ft, FreeType, auto, [ -- -- PKG_CHECK_MODULES(FREETYPE, freetype2 >= $FREETYPE_MIN_VERSION, -- [freetype_pkgconfig=yes], -- [freetype_pkgconfig=no]) -- -- if test "x$freetype_pkgconfig" = "xyes"; then -- ft_REQUIRES="freetype2 >= $FREETYPE_MIN_VERSION $ft_REQUIRES" -- else -- -- if test -z "$FREETYPE_CONFIG"; then -- AC_PATH_PROG(FREETYPE_CONFIG, freetype-config, no) -- fi -- if test "x$FREETYPE_CONFIG" = "xno" ; then -- use_ft='no (freetype-config not found in path or $FREETYPE_CONFIG)' -- else -- AC_MSG_CHECKING(freetype2 libtool version) -- -- FREETYPE_VERSION=`$FREETYPE_CONFIG --version` -- AX_COMPARE_VERSION([$FREETYPE_VERSION], [gt], [$FREETYPE_MIN_VERSION], -- [AC_MSG_RESULT($FREETYPE_VERSION - OK) -- ft_NONPKGCONFIG_CFLAGS=`$FREETYPE_CONFIG --cflags` -- ft_NONPKGCONFIG_LIBS=`$FREETYPE_CONFIG --libs`], -- [AC_MSG_RESULT($FREETYPE_VERSION - Too old) -- use_ft="no ($FREETYPE_VERSION found; version $FREETYPE_MIN_VERSION from release $FREETYPE_MIN_RELEASE required)"]) -- fi -- fi -- -- ft_CFLAGS="$FREETYPE_CFLAGS" -- ft_LIBS="$FREETYPE_LIBS" -+ use_ft="yes" - ]) - - FONTCONFIG_MIN_VERSION=2.2.95 -@@ -658,19 +611,12 @@ CAIRO_ENABLE(test_surfaces, test surfaces, no) - dnl =========================================================================== - - CAIRO_ENABLE_SURFACE_BACKEND(image, image, always, [ -- pixman_REQUIRES="pixman-1 >= 0.16.0" -- PKG_CHECK_MODULES(pixman, $pixman_REQUIRES, , -- [use_image="no (requires $pixman_REQUIRES http://cairographics.org/releases/)"]) -+ use_image=yes - image_REQUIRES=$pixman_REQUIRES - image_CFLAGS=$pixman_CFLAGS - image_LIBS=$pixman_LIBS - ]) - --if pkg-config --exists 'pixman-1 >= 0.27.1'; then -- AC_DEFINE([HAS_PIXMAN_GLYPHS], 1, [Enable pixman glyph cache]) --fi -- -- - dnl =========================================================================== - - CAIRO_ENABLE_SURFACE_BACKEND(mime, mime, always) -diff --git a/test/Makefile.am b/test/Makefile.am -index a9495dc..7bef9d5 100644 ---- a/test/Makefile.am -+++ b/test/Makefile.am -@@ -71,7 +71,6 @@ endif - endif - test_sources += $(test) - --noinst_PROGRAMS = cairo-test-suite$(EXEEXT) # always build - noinst_SCRIPTS = check-refs.sh - - TESTS += cairo-test-suite$(EXEEXT) diff --git a/third_party/mason/scripts/cairo/1.12.18/script.sh b/third_party/mason/scripts/cairo/1.12.18/script.sh deleted file mode 100755 index ce72f27f8..000000000 --- a/third_party/mason/scripts/cairo/1.12.18/script.sh +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=cairo -MASON_VERSION=1.12.18 -MASON_LIB_FILE=lib/libcairo.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://cairographics.org/releases/${MASON_NAME}-${MASON_VERSION}.tar.xz \ - 34e29ec00864859cc26ac3e45a02d7b2cb65d1c8 - - mason_extract_tar_xz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install libpng 1.6.16 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.16) - ${MASON_DIR}/mason install freetype 2.5.5 - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype 2.5.5) - ${MASON_DIR}/mason install pixman 0.32.6 - MASON_PIXMAN=$(${MASON_DIR}/mason prefix pixman 0.32.6) - # set up to fix libtool .la files - # https://github.com/mapbox/mason/issues/61 - if [[ $(uname -s) == 'Darwin' ]]; then - FIND="\/Users\/travis\/build\/mapbox\/mason" - else - FIND="\/home\/travis\/build\/mapbox\/mason" - fi - REPLACE="$(pwd)" - REPLACE=${REPLACE////\\/} - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PNG}/lib/libpng.la - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_FREETYPE}/lib/libfreetype.la - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PIXMAN}/lib/libpixman-1.la -} - -function mason_compile { - # patch cairo to avoid needing pkg-config as a build dep - if [[ -f ../../../patch.diff ]]; then - patch -N -p1 < ../../../patch.diff - else - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p1 < ./patch.diff - fi - - CFLAGS="${CFLAGS} -Wno-enum-conversion -I${MASON_PIXMAN}/include/pixman-1 -I${MASON_FREETYPE}/include/freetype2 -I${MASON_PNG}/include/" - LDFLAGS="-L${MASON_PIXMAN}/lib -lpixman-1 -L${MASON_FREETYPE}/lib -lfreetype -L${MASON_PNG}/lib -lpng" - CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} ./autogen.sh \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --enable-pdf=yes \ - --enable-ft=yes \ - --enable-png=yes \ - --enable-svg=yes \ - --enable-ps=yes \ - --enable-fc=no \ - --enable-script=no \ - --enable-interpreter=no \ - --enable-quartz=no \ - --enable-quartz-image=no \ - --enable-quartz-font=no \ - --enable-trace=no \ - --enable-gtk-doc=no \ - --enable-qt=no \ - --enable-win32=no \ - --enable-win32-font=no \ - --enable-skia=no \ - --enable-os2=no \ - --enable-beos=no \ - --enable-drm=no \ - --enable-gallium=no \ - --enable-gl=no \ - --enable-glesv2=no \ - --enable-directfb=no \ - --enable-vg=no \ - --enable-egl=no \ - --enable-glx=no \ - --enable-wgl=no \ - --enable-test-surfaces=no \ - --enable-tee=no \ - --enable-xml=no \ - --disable-valgrind \ - --enable-gobject=no \ - --enable-xlib=no \ - --enable-xlib-xrender=no \ - --enable-xcb=no \ - --enable-xlib-xcb=no \ - --enable-xcb-shm=no \ - --enable-full-testing=no \ - --enable-symbol-lookup=no \ - --disable-dependency-tracking - # The -i and -k flags are to workaround make[6]: [install-data-local] Error 1 (ignored) - make V=1 -j${MASON_CONCURRENCY} -i -k - make install -i -k -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/cairo/1.14.0/.travis.yml b/third_party/mason/scripts/cairo/1.14.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/cairo/1.14.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/cairo/1.14.0/patch.diff b/third_party/mason/scripts/cairo/1.14.0/patch.diff deleted file mode 100644 index a0f21614f..000000000 --- a/third_party/mason/scripts/cairo/1.14.0/patch.diff +++ /dev/null @@ -1,96 +0,0 @@ -diff --git a/build/configure.ac.tools b/build/configure.ac.tools -index a24dbce..aaf0e5d 100644 ---- a/build/configure.ac.tools -+++ b/build/configure.ac.tools -@@ -10,16 +10,3 @@ AC_C_INLINE - - dnl =========================================================================== - --PKG_PROG_PKG_CONFIG() --if test "x$PKG_CONFIG" = x; then -- AC_MSG_ERROR([pkg-config >= $PKGCONFIG_REQUIRED required but not found (http://pkgconfig.freedesktop.org/)]) --fi -- --dnl Check for recent pkg-config which supports Requires.private --case `$PKG_CONFIG --version` in --[0.?|0.?.?|0.1[0-7]|0.1[0-7].?]) PKGCONFIG_REQUIRES="Requires"; ;; --*) PKGCONFIG_REQUIRES="Requires.private"; ;; --esac -- --AC_SUBST(PKGCONFIG_REQUIRES) -- -diff --git a/configure.ac b/configure.ac -index 2ce1959..87c71ac 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -321,26 +321,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(gallium, Gallium3D, no, [ - dnl =========================================================================== - - CAIRO_ENABLE_FUNCTIONS(png, PNG, yes, [ -- use_png=no -- AC_ARG_VAR([png_REQUIRES], [module name for libpng to search for using pkg-config]) -- if test "x$png_REQUIRES" = x; then -- # libpng13 is GnuWin32's libpng-1.2.8 :-( -- for l in libpng libpng14 libpng12 libpng13 libpng10; do -- if $PKG_CONFIG --exists $l ; then -- png_REQUIRES=$l -- use_png=yes -- break -- fi -- done -- else -- use_png=yes -- fi -- -- if test "x$use_png" = "xyes" ; then -- PKG_CHECK_MODULES(png, $png_REQUIRES, , : ) -- else -- AC_MSG_WARN([Could not find libpng in the pkg-config search path]) -- fi -+ use_png=yes - ]) - - dnl =========================================================================== -@@ -495,10 +476,6 @@ FREETYPE_MIN_RELEASE=2.1.9 - FREETYPE_MIN_VERSION=9.7.3 - - CAIRO_ENABLE_FONT_BACKEND(ft, FreeType, auto, [ -- -- PKG_CHECK_MODULES(FREETYPE, freetype2 >= $FREETYPE_MIN_VERSION, -- [freetype_pkgconfig=yes], -- [freetype_pkgconfig=no]) - - if test "x$freetype_pkgconfig" = "xyes"; then - ft_REQUIRES="freetype2 >= $FREETYPE_MIN_VERSION $ft_REQUIRES" -@@ -662,18 +639,12 @@ CAIRO_ENABLE(test_surfaces, test surfaces, no) - dnl =========================================================================== - - CAIRO_ENABLE_SURFACE_BACKEND(image, image, always, [ -- pixman_REQUIRES="pixman-1 >= 0.30.0" -- PKG_CHECK_MODULES(pixman, $pixman_REQUIRES, , -- [use_image="no (requires $pixman_REQUIRES http://cairographics.org/releases/)"]) -+ use_image=yes - image_REQUIRES=$pixman_REQUIRES - image_CFLAGS=$pixman_CFLAGS - image_LIBS=$pixman_LIBS - ]) - --if pkg-config --exists 'pixman-1 >= 0.27.1'; then -- AC_DEFINE([HAS_PIXMAN_GLYPHS], 1, [Enable pixman glyph cache]) --fi -- - - dnl =========================================================================== - -diff --git a/test/Makefile.am b/test/Makefile.am -index 950629b..f733dd9 100644 ---- a/test/Makefile.am -+++ b/test/Makefile.am -@@ -75,7 +75,6 @@ endif - endif - test_sources += $(test) - --noinst_PROGRAMS = cairo-test-suite$(EXEEXT) # always build - noinst_SCRIPTS = check-refs.sh - - TESTS += cairo-test-suite$(EXEEXT) diff --git a/third_party/mason/scripts/cairo/1.14.0/script.sh b/third_party/mason/scripts/cairo/1.14.0/script.sh deleted file mode 100755 index 2577c6ffc..000000000 --- a/third_party/mason/scripts/cairo/1.14.0/script.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=cairo -MASON_VERSION=1.14.0 -MASON_LIB_FILE=lib/libcairo.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://cairographics.org/releases/${MASON_NAME}-${MASON_VERSION}.tar.xz \ - 69b3923f8f113206f6c0e2972de4469d04b04592 - - mason_extract_tar_xz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install libpng 1.6.16 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.16) - ${MASON_DIR}/mason install freetype 2.5.4 - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype 2.5.4) - ${MASON_DIR}/mason install pixman 0.32.6 - MASON_PIXMAN=$(${MASON_DIR}/mason prefix pixman 0.32.6) -} - -function mason_compile { - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - # patch cairo to avoid needing pkg-config as a build dep - patch -N -p1 < ../../../patch.diff - CFLAGS="${CFLAGS} -Wno-enum-conversion -I${MASON_PIXMAN}/include/pixman-1 -I${MASON_FREETYPE}/include/freetype2 -I${MASON_PNG}/include/" - LDFLAGS="-L${MASON_PIXMAN}/lib -lpixman-1 -L${MASON_FREETYPE}/lib -lfreetype -L${MASON_PNG}/lib -lpng" - CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} ./autogen.sh \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --enable-pdf=yes \ - --enable-ft=yes \ - --enable-png=yes \ - --enable-svg=yes \ - --enable-ps=yes \ - --enable-fc=no \ - --enable-script=no \ - --enable-interpreter=no \ - --enable-quartz=no \ - --enable-quartz-image=no \ - --enable-quartz-font=no \ - --enable-trace=no \ - --enable-gtk-doc=no \ - --enable-qt=no \ - --enable-win32=no \ - --enable-win32-font=no \ - --enable-skia=no \ - --enable-os2=no \ - --enable-beos=no \ - --enable-drm=no \ - --enable-gallium=no \ - --enable-gl=no \ - --enable-glesv2=no \ - --enable-directfb=no \ - --enable-vg=no \ - --enable-egl=no \ - --enable-glx=no \ - --enable-wgl=no \ - --enable-test-surfaces=no \ - --enable-tee=no \ - --enable-xml=no \ - --disable-valgrind \ - --enable-gobject=no \ - --enable-xlib=no \ - --enable-xlib-xrender=no \ - --enable-xcb=no \ - --enable-xlib-xcb=no \ - --enable-xcb-shm=no \ - --enable-full-testing=no \ - --enable-symbol-lookup=no \ - --disable-dependency-tracking - # The -i and -k flags are to workaround make[6]: [install-data-local] Error 1 (ignored) - make V=1 -j${MASON_CONCURRENCY} -i -k - make install -i -k -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/cairo/1.14.2/.travis.yml b/third_party/mason/scripts/cairo/1.14.2/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/cairo/1.14.2/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/cairo/1.14.2/patch.diff b/third_party/mason/scripts/cairo/1.14.2/patch.diff deleted file mode 100644 index a0f21614f..000000000 --- a/third_party/mason/scripts/cairo/1.14.2/patch.diff +++ /dev/null @@ -1,96 +0,0 @@ -diff --git a/build/configure.ac.tools b/build/configure.ac.tools -index a24dbce..aaf0e5d 100644 ---- a/build/configure.ac.tools -+++ b/build/configure.ac.tools -@@ -10,16 +10,3 @@ AC_C_INLINE - - dnl =========================================================================== - --PKG_PROG_PKG_CONFIG() --if test "x$PKG_CONFIG" = x; then -- AC_MSG_ERROR([pkg-config >= $PKGCONFIG_REQUIRED required but not found (http://pkgconfig.freedesktop.org/)]) --fi -- --dnl Check for recent pkg-config which supports Requires.private --case `$PKG_CONFIG --version` in --[0.?|0.?.?|0.1[0-7]|0.1[0-7].?]) PKGCONFIG_REQUIRES="Requires"; ;; --*) PKGCONFIG_REQUIRES="Requires.private"; ;; --esac -- --AC_SUBST(PKGCONFIG_REQUIRES) -- -diff --git a/configure.ac b/configure.ac -index 2ce1959..87c71ac 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -321,26 +321,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(gallium, Gallium3D, no, [ - dnl =========================================================================== - - CAIRO_ENABLE_FUNCTIONS(png, PNG, yes, [ -- use_png=no -- AC_ARG_VAR([png_REQUIRES], [module name for libpng to search for using pkg-config]) -- if test "x$png_REQUIRES" = x; then -- # libpng13 is GnuWin32's libpng-1.2.8 :-( -- for l in libpng libpng14 libpng12 libpng13 libpng10; do -- if $PKG_CONFIG --exists $l ; then -- png_REQUIRES=$l -- use_png=yes -- break -- fi -- done -- else -- use_png=yes -- fi -- -- if test "x$use_png" = "xyes" ; then -- PKG_CHECK_MODULES(png, $png_REQUIRES, , : ) -- else -- AC_MSG_WARN([Could not find libpng in the pkg-config search path]) -- fi -+ use_png=yes - ]) - - dnl =========================================================================== -@@ -495,10 +476,6 @@ FREETYPE_MIN_RELEASE=2.1.9 - FREETYPE_MIN_VERSION=9.7.3 - - CAIRO_ENABLE_FONT_BACKEND(ft, FreeType, auto, [ -- -- PKG_CHECK_MODULES(FREETYPE, freetype2 >= $FREETYPE_MIN_VERSION, -- [freetype_pkgconfig=yes], -- [freetype_pkgconfig=no]) - - if test "x$freetype_pkgconfig" = "xyes"; then - ft_REQUIRES="freetype2 >= $FREETYPE_MIN_VERSION $ft_REQUIRES" -@@ -662,18 +639,12 @@ CAIRO_ENABLE(test_surfaces, test surfaces, no) - dnl =========================================================================== - - CAIRO_ENABLE_SURFACE_BACKEND(image, image, always, [ -- pixman_REQUIRES="pixman-1 >= 0.30.0" -- PKG_CHECK_MODULES(pixman, $pixman_REQUIRES, , -- [use_image="no (requires $pixman_REQUIRES http://cairographics.org/releases/)"]) -+ use_image=yes - image_REQUIRES=$pixman_REQUIRES - image_CFLAGS=$pixman_CFLAGS - image_LIBS=$pixman_LIBS - ]) - --if pkg-config --exists 'pixman-1 >= 0.27.1'; then -- AC_DEFINE([HAS_PIXMAN_GLYPHS], 1, [Enable pixman glyph cache]) --fi -- - - dnl =========================================================================== - -diff --git a/test/Makefile.am b/test/Makefile.am -index 950629b..f733dd9 100644 ---- a/test/Makefile.am -+++ b/test/Makefile.am -@@ -75,7 +75,6 @@ endif - endif - test_sources += $(test) - --noinst_PROGRAMS = cairo-test-suite$(EXEEXT) # always build - noinst_SCRIPTS = check-refs.sh - - TESTS += cairo-test-suite$(EXEEXT) diff --git a/third_party/mason/scripts/cairo/1.14.2/script.sh b/third_party/mason/scripts/cairo/1.14.2/script.sh deleted file mode 100755 index 74353db56..000000000 --- a/third_party/mason/scripts/cairo/1.14.2/script.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=cairo -MASON_VERSION=1.14.2 -MASON_LIB_FILE=lib/libcairo.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://cairographics.org/releases/${MASON_NAME}-${MASON_VERSION}.tar.xz \ - 3202106739cb0cb044c910a9b67769c95d0b6bce - - mason_extract_tar_xz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install libpng 1.6.17 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.17) - ${MASON_DIR}/mason install freetype 2.6 - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype 2.6) - ${MASON_DIR}/mason install pixman 0.32.6 - MASON_PIXMAN=$(${MASON_DIR}/mason prefix pixman 0.32.6) -} - -function mason_compile { - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - # patch cairo to avoid needing pkg-config as a build dep - patch -N -p1 < ./patch.diff - CFLAGS="${CFLAGS} -Wno-enum-conversion -I${MASON_PIXMAN}/include/pixman-1 -I${MASON_FREETYPE}/include/freetype2 -I${MASON_PNG}/include/" - LDFLAGS="-L${MASON_PIXMAN}/lib -lpixman-1 -L${MASON_FREETYPE}/lib -lfreetype -L${MASON_PNG}/lib -lpng" - CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} ./autogen.sh \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --enable-pdf=yes \ - --enable-ft=yes \ - --enable-png=yes \ - --enable-svg=yes \ - --enable-ps=yes \ - --enable-fc=no \ - --enable-script=no \ - --enable-interpreter=no \ - --enable-quartz=no \ - --enable-quartz-image=no \ - --enable-quartz-font=no \ - --enable-trace=no \ - --enable-gtk-doc=no \ - --enable-qt=no \ - --enable-win32=no \ - --enable-win32-font=no \ - --enable-skia=no \ - --enable-os2=no \ - --enable-beos=no \ - --enable-drm=no \ - --enable-gallium=no \ - --enable-gl=no \ - --enable-glesv2=no \ - --enable-directfb=no \ - --enable-vg=no \ - --enable-egl=no \ - --enable-glx=no \ - --enable-wgl=no \ - --enable-test-surfaces=no \ - --enable-tee=no \ - --enable-xml=no \ - --disable-valgrind \ - --enable-gobject=no \ - --enable-xlib=no \ - --enable-xlib-xrender=no \ - --enable-xcb=no \ - --enable-xlib-xcb=no \ - --enable-xcb-shm=no \ - --enable-full-testing=no \ - --enable-symbol-lookup=no \ - --disable-dependency-tracking - # The -i and -k flags are to workaround make[6]: [install-data-local] Error 1 (ignored) - make V=1 -j${MASON_CONCURRENCY} -i -k - make install -i -k -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/cairo/1.14.4/.travis.yml b/third_party/mason/scripts/cairo/1.14.4/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/cairo/1.14.4/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/cairo/1.14.4/patch.diff b/third_party/mason/scripts/cairo/1.14.4/patch.diff deleted file mode 100644 index a0f21614f..000000000 --- a/third_party/mason/scripts/cairo/1.14.4/patch.diff +++ /dev/null @@ -1,96 +0,0 @@ -diff --git a/build/configure.ac.tools b/build/configure.ac.tools -index a24dbce..aaf0e5d 100644 ---- a/build/configure.ac.tools -+++ b/build/configure.ac.tools -@@ -10,16 +10,3 @@ AC_C_INLINE - - dnl =========================================================================== - --PKG_PROG_PKG_CONFIG() --if test "x$PKG_CONFIG" = x; then -- AC_MSG_ERROR([pkg-config >= $PKGCONFIG_REQUIRED required but not found (http://pkgconfig.freedesktop.org/)]) --fi -- --dnl Check for recent pkg-config which supports Requires.private --case `$PKG_CONFIG --version` in --[0.?|0.?.?|0.1[0-7]|0.1[0-7].?]) PKGCONFIG_REQUIRES="Requires"; ;; --*) PKGCONFIG_REQUIRES="Requires.private"; ;; --esac -- --AC_SUBST(PKGCONFIG_REQUIRES) -- -diff --git a/configure.ac b/configure.ac -index 2ce1959..87c71ac 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -321,26 +321,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(gallium, Gallium3D, no, [ - dnl =========================================================================== - - CAIRO_ENABLE_FUNCTIONS(png, PNG, yes, [ -- use_png=no -- AC_ARG_VAR([png_REQUIRES], [module name for libpng to search for using pkg-config]) -- if test "x$png_REQUIRES" = x; then -- # libpng13 is GnuWin32's libpng-1.2.8 :-( -- for l in libpng libpng14 libpng12 libpng13 libpng10; do -- if $PKG_CONFIG --exists $l ; then -- png_REQUIRES=$l -- use_png=yes -- break -- fi -- done -- else -- use_png=yes -- fi -- -- if test "x$use_png" = "xyes" ; then -- PKG_CHECK_MODULES(png, $png_REQUIRES, , : ) -- else -- AC_MSG_WARN([Could not find libpng in the pkg-config search path]) -- fi -+ use_png=yes - ]) - - dnl =========================================================================== -@@ -495,10 +476,6 @@ FREETYPE_MIN_RELEASE=2.1.9 - FREETYPE_MIN_VERSION=9.7.3 - - CAIRO_ENABLE_FONT_BACKEND(ft, FreeType, auto, [ -- -- PKG_CHECK_MODULES(FREETYPE, freetype2 >= $FREETYPE_MIN_VERSION, -- [freetype_pkgconfig=yes], -- [freetype_pkgconfig=no]) - - if test "x$freetype_pkgconfig" = "xyes"; then - ft_REQUIRES="freetype2 >= $FREETYPE_MIN_VERSION $ft_REQUIRES" -@@ -662,18 +639,12 @@ CAIRO_ENABLE(test_surfaces, test surfaces, no) - dnl =========================================================================== - - CAIRO_ENABLE_SURFACE_BACKEND(image, image, always, [ -- pixman_REQUIRES="pixman-1 >= 0.30.0" -- PKG_CHECK_MODULES(pixman, $pixman_REQUIRES, , -- [use_image="no (requires $pixman_REQUIRES http://cairographics.org/releases/)"]) -+ use_image=yes - image_REQUIRES=$pixman_REQUIRES - image_CFLAGS=$pixman_CFLAGS - image_LIBS=$pixman_LIBS - ]) - --if pkg-config --exists 'pixman-1 >= 0.27.1'; then -- AC_DEFINE([HAS_PIXMAN_GLYPHS], 1, [Enable pixman glyph cache]) --fi -- - - dnl =========================================================================== - -diff --git a/test/Makefile.am b/test/Makefile.am -index 950629b..f733dd9 100644 ---- a/test/Makefile.am -+++ b/test/Makefile.am -@@ -75,7 +75,6 @@ endif - endif - test_sources += $(test) - --noinst_PROGRAMS = cairo-test-suite$(EXEEXT) # always build - noinst_SCRIPTS = check-refs.sh - - TESTS += cairo-test-suite$(EXEEXT) diff --git a/third_party/mason/scripts/cairo/1.14.4/script.sh b/third_party/mason/scripts/cairo/1.14.4/script.sh deleted file mode 100755 index 9ddd90914..000000000 --- a/third_party/mason/scripts/cairo/1.14.4/script.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=cairo -MASON_VERSION=1.14.4 -MASON_LIB_FILE=lib/libcairo.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://cairographics.org/releases/${MASON_NAME}-${MASON_VERSION}.tar.xz \ - ecf18db1e89d99799783757d9026a74012dfafcb - - mason_extract_tar_xz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install libpng 1.6.17 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.17) - ${MASON_DIR}/mason install freetype 2.6 - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype 2.6) - ${MASON_DIR}/mason install pixman 0.32.6 - MASON_PIXMAN=$(${MASON_DIR}/mason prefix pixman 0.32.6) -} - -function mason_compile { - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - # patch cairo to avoid needing pkg-config as a build dep - patch -N -p1 < ./patch.diff - CFLAGS="${CFLAGS} -Wno-enum-conversion -I${MASON_PIXMAN}/include/pixman-1 -I${MASON_FREETYPE}/include/freetype2 -I${MASON_PNG}/include/" - LDFLAGS="-L${MASON_PIXMAN}/lib -lpixman-1 -L${MASON_FREETYPE}/lib -lfreetype -L${MASON_PNG}/lib -lpng" - CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} ./autogen.sh \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --enable-pdf=yes \ - --enable-ft=yes \ - --enable-png=yes \ - --enable-svg=yes \ - --enable-ps=yes \ - --enable-fc=no \ - --enable-script=no \ - --enable-interpreter=no \ - --enable-quartz=no \ - --enable-quartz-image=no \ - --enable-quartz-font=no \ - --enable-trace=no \ - --enable-gtk-doc=no \ - --enable-qt=no \ - --enable-win32=no \ - --enable-win32-font=no \ - --enable-skia=no \ - --enable-os2=no \ - --enable-beos=no \ - --enable-drm=no \ - --enable-gallium=no \ - --enable-gl=no \ - --enable-glesv2=no \ - --enable-directfb=no \ - --enable-vg=no \ - --enable-egl=no \ - --enable-glx=no \ - --enable-wgl=no \ - --enable-test-surfaces=no \ - --enable-tee=no \ - --enable-xml=no \ - --disable-valgrind \ - --enable-gobject=no \ - --enable-xlib=no \ - --enable-xlib-xrender=no \ - --enable-xcb=no \ - --enable-xlib-xcb=no \ - --enable-xcb-shm=no \ - --enable-full-testing=no \ - --enable-symbol-lookup=no \ - --disable-dependency-tracking - # The -i and -k flags are to workaround make[6]: [install-data-local] Error 1 (ignored) - make V=1 -j${MASON_CONCURRENCY} -i -k - make install -i -k -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/cairo/1.14.6/.travis.yml b/third_party/mason/scripts/cairo/1.14.6/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/cairo/1.14.6/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/cairo/1.14.6/patch.diff b/third_party/mason/scripts/cairo/1.14.6/patch.diff deleted file mode 100644 index a0f21614f..000000000 --- a/third_party/mason/scripts/cairo/1.14.6/patch.diff +++ /dev/null @@ -1,96 +0,0 @@ -diff --git a/build/configure.ac.tools b/build/configure.ac.tools -index a24dbce..aaf0e5d 100644 ---- a/build/configure.ac.tools -+++ b/build/configure.ac.tools -@@ -10,16 +10,3 @@ AC_C_INLINE - - dnl =========================================================================== - --PKG_PROG_PKG_CONFIG() --if test "x$PKG_CONFIG" = x; then -- AC_MSG_ERROR([pkg-config >= $PKGCONFIG_REQUIRED required but not found (http://pkgconfig.freedesktop.org/)]) --fi -- --dnl Check for recent pkg-config which supports Requires.private --case `$PKG_CONFIG --version` in --[0.?|0.?.?|0.1[0-7]|0.1[0-7].?]) PKGCONFIG_REQUIRES="Requires"; ;; --*) PKGCONFIG_REQUIRES="Requires.private"; ;; --esac -- --AC_SUBST(PKGCONFIG_REQUIRES) -- -diff --git a/configure.ac b/configure.ac -index 2ce1959..87c71ac 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -321,26 +321,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(gallium, Gallium3D, no, [ - dnl =========================================================================== - - CAIRO_ENABLE_FUNCTIONS(png, PNG, yes, [ -- use_png=no -- AC_ARG_VAR([png_REQUIRES], [module name for libpng to search for using pkg-config]) -- if test "x$png_REQUIRES" = x; then -- # libpng13 is GnuWin32's libpng-1.2.8 :-( -- for l in libpng libpng14 libpng12 libpng13 libpng10; do -- if $PKG_CONFIG --exists $l ; then -- png_REQUIRES=$l -- use_png=yes -- break -- fi -- done -- else -- use_png=yes -- fi -- -- if test "x$use_png" = "xyes" ; then -- PKG_CHECK_MODULES(png, $png_REQUIRES, , : ) -- else -- AC_MSG_WARN([Could not find libpng in the pkg-config search path]) -- fi -+ use_png=yes - ]) - - dnl =========================================================================== -@@ -495,10 +476,6 @@ FREETYPE_MIN_RELEASE=2.1.9 - FREETYPE_MIN_VERSION=9.7.3 - - CAIRO_ENABLE_FONT_BACKEND(ft, FreeType, auto, [ -- -- PKG_CHECK_MODULES(FREETYPE, freetype2 >= $FREETYPE_MIN_VERSION, -- [freetype_pkgconfig=yes], -- [freetype_pkgconfig=no]) - - if test "x$freetype_pkgconfig" = "xyes"; then - ft_REQUIRES="freetype2 >= $FREETYPE_MIN_VERSION $ft_REQUIRES" -@@ -662,18 +639,12 @@ CAIRO_ENABLE(test_surfaces, test surfaces, no) - dnl =========================================================================== - - CAIRO_ENABLE_SURFACE_BACKEND(image, image, always, [ -- pixman_REQUIRES="pixman-1 >= 0.30.0" -- PKG_CHECK_MODULES(pixman, $pixman_REQUIRES, , -- [use_image="no (requires $pixman_REQUIRES http://cairographics.org/releases/)"]) -+ use_image=yes - image_REQUIRES=$pixman_REQUIRES - image_CFLAGS=$pixman_CFLAGS - image_LIBS=$pixman_LIBS - ]) - --if pkg-config --exists 'pixman-1 >= 0.27.1'; then -- AC_DEFINE([HAS_PIXMAN_GLYPHS], 1, [Enable pixman glyph cache]) --fi -- - - dnl =========================================================================== - -diff --git a/test/Makefile.am b/test/Makefile.am -index 950629b..f733dd9 100644 ---- a/test/Makefile.am -+++ b/test/Makefile.am -@@ -75,7 +75,6 @@ endif - endif - test_sources += $(test) - --noinst_PROGRAMS = cairo-test-suite$(EXEEXT) # always build - noinst_SCRIPTS = check-refs.sh - - TESTS += cairo-test-suite$(EXEEXT) diff --git a/third_party/mason/scripts/cairo/1.14.6/script.sh b/third_party/mason/scripts/cairo/1.14.6/script.sh deleted file mode 100755 index 3c5a69456..000000000 --- a/third_party/mason/scripts/cairo/1.14.6/script.sh +++ /dev/null @@ -1,88 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=cairo -MASON_VERSION=1.14.6 -MASON_LIB_FILE=lib/libcairo.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://cairographics.org/releases/${MASON_NAME}-${MASON_VERSION}.tar.xz \ - b19d7d7b4e290eb6377ddc3688984cb66da036cb - - mason_extract_tar_xz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install libpng 1.6.24 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.24) - ${MASON_DIR}/mason install freetype 2.6.5 - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype 2.6.5) - ${MASON_DIR}/mason install pixman 0.34.0 - MASON_PIXMAN=$(${MASON_DIR}/mason prefix pixman 0.34.0) -} - -function mason_compile { - mason_step "Loading patch" - patch -N -p1 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - CFLAGS="${CFLAGS} -Wno-enum-conversion -I${MASON_PIXMAN}/include/pixman-1 -I${MASON_FREETYPE}/include/freetype2 -I${MASON_PNG}/include/" - LDFLAGS="-L${MASON_PIXMAN}/lib -lpixman-1 -L${MASON_FREETYPE}/lib -lfreetype -L${MASON_PNG}/lib -lpng" - CFLAGS=${CFLAGS} LDFLAGS=${LDFLAGS} ./autogen.sh \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --enable-pdf=yes \ - --enable-ft=yes \ - --enable-png=yes \ - --enable-svg=yes \ - --enable-ps=yes \ - --enable-fc=no \ - --enable-script=no \ - --enable-interpreter=no \ - --enable-quartz=no \ - --enable-quartz-image=no \ - --enable-quartz-font=no \ - --enable-trace=no \ - --enable-gtk-doc=no \ - --enable-qt=no \ - --enable-win32=no \ - --enable-win32-font=no \ - --enable-skia=no \ - --enable-os2=no \ - --enable-beos=no \ - --enable-drm=no \ - --enable-gallium=no \ - --enable-gl=no \ - --enable-glesv2=no \ - --enable-directfb=no \ - --enable-vg=no \ - --enable-egl=no \ - --enable-glx=no \ - --enable-wgl=no \ - --enable-test-surfaces=no \ - --enable-tee=no \ - --enable-xml=no \ - --disable-valgrind \ - --enable-gobject=no \ - --enable-xlib=no \ - --enable-xlib-xrender=no \ - --enable-xcb=no \ - --enable-xlib-xcb=no \ - --enable-xcb-shm=no \ - --enable-full-testing=no \ - --enable-symbol-lookup=no \ - --disable-dependency-tracking - # The -i and -k flags are to workaround make[6]: [install-data-local] Error 1 (ignored) - make V=1 -j${MASON_CONCURRENCY} -i -k - make install -i -k -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/cairo/1.14.8/.travis.yml b/third_party/mason/scripts/cairo/1.14.8/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/cairo/1.14.8/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/cairo/1.14.8/patch.diff b/third_party/mason/scripts/cairo/1.14.8/patch.diff deleted file mode 100644 index a0f21614f..000000000 --- a/third_party/mason/scripts/cairo/1.14.8/patch.diff +++ /dev/null @@ -1,96 +0,0 @@ -diff --git a/build/configure.ac.tools b/build/configure.ac.tools -index a24dbce..aaf0e5d 100644 ---- a/build/configure.ac.tools -+++ b/build/configure.ac.tools -@@ -10,16 +10,3 @@ AC_C_INLINE - - dnl =========================================================================== - --PKG_PROG_PKG_CONFIG() --if test "x$PKG_CONFIG" = x; then -- AC_MSG_ERROR([pkg-config >= $PKGCONFIG_REQUIRED required but not found (http://pkgconfig.freedesktop.org/)]) --fi -- --dnl Check for recent pkg-config which supports Requires.private --case `$PKG_CONFIG --version` in --[0.?|0.?.?|0.1[0-7]|0.1[0-7].?]) PKGCONFIG_REQUIRES="Requires"; ;; --*) PKGCONFIG_REQUIRES="Requires.private"; ;; --esac -- --AC_SUBST(PKGCONFIG_REQUIRES) -- -diff --git a/configure.ac b/configure.ac -index 2ce1959..87c71ac 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -321,26 +321,7 @@ CAIRO_ENABLE_SURFACE_BACKEND(gallium, Gallium3D, no, [ - dnl =========================================================================== - - CAIRO_ENABLE_FUNCTIONS(png, PNG, yes, [ -- use_png=no -- AC_ARG_VAR([png_REQUIRES], [module name for libpng to search for using pkg-config]) -- if test "x$png_REQUIRES" = x; then -- # libpng13 is GnuWin32's libpng-1.2.8 :-( -- for l in libpng libpng14 libpng12 libpng13 libpng10; do -- if $PKG_CONFIG --exists $l ; then -- png_REQUIRES=$l -- use_png=yes -- break -- fi -- done -- else -- use_png=yes -- fi -- -- if test "x$use_png" = "xyes" ; then -- PKG_CHECK_MODULES(png, $png_REQUIRES, , : ) -- else -- AC_MSG_WARN([Could not find libpng in the pkg-config search path]) -- fi -+ use_png=yes - ]) - - dnl =========================================================================== -@@ -495,10 +476,6 @@ FREETYPE_MIN_RELEASE=2.1.9 - FREETYPE_MIN_VERSION=9.7.3 - - CAIRO_ENABLE_FONT_BACKEND(ft, FreeType, auto, [ -- -- PKG_CHECK_MODULES(FREETYPE, freetype2 >= $FREETYPE_MIN_VERSION, -- [freetype_pkgconfig=yes], -- [freetype_pkgconfig=no]) - - if test "x$freetype_pkgconfig" = "xyes"; then - ft_REQUIRES="freetype2 >= $FREETYPE_MIN_VERSION $ft_REQUIRES" -@@ -662,18 +639,12 @@ CAIRO_ENABLE(test_surfaces, test surfaces, no) - dnl =========================================================================== - - CAIRO_ENABLE_SURFACE_BACKEND(image, image, always, [ -- pixman_REQUIRES="pixman-1 >= 0.30.0" -- PKG_CHECK_MODULES(pixman, $pixman_REQUIRES, , -- [use_image="no (requires $pixman_REQUIRES http://cairographics.org/releases/)"]) -+ use_image=yes - image_REQUIRES=$pixman_REQUIRES - image_CFLAGS=$pixman_CFLAGS - image_LIBS=$pixman_LIBS - ]) - --if pkg-config --exists 'pixman-1 >= 0.27.1'; then -- AC_DEFINE([HAS_PIXMAN_GLYPHS], 1, [Enable pixman glyph cache]) --fi -- - - dnl =========================================================================== - -diff --git a/test/Makefile.am b/test/Makefile.am -index 950629b..f733dd9 100644 ---- a/test/Makefile.am -+++ b/test/Makefile.am -@@ -75,7 +75,6 @@ endif - endif - test_sources += $(test) - --noinst_PROGRAMS = cairo-test-suite$(EXEEXT) # always build - noinst_SCRIPTS = check-refs.sh - - TESTS += cairo-test-suite$(EXEEXT) diff --git a/third_party/mason/scripts/cairo/1.14.8/script.sh b/third_party/mason/scripts/cairo/1.14.8/script.sh deleted file mode 100755 index 5cc5f8591..000000000 --- a/third_party/mason/scripts/cairo/1.14.8/script.sh +++ /dev/null @@ -1,94 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=cairo -MASON_VERSION=1.14.8 -MASON_LIB_FILE=lib/libcairo.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://cairographics.org/releases/${MASON_NAME}-${MASON_VERSION}.tar.xz \ - b6a7b9d02e24fdd5fc5c44d30040f14d361a0950 - - mason_extract_tar_xz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - PNG_VERSION="1.6.28" - FREETYPE_VERSION="2.7.1" - PIXMAN_VERSION="0.34.0" - ${MASON_DIR}/mason install libpng ${PNG_VERSION} - MASON_PNG=$(${MASON_DIR}/mason prefix libpng ${PNG_VERSION}) - ${MASON_DIR}/mason install freetype ${FREETYPE_VERSION} - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION}) - ${MASON_DIR}/mason install pixman ${PIXMAN_VERSION} - MASON_PIXMAN=$(${MASON_DIR}/mason prefix pixman ${PIXMAN_VERSION}) -} - -function mason_compile { - mason_step "Loading patch" - patch -N -p1 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - CFLAGS="${CFLAGS} -Wno-enum-conversion -I${MASON_PIXMAN}/include/pixman-1 -I${MASON_FREETYPE}/include/freetype2 -I${MASON_PNG}/include/" - LDFLAGS="-L${MASON_PIXMAN}/lib -lpixman-1 -L${MASON_FREETYPE}/lib -lfreetype -L${MASON_PNG}/lib -lpng" - # note CFLAGS overrides defaults - CAIRO_CFLAGS_DEFAULTS="-Wall -Wextra -Wmissing-declarations -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wsign-compare -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wvolatile-register-var -Wstrict-aliasing=2 -Winit-self -Wno-missing-field-initializers -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -fno-strict-aliasing -fno-common -Wp,-D_FORTIFY_SOURCE=2" - # so we need to add optimization flags back - export CFLAGS="${CFLAGS} ${CAIRO_CFLAGS_DEFAULTS} -O3 -DNDEBUG" - LDFLAGS=${LDFLAGS} ./autogen.sh \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --enable-pdf=yes \ - --enable-ft=yes \ - --enable-png=yes \ - --enable-svg=yes \ - --enable-ps=yes \ - --enable-fc=no \ - --enable-script=no \ - --enable-interpreter=no \ - --enable-quartz=no \ - --enable-quartz-image=no \ - --enable-quartz-font=no \ - --enable-trace=no \ - --enable-gtk-doc=no \ - --enable-qt=no \ - --enable-win32=no \ - --enable-win32-font=no \ - --enable-skia=no \ - --enable-os2=no \ - --enable-beos=no \ - --enable-drm=no \ - --enable-gallium=no \ - --enable-gl=no \ - --enable-glesv2=no \ - --enable-directfb=no \ - --enable-vg=no \ - --enable-egl=no \ - --enable-glx=no \ - --enable-wgl=no \ - --enable-test-surfaces=no \ - --enable-tee=no \ - --enable-xml=no \ - --disable-valgrind \ - --enable-gobject=no \ - --enable-xlib=no \ - --enable-xlib-xrender=no \ - --enable-xcb=no \ - --enable-xlib-xcb=no \ - --enable-xcb-shm=no \ - --enable-full-testing=no \ - --enable-symbol-lookup=no \ - --disable-dependency-tracking - # The -i and -k flags are to workaround make[6]: [install-data-local] Error 1 (ignored) - make V=1 -j${MASON_CONCURRENCY} -i -k - make install -i -k -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/ccache/3.2.4/.travis.yml b/third_party/mason/scripts/ccache/3.2.4/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/ccache/3.2.4/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/ccache/3.2.4/script.sh b/third_party/mason/scripts/ccache/3.2.4/script.sh deleted file mode 100755 index 282471dff..000000000 --- a/third_party/mason/scripts/ccache/3.2.4/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=ccache -MASON_VERSION=3.2.4 -MASON_LIB_FILE=bin/ccache - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://www.samba.org/ftp/ccache/${MASON_NAME}-${MASON_VERSION}.tar.bz2 \ - 80bc058b45efdb00ad49de2198047917016e4c29 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --with-bundled-zlib \ - --disable-dependency-tracking - make V=1 -j${MASON_CONCURRENCY} - make install -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/ccache/3.3.0/.travis.yml b/third_party/mason/scripts/ccache/3.3.0/.travis.yml deleted file mode 100644 index 5430086e5..000000000 --- a/third_party/mason/scripts/ccache/3.3.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/ccache/3.3.0/script.sh b/third_party/mason/scripts/ccache/3.3.0/script.sh deleted file mode 100755 index ca220446e..000000000 --- a/third_party/mason/scripts/ccache/3.3.0/script.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=ccache -MASON_VERSION=3.3.0 -MASON_LIB_FILE=bin/ccache - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://www.samba.org/ftp/ccache/${MASON_NAME}-3.3.tar.bz2 \ - 7b97be7b05a4bec29d0466a4e6199b4ec49eb4ca - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-3.3 -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --with-bundled-zlib - make V=1 -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - : -} - -function mason_cflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/ccache/3.3.1/.travis.yml b/third_party/mason/scripts/ccache/3.3.1/.travis.yml deleted file mode 100644 index 5430086e5..000000000 --- a/third_party/mason/scripts/ccache/3.3.1/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/ccache/3.3.1/script.sh b/third_party/mason/scripts/ccache/3.3.1/script.sh deleted file mode 100755 index 020eada76..000000000 --- a/third_party/mason/scripts/ccache/3.3.1/script.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=ccache -MASON_VERSION=3.3.1 -MASON_LIB_FILE=bin/ccache - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://www.samba.org/ftp/ccache/${MASON_NAME}-${MASON_VERSION}.tar.bz2 \ - b977c16473a64e4545dd89d5f81eba262ee82852 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --with-bundled-zlib - make V=1 -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - : -} - -function mason_cflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/clang++/3.8.1/.travis.yml b/third_party/mason/scripts/clang++/3.8.1/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/clang++/3.8.1/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/clang++/3.8.1/script.sh b/third_party/mason/scripts/clang++/3.8.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/clang++/3.8.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/clang++/3.9.1/.travis.yml b/third_party/mason/scripts/clang++/3.9.1/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/clang++/3.9.1/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/clang++/3.9.1/script.sh b/third_party/mason/scripts/clang++/3.9.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/clang++/3.9.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/clang++/4.0.0/.travis.yml b/third_party/mason/scripts/clang++/4.0.0/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/clang++/4.0.0/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/clang++/4.0.0/script.sh b/third_party/mason/scripts/clang++/4.0.0/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/clang++/4.0.0/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/clang++/base/common.sh b/third_party/mason/scripts/clang++/base/common.sh deleted file mode 100755 index 054d4bcf7..000000000 --- a/third_party/mason/scripts/clang++/base/common.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -function mason_build { - ${MASON_DIR}/mason install llvm ${MASON_VERSION} - CLANG_PREFIX=$(${MASON_DIR}/mason prefix llvm ${MASON_VERSION}) - - MAJOR_MINOR=$(echo $MASON_VERSION | cut -d '.' -f1-2) - - # copy bin - mkdir -p "${MASON_PREFIX}/bin" - cp -a "${CLANG_PREFIX}/bin/${MASON_NAME}" "${MASON_PREFIX}/bin/" - cp -a "${CLANG_PREFIX}/bin/${MASON_NAME}-${MAJOR_MINOR}" "${MASON_PREFIX}/bin/" - cp -a "${CLANG_PREFIX}/bin/clang" "${MASON_PREFIX}/bin/" - cp -a "${CLANG_PREFIX}/bin/clang-${MAJOR_MINOR}" "${MASON_PREFIX}/bin/" - cp -a "${CLANG_PREFIX}/bin/llvm-symbolizer" "${MASON_PREFIX}/bin/" - cp -a "${CLANG_PREFIX}/bin/llvm-ar" "${MASON_PREFIX}/bin/" - cp -a "${CLANG_PREFIX}/bin/llvm-ranlib" "${MASON_PREFIX}/bin/" - cp -a "${CLANG_PREFIX}/bin/asan_symbolize" "${MASON_PREFIX}/bin/" - cp -a "${CLANG_PREFIX}/bin/asan_symbolize.py" "${MASON_PREFIX}/bin/" - - # copy share - mkdir -p "${MASON_PREFIX}/share" - cp -r "${CLANG_PREFIX}/share/clang" "${MASON_PREFIX}/share/" - - mkdir -p "${MASON_PREFIX}/include" - mkdir -p "${MASON_PREFIX}/lib" - - # if custom libc++ was built - if [[ $(uname -s) == 'Linux' ]]; then - cp -r ${CLANG_PREFIX}/lib/libc++* "${MASON_PREFIX}/lib/" - fi - - # copy c++ headers (on osx these are a symlink to the system headers) - if [[ -d "${CLANG_PREFIX}/include/c++" ]]; then - cp -r "${CLANG_PREFIX}/include/c++" "${MASON_PREFIX}/include/" - fi - - # copy libs - cp -r ${CLANG_PREFIX}/lib/libLTO.* "${MASON_PREFIX}/lib/" - if [[ $(uname -s) == 'Linux' ]]; then - cp -r ${CLANG_PREFIX}/lib/LLVMgold* "${MASON_PREFIX}/lib/" - fi - mkdir -p "${MASON_PREFIX}/lib/clang" - cp -R ${CLANG_PREFIX}/lib/clang/${MASON_VERSION} "${MASON_PREFIX}/lib/clang/" - -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} diff --git a/third_party/mason/scripts/clang-format/3.8.1/.travis.yml b/third_party/mason/scripts/clang-format/3.8.1/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/clang-format/3.8.1/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/clang-format/3.8.1/script.sh b/third_party/mason/scripts/clang-format/3.8.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/clang-format/3.8.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/clang-format/3.9.1/.travis.yml b/third_party/mason/scripts/clang-format/3.9.1/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/clang-format/3.9.1/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/clang-format/3.9.1/script.sh b/third_party/mason/scripts/clang-format/3.9.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/clang-format/3.9.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/clang-format/4.0.0/.travis.yml b/third_party/mason/scripts/clang-format/4.0.0/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/clang-format/4.0.0/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/clang-format/4.0.0/script.sh b/third_party/mason/scripts/clang-format/4.0.0/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/clang-format/4.0.0/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/clang-format/base/common.sh b/third_party/mason/scripts/clang-format/base/common.sh deleted file mode 100755 index 5a95fb4e7..000000000 --- a/third_party/mason/scripts/clang-format/base/common.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -function mason_build { - ${MASON_DIR}/mason install llvm ${MASON_VERSION} - CLANG_PREFIX=$(${MASON_DIR}/mason prefix llvm ${MASON_VERSION}) - # copy bin - mkdir -p "${MASON_PREFIX}/bin" - cp "${CLANG_PREFIX}/bin/${MASON_NAME}" "${MASON_PREFIX}/bin/" -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} \ No newline at end of file diff --git a/third_party/mason/scripts/clang-tidy/3.8.1/.travis.yml b/third_party/mason/scripts/clang-tidy/3.8.1/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/clang-tidy/3.8.1/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/clang-tidy/3.8.1/script.sh b/third_party/mason/scripts/clang-tidy/3.8.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/clang-tidy/3.8.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/clang-tidy/3.9.1/.travis.yml b/third_party/mason/scripts/clang-tidy/3.9.1/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/clang-tidy/3.9.1/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/clang-tidy/3.9.1/script.sh b/third_party/mason/scripts/clang-tidy/3.9.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/clang-tidy/3.9.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/clang-tidy/4.0.0/.travis.yml b/third_party/mason/scripts/clang-tidy/4.0.0/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/clang-tidy/4.0.0/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/clang-tidy/4.0.0/script.sh b/third_party/mason/scripts/clang-tidy/4.0.0/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/clang-tidy/4.0.0/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/clang-tidy/base/common.sh b/third_party/mason/scripts/clang-tidy/base/common.sh deleted file mode 100755 index 9de9af930..000000000 --- a/third_party/mason/scripts/clang-tidy/base/common.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -function mason_build { - ${MASON_DIR}/mason install llvm ${MASON_VERSION} - CLANG_PREFIX=$(${MASON_DIR}/mason prefix llvm ${MASON_VERSION}) - - # copy bin - mkdir -p "${MASON_PREFIX}/bin" - cp "${CLANG_PREFIX}/bin/${MASON_NAME}" "${MASON_PREFIX}/bin/" - - # copy include/c++ - mkdir -p "${MASON_PREFIX}/include" - - # copy c++ headers (on osx these are a symlink to the system headers) - if [[ -d "${CLANG_PREFIX}/include/c++" ]]; then - cp -r "${CLANG_PREFIX}/include/c++" "${MASON_PREFIX}/include/" - fi - - # copy libs - mkdir -p "${MASON_PREFIX}/lib" - mkdir -p "${MASON_PREFIX}/lib/clang" - cp -r ${CLANG_PREFIX}/lib/clang/${MASON_VERSION} "${MASON_PREFIX}/lib/clang/" -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} \ No newline at end of file diff --git a/third_party/mason/scripts/cmake/3.2.2/.travis.yml b/third_party/mason/scripts/cmake/3.2.2/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/cmake/3.2.2/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/cmake/3.2.2/script.sh b/third_party/mason/scripts/cmake/3.2.2/script.sh deleted file mode 100755 index ba3d5bf55..000000000 --- a/third_party/mason/scripts/cmake/3.2.2/script.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=cmake -MASON_VERSION=3.2.2 -MASON_LIB_FILE=bin/cmake - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz \ - b7cb39c390dcd8abad4af33d5507b68965e488b4 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/cmake/3.5.2/.travis.yml b/third_party/mason/scripts/cmake/3.5.2/.travis.yml deleted file mode 100644 index 337bf97c9..000000000 --- a/third_party/mason/scripts/cmake/3.5.2/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: clang - env: CXX=clang++-3.5 CC=clang-3.5 - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/cmake/3.5.2/script.sh b/third_party/mason/scripts/cmake/3.5.2/script.sh deleted file mode 100755 index 7a591ba3c..000000000 --- a/third_party/mason/scripts/cmake/3.5.2/script.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=cmake -MASON_VERSION=3.5.2 -MASON_LIB_FILE=bin/cmake - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.cmake.org/files/v3.5/cmake-${MASON_VERSION}.tar.gz \ - 70cbd618e8ac39414928d79c949968e7dd7a5605 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/cmake/3.6.2/.travis.yml b/third_party/mason/scripts/cmake/3.6.2/.travis.yml deleted file mode 100644 index 24b13a5aa..000000000 --- a/third_party/mason/scripts/cmake/3.6.2/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: clang - sudo: false - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/cmake/3.6.2/script.sh b/third_party/mason/scripts/cmake/3.6.2/script.sh deleted file mode 100755 index 148c96993..000000000 --- a/third_party/mason/scripts/cmake/3.6.2/script.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=cmake -MASON_VERSION=3.6.2 -MASON_LIB_FILE=bin/cmake - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.cmake.org/files/v3.6/cmake-${MASON_VERSION}.tar.gz \ - f2c114944dafb319c27bdca214ca7e0739a71cb0 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/cmake/3.7.1/.travis.yml b/third_party/mason/scripts/cmake/3.7.1/.travis.yml deleted file mode 100644 index 9a6107680..000000000 --- a/third_party/mason/scripts/cmake/3.7.1/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - compiler: clang - sudo: false - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/cmake/3.7.1/script.sh b/third_party/mason/scripts/cmake/3.7.1/script.sh deleted file mode 100755 index 73c0880aa..000000000 --- a/third_party/mason/scripts/cmake/3.7.1/script.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=cmake -MASON_VERSION=3.7.1 -MASON_LIB_FILE=bin/cmake - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.cmake.org/files/v3.7/cmake-${MASON_VERSION}.tar.gz \ - 591a89d83e3659884c52e6cf7009725a6b4e94e5 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install - # remove non-essential things to save on package size - rm -f ${MASON_PREFIX}/bin/ccmake - rm -f ${MASON_PREFIX}/bin/cmakexbuild - rm -f ${MASON_PREFIX}/bin/cpack - rm -f ${MASON_PREFIX}/bin/ctest - rm -rf ${MASON_PREFIX}/share/cmake-*/Help - ls -lh ${MASON_PREFIX}/bin/ -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/cmake/3.7.2/.travis.yml b/third_party/mason/scripts/cmake/3.7.2/.travis.yml deleted file mode 100644 index 9a6107680..000000000 --- a/third_party/mason/scripts/cmake/3.7.2/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - compiler: clang - sudo: false - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/cmake/3.7.2/script.sh b/third_party/mason/scripts/cmake/3.7.2/script.sh deleted file mode 100755 index 2779af6fc..000000000 --- a/third_party/mason/scripts/cmake/3.7.2/script.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=cmake -MASON_VERSION=3.7.2 -MASON_LIB_FILE=bin/cmake - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.cmake.org/files/v3.7/cmake-${MASON_VERSION}.tar.gz \ - 35e73aad419b0dca4d5f8e8ba483e29ff54b7f05 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install - # remove non-essential things to save on package size - rm -f ${MASON_PREFIX}/bin/ccmake - rm -f ${MASON_PREFIX}/bin/cmakexbuild - rm -f ${MASON_PREFIX}/bin/cpack - rm -f ${MASON_PREFIX}/bin/ctest - rm -rf ${MASON_PREFIX}/share/cmake-*/Help - ls -lh ${MASON_PREFIX}/bin/ -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/earcut/0.10.1/.travis.yml b/third_party/mason/scripts/earcut/0.10.1/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/earcut/0.10.1/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/earcut/0.10.1/script.sh b/third_party/mason/scripts/earcut/0.10.1/script.sh deleted file mode 100755 index d01880c1c..000000000 --- a/third_party/mason/scripts/earcut/0.10.1/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=earcut -MASON_VERSION=0.10.1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/earcut.hpp/archive/v${MASON_VERSION}.tar.gz \ - f741208c3304b4f8bc2bc619d706d71c8e459b74 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/earcut.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/*.hpp ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/earcut/0.10.2/.travis.yml b/third_party/mason/scripts/earcut/0.10.2/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/earcut/0.10.2/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/earcut/0.10.2/script.sh b/third_party/mason/scripts/earcut/0.10.2/script.sh deleted file mode 100755 index efa830b32..000000000 --- a/third_party/mason/scripts/earcut/0.10.2/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=earcut -MASON_VERSION=0.10.2 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/earcut.hpp/archive/v${MASON_VERSION}.tar.gz \ - b2d01708c8a67d47cd9c7a754c3192c4cb0b6dfc - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/earcut.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/*.hpp ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/earcut/0.10.3/.travis.yml b/third_party/mason/scripts/earcut/0.10.3/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/earcut/0.10.3/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/earcut/0.10.3/script.sh b/third_party/mason/scripts/earcut/0.10.3/script.sh deleted file mode 100755 index 4710f781b..000000000 --- a/third_party/mason/scripts/earcut/0.10.3/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=earcut -MASON_VERSION=0.10.3 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/earcut.hpp/archive/v${MASON_VERSION}.tar.gz \ - 519704ea4bc317a7680eab79416837da581a2838 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/earcut.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/*.hpp ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/earcut/0.10/.travis.yml b/third_party/mason/scripts/earcut/0.10/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/earcut/0.10/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/earcut/0.10/script.sh b/third_party/mason/scripts/earcut/0.10/script.sh deleted file mode 100755 index 79d6003bc..000000000 --- a/third_party/mason/scripts/earcut/0.10/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=earcut -MASON_VERSION=0.10 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/earcut.hpp/archive/v${MASON_VERSION}.tar.gz \ - a66ce3dc19dbc059d42da52dacb0dd380286555d - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/earcut.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/*.hpp ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/earcut/0.11/.travis.yml b/third_party/mason/scripts/earcut/0.11/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/earcut/0.11/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/earcut/0.11/script.sh b/third_party/mason/scripts/earcut/0.11/script.sh deleted file mode 100755 index b0d21b394..000000000 --- a/third_party/mason/scripts/earcut/0.11/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=earcut -MASON_VERSION=0.11 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/earcut.hpp/archive/v${MASON_VERSION}.tar.gz \ - e1d88349675e18d703873a4391ef847c7d0ff622 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/earcut.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/*.hpp ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/earcut/0.12.1/.travis.yml b/third_party/mason/scripts/earcut/0.12.1/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/earcut/0.12.1/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/earcut/0.12.1/script.sh b/third_party/mason/scripts/earcut/0.12.1/script.sh deleted file mode 100755 index 05be6747d..000000000 --- a/third_party/mason/scripts/earcut/0.12.1/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=earcut -MASON_VERSION=0.12.1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/earcut.hpp/archive/v${MASON_VERSION}.tar.gz \ - 19ac12c56687fb6a44ee99974f3eb0866374d06b - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/earcut.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/mapbox/earcut.hpp ${MASON_PREFIX}/include/mapbox/earcut.hpp - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/earcut/0.12.2/.travis.yml b/third_party/mason/scripts/earcut/0.12.2/.travis.yml deleted file mode 100644 index 1dee2e218..000000000 --- a/third_party/mason/scripts/earcut/0.12.2/.travis.yml +++ /dev/null @@ -1,5 +0,0 @@ -language: generic - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/earcut/0.12.2/script.sh b/third_party/mason/scripts/earcut/0.12.2/script.sh deleted file mode 100755 index 9c2d1d8bf..000000000 --- a/third_party/mason/scripts/earcut/0.12.2/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=earcut -MASON_VERSION=0.12.2 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/earcut.hpp/archive/v${MASON_VERSION}.tar.gz \ - fcc64054afaf4f908b72e51944796339064344f5 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/earcut.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/mapbox/earcut.hpp ${MASON_PREFIX}/include/mapbox/earcut.hpp - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/earcut/0.12/.travis.yml b/third_party/mason/scripts/earcut/0.12/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/earcut/0.12/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/earcut/0.12/script.sh b/third_party/mason/scripts/earcut/0.12/script.sh deleted file mode 100755 index bb566c224..000000000 --- a/third_party/mason/scripts/earcut/0.12/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=earcut -MASON_VERSION=0.12 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/earcut.hpp/archive/v${MASON_VERSION}.tar.gz \ - 4bb12e9c7c4f05a5330f85be95de0e9548bbcd6d - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/earcut.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/mapbox/earcut.hpp ${MASON_PREFIX}/include/mapbox/earcut.hpp - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/earcut/0.9-pool/.travis.yml b/third_party/mason/scripts/earcut/0.9-pool/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/earcut/0.9-pool/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/earcut/0.9-pool/script.sh b/third_party/mason/scripts/earcut/0.9-pool/script.sh deleted file mode 100755 index 4a574438f..000000000 --- a/third_party/mason/scripts/earcut/0.9-pool/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=earcut -MASON_VERSION=0.9-pool -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/earcut.hpp/archive/v0.9-pool.tar.gz \ - b3dacbd180a5480d797b32ec3bc242b688046e99 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/earcut.hpp-0.9-pool -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/*.hpp ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/earcut/0.9/.travis.yml b/third_party/mason/scripts/earcut/0.9/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/earcut/0.9/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/earcut/0.9/script.sh b/third_party/mason/scripts/earcut/0.9/script.sh deleted file mode 100755 index 451e8e731..000000000 --- a/third_party/mason/scripts/earcut/0.9/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=earcut -MASON_VERSION=0.9 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/earcut.hpp/archive/v0.9.tar.gz \ - 5fbb3bb44456caf100c80f11d4c6c2c0adb1669d - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/earcut.hpp-0.9 -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/*.hpp ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/expat/2.1.0/.travis.yml b/third_party/mason/scripts/expat/2.1.0/.travis.yml deleted file mode 100644 index 2ad2820ef..000000000 --- a/third_party/mason/scripts/expat/2.1.0/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=arm - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=x86 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/expat/2.1.0/script.sh b/third_party/mason/scripts/expat/2.1.0/script.sh deleted file mode 100755 index 514560bb3..000000000 --- a/third_party/mason/scripts/expat/2.1.0/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=expat -MASON_VERSION=2.1.0 -MASON_LIB_FILE=lib/libexpat.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/expat.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://mapnik.s3.amazonaws.com/deps/expat-2.1.0.tar.gz \ - a791223d3b20ab54e59ed0815afd2ef2fb81194e - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/expat/2.1.1/.travis.yml b/third_party/mason/scripts/expat/2.1.1/.travis.yml deleted file mode 100644 index 768d3a0cf..000000000 --- a/third_party/mason/scripts/expat/2.1.1/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: clang - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/expat/2.1.1/script.sh b/third_party/mason/scripts/expat/2.1.1/script.sh deleted file mode 100755 index 6ffbfda53..000000000 --- a/third_party/mason/scripts/expat/2.1.1/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=expat -MASON_VERSION=2.1.1 -MASON_LIB_FILE=lib/libexpat.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/expat.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://fossies.org/linux/www/expat-${MASON_VERSION}.tar.gz \ - b939d8395c87b077f3562fca0096c03728b71e1f - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/expat/2.2.0/.travis.yml b/third_party/mason/scripts/expat/2.2.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/expat/2.2.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/expat/2.2.0/script.sh b/third_party/mason/scripts/expat/2.2.0/script.sh deleted file mode 100755 index acdd8a32b..000000000 --- a/third_party/mason/scripts/expat/2.2.0/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=expat -MASON_VERSION=2.2.0 -MASON_LIB_FILE=lib/libexpat.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/expat.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://downloads.sourceforge.net/project/expat/expat/${MASON_VERSION}/expat-${MASON_VERSION}.tar.bz2 \ - de632147cebfb22e51c8ef35fe0f8badcd424a47 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/freetype/2.5.4/.travis.yml b/third_party/mason/scripts/freetype/2.5.4/.travis.yml deleted file mode 100644 index c1c2da418..000000000 --- a/third_party/mason/scripts/freetype/2.5.4/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=arm - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=x86 - -before_install: -- if [[ $(uname -s) == 'Darwin' ]]; then brew rm freetype || true; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/freetype/2.5.4/script.sh b/third_party/mason/scripts/freetype/2.5.4/script.sh deleted file mode 100755 index 5f68a51d3..000000000 --- a/third_party/mason/scripts/freetype/2.5.4/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=freetype -MASON_VERSION=2.5.4 -MASON_LIB_FILE=lib/libfreetype.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/freetype2.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://nongnu.askapache.com/freetype/freetype-${MASON_VERSION}.tar.bz2 \ - 0646f7e62a6191affe92270e2544e6011f5227e8 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/freetype-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} \ - --enable-static \ - --disable-shared ${MASON_HOST_ARG} \ - --with-zlib=yes \ - --with-bzip2=no \ - --with-harfbuzz=no \ - --with-png=no \ - --with-quickdraw-toolbox=no \ - --with-quickdraw-carbon=no \ - --with-ats=no \ - --with-fsref=no \ - --with-fsspec=no \ - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - echo "-lfreetype -lz" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/freetype/2.5.5/.travis.yml b/third_party/mason/scripts/freetype/2.5.5/.travis.yml deleted file mode 100644 index c1c2da418..000000000 --- a/third_party/mason/scripts/freetype/2.5.5/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=arm - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=x86 - -before_install: -- if [[ $(uname -s) == 'Darwin' ]]; then brew rm freetype || true; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/freetype/2.5.5/script.sh b/third_party/mason/scripts/freetype/2.5.5/script.sh deleted file mode 100755 index 7c9d77eb5..000000000 --- a/third_party/mason/scripts/freetype/2.5.5/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=freetype -MASON_VERSION=2.5.5 -MASON_LIB_FILE=lib/libfreetype.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/freetype2.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://nongnu.askapache.com/freetype/freetype-${MASON_VERSION}.tar.bz2 \ - c857bfa638b9c71e48baacd1cb12be446b62c333 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/freetype-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} \ - --enable-static \ - --disable-shared ${MASON_HOST_ARG} \ - --with-zlib=yes \ - --with-bzip2=no \ - --with-harfbuzz=no \ - --with-png=no \ - --with-quickdraw-toolbox=no \ - --with-quickdraw-carbon=no \ - --with-ats=no \ - --with-fsref=no \ - --with-fsspec=no \ - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include/freetype2" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/freetype/2.6.5/.travis.yml b/third_party/mason/scripts/freetype/2.6.5/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/freetype/2.6.5/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/freetype/2.6.5/script.sh b/third_party/mason/scripts/freetype/2.6.5/script.sh deleted file mode 100755 index 719407c8c..000000000 --- a/third_party/mason/scripts/freetype/2.6.5/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=freetype -MASON_VERSION=2.6.5 -MASON_LIB_FILE=lib/libfreetype.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/freetype2.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://nongnu.askapache.com/freetype/freetype-${MASON_VERSION}.tar.bz2 \ - 24dd30c95d3795cb3d82a760b9858992de262630 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/freetype-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} \ - --enable-static \ - --disable-shared ${MASON_HOST_ARG} \ - --with-zlib=yes \ - --with-bzip2=no \ - --with-harfbuzz=no \ - --with-png=no \ - --with-quickdraw-toolbox=no \ - --with-quickdraw-carbon=no \ - --with-ats=no \ - --with-fsref=no \ - --with-fsspec=no \ - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include/freetype2" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/freetype/2.6/.travis.yml b/third_party/mason/scripts/freetype/2.6/.travis.yml deleted file mode 100644 index a639eae74..000000000 --- a/third_party/mason/scripts/freetype/2.6/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=arm - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=x86 - -before_install: -- if [[ $(uname -s) == 'Darwin' ]]; then brew rm freetype || true; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/freetype/2.6/script.sh b/third_party/mason/scripts/freetype/2.6/script.sh deleted file mode 100755 index b9d1b3dcb..000000000 --- a/third_party/mason/scripts/freetype/2.6/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=freetype -MASON_VERSION=2.6 -MASON_LIB_FILE=lib/libfreetype.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/freetype2.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://nongnu.askapache.com/freetype/freetype-${MASON_VERSION}.tar.bz2 \ - 3cdf364b5db1c1adba670b188d76035ecba2d77c - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/freetype-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} \ - --enable-static \ - --disable-shared ${MASON_HOST_ARG} \ - --with-zlib=yes \ - --with-bzip2=no \ - --with-harfbuzz=no \ - --with-png=no \ - --with-quickdraw-toolbox=no \ - --with-quickdraw-carbon=no \ - --with-ats=no \ - --with-fsref=no \ - --with-fsspec=no \ - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include/freetype2" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/freetype/2.7.1/.travis.yml b/third_party/mason/scripts/freetype/2.7.1/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/freetype/2.7.1/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/freetype/2.7.1/script.sh b/third_party/mason/scripts/freetype/2.7.1/script.sh deleted file mode 100755 index c35c7c88c..000000000 --- a/third_party/mason/scripts/freetype/2.7.1/script.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=freetype -MASON_VERSION=2.7.1 -MASON_LIB_FILE=lib/libfreetype.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/freetype2.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://nongnu.askapache.com/freetype/freetype-${MASON_VERSION}.tar.bz2 \ - 51abc6f9afd5bbcbdcc0d9ea20b145f0ff1be632 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/freetype-${MASON_VERSION} -} - -function mason_compile { - # note CFLAGS overrides defaults (-Wall -g -O2) so we need to add optimization flags back - export CFLAGS="${CFLAGS} -O3 -DNDEBUG" - ./configure --prefix=${MASON_PREFIX} \ - --enable-static \ - --disable-shared ${MASON_HOST_ARG} \ - --with-zlib=yes \ - --with-bzip2=no \ - --with-harfbuzz=no \ - --with-png=no \ - --with-quickdraw-toolbox=no \ - --with-quickdraw-carbon=no \ - --with-ats=no \ - --with-fsref=no \ - --with-fsspec=no \ - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include/freetype2" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gcc/4.9.2-cortex_a9-hf/.travis.yml b/third_party/mason/scripts/gcc/4.9.2-cortex_a9-hf/.travis.yml deleted file mode 100644 index 9955c3cc0..000000000 --- a/third_party/mason/scripts/gcc/4.9.2-cortex_a9-hf/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: linux - - os: osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gcc/4.9.2-cortex_a9-hf/script.sh b/third_party/mason/scripts/gcc/4.9.2-cortex_a9-hf/script.sh deleted file mode 100755 index 17fb186da..000000000 --- a/third_party/mason/scripts/gcc/4.9.2-cortex_a9-hf/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gcc -MASON_VERSION=4.9.2-cortex_a9-hf -MASON_LIB_FILE=root/bin/arm-cortex_a9-linux-gnueabihf-gcc - -. ${MASON_DIR}/mason.sh - -if [ -f ${MASON_PREFIX}/setup.sh ]; then - . ${MASON_PREFIX}/setup.sh -fi - -function mason_load_source { - mkdir -p ${MASON_ROOT} - export MASON_BUILD_PATH=${MASON_ROOT}/../toolchain/${MASON_PLATFORM}/ -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - cp -a ${MASON_BUILD_PATH} ${MASON_PREFIX} -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gcc/4.9.2-cortex_a9/script.sh b/third_party/mason/scripts/gcc/4.9.2-cortex_a9/script.sh deleted file mode 100755 index 690acee82..000000000 --- a/third_party/mason/scripts/gcc/4.9.2-cortex_a9/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gcc -MASON_VERSION=4.9.2-cortex_a9 -MASON_LIB_FILE=root/bin/arm-cortex_a9-linux-gnueabi-gcc - -. ${MASON_DIR}/mason.sh - -if [ -f ${MASON_PREFIX}/setup.sh ]; then - . ${MASON_PREFIX}/setup.sh -fi - -function mason_load_source { - mkdir -p ${MASON_ROOT} - echo ${MASON_ROOT} - export MASON_BUILD_PATH=${MASON_ROOT}/../toolchain/${MASON_PLATFORM} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - cp -av ${MASON_BUILD_PATH}/* ${MASON_PREFIX}/ -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gcc/4.9.2-i686/script.sh b/third_party/mason/scripts/gcc/4.9.2-i686/script.sh deleted file mode 100755 index db29ffa69..000000000 --- a/third_party/mason/scripts/gcc/4.9.2-i686/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gcc -MASON_VERSION=4.9.2-i686 -MASON_LIB_FILE=root/bin/i686-pc-linux-gnu-gcc - -. ${MASON_DIR}/mason.sh - -if [ -f ${MASON_PREFIX}/setup.sh ]; then - . ${MASON_PREFIX}/setup.sh -fi - -function mason_load_source { - mkdir -p ${MASON_ROOT} - echo ${MASON_ROOT} - export MASON_BUILD_PATH=${MASON_ROOT}/../toolchain/${MASON_PLATFORM} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - cp -av ${MASON_BUILD_PATH}/* ${MASON_PREFIX}/ -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/script.sh b/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/script.sh deleted file mode 100755 index 9502218a6..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/script.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gcc -MASON_VERSION=5.3.0-cortex_a9-hf -MASON_LIB_FILE=root/bin/arm-cortex_a9-linux-gnueabihf-gcc - -. ${MASON_DIR}/mason.sh - -if [ -f ${MASON_PREFIX}/setup.sh ] ; then - . ${MASON_PREFIX}/setup.sh -fi - -function mason_try_binary { - MASON_XC_ORIGIN="${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}" - . ${MASON_XC_ORIGIN}/setup.sh - - mkdir -p ${MASON_PREFIX} - cp "${MASON_XC_ORIGIN}/toolchain.cmake" ${MASON_PREFIX}/ - cp "${MASON_XC_ORIGIN}/toolchain.sh" ${MASON_PREFIX}/ - mason_success "Installed toolchain setup files at ${MASON_PREFIX}" -} - -function mason_load_source { - : -} - -function mason_compile { - : -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/setup.sh b/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/setup.sh deleted file mode 100755 index bca6dfe43..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/setup.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -if [ `uname -s` = 'Darwin' ]; then - MASON_HOST_PLATFORM="osx" -elif [ `uname -s` = 'Linux' ]; then - MASON_HOST_PLATFORM="linux" -fi - -URL_MASON_BINARIES="https://mason-binaries.s3.amazonaws.com/prebuilt" - -if [ ! -f "${MASON_PREFIX}/${MASON_LIB_FILE}" ] ; then - mkdir -p ${MASON_ROOT}/.cache - if [ $MASON_HOST_PLATFORM = "osx" ]; then - URL="${URL_MASON_BINARIES}/osx-x86_64/gcc-5.3.0-arm-v7-hf.dmg" - FILE="${MASON_ROOT}/.cache/osx-x86_64-gcc-5.3.0-arm-v7-hf.dmg" - elif [ $MASON_HOST_PLATFORM = "linux" ]; then - URL="${URL_MASON_BINARIES}/linux-$(uname -m)/gcc-5.3.0-arm-v7-hf.tar.bz2" - FILE="${MASON_ROOT}/.cache/linux-$(uname -m)-gcc-5.3.0-arm-v7-hf.tar.bz2" - fi - if [ ! -f ${FILE} ] ; then - mason_step "Downloading ${URL}..." - curl --retry 3 ${MASON_CURL_ARGS} -f -L ${URL} -o ${FILE}.tmp && \ - mv ${FILE}.tmp ${FILE} - fi - mkdir -p ${MASON_PREFIX}/root - if [ $MASON_HOST_PLATFORM = "osx" ]; then - hdiutil attach -quiet -readonly -mountpoint ${MASON_PREFIX}/root ${FILE} - elif [ $MASON_HOST_PLATFORM = "linux" ]; then - tar xf "${FILE}" --directory "${MASON_PREFIX}/root" --strip-components=1 - fi -fi diff --git a/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/toolchain.cmake b/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/toolchain.cmake deleted file mode 100755 index 9e6eb4c3a..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/toolchain.cmake +++ /dev/null @@ -1,16 +0,0 @@ -SET(CMAKE_SYSTEM_NAME Linux) -SET(CMAKE_SYSTEM_PROCESSOR arm) -SET(CMAKE_SYSTEM_VERSION 1) - -SET(CMAKE_C_COMPILER ${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabihf-gcc) -SET(CMAKE_CXX_COMPILER ${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabihf-g++) -SET(CMAKE_RANLIB ${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabihf-ranlib) - -SET(CMAKE_C_FLAGS "-mtune=cortex-a9 -march=armv7-a -mfloat-abi=hard -mfpu=neon-fp16 ${CFLAGS}") -SET(CMAKE_CXX_FLAGS "-mtune=cortex-a9 -march=armv7-a -mfloat-abi=hard -mfpu=neon-fp16 ${CFLAGS}") - -SET(CMAKE_FIND_ROOT_PATH ${MASON_XC_ROOT}/root) - -SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) -SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/toolchain.sh b/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/toolchain.sh deleted file mode 100755 index c0e22e72f..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-cortex_a9-hf/toolchain.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -export MASON_HOST_ARG="--host=arm-linux-gnueabihf" -export MASON_CMAKE_TOOLCHAIN="-DMASON_XC_ROOT=${MASON_XC_ROOT} -DCMAKE_TOOLCHAIN_FILE=${MASON_XC_ROOT}/toolchain.cmake" - -export CXX="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabihf-g++" -export CC="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabihf-gcc" -export LD="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabihf-ld" -export LINK="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabihf-g++" -export AR="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabihf-ar" -export RANLIB="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabihf-ranlib" -export STRIP="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabihf-strip" -export STRIP="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabihf-strip" -export CFLAGS="-mtune=cortex-a9 -march=armv7-a -mfloat-abi=hard -mfpu=neon-fp16 ${CFLAGS}" diff --git a/third_party/mason/scripts/gcc/5.3.0-cortex_a9/script.sh b/third_party/mason/scripts/gcc/5.3.0-cortex_a9/script.sh deleted file mode 100755 index 6667a296e..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-cortex_a9/script.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gcc -MASON_VERSION=5.3.0-cortex_a9 -MASON_LIB_FILE=root/bin/arm-cortex_a9-linux-gnueabi-gcc - -. ${MASON_DIR}/mason.sh - -if [ -f ${MASON_PREFIX}/setup.sh ] ; then - . ${MASON_PREFIX}/setup.sh -fi - -function mason_try_binary { - MASON_XC_ORIGIN="${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}" - . ${MASON_XC_ORIGIN}/setup.sh - - mkdir -p ${MASON_PREFIX} - cp "${MASON_XC_ORIGIN}/toolchain.cmake" ${MASON_PREFIX}/ - cp "${MASON_XC_ORIGIN}/toolchain.sh" ${MASON_PREFIX}/ - mason_success "Installed toolchain setup files at ${MASON_PREFIX}" -} - -function mason_load_source { - : -} - -function mason_compile { - : -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gcc/5.3.0-cortex_a9/setup.sh b/third_party/mason/scripts/gcc/5.3.0-cortex_a9/setup.sh deleted file mode 100755 index 0927025f8..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-cortex_a9/setup.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -if [ `uname -s` = 'Darwin' ]; then - MASON_HOST_PLATFORM="osx" -elif [ `uname -s` = 'Linux' ]; then - MASON_HOST_PLATFORM="linux" -fi - -URL_MASON_BINARIES="https://mason-binaries.s3.amazonaws.com/prebuilt" - -if [ ! -f "${MASON_PREFIX}/${MASON_LIB_FILE}" ] ; then - mkdir -p ${MASON_ROOT}/.cache - if [ $MASON_HOST_PLATFORM = "osx" ]; then - URL="${URL_MASON_BINARIES}/osx-x86_64/gcc-5.3.0-arm-v7.dmg" - FILE="${MASON_ROOT}/.cache/osx-x86_64-gcc-5.3.0-arm-v7.dmg" - elif [ $MASON_HOST_PLATFORM = "linux" ]; then - URL="${URL_MASON_BINARIES}/linux-$(uname -m)/gcc-5.3.0-arm-v7.tar.bz2" - FILE="${MASON_ROOT}/.cache/linux-$(uname -m)-gcc-5.3.0-arm-v7.tar.bz2" - fi - if [ ! -f ${FILE} ] ; then - mason_step "Downloading ${URL}..." - curl --retry 3 ${MASON_CURL_ARGS} -f -L ${URL} -o ${FILE}.tmp && \ - mv ${FILE}.tmp ${FILE} - fi - mkdir -p ${MASON_PREFIX}/root - if [ $MASON_HOST_PLATFORM = "osx" ]; then - hdiutil attach -quiet -readonly -mountpoint ${MASON_PREFIX}/root ${FILE} - elif [ $MASON_HOST_PLATFORM = "linux" ]; then - tar xf "${FILE}" --directory "${MASON_PREFIX}/root" --strip-components=1 - fi -fi diff --git a/third_party/mason/scripts/gcc/5.3.0-cortex_a9/toolchain.cmake b/third_party/mason/scripts/gcc/5.3.0-cortex_a9/toolchain.cmake deleted file mode 100755 index b6e9075ff..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-cortex_a9/toolchain.cmake +++ /dev/null @@ -1,16 +0,0 @@ -SET(CMAKE_SYSTEM_NAME Linux) -SET(CMAKE_SYSTEM_PROCESSOR arm) -SET(CMAKE_SYSTEM_VERSION 1) - -SET(CMAKE_C_COMPILER ${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabi-gcc) -SET(CMAKE_CXX_COMPILER ${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabi-g++) -SET(CMAKE_RANLIB ${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabi-ranlib) - -SET(CMAKE_C_FLAGS "-mtune=cortex-a9 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 ${CFLAGS}") -SET(CMAKE_CXX_FLAGS "-mtune=cortex-a9 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 ${CFLAGS}") - -SET(CMAKE_FIND_ROOT_PATH ${MASON_XC_ROOT}/root) - -SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) -SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/third_party/mason/scripts/gcc/5.3.0-cortex_a9/toolchain.sh b/third_party/mason/scripts/gcc/5.3.0-cortex_a9/toolchain.sh deleted file mode 100755 index c76abd489..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-cortex_a9/toolchain.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -export MASON_HOST_ARG="--host=arm-linux-gnueabi" -export MASON_CMAKE_TOOLCHAIN="-DMASON_XC_ROOT=${MASON_XC_ROOT} -DCMAKE_TOOLCHAIN_FILE=${MASON_XC_ROOT}/toolchain.cmake" - -export CXX="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabi-g++" -export CC="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabi-gcc" -export LD="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabi-ld" -export LINK="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabi-g++" -export AR="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabi-ar" -export RANLIB="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabi-ranlib" -export STRIP="${MASON_XC_ROOT}/root/bin/arm-cortex_a9-linux-gnueabi-strip" -export CFLAGS="-mtune=cortex-a9 -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 ${CFLAGS}" diff --git a/third_party/mason/scripts/gcc/5.3.0-i686/script.sh b/third_party/mason/scripts/gcc/5.3.0-i686/script.sh deleted file mode 100755 index b8ed9e2aa..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-i686/script.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gcc -MASON_VERSION=5.3.0-i686 -MASON_LIB_FILE=root/bin/i686-pc-linux-gnu-gcc - -. ${MASON_DIR}/mason.sh - -if [ -f ${MASON_PREFIX}/setup.sh ] ; then - . ${MASON_PREFIX}/setup.sh -fi - -function mason_try_binary { - MASON_XC_ORIGIN="${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}" - . ${MASON_XC_ORIGIN}/setup.sh - - mkdir -p ${MASON_PREFIX} - cp "${MASON_XC_ORIGIN}/toolchain.cmake" ${MASON_PREFIX}/ - cp "${MASON_XC_ORIGIN}/toolchain.sh" ${MASON_PREFIX}/ - mason_success "Installed toolchain setup files at ${MASON_PREFIX}" -} - -function mason_load_source { - : -} - -function mason_compile { - : -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gcc/5.3.0-i686/setup.sh b/third_party/mason/scripts/gcc/5.3.0-i686/setup.sh deleted file mode 100755 index 5e62b008d..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-i686/setup.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -if [ `uname -s` = 'Darwin' ]; then - MASON_HOST_PLATFORM="osx" -elif [ `uname -s` = 'Linux' ]; then - MASON_HOST_PLATFORM="linux" -fi - -URL_MASON_BINARIES="https://mason-binaries.s3.amazonaws.com/prebuilt" - -if [ ! -f "${MASON_PREFIX}/${MASON_LIB_FILE}" ] ; then - mkdir -p ${MASON_ROOT}/.cache - if [ $MASON_HOST_PLATFORM = "osx" ]; then - URL="${URL_MASON_BINARIES}/osx-x86_64/gcc-5.3.0-i686.dmg" - FILE="${MASON_ROOT}/.cache/osx-x86_64-gcc-5.3.0-i686.dmg" - elif [ $MASON_HOST_PLATFORM = "linux" ]; then - URL="${URL_MASON_BINARIES}/linux-$(uname -m)/gcc-5.3.0-i686.tar.bz2" - FILE="${MASON_ROOT}/.cache/linux-$(uname -m)-gcc-5.3.0-i686.tar.bz2" - fi - if [ ! -f ${FILE} ] ; then - mason_step "Downloading ${URL}..." - curl --retry 3 ${MASON_CURL_ARGS} -f -L ${URL} -o ${FILE}.tmp && \ - mv ${FILE}.tmp ${FILE} - fi - mkdir -p ${MASON_PREFIX}/root - if [ $MASON_HOST_PLATFORM = "osx" ]; then - hdiutil attach -quiet -readonly -mountpoint ${MASON_PREFIX}/root ${FILE} - elif [ $MASON_HOST_PLATFORM = "linux" ]; then - tar xf "${FILE}" --directory "${MASON_PREFIX}/root" --strip-components=1 - fi -fi diff --git a/third_party/mason/scripts/gcc/5.3.0-i686/toolchain.cmake b/third_party/mason/scripts/gcc/5.3.0-i686/toolchain.cmake deleted file mode 100755 index ecc72a103..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-i686/toolchain.cmake +++ /dev/null @@ -1,16 +0,0 @@ -SET(CMAKE_SYSTEM_NAME Linux) -SET(CMAKE_SYSTEM_PROCESSOR i686) -SET(CMAKE_SYSTEM_VERSION 1) - -SET(CMAKE_C_COMPILER ${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-gcc) -SET(CMAKE_CXX_COMPILER ${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-g++) -SET(CMAKE_RANLIB ${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-ranlib) - -SET(CMAKE_C_FLAGS "-mtune=i686 -march=i686 ${CFLAGS}") -SET(CMAKE_CXX_FLAGS "-mtune=i686 -march=i686 ${CFLAGS}") - -SET(CMAKE_FIND_ROOT_PATH ${MASON_XC_ROOT}/root) - -SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) -SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/third_party/mason/scripts/gcc/5.3.0-i686/toolchain.sh b/third_party/mason/scripts/gcc/5.3.0-i686/toolchain.sh deleted file mode 100755 index f744709c9..000000000 --- a/third_party/mason/scripts/gcc/5.3.0-i686/toolchain.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -export MASON_HOST_ARG="--host=i686-pc-linux-gnu" -export MASON_CMAKE_TOOLCHAIN="-DMASON_XC_ROOT=${MASON_XC_ROOT} -DCMAKE_TOOLCHAIN_FILE=${MASON_XC_ROOT}/toolchain.cmake" - -export CXX="${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-g++" -export CC="${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-gcc" -export LD="${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-ld" -export LINK="${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-g++" -export AR="${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-ar" -export RANLIB="${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-ranlib" -export STRIP="${MASON_XC_ROOT}/root/bin/i686-pc-linux-gnu-strip" -export CFLAGS="-mtune=i686 -march=i686 ${CFLAGS}" diff --git a/third_party/mason/scripts/gdal/1.11.1-big-pants/.travis.yml b/third_party/mason/scripts/gdal/1.11.1-big-pants/.travis.yml deleted file mode 100644 index fe39fea31..000000000 --- a/third_party/mason/scripts/gdal/1.11.1-big-pants/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} -- export GDAL_DATA=$(pwd)/mason_packages/.link/share/gdal -- ./mason_packages/.link/bin/ogr2ogr --formats -- if [[ $(uname -s) == 'Darwin' ]]; then otool -L ./mason_packages/.link/bin/ogr2ogr; else ldd ./mason_packages/.link/bin/ogr2ogr; fi; -- ./mason_packages/.link/bin/gdalinfo --formats -- if [[ $(uname -s) == 'Darwin' ]]; then otool -L ./mason_packages/.link/bin/gdalinfo; else ldd ./mason_packages/.link/bin/gdalinfo; fi; - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gdal/1.11.1-big-pants/script.sh b/third_party/mason/scripts/gdal/1.11.1-big-pants/script.sh deleted file mode 100755 index 0c2643825..000000000 --- a/third_party/mason/scripts/gdal/1.11.1-big-pants/script.sh +++ /dev/null @@ -1,157 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gdal -MASON_VERSION=1.11.1-big-pants -MASON_LIB_FILE=lib/libgdal.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - GIT_HASH=54cf139 - mason_download \ - https://github.com/springmeyer/gdal/tarball/${GIT_HASH} \ - fb0057ed8cdfccdfeca0e7ead9b38cdb0188c8e9 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/springmeyer-gdal-${GIT_HASH} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - # set up to fix libtool .la files - # https://github.com/mapbox/mason/issues/61 - if [[ $(uname -s) == 'Darwin' ]]; then - FIND="\/Users\/travis\/build\/mapbox\/mason" - else - FIND="\/home\/travis\/build\/mapbox\/mason" - fi - REPLACE="$(pwd)" - REPLACE=${REPLACE////\\/} - ${MASON_DIR}/mason install libtiff 4.0.4beta - MASON_TIFF=$(${MASON_DIR}/mason prefix libtiff 4.0.4beta) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_TIFF}/lib/libtiff.la - ${MASON_DIR}/mason install proj 4.8.0 - MASON_PROJ=$(${MASON_DIR}/mason prefix proj 4.8.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PROJ}/lib/libproj.la - ${MASON_DIR}/mason install jpeg_turbo 1.4.0 - MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg_turbo 1.4.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_JPEG}/lib/libjpeg.la - ${MASON_DIR}/mason install libpng 1.6.16 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.16) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PNG}/lib/libpng.la - ${MASON_DIR}/mason install expat 2.1.0 - MASON_EXPAT=$(${MASON_DIR}/mason prefix expat 2.1.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_EXPAT}/lib/libexpat.la - ${MASON_DIR}/mason install libpq 9.4.0 - MASON_LIBPQ=$(${MASON_DIR}/mason prefix libpq 9.4.0) - # depends on sudo apt-get install zlib1g-dev - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) - # depends on sudo apt-get install libc6-dev - #${MASON_DIR}/mason install iconv system - #MASON_ICONV=$(${MASON_DIR}/mason prefix iconv system) - export LIBRARY_PATH=${MASON_LIBPQ}/lib:$LIBRARY_PATH -} - -function mason_compile { - cd gdal/ - CUSTOM_LIBS="-L${MASON_TIFF}/lib -ltiff -L${MASON_JPEG}/lib -ljpeg -L${MASON_PROJ}/lib -lproj -L${MASON_PNG}/lib -lpng -L${MASON_EXPAT}/lib -lexpat" - CUSTOM_CFLAGS="${CFLAGS} -I${MASON_LIBPQ}/include -I${MASON_TIFF}/include -I${MASON_JPEG}/include -I${MASON_PROJ}/include -I${MASON_PNG}/include -I${MASON_EXPAT}/include" - - # very custom handling for libpq/postgres support - # forcing our portable static library to be used - MASON_LIBPQ_PATH=${MASON_LIBPQ}/lib/libpq.a - if [[ $(uname -s) == 'Linux' ]]; then - # on Linux passing -Wl will lead to libtool re-positioning libpq.a in the wrong place (no longer after libgdal.a) - # which leads to unresolved symbols - CUSTOM_LDFLAGS="${LDFLAGS} ${MASON_LIBPQ_PATH}" - else - # on OSX not passing -Wl will break libtool archive creation leading to confusing arch errors - CUSTOM_LDFLAGS="${LDFLAGS} -Wl,${MASON_LIBPQ_PATH}" - fi - # we have to remove -lpq otherwise it will trigger linking to system /usr/lib/libpq - perl -i -p -e "s/\-lpq //g;" configure - # on linux -Wl,/path/to/libpq.a still does not work for the configure test - # so we have to force it into LIBS. But we don't do this on OS X since it breaks libtool archive logic - if [[ $(uname -s) == 'Linux' ]]; then - CUSTOM_LIBS="${MASON_LIBPQ}/lib/libpq.a -pthread ${CUSTOM_LIBS}" - fi - - # note: we put ${STDLIB_CXXFLAGS} into CXX instead of LDFLAGS due to libtool oddity: - # http://stackoverflow.com/questions/16248360/autotools-libtool-link-library-with-libstdc-despite-stdlib-libc-option-pass - if [[ $(uname -s) == 'Darwin' ]]; then - CXX="${CXX} -stdlib=libc++ -std=c++11" - fi - - # note: it might be tempting to build with --without-libtool - # but I find that will only lead to a shared libgdal.so and will - # not produce a static library even if --enable-static is passed - LIBS="${CUSTOM_LIBS}" LDFLAGS="${CUSTOM_LDFLAGS}" CFLAGS="${CUSTOM_CFLAGS}" ./configure \ - --enable-static --disable-shared \ - ${MASON_HOST_ARG} \ - --prefix=${MASON_PREFIX} \ - --with-libz=${MASON_ZLIB} \ - --disable-rpath \ - --with-libjson-c=internal \ - --with-geotiff=internal \ - --with-expat=${MASON_EXPAT} \ - --with-threads=yes \ - --with-fgdb=no \ - --with-rename-internal-libtiff-symbols=no \ - --with-rename-internal-libgeotiff-symbols=no \ - --with-hide-internal-symbols=yes \ - --with-libtiff=${MASON_TIFF} \ - --with-jpeg=${MASON_JPEG} \ - --with-png=${MASON_PNG} \ - --with-pg=${MASON_LIBPQ}/bin/pg_config \ - --with-static-proj4=${MASON_PROJ} \ - --with-spatialite=no \ - --with-geos=no \ - --with-sqlite3=no \ - --with-curl=no \ - --with-xml2=no \ - --with-pcraster=no \ - --with-cfitsio=no \ - --with-odbc=no \ - --with-libkml=no \ - --with-pcidsk=no \ - --with-jasper=no \ - --with-gif=no \ - --with-grib=no \ - --with-freexl=no \ - --with-avx=no \ - --with-sse=no \ - --with-perl=no \ - --with-ruby=no \ - --with-python=no \ - --with-java=no \ - --with-podofo=no \ - --with-pam \ - --with-webp=no \ - --with-pcre=no \ - --with-liblzma=no \ - --with-netcdf=no \ - --with-poppler=no - - make -j${MASON_CONCURRENCY} - make install - - # attempt to make paths relative in gdal-config - python -c "data=open('$MASON_PREFIX/bin/gdal-config','r').read();open('$MASON_PREFIX/bin/gdal-config','w').write(data.replace('$MASON_PREFIX','\$( cd \"\$( dirname \$( dirname \"\$0\" ))\" && pwd )'))" - cat $MASON_PREFIX/bin/gdal-config -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include/gdal" -} - -function mason_ldflags { - echo $(${MASON_PREFIX}/bin/gdal-config --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gdal/1.11.1/.travis.yml b/third_party/mason/scripts/gdal/1.11.1/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/gdal/1.11.1/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gdal/1.11.1/patch.diff b/third_party/mason/scripts/gdal/1.11.1/patch.diff deleted file mode 100644 index 50faffae1..000000000 --- a/third_party/mason/scripts/gdal/1.11.1/patch.diff +++ /dev/null @@ -1,277 +0,0 @@ -diff --git a/GDALmake.opt.in b/GDALmake.opt.in -index 82525d9..413b8bc 100644 ---- a/GDALmake.opt.in -+++ b/GDALmake.opt.in -@@ -474,14 +474,7 @@ FREEXL_INCLUDE = @FREEXL_INCLUDE@ - # and their uppercase form should be the format portion of the - # format registration entry point. eg. gdb -> GDALRegister_GDB(). - # --GDAL_FORMATS = gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm \ -- sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b \ -- nitf bmp pcidsk airsar rs2 ilwis rmf leveller sgi srtmhgt \ -- idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg \ -- coasp tsx terragen blx msgn til r northwood saga xyz hf2 \ -- kmlsuperoverlay ctg e00grid zmap ngsgeoid iris map\ -- @OPT_GDAL_FORMATS@ -- -+GDAL_FORMATS = vrt gtiff hfa mem raw @OPT_GDAL_FORMATS@ - - ifneq ($(LIBZ_SETTING),no) - GDAL_FORMATS := $(GDAL_FORMATS) rik ozi pdf -diff --git a/ogr/ogrsf_frmts/GNUmakefile b/ogr/ogrsf_frmts/GNUmakefile -index f3f8585..c3f9fde 100644 ---- a/ogr/ogrsf_frmts/GNUmakefile -+++ b/ogr/ogrsf_frmts/GNUmakefile -@@ -2,44 +2,8 @@ - include ../../GDALmake.opt - - SUBDIRS-yes := \ -- generic avc bna csv dgn geojson gml gmt mem kml \ -- mitab ntf gpx rec s57 sdts shape tiger vrt \ -- geoconcept xplane georss gtm dxf pgdump gpsbabel \ -- sua openair pds htf aeronavfaa edigeo svg idrisi \ -- arcgen segukooa segy sxf openfilegdb wasp -- --SUBDIRS-$(HAVE_DODS) += dods --SUBDIRS-$(HAVE_DWGDIRECT) += dxfdwg --SUBDIRS-$(HAVE_FME) += fme --SUBDIRS-$(HAVE_GRASS) += grass --SUBDIRS-$(HAVE_IDB) += idb --SUBDIRS-$(HAVE_XERCES) += ili --SUBDIRS-$(HAVE_NAS) += nas --SUBDIRS-$(HAVE_MYSQL) += mysql --SUBDIRS-$(ODBC_SETTING) += odbc pgeo mssqlspatial geomedia walk --SUBDIRS-$(HAVE_OGDI) += ogdi --SUBDIRS-$(HAVE_OCI) += oci --SUBDIRS-$(HAVE_OGR_PG) += pg --SUBDIRS-$(HAVE_SQLITE) += sqlite --SUBDIRS-$(HAVE_SDE) += sde --SUBDIRS-$(HAVE_FGDB) += filegdb --SUBDIRS-$(HAVE_ARCOBJECTS) += arcobjects --SUBDIRS-$(HAVE_INGRES) += ingres --SUBDIRS-$(HAVE_SQLITE) += vfk --SUBDIRS-$(HAVE_LIBKML) += libkml --SUBDIRS-$(CURL_SETTING) += wfs --SUBDIRS-$(MDB_ENABLED) += mdb --SUBDIRS-$(CURL_SETTING) += gft --SUBDIRS-$(CURL_SETTING) += gme --SUBDIRS-$(CURL_SETTING) += couchdb --SUBDIRS-$(HAVE_FREEXL) += xls --SUBDIRS-$(HAVE_EXPAT) += ods --SUBDIRS-$(HAVE_EXPAT) += xlsx --SUBDIRS-$(CURL_SETTING) += elastic --SUBDIRS-$(HAVE_SQLITE) += gpkg --SUBDIRS-$(HAVE_SQLITE) += osm --SUBDIRS-$(HAVE_SOSI) += sosi --SUBDIRS-$(CURL_SETTING) += cartodb -+ generic csv geojson mem kml \ -+ gpx shape vrt openfilegdb mitab - - ifeq ($(PCIDSK_SETTING),internal) - SUBDIRS-yes += pcidsk -diff --git a/ogr/ogrsf_frmts/generic/GNUmakefile b/ogr/ogrsf_frmts/generic/GNUmakefile -index 7c6d5fd..c63b8d3 100644 ---- a/ogr/ogrsf_frmts/generic/GNUmakefile -+++ b/ogr/ogrsf_frmts/generic/GNUmakefile -@@ -9,200 +9,18 @@ OBJ = ogrsfdriverregistrar.o ogrlayer.o ogrdatasource.o \ - ogrmutexedlayer.o ogrmutexeddatasource.o - - BASEFORMATS = \ -- -DAVCBIN_ENABLED \ -- -DBNA_ENABLED \ - -DCSV_ENABLED \ -- -DDGN_ENABLED \ -- -DGML_ENABLED \ -- -DGMT_ENABLED \ - -DGPX_ENABLED \ - -DMEM_ENABLED \ -- -DNTF_ENABLED \ -- -DREC_ENABLED \ -- -DS57_ENABLED \ -- -DSDTS_ENABLED \ - -DSHAPE_ENABLED \ - -DTAB_ENABLED \ -- -DTIGER_ENABLED \ - -DVRT_ENABLED \ - -DKML_ENABLED \ - -DGEOJSON_ENABLED \ -- -DGEOCONCEPT_ENABLED \ -- -DXPLANE_ENABLED \ -- -DGEORSS_ENABLED \ -- -DGTM_ENABLED \ -- -DDXF_ENABLED \ -- -DPGDUMP_ENABLED \ -- -DGPSBABEL_ENABLED \ -- -DSUA_ENABLED \ -- -DOPENAIR_ENABLED \ -- -DPDS_ENABLED \ -- -DHTF_ENABLED \ -- -DAERONAVFAA_ENABLED \ -- -DEDIGEO_ENABLED \ -- -DSVG_ENABLED \ -- -DIDRISI_ENABLED \ -- -DARCGEN_ENABLED \ -- -DSEGUKOOA_ENABLED \ -- -DSEGY_ENABLED \ -- -DSXF_ENABLED \ -- -DOPENFILEGDB_ENABLED \ -- -DWASP_ENABLED -+ -DOPENFILEGDB_ENABLED - - CXXFLAGS := $(CXXFLAGS) -DINST_DATA=\"$(INST_DATA)\" $(BASEFORMATS) - --ifeq ($(HAVE_OGDI),yes) --CXXFLAGS := $(CXXFLAGS) -DOGDI_ENABLED --endif -- --ifeq ($(HAVE_OCI),yes) --CXXFLAGS := $(CXXFLAGS) -DOCI_ENABLED --endif -- --ifeq ($(HAVE_SDE),yes) --CXXFLAGS := $(CXXFLAGS) -DSDE_ENABLED --endif -- --ifeq ($(HAVE_FGDB),yes) --CXXFLAGS := $(CXXFLAGS) -DFGDB_ENABLED --endif -- --ifeq ($(HAVE_OGR_PG),yes) --CXXFLAGS := $(CXXFLAGS) -DPG_ENABLED --endif -- --ifeq ($(HAVE_MYSQL),yes) --CXXFLAGS := $(CXXFLAGS) -DMYSQL_ENABLED --endif -- --ifeq ($(HAVE_INGRES),yes) --CXXFLAGS := $(CXXFLAGS) -DINGRES_ENABLED --endif -- --ifeq ($(PCIDSK_SETTING),internal) --CXXFLAGS := $(CXXFLAGS) -DPCIDSK_ENABLED --endif -- --ifeq ($(PCIDSK_SETTING),external) --CXXFLAGS := $(CXXFLAGS) -DPCIDSK_ENABLED --endif -- --ifeq ($(HAVE_FME),yes) --CXXFLAGS := $(CXXFLAGS) -DFME_ENABLED --endif -- --ifeq ($(ODBC_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DODBC_ENABLED --endif -- --ifeq ($(PGEO_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DPGEO_ENABLED --endif -- --ifeq ($(MSSQLSPATIAL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DMSSQLSPATIAL_ENABLED --endif -- --ifeq ($(HAVE_DODS),yes) --CXXFLAGS := $(CXXFLAGS) -DDODS_ENABLED --endif -- --ifeq ($(HAVE_SQLITE),yes) --CXXFLAGS := $(CXXFLAGS) -DSQLITE_ENABLED --endif -- --ifeq ($(HAVE_GRASS),yes) --CXXFLAGS := $(CXXFLAGS) -DGRASS_ENABLED --endif -- --ifeq ($(HAVE_XERCES),yes) --CXXFLAGS := $(CXXFLAGS) -DILI_ENABLED --endif -- --ifeq ($(HAVE_NAS),yes) --CXXFLAGS := $(CXXFLAGS) -DNAS_ENABLED --endif -- --ifeq ($(HAVE_LIBKML),yes) --CXXFLAGS := $(CXXFLAGS) -DLIBKML_ENABLED --endif -- --ifeq ($(HAVE_DWGDIRECT),yes) --CXXFLAGS := $(CXXFLAGS) -DDWGDIRECT_ENABLED --endif -- --ifeq ($(HAVE_IDB),yes) --CXXFLAGS := $(CXXFLAGS) -DIDB_ENABLED --endif -- --ifeq ($(HAVE_PANORAMA),yes) --CXXFLAGS := $(CXXFLAGS) -DPANORAMA_ENABLED --endif -- --ifeq ($(HAVE_SOSI),yes) --CXXFLAGS := $(CXXFLAGS) -DSOSI_ENABLED --endif -- --ifeq ($(HAVE_SQLITE),yes) --CXXFLAGS := $(CXXFLAGS) -DVFK_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DWFS_ENABLED --endif -- --ifeq ($(GEOMEDIA_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DGEOMEDIA_ENABLED --endif -- --ifeq ($(MDB_ENABLED),yes) --CXXFLAGS := $(CXXFLAGS) -DMDB_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DGFT_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DGME_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DCOUCHDB_ENABLED --endif -- --ifeq ($(HAVE_FREEXL),yes) --CXXFLAGS := $(CXXFLAGS) -DFREEXL_ENABLED --endif -- --ifeq ($(HAVE_EXPAT),yes) --CXXFLAGS := $(CXXFLAGS) -DODS_ENABLED --endif -- --ifeq ($(HAVE_EXPAT),yes) --CXXFLAGS := $(CXXFLAGS) -DXLSX_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DELASTIC_ENABLED --endif -- --ifeq ($(HAVE_SQLITE),yes) --CXXFLAGS := $(CXXFLAGS) -DOSM_ENABLED --endif -- --ifneq ($(LIBZ_SETTING),no) --CXXFLAGS := $(CXXFLAGS) -DPDF_ENABLED --endif -- --ifeq ($(ODBC_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DWALK_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DCARTODB_ENABLED --endif -- - CPPFLAGS := -I.. -I../.. $(GDAL_INCLUDE) $(CPPFLAGS) - - default: $(O_OBJ:.o=.$(OBJ_EXT)) diff --git a/third_party/mason/scripts/gdal/1.11.1/script.sh b/third_party/mason/scripts/gdal/1.11.1/script.sh deleted file mode 100755 index e227185b8..000000000 --- a/third_party/mason/scripts/gdal/1.11.1/script.sh +++ /dev/null @@ -1,130 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gdal -MASON_VERSION=1.11.1 -MASON_LIB_FILE=lib/libgdal.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/gdal/${MASON_VERSION}/gdal-${MASON_VERSION}.tar.gz \ - 6a06e527e6a5abd565a67f84caadf9f891e5f49b - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - # set up to fix libtool .la files - # https://github.com/mapbox/mason/issues/61 - FIND="\/Users\/travis\/build\/mapbox\/mason" - REPLACE="$(pwd)" - REPLACE=${REPLACE////\\/} - ${MASON_DIR}/mason install libtiff 4.0.4beta - MASON_TIFF=$(${MASON_DIR}/mason prefix libtiff 4.0.4beta) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_TIFF}/lib/libtiff.la - ${MASON_DIR}/mason install proj 4.8.0 - MASON_PROJ=$(${MASON_DIR}/mason prefix proj 4.8.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PROJ}/lib/libproj.la - ${MASON_DIR}/mason install jpeg_turbo 1.4.0 - MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg_turbo 1.4.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_JPEG}/lib/libjpeg.la - ${MASON_DIR}/mason install libpng 1.6.16 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.16) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PNG}/lib/libpng.la - ${MASON_DIR}/mason install expat 2.1.0 - MASON_EXPAT=$(${MASON_DIR}/mason prefix expat 2.1.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_EXPAT}/lib/libexpat.la - # depends on sudo apt-get install zlib1g-dev - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) -} - -function mason_compile { - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p1 < ./patch.diff - CUSTOM_LIBS="-L${MASON_TIFF}/lib -ltiff -L${MASON_JPEG}/lib -ljpeg -L${MASON_PROJ}/lib -lproj -L${MASON_PNG}/lib -lpng -L${MASON_EXPAT}/lib -lexpat" - CUSTOM_CFLAGS="${CFLAGS} -I${MASON_LIBPQ}/include -I${MASON_TIFF}/include -I${MASON_JPEG}/include -I${MASON_PROJ}/include -I${MASON_PNG}/include -I${MASON_EXPAT}/include" - CUSTOM_LDFLAGS="${LDFLAGS}" - # note: it might be tempting to build with --without-libtool - # but I find that will only lead to a static libgdal.a and will - # not produce a shared library no matter if --enable-shared is passed - - # note: we put ${STDLIB_CXXFLAGS} into CXX instead of LDFLAGS due to libtool oddity: - # http://stackoverflow.com/questions/16248360/autotools-libtool-link-library-with-libstdc-despite-stdlib-libc-option-pass - if [[ $(uname -s) == 'Darwin' ]]; then - CXX="${CXX} -stdlib=libc++ -std=c++11" - fi - - LIBS="${CUSTOM_LIBS}" LDFLAGS="${CUSTOM_LDFLAGS}" CFLAGS="${CUSTOM_CFLAGS}" ./configure \ - --enable-static --disable-shared \ - ${MASON_HOST_ARG} \ - --prefix=${MASON_PREFIX} \ - --with-libz=/usr/ \ - --disable-rpath \ - --with-libjson-c=internal \ - --with-geotiff=internal \ - --with-expat=${MASON_EXPAT} \ - --with-threads=yes \ - --with-fgdb=no \ - --with-rename-internal-libtiff-symbols=no \ - --with-rename-internal-libgeotiff-symbols=no \ - --with-hide-internal-symbols=yes \ - --with-libtiff=${MASON_TIFF} \ - --with-jpeg=${MASON_JPEG} \ - --with-png=${MASON_PNG} \ - --with-static-proj4=${MASON_PROJ} \ - --with-spatialite=no \ - --with-geos=no \ - --with-sqlite3=no \ - --with-curl=no \ - --with-xml2=no \ - --with-pcraster=no \ - --with-cfitsio=no \ - --with-odbc=no \ - --with-libkml=no \ - --with-pcidsk=no \ - --with-jasper=no \ - --with-gif=no \ - --with-pg=no \ - --with-grib=no \ - --with-freexl=no \ - --with-avx=no \ - --with-sse=no \ - --with-perl=no \ - --with-ruby=no \ - --with-python=no \ - --with-java=no \ - --with-podofo=no \ - --without-pam \ - --with-webp=no \ - --with-pcre=no \ - --with-lzma=no - - make -j${MASON_CONCURRENCY} - make install - - # attempt to make paths relative in gdal-config - python -c "data=open('$MASON_PREFIX/bin/gdal-config','r').read();open('$MASON_PREFIX/bin/gdal-config','w').write(data.replace('$MASON_PREFIX','\$( cd \"\$( dirname \$( dirname \"\$0\" ))\" && pwd )'))" - cat $MASON_PREFIX/bin/gdal-config -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include/gdal" -} - -function mason_ldflags { - echo $(${MASON_PREFIX}/bin/gdal-config --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gdal/1.11.2/.travis.yml b/third_party/mason/scripts/gdal/1.11.2/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/gdal/1.11.2/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gdal/1.11.2/patch.diff b/third_party/mason/scripts/gdal/1.11.2/patch.diff deleted file mode 100644 index 50faffae1..000000000 --- a/third_party/mason/scripts/gdal/1.11.2/patch.diff +++ /dev/null @@ -1,277 +0,0 @@ -diff --git a/GDALmake.opt.in b/GDALmake.opt.in -index 82525d9..413b8bc 100644 ---- a/GDALmake.opt.in -+++ b/GDALmake.opt.in -@@ -474,14 +474,7 @@ FREEXL_INCLUDE = @FREEXL_INCLUDE@ - # and their uppercase form should be the format portion of the - # format registration entry point. eg. gdb -> GDALRegister_GDB(). - # --GDAL_FORMATS = gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm \ -- sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b \ -- nitf bmp pcidsk airsar rs2 ilwis rmf leveller sgi srtmhgt \ -- idrisi gsg ingr ers jaxapalsar dimap gff cosar pds adrg \ -- coasp tsx terragen blx msgn til r northwood saga xyz hf2 \ -- kmlsuperoverlay ctg e00grid zmap ngsgeoid iris map\ -- @OPT_GDAL_FORMATS@ -- -+GDAL_FORMATS = vrt gtiff hfa mem raw @OPT_GDAL_FORMATS@ - - ifneq ($(LIBZ_SETTING),no) - GDAL_FORMATS := $(GDAL_FORMATS) rik ozi pdf -diff --git a/ogr/ogrsf_frmts/GNUmakefile b/ogr/ogrsf_frmts/GNUmakefile -index f3f8585..c3f9fde 100644 ---- a/ogr/ogrsf_frmts/GNUmakefile -+++ b/ogr/ogrsf_frmts/GNUmakefile -@@ -2,44 +2,8 @@ - include ../../GDALmake.opt - - SUBDIRS-yes := \ -- generic avc bna csv dgn geojson gml gmt mem kml \ -- mitab ntf gpx rec s57 sdts shape tiger vrt \ -- geoconcept xplane georss gtm dxf pgdump gpsbabel \ -- sua openair pds htf aeronavfaa edigeo svg idrisi \ -- arcgen segukooa segy sxf openfilegdb wasp -- --SUBDIRS-$(HAVE_DODS) += dods --SUBDIRS-$(HAVE_DWGDIRECT) += dxfdwg --SUBDIRS-$(HAVE_FME) += fme --SUBDIRS-$(HAVE_GRASS) += grass --SUBDIRS-$(HAVE_IDB) += idb --SUBDIRS-$(HAVE_XERCES) += ili --SUBDIRS-$(HAVE_NAS) += nas --SUBDIRS-$(HAVE_MYSQL) += mysql --SUBDIRS-$(ODBC_SETTING) += odbc pgeo mssqlspatial geomedia walk --SUBDIRS-$(HAVE_OGDI) += ogdi --SUBDIRS-$(HAVE_OCI) += oci --SUBDIRS-$(HAVE_OGR_PG) += pg --SUBDIRS-$(HAVE_SQLITE) += sqlite --SUBDIRS-$(HAVE_SDE) += sde --SUBDIRS-$(HAVE_FGDB) += filegdb --SUBDIRS-$(HAVE_ARCOBJECTS) += arcobjects --SUBDIRS-$(HAVE_INGRES) += ingres --SUBDIRS-$(HAVE_SQLITE) += vfk --SUBDIRS-$(HAVE_LIBKML) += libkml --SUBDIRS-$(CURL_SETTING) += wfs --SUBDIRS-$(MDB_ENABLED) += mdb --SUBDIRS-$(CURL_SETTING) += gft --SUBDIRS-$(CURL_SETTING) += gme --SUBDIRS-$(CURL_SETTING) += couchdb --SUBDIRS-$(HAVE_FREEXL) += xls --SUBDIRS-$(HAVE_EXPAT) += ods --SUBDIRS-$(HAVE_EXPAT) += xlsx --SUBDIRS-$(CURL_SETTING) += elastic --SUBDIRS-$(HAVE_SQLITE) += gpkg --SUBDIRS-$(HAVE_SQLITE) += osm --SUBDIRS-$(HAVE_SOSI) += sosi --SUBDIRS-$(CURL_SETTING) += cartodb -+ generic csv geojson mem kml \ -+ gpx shape vrt openfilegdb mitab - - ifeq ($(PCIDSK_SETTING),internal) - SUBDIRS-yes += pcidsk -diff --git a/ogr/ogrsf_frmts/generic/GNUmakefile b/ogr/ogrsf_frmts/generic/GNUmakefile -index 7c6d5fd..c63b8d3 100644 ---- a/ogr/ogrsf_frmts/generic/GNUmakefile -+++ b/ogr/ogrsf_frmts/generic/GNUmakefile -@@ -9,200 +9,18 @@ OBJ = ogrsfdriverregistrar.o ogrlayer.o ogrdatasource.o \ - ogrmutexedlayer.o ogrmutexeddatasource.o - - BASEFORMATS = \ -- -DAVCBIN_ENABLED \ -- -DBNA_ENABLED \ - -DCSV_ENABLED \ -- -DDGN_ENABLED \ -- -DGML_ENABLED \ -- -DGMT_ENABLED \ - -DGPX_ENABLED \ - -DMEM_ENABLED \ -- -DNTF_ENABLED \ -- -DREC_ENABLED \ -- -DS57_ENABLED \ -- -DSDTS_ENABLED \ - -DSHAPE_ENABLED \ - -DTAB_ENABLED \ -- -DTIGER_ENABLED \ - -DVRT_ENABLED \ - -DKML_ENABLED \ - -DGEOJSON_ENABLED \ -- -DGEOCONCEPT_ENABLED \ -- -DXPLANE_ENABLED \ -- -DGEORSS_ENABLED \ -- -DGTM_ENABLED \ -- -DDXF_ENABLED \ -- -DPGDUMP_ENABLED \ -- -DGPSBABEL_ENABLED \ -- -DSUA_ENABLED \ -- -DOPENAIR_ENABLED \ -- -DPDS_ENABLED \ -- -DHTF_ENABLED \ -- -DAERONAVFAA_ENABLED \ -- -DEDIGEO_ENABLED \ -- -DSVG_ENABLED \ -- -DIDRISI_ENABLED \ -- -DARCGEN_ENABLED \ -- -DSEGUKOOA_ENABLED \ -- -DSEGY_ENABLED \ -- -DSXF_ENABLED \ -- -DOPENFILEGDB_ENABLED \ -- -DWASP_ENABLED -+ -DOPENFILEGDB_ENABLED - - CXXFLAGS := $(CXXFLAGS) -DINST_DATA=\"$(INST_DATA)\" $(BASEFORMATS) - --ifeq ($(HAVE_OGDI),yes) --CXXFLAGS := $(CXXFLAGS) -DOGDI_ENABLED --endif -- --ifeq ($(HAVE_OCI),yes) --CXXFLAGS := $(CXXFLAGS) -DOCI_ENABLED --endif -- --ifeq ($(HAVE_SDE),yes) --CXXFLAGS := $(CXXFLAGS) -DSDE_ENABLED --endif -- --ifeq ($(HAVE_FGDB),yes) --CXXFLAGS := $(CXXFLAGS) -DFGDB_ENABLED --endif -- --ifeq ($(HAVE_OGR_PG),yes) --CXXFLAGS := $(CXXFLAGS) -DPG_ENABLED --endif -- --ifeq ($(HAVE_MYSQL),yes) --CXXFLAGS := $(CXXFLAGS) -DMYSQL_ENABLED --endif -- --ifeq ($(HAVE_INGRES),yes) --CXXFLAGS := $(CXXFLAGS) -DINGRES_ENABLED --endif -- --ifeq ($(PCIDSK_SETTING),internal) --CXXFLAGS := $(CXXFLAGS) -DPCIDSK_ENABLED --endif -- --ifeq ($(PCIDSK_SETTING),external) --CXXFLAGS := $(CXXFLAGS) -DPCIDSK_ENABLED --endif -- --ifeq ($(HAVE_FME),yes) --CXXFLAGS := $(CXXFLAGS) -DFME_ENABLED --endif -- --ifeq ($(ODBC_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DODBC_ENABLED --endif -- --ifeq ($(PGEO_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DPGEO_ENABLED --endif -- --ifeq ($(MSSQLSPATIAL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DMSSQLSPATIAL_ENABLED --endif -- --ifeq ($(HAVE_DODS),yes) --CXXFLAGS := $(CXXFLAGS) -DDODS_ENABLED --endif -- --ifeq ($(HAVE_SQLITE),yes) --CXXFLAGS := $(CXXFLAGS) -DSQLITE_ENABLED --endif -- --ifeq ($(HAVE_GRASS),yes) --CXXFLAGS := $(CXXFLAGS) -DGRASS_ENABLED --endif -- --ifeq ($(HAVE_XERCES),yes) --CXXFLAGS := $(CXXFLAGS) -DILI_ENABLED --endif -- --ifeq ($(HAVE_NAS),yes) --CXXFLAGS := $(CXXFLAGS) -DNAS_ENABLED --endif -- --ifeq ($(HAVE_LIBKML),yes) --CXXFLAGS := $(CXXFLAGS) -DLIBKML_ENABLED --endif -- --ifeq ($(HAVE_DWGDIRECT),yes) --CXXFLAGS := $(CXXFLAGS) -DDWGDIRECT_ENABLED --endif -- --ifeq ($(HAVE_IDB),yes) --CXXFLAGS := $(CXXFLAGS) -DIDB_ENABLED --endif -- --ifeq ($(HAVE_PANORAMA),yes) --CXXFLAGS := $(CXXFLAGS) -DPANORAMA_ENABLED --endif -- --ifeq ($(HAVE_SOSI),yes) --CXXFLAGS := $(CXXFLAGS) -DSOSI_ENABLED --endif -- --ifeq ($(HAVE_SQLITE),yes) --CXXFLAGS := $(CXXFLAGS) -DVFK_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DWFS_ENABLED --endif -- --ifeq ($(GEOMEDIA_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DGEOMEDIA_ENABLED --endif -- --ifeq ($(MDB_ENABLED),yes) --CXXFLAGS := $(CXXFLAGS) -DMDB_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DGFT_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DGME_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DCOUCHDB_ENABLED --endif -- --ifeq ($(HAVE_FREEXL),yes) --CXXFLAGS := $(CXXFLAGS) -DFREEXL_ENABLED --endif -- --ifeq ($(HAVE_EXPAT),yes) --CXXFLAGS := $(CXXFLAGS) -DODS_ENABLED --endif -- --ifeq ($(HAVE_EXPAT),yes) --CXXFLAGS := $(CXXFLAGS) -DXLSX_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DELASTIC_ENABLED --endif -- --ifeq ($(HAVE_SQLITE),yes) --CXXFLAGS := $(CXXFLAGS) -DOSM_ENABLED --endif -- --ifneq ($(LIBZ_SETTING),no) --CXXFLAGS := $(CXXFLAGS) -DPDF_ENABLED --endif -- --ifeq ($(ODBC_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DWALK_ENABLED --endif -- --ifeq ($(CURL_SETTING),yes) --CXXFLAGS := $(CXXFLAGS) -DCARTODB_ENABLED --endif -- - CPPFLAGS := -I.. -I../.. $(GDAL_INCLUDE) $(CPPFLAGS) - - default: $(O_OBJ:.o=.$(OBJ_EXT)) diff --git a/third_party/mason/scripts/gdal/1.11.2/script.sh b/third_party/mason/scripts/gdal/1.11.2/script.sh deleted file mode 100755 index d1f04ba01..000000000 --- a/third_party/mason/scripts/gdal/1.11.2/script.sh +++ /dev/null @@ -1,130 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gdal -MASON_VERSION=1.11.2 -MASON_LIB_FILE=lib/libgdal.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/gdal/${MASON_VERSION}/gdal-${MASON_VERSION}.tar.gz \ - 50660f82fb01ff1c97f6342a3fbbe5bdc6d01b09 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - # set up to fix libtool .la files - # https://github.com/mapbox/mason/issues/61 - FIND="\/Users\/travis\/build\/mapbox\/mason" - REPLACE="$(pwd)" - REPLACE=${REPLACE////\\/} - ${MASON_DIR}/mason install libtiff 4.0.4beta - MASON_TIFF=$(${MASON_DIR}/mason prefix libtiff 4.0.4beta) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_TIFF}/lib/libtiff.la - ${MASON_DIR}/mason install proj 4.8.0 - MASON_PROJ=$(${MASON_DIR}/mason prefix proj 4.8.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PROJ}/lib/libproj.la - ${MASON_DIR}/mason install jpeg_turbo 1.4.0 - MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg_turbo 1.4.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_JPEG}/lib/libjpeg.la - ${MASON_DIR}/mason install libpng 1.6.20 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.20) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PNG}/lib/libpng.la - ${MASON_DIR}/mason install expat 2.1.0 - MASON_EXPAT=$(${MASON_DIR}/mason prefix expat 2.1.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_EXPAT}/lib/libexpat.la - # depends on sudo apt-get install zlib1g-dev - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) -} - -function mason_compile { - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p1 < ./patch.diff - CUSTOM_LIBS="-L${MASON_TIFF}/lib -ltiff -L${MASON_JPEG}/lib -ljpeg -L${MASON_PROJ}/lib -lproj -L${MASON_PNG}/lib -lpng -L${MASON_EXPAT}/lib -lexpat" - CUSTOM_CFLAGS="${CFLAGS} -I${MASON_LIBPQ}/include -I${MASON_TIFF}/include -I${MASON_JPEG}/include -I${MASON_PROJ}/include -I${MASON_PNG}/include -I${MASON_EXPAT}/include" - CUSTOM_LDFLAGS="${LDFLAGS}" - # note: it might be tempting to build with --without-libtool - # but I find that will only lead to a static libgdal.a and will - # not produce a shared library no matter if --enable-shared is passed - - # note: we put ${STDLIB_CXXFLAGS} into CXX instead of LDFLAGS due to libtool oddity: - # http://stackoverflow.com/questions/16248360/autotools-libtool-link-library-with-libstdc-despite-stdlib-libc-option-pass - if [[ $(uname -s) == 'Darwin' ]]; then - CXX="${CXX} -stdlib=libc++ -std=c++11" - fi - - LIBS="${CUSTOM_LIBS}" LDFLAGS="${CUSTOM_LDFLAGS}" CFLAGS="${CUSTOM_CFLAGS}" ./configure \ - --enable-static --disable-shared \ - ${MASON_HOST_ARG} \ - --prefix=${MASON_PREFIX} \ - --with-libz=/usr/ \ - --disable-rpath \ - --with-libjson-c=internal \ - --with-geotiff=internal \ - --with-expat=${MASON_EXPAT} \ - --with-threads=yes \ - --with-fgdb=no \ - --with-rename-internal-libtiff-symbols=no \ - --with-rename-internal-libgeotiff-symbols=no \ - --with-hide-internal-symbols=yes \ - --with-libtiff=${MASON_TIFF} \ - --with-jpeg=${MASON_JPEG} \ - --with-png=${MASON_PNG} \ - --with-static-proj4=${MASON_PROJ} \ - --with-spatialite=no \ - --with-geos=no \ - --with-sqlite3=no \ - --with-curl=no \ - --with-xml2=no \ - --with-pcraster=no \ - --with-cfitsio=no \ - --with-odbc=no \ - --with-libkml=no \ - --with-pcidsk=no \ - --with-jasper=no \ - --with-gif=no \ - --with-pg=no \ - --with-grib=no \ - --with-freexl=no \ - --with-avx=no \ - --with-sse=no \ - --with-perl=no \ - --with-ruby=no \ - --with-python=no \ - --with-java=no \ - --with-podofo=no \ - --without-pam \ - --with-webp=no \ - --with-pcre=no \ - --with-lzma=no - - make -j${MASON_CONCURRENCY} - make install - - # attempt to make paths relative in gdal-config - python -c "data=open('$MASON_PREFIX/bin/gdal-config','r').read();open('$MASON_PREFIX/bin/gdal-config','w').write(data.replace('$MASON_PREFIX','\$( cd \"\$( dirname \$( dirname \"\$0\" ))\" && pwd )'))" - cat $MASON_PREFIX/bin/gdal-config -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include/gdal" -} - -function mason_ldflags { - echo $(${MASON_PREFIX}/bin/gdal-config --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gdal/2.0.2/.travis.yml b/third_party/mason/scripts/gdal/2.0.2/.travis.yml deleted file mode 100644 index 1efa010c8..000000000 --- a/third_party/mason/scripts/gdal/2.0.2/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: clang - env: CXX=clang++-3.5 CC=clang-3.5 - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} -- export GDAL_DATA=$(pwd)/mason_packages/.link/share/gdal -- ./mason_packages/.link/bin/ogr2ogr --formats -- if [[ $(uname -s) == 'Darwin' ]]; then otool -L ./mason_packages/.link/bin/ogr2ogr; else ldd ./mason_packages/.link/bin/ogr2ogr; fi; -- ./mason_packages/.link/bin/gdalinfo --formats -- if [[ $(uname -s) == 'Darwin' ]]; then otool -L ./mason_packages/.link/bin/gdalinfo; else ldd ./mason_packages/.link/bin/gdalinfo; fi; - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gdal/2.0.2/patch.diff b/third_party/mason/scripts/gdal/2.0.2/patch.diff deleted file mode 100644 index 963ad16f9..000000000 --- a/third_party/mason/scripts/gdal/2.0.2/patch.diff +++ /dev/null @@ -1,133 +0,0 @@ -diff --git a/apps/GNUmakefile b/apps/GNUmakefile -index 2f6b749..7d8059c 100644 ---- a/apps/GNUmakefile -+++ b/apps/GNUmakefile -@@ -44,97 +44,97 @@ lib-depend: - (cd ../port ; $(MAKE) ) - - gdalinfo$(EXE): gdalinfo.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalserver$(EXE): gdalserver.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_translate$(EXE): gdal_translate.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaladdo$(EXE): gdaladdo.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalwarp$(EXE): gdalwarp.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_contour$(EXE): gdal_contour.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - nearblack$(EXE): nearblack.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalmanage$(EXE): gdalmanage.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_rasterize$(EXE): gdal_rasterize.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaltindex$(EXE): gdaltindex.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalbuildvrt$(EXE): gdalbuildvrt.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - multireadtest$(EXE): multireadtest.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - dumpoverviews$(EXE): dumpoverviews.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalenhance$(EXE): gdalenhance.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaldem$(EXE): gdaldem.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_grid$(EXE): gdal_grid.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalwarpsimple$(EXE): gdalwarpsimple.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaltransform$(EXE): gdaltransform.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdallocationinfo$(EXE): gdallocationinfo.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalsrsinfo$(EXE): gdalsrsinfo.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalflattenmask$(EXE): gdalflattenmask.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaltorture$(EXE): gdaltorture.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal2ogr$(EXE): gdal2ogr.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogrinfo$(EXE): ogrinfo.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogrlineref$(EXE): ogrlineref.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogr2ogr$(EXE): ogr2ogr.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - testepsg$(EXE): testepsg.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogrtindex$(EXE): ogrtindex.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - test_ogrsf$(EXE): test_ogrsf.$(OBJ_EXT) commonutils.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< commonutils.$(OBJ_EXT) $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalasyncread$(EXE): gdalasyncread.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - testreprojmulti$(EXE): testreprojmulti.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - clean: - $(RM) *.o $(BIN_LIST) core gdal-config gdal-config-inst diff --git a/third_party/mason/scripts/gdal/2.0.2/script.sh b/third_party/mason/scripts/gdal/2.0.2/script.sh deleted file mode 100755 index dbf9e8052..000000000 --- a/third_party/mason/scripts/gdal/2.0.2/script.sh +++ /dev/null @@ -1,161 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gdal -MASON_VERSION=2.0.2 -MASON_LIB_FILE=lib/libgdal.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/gdal/${MASON_VERSION}/gdal-${MASON_VERSION}.tar.gz \ - 6b82c9f5e356774a8451182d8720ed4a262a0d5e - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - # set up to fix libtool .la files - # https://github.com/mapbox/mason/issues/61 - if [[ $(uname -s) == 'Darwin' ]]; then - FIND="\/Users\/travis\/build\/mapbox\/mason" - else - FIND="\/home\/travis\/build\/mapbox\/mason" - fi - REPLACE="$(pwd)" - REPLACE=${REPLACE////\\/} - ${MASON_DIR}/mason install libtiff 4.0.6 - MASON_TIFF=$(${MASON_DIR}/mason prefix libtiff 4.0.6) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_TIFF}/lib/libtiff.la - ${MASON_DIR}/mason install proj 4.9.2 - MASON_PROJ=$(${MASON_DIR}/mason prefix proj 4.9.2) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PROJ}/lib/libproj.la - ${MASON_DIR}/mason install jpeg_turbo 1.4.2 - MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg_turbo 1.4.2) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_JPEG}/lib/libjpeg.la - ${MASON_DIR}/mason install libpng 1.6.21 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.21) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PNG}/lib/libpng.la - ${MASON_DIR}/mason install expat 2.1.1 - MASON_EXPAT=$(${MASON_DIR}/mason prefix expat 2.1.1) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_EXPAT}/lib/libexpat.la - ${MASON_DIR}/mason install libpq 9.5.2 - MASON_LIBPQ=$(${MASON_DIR}/mason prefix libpq 9.5.2) - # depends on sudo apt-get install zlib1g-dev - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) - # depends on sudo apt-get install libc6-dev - #${MASON_DIR}/mason install iconv system - #MASON_ICONV=$(${MASON_DIR}/mason prefix iconv system) - export LIBRARY_PATH=${MASON_LIBPQ}/lib:$LIBRARY_PATH -} - -function mason_compile { - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - mason_step "Loading patch" - patch -N -p1 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - fi - CUSTOM_LIBS="-L${MASON_TIFF}/lib -ltiff -L${MASON_JPEG}/lib -ljpeg -L${MASON_PROJ}/lib -lproj -L${MASON_PNG}/lib -lpng -L${MASON_EXPAT}/lib -lexpat" - CUSTOM_CFLAGS="${CFLAGS} -I${MASON_LIBPQ}/include -I${MASON_TIFF}/include -I${MASON_JPEG}/include -I${MASON_PROJ}/include -I${MASON_PNG}/include -I${MASON_EXPAT}/include" - - # very custom handling for libpq/postgres support - # forcing our portable static library to be used - MASON_LIBPQ_PATH=${MASON_LIBPQ}/lib/libpq.a - if [[ $(uname -s) == 'Linux' ]]; then - # on Linux passing -Wl will lead to libtool re-positioning libpq.a in the wrong place (no longer after libgdal.a) - # which leads to unresolved symbols - CUSTOM_LDFLAGS="${LDFLAGS} ${MASON_LIBPQ_PATH}" - else - # on OSX not passing -Wl will break libtool archive creation leading to confusing arch errors - CUSTOM_LDFLAGS="${LDFLAGS} -Wl,${MASON_LIBPQ_PATH}" - fi - # we have to remove -lpq otherwise it will trigger linking to system /usr/lib/libpq - perl -i -p -e "s/\-lpq //g;" configure - # on linux -Wl,/path/to/libpq.a still does not work for the configure test - # so we have to force it into LIBS. But we don't do this on OS X since it breaks libtool archive logic - if [[ $(uname -s) == 'Linux' ]]; then - CUSTOM_LIBS="${MASON_LIBPQ}/lib/libpq.a -pthread ${CUSTOM_LIBS}" - fi - - # note: we put ${STDLIB_CXXFLAGS} into CXX instead of LDFLAGS due to libtool oddity: - # http://stackoverflow.com/questions/16248360/autotools-libtool-link-library-with-libstdc-despite-stdlib-libc-option-pass - if [[ $(uname -s) == 'Darwin' ]]; then - CXX="${CXX} -stdlib=libc++ -std=c++11" - fi - - # note: it might be tempting to build with --without-libtool - # but I find that will only lead to a shared libgdal.so and will - # not produce a static library even if --enable-static is passed - LIBS="${CUSTOM_LIBS}" LDFLAGS="${CUSTOM_LDFLAGS}" CFLAGS="${CUSTOM_CFLAGS}" ./configure \ - --enable-static --disable-shared \ - ${MASON_HOST_ARG} \ - --prefix=${MASON_PREFIX} \ - --with-libz=${MASON_ZLIB} \ - --disable-rpath \ - --with-libjson-c=internal \ - --with-geotiff=internal \ - --with-expat=${MASON_EXPAT} \ - --with-threads=yes \ - --with-fgdb=no \ - --with-rename-internal-libtiff-symbols=no \ - --with-rename-internal-libgeotiff-symbols=no \ - --with-hide-internal-symbols=yes \ - --with-libtiff=${MASON_TIFF} \ - --with-jpeg=${MASON_JPEG} \ - --with-png=${MASON_PNG} \ - --with-pg=${MASON_LIBPQ}/bin/pg_config \ - --with-static-proj4=${MASON_PROJ} \ - --with-spatialite=no \ - --with-geos=no \ - --with-sqlite3=no \ - --with-curl=no \ - --with-xml2=no \ - --with-pcraster=no \ - --with-cfitsio=no \ - --with-odbc=no \ - --with-libkml=no \ - --with-pcidsk=no \ - --with-jasper=no \ - --with-gif=no \ - --with-grib=no \ - --with-freexl=no \ - --with-avx=no \ - --with-sse=no \ - --with-perl=no \ - --with-ruby=no \ - --with-python=no \ - --with-java=no \ - --with-podofo=no \ - --with-pam \ - --with-webp=no \ - --with-pcre=no \ - --with-liblzma=no \ - --with-netcdf=no \ - --with-poppler=no - - make -j${MASON_CONCURRENCY} - make install - - # attempt to make paths relative in gdal-config - python -c "data=open('$MASON_PREFIX/bin/gdal-config','r').read();open('$MASON_PREFIX/bin/gdal-config','w').write(data.replace('$MASON_PREFIX','\$( cd \"\$( dirname \$( dirname \"\$0\" ))\" && pwd )'))" - # hack to re-add -lpq since otherwise it will not end up in --dep-libs - python -c "data=open('$MASON_PREFIX/bin/gdal-config','r').read();open('$MASON_PREFIX/bin/gdal-config','w').write(data.replace('\$CONFIG_DEP_LIBS','\$CONFIG_DEP_LIBS -lpq'))" - cat $MASON_PREFIX/bin/gdal-config -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo $(${MASON_PREFIX}/bin/gdal-config --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gdal/2.1.1/.travis.yml b/third_party/mason/scripts/gdal/2.1.1/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/gdal/2.1.1/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gdal/2.1.1/patch.diff b/third_party/mason/scripts/gdal/2.1.1/patch.diff deleted file mode 100644 index 74945d50d..000000000 --- a/third_party/mason/scripts/gdal/2.1.1/patch.diff +++ /dev/null @@ -1,141 +0,0 @@ -diff --git a/apps/GNUmakefile b/apps/GNUmakefile -index a87cd0f..931a988 100644 ---- a/apps/GNUmakefile -+++ b/apps/GNUmakefile -@@ -79,103 +79,103 @@ gdalbuildvrt_lib.$(OBJ_EXT): gdalbuildvrt_lib.cpp - $(CXX) -c $(GDAL_INCLUDE) $(CPPFLAGS) $(CXXFLAGS) $< -o $@ - - gdalinfo$(EXE): gdalinfo_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) $(CONFIG_LIB_UTILS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) $(CONFIG_LIB_UTILS) -o $@ $(LNK_FLAGS) - - gdalserver$(EXE): gdalserver.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_translate$(EXE): gdal_translate_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaladdo$(EXE): gdaladdo.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalwarp$(EXE): gdalwarp_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_contour$(EXE): gdal_contour.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - nearblack$(EXE): nearblack_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalmanage$(EXE): gdalmanage.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_rasterize$(EXE): gdal_rasterize_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaltindex$(EXE): gdaltindex.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalbuildvrt$(EXE): gdalbuildvrt_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - multireadtest$(EXE): multireadtest.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - dumpoverviews$(EXE): dumpoverviews.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalenhance$(EXE): gdalenhance.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaldem$(EXE): gdaldem_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_grid$(EXE): gdal_grid_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalwarpsimple$(EXE): gdalwarpsimple.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaltransform$(EXE): gdaltransform.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdallocationinfo$(EXE): gdallocationinfo.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalsrsinfo$(EXE): gdalsrsinfo.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalflattenmask$(EXE): gdalflattenmask.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaltorture$(EXE): gdaltorture.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal2ogr$(EXE): gdal2ogr.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogrinfo$(EXE): ogrinfo.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogrlineref$(EXE): ogrlineref.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogr2ogr$(EXE): ogr2ogr_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - testepsg$(EXE): testepsg.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogrtindex$(EXE): ogrtindex.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - test_ogrsf$(EXE): test_ogrsf.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalasyncread$(EXE): gdalasyncread.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - testreprojmulti$(EXE): testreprojmulti.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gnmmanage$(EXE): gnmmanage.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gnmanalyse$(EXE): gnmanalyse.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - clean: - $(RM) *.o $(BIN_LIST) core gdal-config gdal-config-inst diff --git a/third_party/mason/scripts/gdal/2.1.1/script.sh b/third_party/mason/scripts/gdal/2.1.1/script.sh deleted file mode 100755 index f6ddf6ddd..000000000 --- a/third_party/mason/scripts/gdal/2.1.1/script.sh +++ /dev/null @@ -1,169 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gdal -MASON_VERSION=2.1.1 -MASON_LIB_FILE=lib/libgdal.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/gdal/${MASON_VERSION}/gdal-${MASON_VERSION}.tar.gz \ - 66aa2e083027cff36c000060f4e61ce5e1405307 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - # set up to fix libtool .la files - # https://github.com/mapbox/mason/issues/61 - if [[ $(uname -s) == 'Darwin' ]]; then - FIND="\/Users\/travis\/build\/mapbox\/mason" - else - FIND="\/home\/travis\/build\/mapbox\/mason" - fi - REPLACE="$(pwd)" - REPLACE=${REPLACE////\\/} - ${MASON_DIR}/mason install libtiff 4.0.6 - MASON_TIFF=$(${MASON_DIR}/mason prefix libtiff 4.0.6) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_TIFF}/lib/libtiff.la - ${MASON_DIR}/mason install proj 4.9.2 - MASON_PROJ=$(${MASON_DIR}/mason prefix proj 4.9.2) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PROJ}/lib/libproj.la - ${MASON_DIR}/mason install jpeg_turbo 1.5.0 - MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg_turbo 1.5.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_JPEG}/lib/libjpeg.la - ${MASON_DIR}/mason install libpng 1.6.24 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.24) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PNG}/lib/libpng.la - ${MASON_DIR}/mason install expat 2.2.0 - MASON_EXPAT=$(${MASON_DIR}/mason prefix expat 2.2.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_EXPAT}/lib/libexpat.la - ${MASON_DIR}/mason install libpq 9.5.2 - MASON_LIBPQ=$(${MASON_DIR}/mason prefix libpq 9.5.2) - # depends on sudo apt-get install zlib1g-dev - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) - # depends on sudo apt-get install libc6-dev - #${MASON_DIR}/mason install iconv system - #MASON_ICONV=$(${MASON_DIR}/mason prefix iconv system) - export LIBRARY_PATH=${MASON_LIBPQ}/lib:$LIBRARY_PATH -} - -function mason_compile { - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - mason_step "Loading patch" - patch -N -p1 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - fi - CUSTOM_LIBS="-L${MASON_TIFF}/lib -ltiff -L${MASON_JPEG}/lib -ljpeg -L${MASON_PROJ}/lib -lproj -L${MASON_PNG}/lib -lpng -L${MASON_EXPAT}/lib -lexpat" - CUSTOM_CFLAGS="${CFLAGS} -I${MASON_LIBPQ}/include -I${MASON_TIFF}/include -I${MASON_JPEG}/include -I${MASON_PROJ}/include -I${MASON_PNG}/include -I${MASON_EXPAT}/include" - - # very custom handling for libpq/postgres support - # forcing our portable static library to be used - MASON_LIBPQ_PATH=${MASON_LIBPQ}/lib/libpq.a - if [[ $(uname -s) == 'Linux' ]]; then - # on Linux passing -Wl will lead to libtool re-positioning libpq.a in the wrong place (no longer after libgdal.a) - # which leads to unresolved symbols - CUSTOM_LDFLAGS="${LDFLAGS} ${MASON_LIBPQ_PATH}" - else - # on OSX not passing -Wl will break libtool archive creation leading to confusing arch errors - CUSTOM_LDFLAGS="${LDFLAGS} -Wl,${MASON_LIBPQ_PATH}" - fi - # we have to remove -lpq otherwise it will trigger linking to system /usr/lib/libpq - perl -i -p -e "s/\-lpq //g;" configure - # on linux -Wl,/path/to/libpq.a still does not work for the configure test - # so we have to force it into LIBS. But we don't do this on OS X since it breaks libtool archive logic - if [[ $(uname -s) == 'Linux' ]]; then - CUSTOM_LIBS="${MASON_LIBPQ}/lib/libpq.a -pthread ${CUSTOM_LIBS}" - fi - - # note: we put ${STDLIB_CXXFLAGS} into CXX instead of LDFLAGS due to libtool oddity: - # http://stackoverflow.com/questions/16248360/autotools-libtool-link-library-with-libstdc-despite-stdlib-libc-option-pass - if [[ $(uname -s) == 'Darwin' ]]; then - CXX="${CXX} -stdlib=libc++ -std=c++11" - fi - - # note: it might be tempting to build with --without-libtool - # but I find that will only lead to a shared libgdal.so and will - # not produce a static library even if --enable-static is passed - LIBS="${CUSTOM_LIBS}" LDFLAGS="${CUSTOM_LDFLAGS}" CFLAGS="${CUSTOM_CFLAGS}" ./configure \ - --enable-static --disable-shared \ - ${MASON_HOST_ARG} \ - --prefix=${MASON_PREFIX} \ - --with-libz=${MASON_ZLIB} \ - --disable-rpath \ - --with-libjson-c=internal \ - --with-geotiff=internal \ - --with-expat=${MASON_EXPAT} \ - --with-threads=yes \ - --with-fgdb=no \ - --with-rename-internal-libtiff-symbols=no \ - --with-rename-internal-libgeotiff-symbols=no \ - --with-hide-internal-symbols=yes \ - --with-libtiff=${MASON_TIFF} \ - --with-jpeg=${MASON_JPEG} \ - --with-png=${MASON_PNG} \ - --with-pg=${MASON_LIBPQ}/bin/pg_config \ - --with-static-proj4=${MASON_PROJ} \ - --with-spatialite=no \ - --with-geos=no \ - --with-sqlite3=no \ - --with-curl=no \ - --with-xml2=no \ - --with-pcraster=no \ - --with-cfitsio=no \ - --with-odbc=no \ - --with-libkml=no \ - --with-pcidsk=no \ - --with-jasper=no \ - --with-gif=no \ - --with-grib=no \ - --with-freexl=no \ - --with-avx=no \ - --with-sse=no \ - --with-perl=no \ - --with-ruby=no \ - --with-python=no \ - --with-java=no \ - --with-podofo=no \ - --with-pam \ - --with-webp=no \ - --with-pcre=no \ - --with-liblzma=no \ - --with-netcdf=no \ - --with-poppler=no - - make -j${MASON_CONCURRENCY} - make install - - # attempt to make paths relative in gdal-config - # TODO: remove libpg.a from CONFIG_DEP_LIBS on linux? - # fix the path to -lgdal to be relative (CONFIG_LIBS,CONFIG_PREFIX,CONFIG_CFLAGS) - RESOLVE_SYMLINK="readlink" - if [[ $(uname -s) == 'Linux' ]];then - RESOLVE_SYMLINK="readlink -f" - fi - python -c "data=open('$MASON_PREFIX/bin/gdal-config','r').read();open('$MASON_PREFIX/bin/gdal-config','w').write(data.replace('$MASON_PREFIX','\$( cd \"\$( dirname \$( dirname \$( $RESOLVE_SYMLINK \"\$0\" ) ))\" && pwd )'))" - # fix the path to dep libs (CONFIG_DEP_LIBS) - python -c "data=open('$MASON_PREFIX/bin/gdal-config','r').read();open('$MASON_PREFIX/bin/gdal-config','w').write(data.replace('${MASON_ROOT}/${MASON_PLATFORM_ID}','\$( cd \"\$( dirname \$( dirname \$( dirname \$( dirname \$( $RESOLVE_SYMLINK \"\$0\" ) ) ) ))\" && pwd )'))" - # hack to re-add -lpq since otherwise it will not end up in --dep-libs - python -c "data=open('$MASON_PREFIX/bin/gdal-config','r').read();open('$MASON_PREFIX/bin/gdal-config','w').write(data.replace('\$CONFIG_DEP_LIBS','\$CONFIG_DEP_LIBS -lpq'))" - cat $MASON_PREFIX/bin/gdal-config -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo $(${MASON_PREFIX}/bin/gdal-config --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gdal/2.1.3/.travis.yml b/third_party/mason/scripts/gdal/2.1.3/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/gdal/2.1.3/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gdal/2.1.3/patch.diff b/third_party/mason/scripts/gdal/2.1.3/patch.diff deleted file mode 100644 index 74945d50d..000000000 --- a/third_party/mason/scripts/gdal/2.1.3/patch.diff +++ /dev/null @@ -1,141 +0,0 @@ -diff --git a/apps/GNUmakefile b/apps/GNUmakefile -index a87cd0f..931a988 100644 ---- a/apps/GNUmakefile -+++ b/apps/GNUmakefile -@@ -79,103 +79,103 @@ gdalbuildvrt_lib.$(OBJ_EXT): gdalbuildvrt_lib.cpp - $(CXX) -c $(GDAL_INCLUDE) $(CPPFLAGS) $(CXXFLAGS) $< -o $@ - - gdalinfo$(EXE): gdalinfo_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) $(CONFIG_LIB_UTILS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) $(CONFIG_LIB_UTILS) -o $@ $(LNK_FLAGS) - - gdalserver$(EXE): gdalserver.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_translate$(EXE): gdal_translate_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaladdo$(EXE): gdaladdo.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalwarp$(EXE): gdalwarp_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_contour$(EXE): gdal_contour.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - nearblack$(EXE): nearblack_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalmanage$(EXE): gdalmanage.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_rasterize$(EXE): gdal_rasterize_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaltindex$(EXE): gdaltindex.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalbuildvrt$(EXE): gdalbuildvrt_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - multireadtest$(EXE): multireadtest.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - dumpoverviews$(EXE): dumpoverviews.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalenhance$(EXE): gdalenhance.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaldem$(EXE): gdaldem_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal_grid$(EXE): gdal_grid_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalwarpsimple$(EXE): gdalwarpsimple.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaltransform$(EXE): gdaltransform.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdallocationinfo$(EXE): gdallocationinfo.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalsrsinfo$(EXE): gdalsrsinfo.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalflattenmask$(EXE): gdalflattenmask.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdaltorture$(EXE): gdaltorture.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdal2ogr$(EXE): gdal2ogr.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogrinfo$(EXE): ogrinfo.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogrlineref$(EXE): ogrlineref.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogr2ogr$(EXE): ogr2ogr_bin.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - testepsg$(EXE): testepsg.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - ogrtindex$(EXE): ogrtindex.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - test_ogrsf$(EXE): test_ogrsf.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gdalasyncread$(EXE): gdalasyncread.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - testreprojmulti$(EXE): testreprojmulti.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gnmmanage$(EXE): gnmmanage.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - gnmanalyse$(EXE): gnmanalyse.$(OBJ_EXT) $(DEP_LIBS) -- $(LD) $(LNK_FLAGS) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ -+ $(LD) $< $(XTRAOBJ) $(CONFIG_LIBS) -o $@ $(LNK_FLAGS) - - clean: - $(RM) *.o $(BIN_LIST) core gdal-config gdal-config-inst diff --git a/third_party/mason/scripts/gdal/2.1.3/script.sh b/third_party/mason/scripts/gdal/2.1.3/script.sh deleted file mode 100755 index 7848da8f6..000000000 --- a/third_party/mason/scripts/gdal/2.1.3/script.sh +++ /dev/null @@ -1,189 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gdal -MASON_VERSION=2.1.3 -MASON_LIB_FILE=lib/libgdal.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/gdal/${MASON_VERSION}/gdal-${MASON_VERSION}.tar.gz \ - 552231f8ffe060ba30e37f1a8e6c4665bcf3cd1d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - # set up to fix libtool .la files - # https://github.com/mapbox/mason/issues/61 - if [[ $(uname -s) == 'Darwin' ]]; then - FIND="\/Users\/travis\/build\/mapbox\/mason" - else - FIND="\/home\/travis\/build\/mapbox\/mason" - fi - REPLACE="$(pwd)" - REPLACE=${REPLACE////\\/} - ${MASON_DIR}/mason install libtiff 4.0.7 - MASON_TIFF=$(${MASON_DIR}/mason prefix libtiff 4.0.7) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_TIFF}/lib/libtiff.la - ${MASON_DIR}/mason install proj 4.9.3 - MASON_PROJ=$(${MASON_DIR}/mason prefix proj 4.9.3) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PROJ}/lib/libproj.la - ${MASON_DIR}/mason install jpeg_turbo 1.5.1 - MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg_turbo 1.5.1) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_JPEG}/lib/libjpeg.la - ${MASON_DIR}/mason install libpng 1.6.28 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.28) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PNG}/lib/libpng.la - ${MASON_DIR}/mason install expat 2.2.0 - MASON_EXPAT=$(${MASON_DIR}/mason prefix expat 2.2.0) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_EXPAT}/lib/libexpat.la - ${MASON_DIR}/mason install libpq 9.6.1 - MASON_LIBPQ=$(${MASON_DIR}/mason prefix libpq 9.6.1) - # depends on sudo apt-get install zlib1g-dev - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) - # depends on sudo apt-get install libc6-dev - #${MASON_DIR}/mason install iconv system - #MASON_ICONV=$(${MASON_DIR}/mason prefix iconv system) - export LIBRARY_PATH=${MASON_LIBPQ}/lib:$LIBRARY_PATH - ${MASON_DIR}/mason install ccache 3.3.1 - MASON_CCACHE=$(${MASON_DIR}/mason prefix ccache 3.3.1)/bin/ccache -} - -function mason_compile { - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - mason_step "Loading patch" - patch -N -p1 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - fi - - # note CFLAGS overrides defaults so we need to add optimization flags back - export CFLAGS="${CFLAGS} -O3 -DNDEBUG" - - CUSTOM_LIBS="-L${MASON_TIFF}/lib -ltiff -L${MASON_JPEG}/lib -ljpeg -L${MASON_PROJ}/lib -lproj -L${MASON_PNG}/lib -lpng -L${MASON_EXPAT}/lib -lexpat" - CUSTOM_CFLAGS="${CFLAGS} -I${MASON_LIBPQ}/include -I${MASON_TIFF}/include -I${MASON_JPEG}/include -I${MASON_PROJ}/include -I${MASON_PNG}/include -I${MASON_EXPAT}/include" - - # very custom handling for libpq/postgres support - # forcing our portable static library to be used - MASON_LIBPQ_PATH=${MASON_LIBPQ}/lib/libpq.a - if [[ $(uname -s) == 'Linux' ]]; then - # on Linux passing -Wl will lead to libtool re-positioning libpq.a in the wrong place (no longer after libgdal.a) - # which leads to unresolved symbols - CUSTOM_LDFLAGS="${LDFLAGS} ${MASON_LIBPQ_PATH}" - else - # on OSX not passing -Wl will break libtool archive creation leading to confusing arch errors - CUSTOM_LDFLAGS="${LDFLAGS} -Wl,${MASON_LIBPQ_PATH}" - fi - # we have to remove -lpq otherwise it will trigger linking to system /usr/lib/libpq - perl -i -p -e "s/\-lpq //g;" configure - # on linux -Wl,/path/to/libpq.a still does not work for the configure test - # so we have to force it into LIBS. But we don't do this on OS X since it breaks libtool archive logic - if [[ $(uname -s) == 'Linux' ]]; then - CUSTOM_LIBS="${MASON_LIBPQ}/lib/libpq.a -pthread ${CUSTOM_LIBS}" - fi - - export CXX="${MASON_CCACHE} ${CXX}" - - # note: we put ${STDLIB_CXXFLAGS} into CXX instead of LDFLAGS due to libtool oddity: - # http://stackoverflow.com/questions/16248360/autotools-libtool-link-library-with-libstdc-despite-stdlib-libc-option-pass - if [[ $(uname -s) == 'Darwin' ]]; then - export CXX="${CXX} -stdlib=libc++ -std=c++11" - fi - - # note: it might be tempting to build with --without-libtool - # but I find that will only lead to a shared libgdal.so and will - # not produce a static library even if --enable-static is passed - LIBS="${CUSTOM_LIBS}" LDFLAGS="${CUSTOM_LDFLAGS}" CFLAGS="${CUSTOM_CFLAGS}" ./configure \ - --enable-static --disable-shared \ - ${MASON_HOST_ARG} \ - --prefix=${MASON_PREFIX} \ - --with-libz=${MASON_ZLIB} \ - --disable-rpath \ - --with-libjson-c=internal \ - --with-geotiff=internal \ - --with-expat=${MASON_EXPAT} \ - --with-threads=yes \ - --with-fgdb=no \ - --with-rename-internal-libtiff-symbols=no \ - --with-rename-internal-libgeotiff-symbols=no \ - --with-hide-internal-symbols=yes \ - --with-libtiff=${MASON_TIFF} \ - --with-jpeg=${MASON_JPEG} \ - --with-png=${MASON_PNG} \ - --with-pg=${MASON_LIBPQ}/bin/pg_config \ - --with-static-proj4=${MASON_PROJ} \ - --with-spatialite=no \ - --with-geos=no \ - --with-sqlite3=no \ - --with-curl=no \ - --with-xml2=no \ - --with-pcraster=no \ - --with-cfitsio=no \ - --with-odbc=no \ - --with-libkml=no \ - --with-pcidsk=no \ - --with-jasper=no \ - --with-gif=no \ - --with-grib=no \ - --with-freexl=no \ - --with-avx=no \ - --with-sse=no \ - --with-perl=no \ - --with-ruby=no \ - --with-python=no \ - --with-java=no \ - --with-podofo=no \ - --with-pam \ - --with-webp=no \ - --with-pcre=no \ - --with-liblzma=no \ - --with-netcdf=no \ - --with-poppler=no - - make -j${MASON_CONCURRENCY} - make install - - relativize_gdal_config ${MASON_PREFIX}/bin/gdal-config ${MASON_PREFIX} ${MASON_ROOT}/${MASON_PLATFORM_ID} - -} - -function relativize_gdal_config() { - path_to_gdal_config=${1} - prefix_path=${2} - build_path=${3} - RESOLVE_SYMLINK="readlink" - if [[ $(uname -s) == 'Linux' ]];then - RESOLVE_SYMLINK="readlink -f" - fi - mv ${path_to_gdal_config} /tmp/gdal-config-backup - # append code at start - echo 'if test -L $0; then BASE=$( dirname $( '${RESOLVE_SYMLINK}' "$0" ) ); else BASE=$( dirname "$0" ); fi' > ${path_to_gdal_config} - cat /tmp/gdal-config-backup >> ${path_to_gdal_config} - chmod +x ${path_to_gdal_config} - - # now modify in place - python -c "data=open('${path_to_gdal_config}','r').read();open('${path_to_gdal_config}','w').write(data.replace('${prefix_path}','\$( cd \"\$( dirname \${BASE} )\" && pwd )'))" - # fix the path to dep libs (CONFIG_DEP_LIBS) - python -c "data=open('${path_to_gdal_config}','r').read();open('${path_to_gdal_config}','w').write(data.replace('${build_path}','\$( cd \"\$( dirname \$( dirname \$( dirname \${BASE} ) ))\" && pwd )'))" - # hack to re-add -lpq since otherwise it will not end up in --dep-libs - python -c "data=open('${path_to_gdal_config}','r').read();open('${path_to_gdal_config}','w').write(data.replace('\$CONFIG_DEP_LIBS','\$CONFIG_DEP_LIBS -lpq'))" -} - - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo $(${MASON_PREFIX}/bin/gdal-config --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gdal/dev/.travis.yml b/third_party/mason/scripts/gdal/dev/.travis.yml deleted file mode 100644 index fe39fea31..000000000 --- a/third_party/mason/scripts/gdal/dev/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} -- export GDAL_DATA=$(pwd)/mason_packages/.link/share/gdal -- ./mason_packages/.link/bin/ogr2ogr --formats -- if [[ $(uname -s) == 'Darwin' ]]; then otool -L ./mason_packages/.link/bin/ogr2ogr; else ldd ./mason_packages/.link/bin/ogr2ogr; fi; -- ./mason_packages/.link/bin/gdalinfo --formats -- if [[ $(uname -s) == 'Darwin' ]]; then otool -L ./mason_packages/.link/bin/gdalinfo; else ldd ./mason_packages/.link/bin/gdalinfo; fi; - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gdal/dev/script.sh b/third_party/mason/scripts/gdal/dev/script.sh deleted file mode 100755 index 7e38dcbc5..000000000 --- a/third_party/mason/scripts/gdal/dev/script.sh +++ /dev/null @@ -1,168 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gdal -MASON_VERSION=dev -MASON_LIB_FILE=lib/libgdal.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - export MASON_BUILD_PATH=${MASON_ROOT}/.build/gdal-2.x - if [[ ! -d ${MASON_BUILD_PATH} ]]; then - git clone --depth 1 https://github.com/springmeyer/gdal.git -b build-fixes ${MASON_BUILD_PATH} - else - (cd ${MASON_BUILD_PATH} && git pull) - fi -} - -if [[ $(uname -s) == 'Darwin' ]]; then - FIND_PATTERN="\/Users\/travis\/build\/mapbox\/mason" -else - FIND_PATTERN="\/home\/travis\/build\/mapbox\/mason" -fi - -function install_dep { - # set up to fix libtool .la files - # https://github.com/mapbox/mason/issues/61 - REPLACE="$(pwd)" - REPLACE=${REPLACE////\\/} - ${MASON_DIR}/mason install $1 $2 - ${MASON_DIR}/mason link $1 $2 - LA_FILE=$(${MASON_DIR}/mason prefix $1 $2)/lib/$3.la - if [[ -f ${LA_FILE} ]]; then - perl -i -p -e "s/${FIND_PATTERN}/${REPLACE}/g;" ${LA_FILE} - else - echo "$LA_FILE not found" - fi -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - install_dep libtiff 4.0.4beta libtiff - install_dep proj 4.8.0 libproj - install_dep jpeg_turbo 1.4.0 libjpeg - install_dep libpng 1.6.16 libpng - install_dep expat 2.1.0 libexpat - install_dep libpq 9.4.0 libpq - # depends on sudo apt-get install zlib1g-dev - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) - # depends on sudo apt-get install libc6-dev - #${MASON_DIR}/mason install iconv system - #MASON_ICONV=$(${MASON_DIR}/mason prefix iconv system) -} - -function mason_compile { - LINK_DIR="${MASON_ROOT}/.link" - echo $LINK_DIR - export LIBRARY_PATH=${LINK_DIR}/lib:${LIBRARY_PATH} - - cd gdal/ - CUSTOM_LIBS="-L${LINK_DIR}/lib -ltiff -ljpeg -lproj -lpng -lexpat" - CUSTOM_CFLAGS="${CFLAGS} -I${LINK_DIR}/include -I${LINK_DIR}/include/libpng16" - CUSTOM_CXXFLAGS="${CUSTOM_CFLAGS}" - - # very custom handling for libpq/postgres support - # forcing our portable static library to be used - MASON_LIBPQ_PATH=${LINK_DIR}/lib/libpq.a - if [[ $(uname -s) == 'Linux' ]]; then - # on Linux passing -Wl will lead to libtool re-positioning libpq.a in the wrong place (no longer after libgdal.a) - # which leads to unresolved symbols - CUSTOM_LDFLAGS="-z nodeflib ${LDFLAGS} ${MASON_LIBPQ_PATH}" - else - # on OSX not passing -Wl will break libtool archive creation leading to confusing arch errors - CUSTOM_LDFLAGS="${LDFLAGS} -Wl,${MASON_LIBPQ_PATH}" - fi - # we have to remove -lpq otherwise it will trigger linking to system /usr/lib/libpq - perl -i -p -e "s/\-lpq //g;" configure - # on linux -Wl,/path/to/libpq.a still does not work for the configure test - # so we have to force it into LIBS. But we don't do this on OS X since it breaks libtool archive logic - if [[ $(uname -s) == 'Linux' ]]; then - CUSTOM_LIBS="${MASON_LIBPQ_PATH} -pthread ${CUSTOM_LIBS}" - fi - - # note: we put ${STDLIB_CXXFLAGS} into CXX instead of LDFLAGS due to libtool oddity: - # http://stackoverflow.com/questions/16248360/autotools-libtool-link-library-with-libstdc-despite-stdlib-libc-option-pass - if [[ $(uname -s) == 'Darwin' ]]; then - CXX="${CXX} -stdlib=libc++ -std=c++11" - fi - - # note: it might be tempting to build with --without-libtool - # but I find that will only lead to a shared libgdal.so and will - # not produce a static library even if --enable-static is passed - LIBS="${CUSTOM_LIBS}" \ - LDFLAGS="${CUSTOM_LDFLAGS}" \ - CFLAGS="${CUSTOM_CFLAGS}" \ - CXXFLAGS="${CUSTOM_CXXFLAGS}" \ - ./configure \ - --enable-static --disable-shared \ - ${MASON_HOST_ARG} \ - --prefix=${MASON_PREFIX} \ - --with-libz=${LINK_DIR} \ - --disable-rpath \ - --with-libjson-c=internal \ - --with-geotiff=internal \ - --with-expat=${LINK_DIR} \ - --with-threads=yes \ - --with-fgdb=no \ - --with-rename-internal-libtiff-symbols=no \ - --with-rename-internal-libgeotiff-symbols=no \ - --with-hide-internal-symbols=yes \ - --with-libtiff=${LINK_DIR} \ - --with-jpeg=${LINK_DIR} \ - --with-png=${LINK_DIR} \ - --with-pg=${LINK_DIR}/bin/pg_config \ - --with-static-proj4=${LINK_DIR} \ - --with-spatialite=no \ - --with-geos=no \ - --with-sqlite3=no \ - --with-curl=no \ - --with-xml2=no \ - --with-pcraster=no \ - --with-cfitsio=no \ - --with-odbc=no \ - --with-libkml=no \ - --with-pcidsk=no \ - --with-jasper=no \ - --with-gif=no \ - --with-grib=no \ - --with-freexl=no \ - --with-avx=no \ - --with-sse=no \ - --with-perl=no \ - --with-ruby=no \ - --with-python=no \ - --with-java=no \ - --with-podofo=no \ - --with-pam \ - --with-webp=no \ - --with-pcre=no \ - --with-liblzma=no \ - --with-netcdf=no \ - --with-poppler=no - - make -j${MASON_CONCURRENCY} - make install - - # attempt to make paths relative in gdal-config - python -c "data=open('$MASON_PREFIX/bin/gdal-config','r').read();open('$MASON_PREFIX/bin/gdal-config','w').write(data.replace('$MASON_PREFIX','\$( cd \"\$( dirname \$( dirname \"\$0\" ))\" && pwd )'))" - # fix paths to all deps to point to mason_packages/.link - python -c "data=open('$MASON_PREFIX/bin/gdal-config','r').read();open('$MASON_PREFIX/bin/gdal-config','w').write(data.replace('$MASON_ROOT','./mason_packages'))" - # add static libpq.a - python -c "data=open('$MASON_PREFIX/bin/gdal-config','r').read();open('$MASON_PREFIX/bin/gdal-config','w').write(data.replace('CONFIG_DEP_LIBS=\"','CONFIG_DEP_LIBS=\"-lpq'))" - cat $MASON_PREFIX/bin/gdal-config -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include/gdal" -} - -function mason_ldflags { - echo $(${MASON_PREFIX}/bin/gdal-config --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gdb/7.12/.travis.yml b/third_party/mason/scripts/gdb/7.12/.travis.yml deleted file mode 100644 index c4339171f..000000000 --- a/third_party/mason/scripts/gdb/7.12/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - - texinfo - -# override install to prefer g++ instead of clang++ -install: - - export CXX=g++-5 - - export CC=gcc-5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gdb/7.12/script.sh b/third_party/mason/scripts/gdb/7.12/script.sh deleted file mode 100755 index 5277190a4..000000000 --- a/third_party/mason/scripts/gdb/7.12/script.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gdb -MASON_VERSION=7.12 -MASON_LIB_FILE=bin/gdb - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://ftp.gnu.org/gnu/gdb/${MASON_NAME}-${MASON_VERSION}.tar.gz \ - d66badff54a8a47ed26d99f07e26c805572e9639 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - # set -fpermissive to try to work around - # location.c:527:16: error: comparison between pointer and integer ('const char *' and 'int') - # || *argp == '\0' - export CFLAGS="${CFLAGS} -fpermissive" - export CXXFLAGS="${CXXFLAGS} -fpermissive" - ./configure --prefix=${MASON_PREFIX} \ - --enable-static \ - --disable-debug \ - --disable-dependency-tracking \ - --without-guile \ - --without-python \ - --with-system-zlib - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_clean { - make clean -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.1.1-cxx03abi/.travis.yml b/third_party/mason/scripts/geojson/0.1.1-cxx03abi/.travis.yml deleted file mode 100644 index a6c36d0e0..000000000 --- a/third_party/mason/scripts/geojson/0.1.1-cxx03abi/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: c - -sudo: false - -matrix: - exclude: - - os: linux - - os: osx - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.1.1-cxx03abi/script.sh b/third_party/mason/scripts/geojson/0.1.1-cxx03abi/script.sh deleted file mode 100755 index 315b69b13..000000000 --- a/third_party/mason/scripts/geojson/0.1.1-cxx03abi/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.1.1 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION}-cxx03abi -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - 98daffe2846a97a21d37a15e6b3d022e164d897e - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.1.2-cxx03abi/.travis.yml b/third_party/mason/scripts/geojson/0.1.2-cxx03abi/.travis.yml deleted file mode 100644 index 03f7f25d4..000000000 --- a/third_party/mason/scripts/geojson/0.1.2-cxx03abi/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - libstdc++-5-dev - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.1.2-cxx03abi/script.sh b/third_party/mason/scripts/geojson/0.1.2-cxx03abi/script.sh deleted file mode 100755 index 71899fb52..000000000 --- a/third_party/mason/scripts/geojson/0.1.2-cxx03abi/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.1.2 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION}-cxx03abi -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - ba0f620b97c8ab39b262f8474038a3fd4e33a7f3 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.1.3-cxx03abi/.travis.yml b/third_party/mason/scripts/geojson/0.1.3-cxx03abi/.travis.yml deleted file mode 100644 index 03f7f25d4..000000000 --- a/third_party/mason/scripts/geojson/0.1.3-cxx03abi/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - libstdc++-5-dev - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.1.3-cxx03abi/script.sh b/third_party/mason/scripts/geojson/0.1.3-cxx03abi/script.sh deleted file mode 100755 index 3cfd5da7b..000000000 --- a/third_party/mason/scripts/geojson/0.1.3-cxx03abi/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.1.3 -CXXABI=-D_GLIBCXX_USE_CXX11_ABI=0 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION}-cxx03abi -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - a9c01debc7fe31fd98b7a960f9c3bd3e4e82d272 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - CXXFLAGS="$CXXFLAGS $CXXABI" MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.1.3/.travis.yml b/third_party/mason/scripts/geojson/0.1.3/.travis.yml deleted file mode 100644 index 93948aaa2..000000000 --- a/third_party/mason/scripts/geojson/0.1.3/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - compiler: gcc - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - g++-5 - env: MASON_PLATFORM=linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- | - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - export CXX=g++-5 - export CC=gcc-5 - fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.1.3/script.sh b/third_party/mason/scripts/geojson/0.1.3/script.sh deleted file mode 100755 index 90d020941..000000000 --- a/third_party/mason/scripts/geojson/0.1.3/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.1.3 -CXXABI=-D_GLIBCXX_USE_CXX11_ABI=1 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION} -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - a9c01debc7fe31fd98b7a960f9c3bd3e4e82d272 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - CXXFLAGS="$CXXFLAGS $CXXABI" MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.1.4-cxx03abi/.travis.yml b/third_party/mason/scripts/geojson/0.1.4-cxx03abi/.travis.yml deleted file mode 100644 index 03f7f25d4..000000000 --- a/third_party/mason/scripts/geojson/0.1.4-cxx03abi/.travis.yml +++ /dev/null @@ -1,49 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - libstdc++-5-dev - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.1.4-cxx03abi/script.sh b/third_party/mason/scripts/geojson/0.1.4-cxx03abi/script.sh deleted file mode 100755 index 0767db3ad..000000000 --- a/third_party/mason/scripts/geojson/0.1.4-cxx03abi/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.1.4 -CXXABI=-D_GLIBCXX_USE_CXX11_ABI=0 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION}-cxx03abi -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - f0a1499e67a9641691933eaec06cc74c7b70f468 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - CXXFLAGS="$CXXFLAGS $CXXABI" MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.1.4-cxx11abi/script.sh b/third_party/mason/scripts/geojson/0.1.4-cxx11abi/script.sh deleted file mode 100755 index ec6cd056d..000000000 --- a/third_party/mason/scripts/geojson/0.1.4-cxx11abi/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.1.4 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION}-cxx11abi -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - f0a1499e67a9641691933eaec06cc74c7b70f468 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - CXXFLAGS="$CXXFLAGS" MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.1.4/.travis.yml b/third_party/mason/scripts/geojson/0.1.4/.travis.yml deleted file mode 100644 index 93948aaa2..000000000 --- a/third_party/mason/scripts/geojson/0.1.4/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - compiler: gcc - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - g++-5 - env: MASON_PLATFORM=linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- | - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - export CXX=g++-5 - export CC=gcc-5 - fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.1.4/script.sh b/third_party/mason/scripts/geojson/0.1.4/script.sh deleted file mode 100755 index 58d1106f6..000000000 --- a/third_party/mason/scripts/geojson/0.1.4/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.1.4 -CXXABI=-D_GLIBCXX_USE_CXX11_ABI=1 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION} -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - f0a1499e67a9641691933eaec06cc74c7b70f468 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - CXXFLAGS="$CXXFLAGS $CXXABI" MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.2.0/.travis.yml b/third_party/mason/scripts/geojson/0.2.0/.travis.yml deleted file mode 100644 index 93948aaa2..000000000 --- a/third_party/mason/scripts/geojson/0.2.0/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - compiler: gcc - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - g++-5 - env: MASON_PLATFORM=linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- | - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - export CXX=g++-5 - export CC=gcc-5 - fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.2.0/script.sh b/third_party/mason/scripts/geojson/0.2.0/script.sh deleted file mode 100755 index b493aaf47..000000000 --- a/third_party/mason/scripts/geojson/0.2.0/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.2.0 -CXXABI=-D_GLIBCXX_USE_CXX11_ABI=1 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION} -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - 0baf35ce0e359dbb22ea4c6ca1fd5250dfb51e8f - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - CXXFLAGS="$CXXFLAGS $CXXABI" MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.3.0/.travis.yml b/third_party/mason/scripts/geojson/0.3.0/.travis.yml deleted file mode 100644 index 93948aaa2..000000000 --- a/third_party/mason/scripts/geojson/0.3.0/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - compiler: gcc - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - g++-5 - env: MASON_PLATFORM=linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- | - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - export CXX=g++-5 - export CC=gcc-5 - fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.3.0/script.sh b/third_party/mason/scripts/geojson/0.3.0/script.sh deleted file mode 100755 index 7489ef1ef..000000000 --- a/third_party/mason/scripts/geojson/0.3.0/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.3.0 -CXXABI=-D_GLIBCXX_USE_CXX11_ABI=1 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION} -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - 95e547eb39ccac984ed15446cd31d035da683d2b - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - CXXFLAGS="$CXXFLAGS $CXXABI" MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.3.1-hpp/.travis.yml b/third_party/mason/scripts/geojson/0.3.1-hpp/.travis.yml deleted file mode 100644 index 93948aaa2..000000000 --- a/third_party/mason/scripts/geojson/0.3.1-hpp/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - compiler: gcc - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - g++-5 - env: MASON_PLATFORM=linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- | - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - export CXX=g++-5 - export CC=gcc-5 - fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.3.1-hpp/script.sh b/third_party/mason/scripts/geojson/0.3.1-hpp/script.sh deleted file mode 100755 index 859f67dba..000000000 --- a/third_party/mason/scripts/geojson/0.3.1-hpp/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojson -MASON_VERSION=0.3.1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${MASON_VERSION}.tar.gz \ - 2014db07a5525628e43a9fec36809b04417e1cda - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.3.1/.travis.yml b/third_party/mason/scripts/geojson/0.3.1/.travis.yml deleted file mode 100644 index 93948aaa2..000000000 --- a/third_party/mason/scripts/geojson/0.3.1/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - compiler: gcc - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - g++-5 - env: MASON_PLATFORM=linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- | - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - export CXX=g++-5 - export CC=gcc-5 - fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.3.1/script.sh b/third_party/mason/scripts/geojson/0.3.1/script.sh deleted file mode 100755 index c48cdb079..000000000 --- a/third_party/mason/scripts/geojson/0.3.1/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.3.1 -CXXABI=-D_GLIBCXX_USE_CXX11_ABI=1 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION} -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - 2014db07a5525628e43a9fec36809b04417e1cda - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - CXXFLAGS="$CXXFLAGS $CXXABI" MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.3.2-hpp/.travis.yml b/third_party/mason/scripts/geojson/0.3.2-hpp/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geojson/0.3.2-hpp/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.3.2-hpp/script.sh b/third_party/mason/scripts/geojson/0.3.2-hpp/script.sh deleted file mode 100755 index 4967c555c..000000000 --- a/third_party/mason/scripts/geojson/0.3.2-hpp/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojson -MASON_VERSION=0.3.2 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${MASON_VERSION}.tar.gz \ - 1b3ccdee9d0273ae817b79d2b335df80c1b3dc4b - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.3.2/.travis.yml b/third_party/mason/scripts/geojson/0.3.2/.travis.yml deleted file mode 100644 index 93948aaa2..000000000 --- a/third_party/mason/scripts/geojson/0.3.2/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - compiler: gcc - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - g++-5 - env: MASON_PLATFORM=linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- | - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - export CXX=g++-5 - export CC=gcc-5 - fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.3.2/script.sh b/third_party/mason/scripts/geojson/0.3.2/script.sh deleted file mode 100755 index 5f650bdb3..000000000 --- a/third_party/mason/scripts/geojson/0.3.2/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.3.2 -CXXABI=-D_GLIBCXX_USE_CXX11_ABI=1 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION} -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - 1b3ccdee9d0273ae817b79d2b335df80c1b3dc4b - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - CXXFLAGS="$CXXFLAGS $CXXABI" MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.4.0-hpp/.travis.yml b/third_party/mason/scripts/geojson/0.4.0-hpp/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geojson/0.4.0-hpp/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.4.0-hpp/script.sh b/third_party/mason/scripts/geojson/0.4.0-hpp/script.sh deleted file mode 100755 index 02f5b4df5..000000000 --- a/third_party/mason/scripts/geojson/0.4.0-hpp/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojson -MASON_VERSION=0.4.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${MASON_VERSION}.tar.gz \ - addb13f800975cc433a009dbefbe01afa0d9902f - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojson/0.4.0/.travis.yml b/third_party/mason/scripts/geojson/0.4.0/.travis.yml deleted file mode 100644 index 93948aaa2..000000000 --- a/third_party/mason/scripts/geojson/0.4.0/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - compiler: gcc - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - g++-5 - env: MASON_PLATFORM=linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- | - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - export CXX=g++-5 - export CC=gcc-5 - fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojson/0.4.0/script.sh b/third_party/mason/scripts/geojson/0.4.0/script.sh deleted file mode 100755 index fdebfa662..000000000 --- a/third_party/mason/scripts/geojson/0.4.0/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=0.4.0 -CXXABI=-D_GLIBCXX_USE_CXX11_ABI=1 - -MASON_NAME=geojson -MASON_VERSION=${LIB_VERSION} -MASON_LIB_FILE=lib/libgeojson.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-cpp/archive/v${LIB_VERSION}.tar.gz \ - addb13f800975cc433a009dbefbe01afa0d9902f - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-cpp-${LIB_VERSION} -} - -function mason_compile { - make clean - CXXFLAGS="$CXXFLAGS $CXXABI" MASON=${MASON_DIR}/mason make - mkdir -p ${MASON_PREFIX}/{include,lib} - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - mv build/libgeojson.a ${MASON_PREFIX}/lib -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojson.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/1.1.0/.travis.yml b/third_party/mason/scripts/geojsonvt/1.1.0/.travis.yml deleted file mode 100644 index c36a92eed..000000000 --- a/third_party/mason/scripts/geojsonvt/1.1.0/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -sudo: false - -matrix: - include: - - os: osx - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/1.1.0/script.sh b/third_party/mason/scripts/geojsonvt/1.1.0/script.sh deleted file mode 100755 index 0511299c5..000000000 --- a/third_party/mason/scripts/geojsonvt/1.1.0/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=1.1.0 -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v1.1.0.tar.gz \ - 9b7caa80331b09258d9cd9b31d2e12de74565592 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/2.1.0/.travis.yml b/third_party/mason/scripts/geojsonvt/2.1.0/.travis.yml deleted file mode 100644 index c36a92eed..000000000 --- a/third_party/mason/scripts/geojsonvt/2.1.0/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -sudo: false - -matrix: - include: - - os: osx - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/2.1.0/script.sh b/third_party/mason/scripts/geojsonvt/2.1.0/script.sh deleted file mode 100755 index 13e2eb21d..000000000 --- a/third_party/mason/scripts/geojsonvt/2.1.0/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=2.1.0 -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v2.1.0.tar.gz \ - 1d59e635ed4498d2ad35b76a39eeab6ebd96479f - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/2.1.6.1/.travis.yml b/third_party/mason/scripts/geojsonvt/2.1.6.1/.travis.yml deleted file mode 100644 index f6fb39bc5..000000000 --- a/third_party/mason/scripts/geojsonvt/2.1.6.1/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/2.1.6.1/script.sh b/third_party/mason/scripts/geojsonvt/2.1.6.1/script.sh deleted file mode 100755 index 2e5ce9111..000000000 --- a/third_party/mason/scripts/geojsonvt/2.1.6.1/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=2.1.6.1 -MASON_LIB_FILE=lib/libgeojsonvt.a -MASON_CXX_PACKAGE=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - e17bb4265123a4da0756f85f37a64eb49973d153 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - V=1 CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/2.1.6.2/.travis.yml b/third_party/mason/scripts/geojsonvt/2.1.6.2/.travis.yml deleted file mode 100644 index f6fb39bc5..000000000 --- a/third_party/mason/scripts/geojsonvt/2.1.6.2/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/2.1.6.2/script.sh b/third_party/mason/scripts/geojsonvt/2.1.6.2/script.sh deleted file mode 100755 index f22450cd1..000000000 --- a/third_party/mason/scripts/geojsonvt/2.1.6.2/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=2.1.6.2 -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - ee14b47a102ed1eae4ed189c7303905c41ddd08a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/2.1.6.3/.travis.yml b/third_party/mason/scripts/geojsonvt/2.1.6.3/.travis.yml deleted file mode 100644 index f6fb39bc5..000000000 --- a/third_party/mason/scripts/geojsonvt/2.1.6.3/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/2.1.6.3/script.sh b/third_party/mason/scripts/geojsonvt/2.1.6.3/script.sh deleted file mode 100755 index de834f2d7..000000000 --- a/third_party/mason/scripts/geojsonvt/2.1.6.3/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=2.1.6.3 -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - d94297eac316190c7dc6723137e7fbd27bc4fd1d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/2.1.6/.travis.yml b/third_party/mason/scripts/geojsonvt/2.1.6/.travis.yml deleted file mode 100644 index f6fb39bc5..000000000 --- a/third_party/mason/scripts/geojsonvt/2.1.6/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/2.1.6/script.sh b/third_party/mason/scripts/geojsonvt/2.1.6/script.sh deleted file mode 100755 index 4619dc8fc..000000000 --- a/third_party/mason/scripts/geojsonvt/2.1.6/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=2.1.6 -MASON_LIB_FILE=lib/libgeojsonvt.a -MASON_CXX_PACKAGE=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - 684d7e3ce744dfdfde2c73d76377af6968fd2a30 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/3.0.0/.travis.yml b/third_party/mason/scripts/geojsonvt/3.0.0/.travis.yml deleted file mode 100644 index f6fb39bc5..000000000 --- a/third_party/mason/scripts/geojsonvt/3.0.0/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/3.0.0/script.sh b/third_party/mason/scripts/geojsonvt/3.0.0/script.sh deleted file mode 100755 index a3c58ecb7..000000000 --- a/third_party/mason/scripts/geojsonvt/3.0.0/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=3.0.0 -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - b6bdbd0fcc0e85c280d7b93300c72761d5d8fbd8 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/3.0.1/.travis.yml b/third_party/mason/scripts/geojsonvt/3.0.1/.travis.yml deleted file mode 100644 index f6fb39bc5..000000000 --- a/third_party/mason/scripts/geojsonvt/3.0.1/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/3.0.1/script.sh b/third_party/mason/scripts/geojsonvt/3.0.1/script.sh deleted file mode 100755 index 544462449..000000000 --- a/third_party/mason/scripts/geojsonvt/3.0.1/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=3.0.1 -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - 611eff90164f43960b08f96ba3bdd9820c7a3551 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/3.1.0/.travis.yml b/third_party/mason/scripts/geojsonvt/3.1.0/.travis.yml deleted file mode 100644 index f6fb39bc5..000000000 --- a/third_party/mason/scripts/geojsonvt/3.1.0/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/3.1.0/script.sh b/third_party/mason/scripts/geojsonvt/3.1.0/script.sh deleted file mode 100755 index 17dbe5e84..000000000 --- a/third_party/mason/scripts/geojsonvt/3.1.0/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=3.1.0 -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - 68fc1039b0e8906d58af23853f2fd6d0854d5910 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/4.0.0/.travis.yml b/third_party/mason/scripts/geojsonvt/4.0.0/.travis.yml deleted file mode 100644 index c34f36a54..000000000 --- a/third_party/mason/scripts/geojsonvt/4.0.0/.travis.yml +++ /dev/null @@ -1,48 +0,0 @@ -language: c - -sudo: false - -matrix: - exclude: - - os: linux - - os: osx - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/4.0.0/script.sh b/third_party/mason/scripts/geojsonvt/4.0.0/script.sh deleted file mode 100755 index 704582dbb..000000000 --- a/third_party/mason/scripts/geojsonvt/4.0.0/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=4.0.0 -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - feda591fb74a8b3811598ba7af533ffda982458f - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/4.1.0/.travis.yml b/third_party/mason/scripts/geojsonvt/4.1.0/.travis.yml deleted file mode 100644 index a6c36d0e0..000000000 --- a/third_party/mason/scripts/geojsonvt/4.1.0/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: c - -sudo: false - -matrix: - exclude: - - os: linux - - os: osx - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/4.1.0/script.sh b/third_party/mason/scripts/geojsonvt/4.1.0/script.sh deleted file mode 100755 index fc13039eb..000000000 --- a/third_party/mason/scripts/geojsonvt/4.1.0/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=4.1.0 -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - 910299c5b71927fb57f14dbc4acd5f0a2320eb45 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/4.1.2-cxx11abi/.travis.yml b/third_party/mason/scripts/geojsonvt/4.1.2-cxx11abi/.travis.yml deleted file mode 100644 index 8c23be1a4..000000000 --- a/third_party/mason/scripts/geojsonvt/4.1.2-cxx11abi/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: c - -sudo: false - -matrix: - exclude: - - os: linux - - os: osx - include: - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/4.1.2-cxx11abi/script.sh b/third_party/mason/scripts/geojsonvt/4.1.2-cxx11abi/script.sh deleted file mode 100755 index 819900b1b..000000000 --- a/third_party/mason/scripts/geojsonvt/4.1.2-cxx11abi/script.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=4.1.2 - -MASON_NAME=geojsonvt -MASON_VERSION=${LIB_VERSION}-cxx11abi -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${LIB_VERSION}.tar.gz \ - a98f44ee9f059e41a90dfed7e4c256c76ea4076a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${LIB_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # Force Linux Makefiles when cross-compiling for Android - if [[ ${MASON_PLATFORM:-} == 'android' ]] ; then - export GYP_FLAVOR_SUFFIX=-linux - fi - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/4.1.2/.travis.yml b/third_party/mason/scripts/geojsonvt/4.1.2/.travis.yml deleted file mode 100644 index a6c36d0e0..000000000 --- a/third_party/mason/scripts/geojsonvt/4.1.2/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: c - -sudo: false - -matrix: - exclude: - - os: linux - - os: osx - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/4.1.2/script.sh b/third_party/mason/scripts/geojsonvt/4.1.2/script.sh deleted file mode 100755 index bcb1d6fea..000000000 --- a/third_party/mason/scripts/geojsonvt/4.1.2/script.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=4.1.2 - -MASON_NAME=geojsonvt -MASON_VERSION=${LIB_VERSION} -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${LIB_VERSION}.tar.gz \ - a98f44ee9f059e41a90dfed7e4c256c76ea4076a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${LIB_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/5.0.0/.travis.yml b/third_party/mason/scripts/geojsonvt/5.0.0/.travis.yml deleted file mode 100644 index a6c36d0e0..000000000 --- a/third_party/mason/scripts/geojsonvt/5.0.0/.travis.yml +++ /dev/null @@ -1,56 +0,0 @@ -language: c - -sudo: false - -matrix: - exclude: - - os: linux - - os: osx - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/5.0.0/script.sh b/third_party/mason/scripts/geojsonvt/5.0.0/script.sh deleted file mode 100755 index d501ec91c..000000000 --- a/third_party/mason/scripts/geojsonvt/5.0.0/script.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=5.0.0 - -MASON_NAME=geojsonvt -MASON_VERSION=${LIB_VERSION} -MASON_LIB_FILE=lib/libgeojsonvt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${LIB_VERSION}.tar.gz \ - 9ab6c25076fc042f04f5488ba3726579a4b55d77 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${LIB_VERSION} -} - -function mason_compile { - # setup mason - rm -rf .mason - ln -s ${MASON_DIR} .mason - - # build - INSTALL_PREFIX=${MASON_PREFIX} ./configure - CXXFLAGS="-fPIC ${CFLAGS:-} ${CXXFLAGS:-}" make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgeojsonvt.a -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/6.0.0-pre1/.travis.yml b/third_party/mason/scripts/geojsonvt/6.0.0-pre1/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geojsonvt/6.0.0-pre1/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/6.0.0-pre1/script.sh b/third_party/mason/scripts/geojsonvt/6.0.0-pre1/script.sh deleted file mode 100755 index 5f9421c1e..000000000 --- a/third_party/mason/scripts/geojsonvt/6.0.0-pre1/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=6.0.0-pre1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - 37c180b3e3f0162fb18efab082e134ddc90c63bb - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/6.0.0/.travis.yml b/third_party/mason/scripts/geojsonvt/6.0.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geojsonvt/6.0.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/6.0.0/script.sh b/third_party/mason/scripts/geojsonvt/6.0.0/script.sh deleted file mode 100755 index a6f37b82e..000000000 --- a/third_party/mason/scripts/geojsonvt/6.0.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=6.0.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - 56e6ed66136864f4c5ca5620ad940fabd1737aca - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/6.1.0/.travis.yml b/third_party/mason/scripts/geojsonvt/6.1.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geojsonvt/6.1.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/6.1.0/script.sh b/third_party/mason/scripts/geojsonvt/6.1.0/script.sh deleted file mode 100755 index 6ba05e9ca..000000000 --- a/third_party/mason/scripts/geojsonvt/6.1.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=6.1.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - 215046da9d6439747659adffa1fc8a74191cb579 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/6.1.1/.travis.yml b/third_party/mason/scripts/geojsonvt/6.1.1/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geojsonvt/6.1.1/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/6.1.1/script.sh b/third_party/mason/scripts/geojsonvt/6.1.1/script.sh deleted file mode 100644 index df6689618..000000000 --- a/third_party/mason/scripts/geojsonvt/6.1.1/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=6.1.1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - 63e6ab7bb507888f9ef7b1a9e84341049d8dbf18 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/6.1.2/.travis.yml b/third_party/mason/scripts/geojsonvt/6.1.2/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geojsonvt/6.1.2/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/6.1.2/script.sh b/third_party/mason/scripts/geojsonvt/6.1.2/script.sh deleted file mode 100644 index 2e770e9eb..000000000 --- a/third_party/mason/scripts/geojsonvt/6.1.2/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=6.1.2 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - d7e7ac1e6ad37f1c62cfb2a42dd40dba10393fc3 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/6.1.3/.travis.yml b/third_party/mason/scripts/geojsonvt/6.1.3/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geojsonvt/6.1.3/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/6.1.3/script.sh b/third_party/mason/scripts/geojsonvt/6.1.3/script.sh deleted file mode 100644 index ee8b6979e..000000000 --- a/third_party/mason/scripts/geojsonvt/6.1.3/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=6.1.3 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - f6b33e6689b978718706c4dea924955425fdbb37 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geojsonvt/6.2.0/.travis.yml b/third_party/mason/scripts/geojsonvt/6.2.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geojsonvt/6.2.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geojsonvt/6.2.0/script.sh b/third_party/mason/scripts/geojsonvt/6.2.0/script.sh deleted file mode 100644 index 8238746fa..000000000 --- a/third_party/mason/scripts/geojsonvt/6.2.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geojsonvt -MASON_VERSION=6.2.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geojson-vt-cpp/archive/v${MASON_VERSION}.tar.gz \ - 3f23bc6ed6b51e742af7199bf46a1e6db6c6d32d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geojson-vt-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geometry/0.1.0/.travis.yml b/third_party/mason/scripts/geometry/0.1.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geometry/0.1.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geometry/0.1.0/script.sh b/third_party/mason/scripts/geometry/0.1.0/script.sh deleted file mode 100644 index d3748ed80..000000000 --- a/third_party/mason/scripts/geometry/0.1.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geometry -MASON_VERSION=0.1.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \ - 32e0fbb03adcda1c12d26f0e5b6d544275567303 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geometry.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geometry/0.2.0/.travis.yml b/third_party/mason/scripts/geometry/0.2.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geometry/0.2.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geometry/0.2.0/script.sh b/third_party/mason/scripts/geometry/0.2.0/script.sh deleted file mode 100644 index 80fe23f73..000000000 --- a/third_party/mason/scripts/geometry/0.2.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geometry -MASON_VERSION=0.2.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \ - 239381389a051b589d6a15279bce109442e28e7d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geometry.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geometry/0.3.0/.travis.yml b/third_party/mason/scripts/geometry/0.3.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geometry/0.3.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geometry/0.3.0/script.sh b/third_party/mason/scripts/geometry/0.3.0/script.sh deleted file mode 100644 index f69d5a913..000000000 --- a/third_party/mason/scripts/geometry/0.3.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geometry -MASON_VERSION=0.3.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \ - 10ea7439841c282387728ac8ea56a476482ec2ba - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geometry.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geometry/0.4.0/.travis.yml b/third_party/mason/scripts/geometry/0.4.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geometry/0.4.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geometry/0.4.0/script.sh b/third_party/mason/scripts/geometry/0.4.0/script.sh deleted file mode 100644 index 2ebc40e6d..000000000 --- a/third_party/mason/scripts/geometry/0.4.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geometry -MASON_VERSION=0.4.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \ - af84ebc1f706ab6d72fd49c9d9683a822bb1ca11 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geometry.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geometry/0.5.0/.travis.yml b/third_party/mason/scripts/geometry/0.5.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geometry/0.5.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geometry/0.5.0/script.sh b/third_party/mason/scripts/geometry/0.5.0/script.sh deleted file mode 100644 index af3c73064..000000000 --- a/third_party/mason/scripts/geometry/0.5.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geometry -MASON_VERSION=0.5.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \ - c6e53f0a74c8016365d414451beaa71032112a48 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geometry.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geometry/0.6.0/.travis.yml b/third_party/mason/scripts/geometry/0.6.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geometry/0.6.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geometry/0.6.0/script.sh b/third_party/mason/scripts/geometry/0.6.0/script.sh deleted file mode 100644 index d33594560..000000000 --- a/third_party/mason/scripts/geometry/0.6.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geometry -MASON_VERSION=0.6.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \ - 6c3b5cfe2191d00ac629bdf5c24ce986be1177d3 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geometry.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geometry/0.7.0/.travis.yml b/third_party/mason/scripts/geometry/0.7.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geometry/0.7.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geometry/0.7.0/script.sh b/third_party/mason/scripts/geometry/0.7.0/script.sh deleted file mode 100644 index d872c9c9a..000000000 --- a/third_party/mason/scripts/geometry/0.7.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geometry -MASON_VERSION=0.7.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \ - 22774806af77621e72d612ac2eece068954a7d1c - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geometry.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geometry/0.8.0/.travis.yml b/third_party/mason/scripts/geometry/0.8.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geometry/0.8.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geometry/0.8.0/script.sh b/third_party/mason/scripts/geometry/0.8.0/script.sh deleted file mode 100644 index 66a6c3ba8..000000000 --- a/third_party/mason/scripts/geometry/0.8.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geometry -MASON_VERSION=0.8.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \ - 3c73e6d44c5ef6dd891e9179d31c6e6ee73b0e32 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geometry.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geometry/0.8.1/.travis.yml b/third_party/mason/scripts/geometry/0.8.1/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geometry/0.8.1/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geometry/0.8.1/script.sh b/third_party/mason/scripts/geometry/0.8.1/script.sh deleted file mode 100644 index 98633e06c..000000000 --- a/third_party/mason/scripts/geometry/0.8.1/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geometry -MASON_VERSION=0.8.1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \ - de77d2b2c1895328838aa79eabba1db557bb7300 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geometry.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geometry/0.9.0/.travis.yml b/third_party/mason/scripts/geometry/0.9.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/geometry/0.9.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geometry/0.9.0/script.sh b/third_party/mason/scripts/geometry/0.9.0/script.sh deleted file mode 100644 index 2b443ff72..000000000 --- a/third_party/mason/scripts/geometry/0.9.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geometry -MASON_VERSION=0.9.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/geometry.hpp/archive/v${MASON_VERSION}.tar.gz \ - 4c604943ed70c08a972d666b09ff747c116e88d5 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/geometry.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/geos/3.4.2/.travis.yml b/third_party/mason/scripts/geos/3.4.2/.travis.yml deleted file mode 100644 index 6cb8a7653..000000000 --- a/third_party/mason/scripts/geos/3.4.2/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geos/3.4.2/patch.diff b/third_party/mason/scripts/geos/3.4.2/patch.diff deleted file mode 100644 index db1837116..000000000 --- a/third_party/mason/scripts/geos/3.4.2/patch.diff +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/configure b/configure -index eee34f8..808c020 100755 ---- a/configure -+++ b/configure -@@ -16149,7 +16149,7 @@ fi - $as_echo "$dummy_cv_ansi" >&6; } - - if test x"$dummy_cv_ansi" = xyes; then -- WARNFLAGS="$WARNFLAGS -ansi" -+ WARNFLAGS="$WARNFLAGS" - else - : - fi -diff --git a/include/geos/platform.h.in b/include/geos/platform.h.in -index ab63929..1bb2fae 100644 ---- a/include/geos/platform.h.in -+++ b/include/geos/platform.h.in -@@ -84,7 +84,7 @@ extern "C" - #endif - - #if defined(HAVE_ISNAN) --# define ISNAN(x) (isnan(x)) -+# define ISNAN(x) (std::isnan(x)) - #else - # if defined(_MSC_VER) - # define ISNAN(x) _isnan(x) diff --git a/third_party/mason/scripts/geos/3.4.2/script.sh b/third_party/mason/scripts/geos/3.4.2/script.sh deleted file mode 100755 index add5772e2..000000000 --- a/third_party/mason/scripts/geos/3.4.2/script.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geos -MASON_VERSION=3.4.2 -MASON_LIB_FILE=lib/libgeos.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/geos/${MASON_NAME}-${MASON_VERSION}.tar.bz2 \ - b248842dee2afa6e944693c21571a2999dfafc5a - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p1 < ./patch.diff - - # note: we put ${STDLIB_CXXFLAGS} into CXX instead of LDFLAGS due to libtool oddity: - # http://stackoverflow.com/questions/16248360/autotools-libtool-link-library-with-libstdc-despite-stdlib-libc-option-pass - if [[ $(uname -s) == 'Darwin' ]]; then - CXX="${CXX} -stdlib=libc++ -std=c++11" - fi - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --disable-shared --enable-static \ - --disable-dependency-tracking - make -j${MASON_CONCURRENCY} install -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geos/3.5.0/.travis.yml b/third_party/mason/scripts/geos/3.5.0/.travis.yml deleted file mode 100644 index 883dbbe48..000000000 --- a/third_party/mason/scripts/geos/3.5.0/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: clang - env: CXX=clang++-3.5 CC=clang-3.5 - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/geos/3.5.0/patch.diff b/third_party/mason/scripts/geos/3.5.0/patch.diff deleted file mode 100644 index 0648d22b9..000000000 --- a/third_party/mason/scripts/geos/3.5.0/patch.diff +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/configure b/configure -index eee34f8..808c020 100755 ---- a/configure -+++ b/configure -@@ -17611,7 +17611,7 @@ - $as_echo "$dummy_cv_ansi" >&6; } - - if test yes = "$dummy_cv_ansi"; then -- WARNFLAGS="$WARNFLAGS -ansi" -+ WARNFLAGS="$WARNFLAGS" - else - : - fi -diff --git a/include/geos/platform.h.in b/include/geos/platform.h.in -index ab63929..1bb2fae 100644 ---- a/include/geos/platform.h.in -+++ b/include/geos/platform.h.in -@@ -84,7 +84,7 @@ extern "C" - #endif - - #if defined(HAVE_ISNAN) --# define ISNAN(x) (isnan(x)) -+# define ISNAN(x) (std::isnan(x)) - #else - # if defined(_MSC_VER) - # define ISNAN(x) _isnan(x) diff --git a/third_party/mason/scripts/geos/3.5.0/script.sh b/third_party/mason/scripts/geos/3.5.0/script.sh deleted file mode 100755 index 213a5d3e6..000000000 --- a/third_party/mason/scripts/geos/3.5.0/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geos -MASON_VERSION=3.5.0 -MASON_LIB_FILE=lib/libgeos.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/geos/${MASON_NAME}-${MASON_VERSION}.tar.bz2 \ - a641469449fc32b829fb885cb0ea5fdd3333ce62 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - if [ "$MASON_PLATFORM" == "linux" ]; then - mason_step "Loading patch ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff" - patch -N -p1 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - fi - - # note: we put ${STDLIB_CXXFLAGS} into CXX instead of LDFLAGS due to libtool oddity: - # http://stackoverflow.com/questions/16248360/autotools-libtool-link-library-with-libstdc-despite-stdlib-libc-option-pass - if [[ $(uname -s) == 'Darwin' ]]; then - CXX="${CXX} -stdlib=libc++ -std=c++11" - fi - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --disable-shared --enable-static \ - --disable-dependency-tracking - make -j${MASON_CONCURRENCY} install -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/geowave-jace/0.8.7/.travis.yml b/third_party/mason/scripts/geowave-jace/0.8.7/.travis.yml deleted file mode 100644 index 2c724c048..000000000 --- a/third_party/mason/scripts/geowave-jace/0.8.7/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -install: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -before_script: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - -script: -- ./mason remove ${MASON_NAME} ${MASON_VERSION} -- ./mason install ${MASON_NAME} ${MASON_VERSION} - diff --git a/third_party/mason/scripts/geowave-jace/0.8.7/script.sh b/third_party/mason/scripts/geowave-jace/0.8.7/script.sh deleted file mode 100755 index e8e524924..000000000 --- a/third_party/mason/scripts/geowave-jace/0.8.7/script.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=geowave-jace -MASON_VERSION=0.8.7 -MASON_LIB_FILE=lib/libjace.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download http://s3.amazonaws.com/geowave-rpms/release/TARBALL/geowave-0.8.7-c8ef40c-jace-source.tar.gz \ - 80f7002a063c6b178366e7376597acc53859558b - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build -} - -function dep() { - ${MASON_DIR}/mason install $1 $2 - ${MASON_DIR}/mason link $1 $2 -} - -function all_deps() { - dep cmake 3.2.2 & - dep boost 1.57.0 & - dep boost_libsystem 1.57.0 & - dep boost_libthread 1.57.0 & - wait -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - all_deps - MASON_HOME=${MASON_ROOT}/.link - PATH=${MASON_HOME}/bin:$PATH -} - -function mason_compile { - mkdir -p build - cd build - cmake ../ \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DBOOST_INCLUDEDIR=${MASON_HOME}/include \ - -DBOOST_LIBRARYDIR=${MASON_HOME}/lib \ - -DCMAKE_BUILD_TYPE=Release - make -j${MASON_CONCURRENCY} - make install - mkdir -p ${MASON_PREFIX}/bin - mv ../*.jar ${MASON_PREFIX}/bin -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -ljace" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gflags/2.1.2/.travis.yml b/third_party/mason/scripts/gflags/2.1.2/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/gflags/2.1.2/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gflags/2.1.2/script.sh b/third_party/mason/scripts/gflags/2.1.2/script.sh deleted file mode 100755 index de7c784f3..000000000 --- a/third_party/mason/scripts/gflags/2.1.2/script.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=gflags -MASON_VERSION=2.1.2 -MASON_LIB_FILE=lib/libgflags.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/gflags/${MASON_NAME}/archive/v${MASON_VERSION}.tar.gz \ - 6810db9e9cb378bfc0b0fb250f27f4416df5beec - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - CCACHE_VERSION=3.3.1 - ${MASON_DIR}/mason install ccache ${CCACHE_VERSION} - MASON_CCACHE=$(${MASON_DIR}/mason prefix ccache ${CCACHE_VERSION}) - ${MASON_DIR}/mason install cmake 3.7.2 - ${MASON_DIR}/mason link cmake 3.7.2 -} - -function mason_compile { - rm -rf build - mkdir -p build - cd build - CMAKE_PREFIX_PATH=${MASON_ROOT}/.link \ - ${MASON_ROOT}/.link/bin/cmake \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DCMAKE_CXX_COMPILER_LAUNCHER="${MASON_CCACHE}/bin/ccache" \ - -DCMAKE_BUILD_TYPE=Release \ - .. - make VERBOSE=1 -j${MASON_CONCURRENCY} - make install - -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/glfw/3.1.2/.travis.yml b/third_party/mason/scripts/glfw/3.1.2/.travis.yml deleted file mode 100644 index ade5ee657..000000000 --- a/third_party/mason/scripts/glfw/3.1.2/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: cpp - -matrix: - include: - - os: osx - osx_image: xcode7 - - os: linux - -before_install: -- "if [[ `lsb_release -r` =~ '12.04' ]]; then sudo add-apt-repository --yes ppa:kubuntu-ppa/backports ; fi" -- "if [[ ${TRAVIS_OS_NAME:-linux} = 'linux' ]]; then sudo apt-get update -y ; fi" -- "if [[ ${TRAVIS_OS_NAME:-linux} = 'linux' ]]; then sudo apt-get -y install cmake libxi-dev libglu1-mesa-dev x11proto-randr-dev x11proto-xext-dev libxrandr-dev x11proto-xf86vidmode-dev libxxf86vm-dev libxcursor-dev libxinerama-dev ; fi" - -script: -- if [[ $(uname -s) == 'Darwin' ]]; then brew install cmake; fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/glfw/3.1.2/script.sh b/third_party/mason/scripts/glfw/3.1.2/script.sh deleted file mode 100755 index af4cb4925..000000000 --- a/third_party/mason/scripts/glfw/3.1.2/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=glfw -MASON_VERSION=3.1.2 -MASON_LIB_FILE=lib/libglfw3.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/glfw3.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/glfw/glfw/archive/${MASON_VERSION}.tar.gz \ - 66bf7b2fc987c0ec2ca1a4eb757b33e6f3f8bb1b - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/glfw-${MASON_VERSION} -} - -function mason_compile { - rm -rf build - mkdir build - cd build - cmake .. \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DCMAKE_INCLUDE_PATH=${MASON_PREFIX}/include \ - -DCMAKE_LIBRARY_PATH=${MASON_PREFIX}/lib \ - -DBUILD_SHARED_LIBS=OFF \ - -DGLFW_BUILD_DOCS=OFF \ - -DGLFW_BUILD_TESTS=OFF \ - -DGLFW_BUILD_EXAMPLES=OFF \ - -DCMAKE_BUILD_TYPE=Release - - make install -j${MASON_CONCURRENCY} -} - -function mason_ldflags { - LIBS=$(`mason_pkgconfig` --static --libs-only-l --libs-only-other) - echo ${LIBS//-lglfw3/} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/glfw/3.2.1/.travis.yml b/third_party/mason/scripts/glfw/3.2.1/.travis.yml deleted file mode 100644 index f5343591c..000000000 --- a/third_party/mason/scripts/glfw/3.2.1/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - george-edison55-precise-backports - packages: [ 'libstdc++-5-dev', 'cmake', 'cmake-data', - 'libxi-dev', 'libglu1-mesa-dev', 'x11proto-randr-dev', 'x11proto-xext-dev', 'libxrandr-dev', - 'x11proto-xf86vidmode-dev', 'libxxf86vm-dev', 'libxcursor-dev', 'libxinerama-dev' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/glfw/3.2.1/script.sh b/third_party/mason/scripts/glfw/3.2.1/script.sh deleted file mode 100755 index 6e2022dc9..000000000 --- a/third_party/mason/scripts/glfw/3.2.1/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=glfw -MASON_VERSION=3.2.1 -MASON_LIB_FILE=lib/libglfw3.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/glfw3.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/glfw/glfw/archive/${MASON_VERSION}.tar.gz \ - ead013413546ceabbceafbd5e714753573f67496 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/glfw-${MASON_VERSION} -} - -function mason_compile { - rm -rf build - mkdir build - cd build - cmake .. \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DCMAKE_INCLUDE_PATH=${MASON_PREFIX}/include \ - -DCMAKE_LIBRARY_PATH=${MASON_PREFIX}/lib \ - -DBUILD_SHARED_LIBS=OFF \ - -DGLFW_BUILD_DOCS=OFF \ - -DGLFW_BUILD_TESTS=OFF \ - -DGLFW_BUILD_EXAMPLES=OFF \ - -DCMAKE_BUILD_TYPE=Release - - make install -j${MASON_CONCURRENCY} -} - -function mason_ldflags { - LIBS=$(`mason_pkgconfig` --static --libs-only-l --libs-only-other) - echo ${LIBS//-lglfw3/} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/gtest/1.7.0-cxx11abi/script.sh b/third_party/mason/scripts/gtest/1.7.0-cxx11abi/script.sh deleted file mode 100755 index a5dad1f19..000000000 --- a/third_party/mason/scripts/gtest/1.7.0-cxx11abi/script.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=1.7.0 - -MASON_NAME=gtest -MASON_VERSION=${LIB_VERSION}-cxx11abi -MASON_LIB_FILE=lib/libgtest.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://googletest.googlecode.com/files/gtest-${LIB_VERSION}.zip \ - 86f5fd0ce20ef1283092d1d5a4bc004916521aaf - - - mason_setup_build_dir - unzip ../.cache/${MASON_SLUG} - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/gtest-${LIB_VERSION} -} - -function mason_compile { - if [ ${MASON_PLATFORM} = 'ios' ]; then - ${CXX:-c++} ${CFLAGS:-} -O3 -g -isystem fused-src -pthread -c -fPIC fused-src/gtest/gtest-all.cc - mkdir -p lib/.libs - libtool -static gtest-all.o -o lib/.libs/libgtest.a - else - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make -j${MASON_CONCURRENCY} - fi - - mkdir -p ${MASON_PREFIX}/lib - cp -v lib/.libs/libgtest.a ${MASON_PREFIX}/lib - mkdir -p ${MASON_PREFIX}/include/gtest - cp -v fused-src/gtest/gtest.h ${MASON_PREFIX}/include/gtest -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo -lpthread -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgtest.a -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/gtest/1.7.0/.travis.yml b/third_party/mason/scripts/gtest/1.7.0/.travis.yml deleted file mode 100644 index ac6d9af01..000000000 --- a/third_party/mason/scripts/gtest/1.7.0/.travis.yml +++ /dev/null @@ -1,46 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'george-edison55-precise-backports' ] - packages: [ 'libstdc++-5-dev', 'cmake', 'cmake-data' ] - -matrix: - exclude: - - os: linux - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - - os: linux - env: MASON_PLATFORM=linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -before_install: -- if [[ ${MASON_PLATFORM} == "osx" || ${MASON_PLATFORM} == "ios" ]]; then brew install cmake ; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gtest/1.7.0/script.sh b/third_party/mason/scripts/gtest/1.7.0/script.sh deleted file mode 100755 index 915727c28..000000000 --- a/third_party/mason/scripts/gtest/1.7.0/script.sh +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=1.7.0 - -MASON_NAME=gtest -MASON_VERSION=${LIB_VERSION} -MASON_LIB_FILE=lib/libgtest.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/google/googletest/archive/release-${LIB_VERSION}.tar.gz \ - 88afbaea71b4ba50b25f52e13e8c3b01f0f99494 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/googletest-release-${LIB_VERSION} -} - -function mason_build { - mason_load_source - mason_step "Building for Platform '${MASON_PLATFORM}/${MASON_PLATFORM_VERSION}'..." - cd "${MASON_BUILD_PATH}" - - mkdir -p ${MASON_PREFIX}/lib - mkdir -p ${MASON_PREFIX}/include/gtest - cp -rv include ${MASON_PREFIX} - - rm -rf build - mkdir -p build - cd build - if [ ${MASON_PLATFORM} = 'ios' ]; then - cmake \ - -GXcode \ - -DCMAKE_TOOLCHAIN_FILE=${MASON_DIR}/utils/ios.cmake \ - .. - xcodebuild -configuration Release -sdk iphoneos - xcodebuild -configuration Release -sdk iphonesimulator - - mason_substep "Creating Universal Binary..." - LIB_FOLDERS="Release-iphoneos Release-iphonesimulator" - mkdir -p ${MASON_PREFIX}/lib - for LIB in $(find ${LIB_FOLDERS} -name "*.a" | xargs basename | sort | uniq) ; do - lipo -create $(find ${LIB_FOLDERS} -name "${LIB}") -output ${MASON_PREFIX}/lib/${LIB} - lipo -info ${MASON_PREFIX}/lib/${LIB} - done - elif [ ${MASON_PLATFORM} = 'android' ]; then - ${MASON_DIR}/utils/android.sh > toolchain.cmake - cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \ - .. - make VERBOSE=1 -j${MASON_CONCURRENCY} gtest - cp -v libgtest.a ${MASON_PREFIX}/lib - else - cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - .. - make VERBOSE=1 -j${MASON_CONCURRENCY} gtest - cp -v libgtest.a ${MASON_PREFIX}/lib - fi -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - if [ ${MASON_PLATFORM} != 'android' ]; then - echo -lpthread - fi -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgtest.a -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/gtest/1.8.0/.travis.yml b/third_party/mason/scripts/gtest/1.8.0/.travis.yml deleted file mode 100644 index 777495b87..000000000 --- a/third_party/mason/scripts/gtest/1.8.0/.travis.yml +++ /dev/null @@ -1,46 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'george-edison55-precise-backports' ] - packages: [ 'libstdc++-5-dev', 'cmake', 'cmake-data' ] - -matrix: - exclude: - - os: linux - include: - - os: osx - osx_image: xcode8 - env: MASON_PLATFORM=ios - - os: osx - osx_image: xcode8 - env: MASON_PLATFORM=osx - - os: linux - env: MASON_PLATFORM=linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -before_install: -- if [[ ${MASON_PLATFORM} == "osx" || ${MASON_PLATFORM} == "ios" ]]; then brew install cmake ; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/gtest/1.8.0/script.sh b/third_party/mason/scripts/gtest/1.8.0/script.sh deleted file mode 100755 index 598bf87bb..000000000 --- a/third_party/mason/scripts/gtest/1.8.0/script.sh +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=1.8.0 - -MASON_NAME=gtest -MASON_VERSION=${LIB_VERSION} -MASON_LIB_FILE=lib/libgtest.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/google/googletest/archive/release-${LIB_VERSION}.tar.gz \ - a40df33faad4a1fb308282148296ad7d0df4dd7a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/googletest-release-${LIB_VERSION}/googletest -} - -function mason_build { - mason_load_source - mason_step "Building for Platform '${MASON_PLATFORM}/${MASON_PLATFORM_VERSION}'..." - cd "${MASON_BUILD_PATH}" - - mkdir -p ${MASON_PREFIX}/lib - mkdir -p ${MASON_PREFIX}/include/gtest - cp -rv include ${MASON_PREFIX} - - rm -rf build - mkdir -p build - cd build - if [ ${MASON_PLATFORM} = 'ios' ]; then - cmake \ - -GXcode \ - -DCMAKE_TOOLCHAIN_FILE=${MASON_DIR}/utils/ios.cmake \ - .. - xcodebuild -configuration Release -sdk iphoneos - xcodebuild -configuration Release -sdk iphonesimulator - - mason_substep "Creating Universal Binary..." - LIB_FOLDERS="Release-iphoneos Release-iphonesimulator" - mkdir -p ${MASON_PREFIX}/lib - for LIB in $(find ${LIB_FOLDERS} -name "*.a" | xargs basename | sort | uniq) ; do - lipo -create $(find ${LIB_FOLDERS} -name "${LIB}") -output ${MASON_PREFIX}/lib/${LIB} - lipo -info ${MASON_PREFIX}/lib/${LIB} - done - elif [ ${MASON_PLATFORM} = 'android' ]; then - ${MASON_DIR}/utils/android.sh > toolchain.cmake - cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake \ - .. - make VERBOSE=1 -j${MASON_CONCURRENCY} gtest - cp -v libgtest.a ${MASON_PREFIX}/lib - else - cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - .. - make VERBOSE=1 -j${MASON_CONCURRENCY} gtest - cp -v libgtest.a ${MASON_PREFIX}/lib - fi -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - if [ ${MASON_PLATFORM} != 'android' ]; then - echo -lpthread - fi -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libgtest.a -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/harfbuzz/0.9.40/.travis.yml b/third_party/mason/scripts/harfbuzz/0.9.40/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/harfbuzz/0.9.40/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/harfbuzz/0.9.40/patch.diff b/third_party/mason/scripts/harfbuzz/0.9.40/patch.diff deleted file mode 100644 index f51a6f8f9..000000000 --- a/third_party/mason/scripts/harfbuzz/0.9.40/patch.diff +++ /dev/null @@ -1,106 +0,0 @@ -diff --git a/configure b/configure -index 1c08cae..7ada61a 100755 ---- a/configure -+++ b/configure -@@ -18616,98 +18616,11 @@ else - with_freetype=auto - fi - --have_freetype=false --if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then -- # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2 -- --pkg_failed=no --{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 --$as_echo_n "checking for FREETYPE... " >&6; } -- --if test -n "$PKG_CONFIG"; then -- if test -n "$FREETYPE_CFLAGS"; then -- pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" -- else -- if test -n "$PKG_CONFIG" && \ -- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 12.0.6\""; } >&5 -- ($PKG_CONFIG --exists --print-errors "freetype2 >= 12.0.6") 2>&5 -- ac_status=$? -- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -- test $ac_status = 0; }; then -- pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 12.0.6" 2>/dev/null` --else -- pkg_failed=yes --fi -- fi --else -- pkg_failed=untried --fi --if test -n "$PKG_CONFIG"; then -- if test -n "$FREETYPE_LIBS"; then -- pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" -- else -- if test -n "$PKG_CONFIG" && \ -- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 12.0.6\""; } >&5 -- ($PKG_CONFIG --exists --print-errors "freetype2 >= 12.0.6") 2>&5 -- ac_status=$? -- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -- test $ac_status = 0; }; then -- pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 12.0.6" 2>/dev/null` --else -- pkg_failed=yes --fi -- fi --else -- pkg_failed=untried --fi -- -- -- --if test $pkg_failed = yes; then -- --if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then -- _pkg_short_errors_supported=yes --else -- _pkg_short_errors_supported=no --fi -- if test $_pkg_short_errors_supported = yes; then -- FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2 >= 12.0.6"` -- else -- FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 12.0.6"` -- fi -- # Put the nasty error message in config.log where it belongs -- echo "$FREETYPE_PKG_ERRORS" >&5 -- -- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 --$as_echo "no" >&6; } -- : --elif test $pkg_failed = untried; then -- : --else -- FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS -- FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS -- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --$as_echo "yes" >&6; } -- have_freetype=true --fi --fi --if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then -- as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5 --fi --if $have_freetype; then -- -+have_freetype=true - $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h - --fi -- if $have_freetype; then -- HAVE_FREETYPE_TRUE= -- HAVE_FREETYPE_FALSE='#' --else -- HAVE_FREETYPE_TRUE='#' -- HAVE_FREETYPE_FALSE= --fi -- -- -+HAVE_FREETYPE_TRUE= -+HAVE_FREETYPE_FALSE='#' - - - # Check whether --with-uniscribe was given. diff --git a/third_party/mason/scripts/harfbuzz/0.9.40/script.sh b/third_party/mason/scripts/harfbuzz/0.9.40/script.sh deleted file mode 100755 index 7720dc963..000000000 --- a/third_party/mason/scripts/harfbuzz/0.9.40/script.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=harfbuzz -MASON_VERSION=0.9.40 -MASON_LIB_FILE=lib/libharfbuzz.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/harfbuzz.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${MASON_VERSION}.tar.bz2 \ - a685da85d38c37fd27603165642fc09feb7ae7c1 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - FREETYPE_VERSION="2.5.5" - ${MASON_DIR}/mason install freetype ${FREETYPE_VERSION} - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION}) - MASON_PLATFORM= ${MASON_DIR}/mason install ragel 6.9 - export PATH=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix ragel 6.9)/bin:$PATH - export PKG_CONFIG_PATH="$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION})/lib/pkgconfig":$PKG_CONFIG_PATH - export C_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export CPLUS_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export LIBRARY_PATH="${MASON_FREETYPE}/lib" - if [[ ! `which pkg-config` ]]; then - echo "harfbuzz configure needs pkg-config, please install pkg-config" - exit 1 - fi -} - -function mason_compile { - export FREETYPE_CFLAGS="-I${MASON_FREETYPE}/include/freetype2" - export FREETYPE_LIBS="-L${MASON_FREETYPE}/lib -lfreetype -lz" - # Note CXXFLAGS overrides the harbuzz default with is `-O2 -g` - export CXXFLAGS="${CXXFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export CFLAGS="${CFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export LDFLAGS="${LDFLAGS} ${FREETYPE_LIBS}" - - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p1 < ./patch.diff - - ./configure --prefix=${MASON_PREFIX} ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --with-icu=no \ - --with-cairo=no \ - --with-glib=no \ - --with-gobject=no \ - --with-graphite2=no \ - --with-freetype \ - --with-uniscribe=no \ - --with-coretext=no - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/harfbuzz/0.9.41/.travis.yml b/third_party/mason/scripts/harfbuzz/0.9.41/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/harfbuzz/0.9.41/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/harfbuzz/0.9.41/patch.diff b/third_party/mason/scripts/harfbuzz/0.9.41/patch.diff deleted file mode 100644 index f51a6f8f9..000000000 --- a/third_party/mason/scripts/harfbuzz/0.9.41/patch.diff +++ /dev/null @@ -1,106 +0,0 @@ -diff --git a/configure b/configure -index 1c08cae..7ada61a 100755 ---- a/configure -+++ b/configure -@@ -18616,98 +18616,11 @@ else - with_freetype=auto - fi - --have_freetype=false --if test "x$with_freetype" = "xyes" -o "x$with_freetype" = "xauto"; then -- # See freetype/docs/VERSION.DLL; 12.0.6 means freetype-2.4.2 -- --pkg_failed=no --{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 --$as_echo_n "checking for FREETYPE... " >&6; } -- --if test -n "$PKG_CONFIG"; then -- if test -n "$FREETYPE_CFLAGS"; then -- pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" -- else -- if test -n "$PKG_CONFIG" && \ -- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 12.0.6\""; } >&5 -- ($PKG_CONFIG --exists --print-errors "freetype2 >= 12.0.6") 2>&5 -- ac_status=$? -- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -- test $ac_status = 0; }; then -- pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 12.0.6" 2>/dev/null` --else -- pkg_failed=yes --fi -- fi --else -- pkg_failed=untried --fi --if test -n "$PKG_CONFIG"; then -- if test -n "$FREETYPE_LIBS"; then -- pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" -- else -- if test -n "$PKG_CONFIG" && \ -- { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 12.0.6\""; } >&5 -- ($PKG_CONFIG --exists --print-errors "freetype2 >= 12.0.6") 2>&5 -- ac_status=$? -- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 -- test $ac_status = 0; }; then -- pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 12.0.6" 2>/dev/null` --else -- pkg_failed=yes --fi -- fi --else -- pkg_failed=untried --fi -- -- -- --if test $pkg_failed = yes; then -- --if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then -- _pkg_short_errors_supported=yes --else -- _pkg_short_errors_supported=no --fi -- if test $_pkg_short_errors_supported = yes; then -- FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "freetype2 >= 12.0.6"` -- else -- FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 12.0.6"` -- fi -- # Put the nasty error message in config.log where it belongs -- echo "$FREETYPE_PKG_ERRORS" >&5 -- -- { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 --$as_echo "no" >&6; } -- : --elif test $pkg_failed = untried; then -- : --else -- FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS -- FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS -- { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 --$as_echo "yes" >&6; } -- have_freetype=true --fi --fi --if test "x$with_freetype" = "xyes" -a "x$have_freetype" != "xtrue"; then -- as_fn_error $? "FreeType support requested but libfreetype2 not found" "$LINENO" 5 --fi --if $have_freetype; then -- -+have_freetype=true - $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h - --fi -- if $have_freetype; then -- HAVE_FREETYPE_TRUE= -- HAVE_FREETYPE_FALSE='#' --else -- HAVE_FREETYPE_TRUE='#' -- HAVE_FREETYPE_FALSE= --fi -- -- -+HAVE_FREETYPE_TRUE= -+HAVE_FREETYPE_FALSE='#' - - - # Check whether --with-uniscribe was given. diff --git a/third_party/mason/scripts/harfbuzz/0.9.41/script.sh b/third_party/mason/scripts/harfbuzz/0.9.41/script.sh deleted file mode 100755 index 84beebd1b..000000000 --- a/third_party/mason/scripts/harfbuzz/0.9.41/script.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=harfbuzz -MASON_VERSION=0.9.41 -MASON_LIB_FILE=lib/libharfbuzz.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/harfbuzz.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${MASON_VERSION}.tar.bz2 \ - a7d4c722f7d663dfa51503c0c857046b86495a69 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - FREETYPE_VERSION="2.6" - ${MASON_DIR}/mason install freetype ${FREETYPE_VERSION} - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION}) - MASON_PLATFORM= ${MASON_DIR}/mason install ragel 6.9 - export PATH=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix ragel 6.9)/bin:$PATH - export PKG_CONFIG_PATH="$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION})/lib/pkgconfig":$PKG_CONFIG_PATH - export C_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export CPLUS_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export LIBRARY_PATH="${MASON_FREETYPE}/lib" - if [[ ! `which pkg-config` ]]; then - echo "harfbuzz configure needs pkg-config, please install pkg-config" - exit 1 - fi -} - -function mason_compile { - export FREETYPE_CFLAGS="-I${MASON_FREETYPE}/include/freetype2" - export FREETYPE_LIBS="-L${MASON_FREETYPE}/lib -lfreetype -lz" - # Note CXXFLAGS overrides the harbuzz default with is `-O2 -g` - export CXXFLAGS="${CXXFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export CFLAGS="${CFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export LDFLAGS="${LDFLAGS} ${FREETYPE_LIBS}" - - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p1 < ./patch.diff - - ./configure --prefix=${MASON_PREFIX} ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --with-icu=no \ - --with-cairo=no \ - --with-glib=no \ - --with-gobject=no \ - --with-graphite2=no \ - --with-freetype \ - --with-uniscribe=no \ - --with-coretext=no - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/harfbuzz/1.1.2/.travis.yml b/third_party/mason/scripts/harfbuzz/1.1.2/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/harfbuzz/1.1.2/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/harfbuzz/1.1.2/script.sh b/third_party/mason/scripts/harfbuzz/1.1.2/script.sh deleted file mode 100755 index 9ad725243..000000000 --- a/third_party/mason/scripts/harfbuzz/1.1.2/script.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=harfbuzz -MASON_VERSION=1.1.2 -MASON_LIB_FILE=lib/libharfbuzz.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/harfbuzz.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${MASON_VERSION}.tar.bz2 \ - bcd27708cca5f47c11dba7d2030f33af3ae4f0cf - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - FREETYPE_VERSION="2.6" - ${MASON_DIR}/mason install freetype ${FREETYPE_VERSION} - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION}) - MASON_PLATFORM= ${MASON_DIR}/mason install ragel 6.9 - export PATH=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix ragel 6.9)/bin:$PATH - export PKG_CONFIG_PATH="$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION})/lib/pkgconfig":$PKG_CONFIG_PATH - export C_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export CPLUS_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export LIBRARY_PATH="${MASON_FREETYPE}/lib" - if [[ ! `which pkg-config` ]]; then - echo "harfbuzz configure needs pkg-config, please install pkg-config" - exit 1 - fi -} - -function mason_compile { - export FREETYPE_CFLAGS="-I${MASON_FREETYPE}/include/freetype2" - export FREETYPE_LIBS="-L${MASON_FREETYPE}/lib -lfreetype -lz" - # Note CXXFLAGS overrides the harbuzz default with is `-O2 -g` - export CXXFLAGS="${CXXFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export CFLAGS="${CFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export LDFLAGS="${LDFLAGS} ${FREETYPE_LIBS}" - - ./configure --prefix=${MASON_PREFIX} ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --with-icu=no \ - --with-cairo=no \ - --with-glib=no \ - --with-gobject=no \ - --with-graphite2=no \ - --with-freetype \ - --with-uniscribe=no \ - --with-coretext=no - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/harfbuzz/1.2.1/.travis.yml b/third_party/mason/scripts/harfbuzz/1.2.1/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/harfbuzz/1.2.1/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/harfbuzz/1.2.1/script.sh b/third_party/mason/scripts/harfbuzz/1.2.1/script.sh deleted file mode 100755 index f5f40f2dd..000000000 --- a/third_party/mason/scripts/harfbuzz/1.2.1/script.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=harfbuzz -MASON_VERSION=1.2.1 -MASON_LIB_FILE=lib/libharfbuzz.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/harfbuzz.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${MASON_VERSION}.tar.bz2 \ - 977370efcc118ddd14a9553d9a608b2619b2f786 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - FREETYPE_VERSION="2.6" - ${MASON_DIR}/mason install freetype ${FREETYPE_VERSION} - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION}) - MASON_PLATFORM= ${MASON_DIR}/mason install ragel 6.9 - export PATH=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix ragel 6.9)/bin:$PATH - export PKG_CONFIG_PATH="$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION})/lib/pkgconfig":$PKG_CONFIG_PATH - export C_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export CPLUS_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export LIBRARY_PATH="${MASON_FREETYPE}/lib" - if [[ ! `which pkg-config` ]]; then - echo "harfbuzz configure needs pkg-config, please install pkg-config" - exit 1 - fi -} - -function mason_compile { - export FREETYPE_CFLAGS="-I${MASON_FREETYPE}/include/freetype2" - export FREETYPE_LIBS="-L${MASON_FREETYPE}/lib -lfreetype -lz" - # Note CXXFLAGS overrides the harbuzz default with is `-O2 -g` - export CXXFLAGS="${CXXFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export CFLAGS="${CFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export LDFLAGS="${LDFLAGS} ${FREETYPE_LIBS}" - - ./configure --prefix=${MASON_PREFIX} ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --with-icu=no \ - --with-cairo=no \ - --with-glib=no \ - --with-gobject=no \ - --with-graphite2=no \ - --with-freetype \ - --with-uniscribe=no \ - --with-coretext=no - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/harfbuzz/1.2.6/.travis.yml b/third_party/mason/scripts/harfbuzz/1.2.6/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/harfbuzz/1.2.6/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/harfbuzz/1.2.6/script.sh b/third_party/mason/scripts/harfbuzz/1.2.6/script.sh deleted file mode 100755 index 90853ebb1..000000000 --- a/third_party/mason/scripts/harfbuzz/1.2.6/script.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=harfbuzz -MASON_VERSION=1.2.6 -MASON_LIB_FILE=lib/libharfbuzz.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/harfbuzz.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${MASON_VERSION}.tar.bz2 \ - e8c05c3e91603b7f0de9607e66475fdaa4c02970 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - FREETYPE_VERSION="2.6" - ${MASON_DIR}/mason install freetype ${FREETYPE_VERSION} - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION}) - MASON_PLATFORM= ${MASON_DIR}/mason install ragel 6.9 - export PATH=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix ragel 6.9)/bin:$PATH - export PKG_CONFIG_PATH="$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION})/lib/pkgconfig":$PKG_CONFIG_PATH - export C_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export CPLUS_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export LIBRARY_PATH="${MASON_FREETYPE}/lib" - if [[ ! `which pkg-config` ]]; then - echo "harfbuzz configure needs pkg-config, please install pkg-config" - exit 1 - fi -} - -function mason_compile { - export FREETYPE_CFLAGS="-I${MASON_FREETYPE}/include/freetype2" - export FREETYPE_LIBS="-L${MASON_FREETYPE}/lib -lfreetype -lz" - # Note CXXFLAGS overrides the harbuzz default with is `-O2 -g` - export CXXFLAGS="${CXXFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export CFLAGS="${CFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export LDFLAGS="${LDFLAGS} ${FREETYPE_LIBS}" - - ./configure --prefix=${MASON_PREFIX} ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --with-icu=no \ - --with-cairo=no \ - --with-glib=no \ - --with-gobject=no \ - --with-graphite2=no \ - --with-freetype \ - --with-uniscribe=no \ - --with-coretext=no - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/harfbuzz/1.3.0/.travis.yml b/third_party/mason/scripts/harfbuzz/1.3.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/harfbuzz/1.3.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/harfbuzz/1.3.0/script.sh b/third_party/mason/scripts/harfbuzz/1.3.0/script.sh deleted file mode 100755 index da240df5c..000000000 --- a/third_party/mason/scripts/harfbuzz/1.3.0/script.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=harfbuzz -MASON_VERSION=1.3.0 -MASON_LIB_FILE=lib/libharfbuzz.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/harfbuzz.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${MASON_VERSION}.tar.bz2 \ - f5674500c67484caa2c9936270d0a100e52f56f0 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - FREETYPE_VERSION="2.6.5" - ${MASON_DIR}/mason install freetype ${FREETYPE_VERSION} - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION}) - MASON_PLATFORM= ${MASON_DIR}/mason install ragel 6.9 - export PATH=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix ragel 6.9)/bin:$PATH - export PKG_CONFIG_PATH="$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION})/lib/pkgconfig":$PKG_CONFIG_PATH - export C_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export CPLUS_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export LIBRARY_PATH="${MASON_FREETYPE}/lib" - if [[ ! `which pkg-config` ]]; then - echo "harfbuzz configure needs pkg-config, please install pkg-config" - exit 1 - fi -} - -function mason_compile { - export FREETYPE_CFLAGS="-I${MASON_FREETYPE}/include/freetype2" - export FREETYPE_LIBS="-L${MASON_FREETYPE}/lib -lfreetype -lz" - # Note CXXFLAGS overrides the harbuzz default with is `-O2 -g` - export CXXFLAGS="${CXXFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export CFLAGS="${CFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export LDFLAGS="${LDFLAGS} ${FREETYPE_LIBS}" - - ./configure --prefix=${MASON_PREFIX} ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --with-icu=no \ - --with-cairo=no \ - --with-glib=no \ - --with-gobject=no \ - --with-graphite2=no \ - --with-freetype \ - --with-uniscribe=no \ - --with-coretext=no - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/harfbuzz/1.4.2-ft/.travis.yml b/third_party/mason/scripts/harfbuzz/1.4.2-ft/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/harfbuzz/1.4.2-ft/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/harfbuzz/1.4.2-ft/script.sh b/third_party/mason/scripts/harfbuzz/1.4.2-ft/script.sh deleted file mode 100755 index 64e9b4279..000000000 --- a/third_party/mason/scripts/harfbuzz/1.4.2-ft/script.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=harfbuzz -MASON_VERSION=1.4.2-ft -MASON_LIB_FILE=lib/libharfbuzz.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/harfbuzz.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${MASON_VERSION/-ft/}.tar.bz2 \ - d8b08c8d792500f414472c8a54f69b08aabb06b4 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION/-ft/} -} - -function mason_prepare_compile { - FREETYPE_VERSION="2.7.1" - ${MASON_DIR}/mason install freetype ${FREETYPE_VERSION} - MASON_FREETYPE=$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION}) - MASON_PLATFORM= ${MASON_DIR}/mason install ragel 6.9 - export PATH=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix ragel 6.9)/bin:$PATH - export PKG_CONFIG_PATH="$(${MASON_DIR}/mason prefix freetype ${FREETYPE_VERSION})/lib/pkgconfig":$PKG_CONFIG_PATH - export C_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export CPLUS_INCLUDE_PATH="${MASON_FREETYPE}/include/freetype2" - export LIBRARY_PATH="${MASON_FREETYPE}/lib" - if [[ ! `which pkg-config` ]]; then - echo "harfbuzz configure needs pkg-config, please install pkg-config" - exit 1 - fi -} - -function mason_compile { - export FREETYPE_CFLAGS="-I${MASON_FREETYPE}/include/freetype2" - export FREETYPE_LIBS="-L${MASON_FREETYPE}/lib -lfreetype -lz" - # Note CXXFLAGS overrides the harfbuzz default with is `-O2 -g` - export CXXFLAGS="${CXXFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export CFLAGS="${CFLAGS} ${FREETYPE_CFLAGS} -O3 -DNDEBUG" - export LDFLAGS="${LDFLAGS} ${FREETYPE_LIBS}" - - ./configure --prefix=${MASON_PREFIX} ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --with-freetype \ - --with-ucdn=yes \ - --with-icu=no \ - --with-cairo=no \ - --with-glib=no \ - --with-gobject=no \ - --with-graphite2=no \ - --with-fontconfig=no \ - --with-uniscribe=no \ - --with-directwrite=no \ - --with-coretext=no - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/harfbuzz/1.4.2/.travis.yml b/third_party/mason/scripts/harfbuzz/1.4.2/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/harfbuzz/1.4.2/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/harfbuzz/1.4.2/script.sh b/third_party/mason/scripts/harfbuzz/1.4.2/script.sh deleted file mode 100755 index 7efacc5d9..000000000 --- a/third_party/mason/scripts/harfbuzz/1.4.2/script.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=harfbuzz -MASON_VERSION=1.4.2 -MASON_LIB_FILE=lib/libharfbuzz.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/harfbuzz.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.freedesktop.org/software/harfbuzz/release/harfbuzz-${MASON_VERSION}.tar.bz2 \ - d8b08c8d792500f414472c8a54f69b08aabb06b4 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - MASON_PLATFORM= ${MASON_DIR}/mason install ragel 6.9 - export PATH=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix ragel 6.9)/bin:$PATH - if [[ ! `which pkg-config` ]]; then - echo "harfbuzz configure needs pkg-config, please install pkg-config" - exit 1 - fi -} - -function mason_compile { - # Note CXXFLAGS overrides the harfbuzz default with is `-O2 -g` - export CXXFLAGS="${CXXFLAGS} -O3 -DNDEBUG" - export CFLAGS="${CFLAGS} -O3 -DNDEBUG" - - ./configure --prefix=${MASON_PREFIX} ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --with-freetype=no \ - --with-ucdn=yes \ - --with-icu=no \ - --with-cairo=no \ - --with-glib=no \ - --with-gobject=no \ - --with-graphite2=no \ - --with-fontconfig=no \ - --with-uniscribe=no \ - --with-directwrite=no \ - --with-coretext=no - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/hpp_skel/0.0.1/.travis.yml b/third_party/mason/scripts/hpp_skel/0.0.1/.travis.yml deleted file mode 100644 index 6620f3a74..000000000 --- a/third_party/mason/scripts/hpp_skel/0.0.1/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/hpp_skel/0.0.1/script.sh b/third_party/mason/scripts/hpp_skel/0.0.1/script.sh deleted file mode 100755 index 747573869..000000000 --- a/third_party/mason/scripts/hpp_skel/0.0.1/script.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=hpp_skel -MASON_VERSION=0.0.1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/hpp-skel/archive/v${MASON_VERSION}.tar.gz \ - 2876991412fcfd41bd7d606e78025e2d3f6e319b - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/hpp-skel-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include ${MASON_PREFIX}/include -} - -mason_run "$@" \ No newline at end of file diff --git a/third_party/mason/scripts/hpp_skel/0.0.2/.travis.yml b/third_party/mason/scripts/hpp_skel/0.0.2/.travis.yml deleted file mode 100644 index 6620f3a74..000000000 --- a/third_party/mason/scripts/hpp_skel/0.0.2/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/hpp_skel/0.0.2/script.sh b/third_party/mason/scripts/hpp_skel/0.0.2/script.sh deleted file mode 100755 index e8de4993e..000000000 --- a/third_party/mason/scripts/hpp_skel/0.0.2/script.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=hpp_skel -MASON_VERSION=0.0.2 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/hpp-skel/archive/v${MASON_VERSION}.tar.gz \ - 77a58e9b1071cab2edebca12f04b22b85f1a7085 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/hpp-skel-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include ${MASON_PREFIX}/include -} - -mason_run "$@" \ No newline at end of file diff --git a/third_party/mason/scripts/hpp_skel/1.0.0/.travis.yml b/third_party/mason/scripts/hpp_skel/1.0.0/.travis.yml deleted file mode 100644 index 6620f3a74..000000000 --- a/third_party/mason/scripts/hpp_skel/1.0.0/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/hpp_skel/1.0.0/script.sh b/third_party/mason/scripts/hpp_skel/1.0.0/script.sh deleted file mode 100755 index 9f037621b..000000000 --- a/third_party/mason/scripts/hpp_skel/1.0.0/script.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=hpp_skel -MASON_VERSION=1.0.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/hpp-skel/archive/v${MASON_VERSION}.tar.gz \ - 0a869f57141a52e3d2f18fb8f857bd93c3f4f044 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/hpp-skel-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/hello_world ${MASON_PREFIX}/include/hello_world -} - -mason_run "$@" \ No newline at end of file diff --git a/third_party/mason/scripts/iconv/system/.travis.yml b/third_party/mason/scripts/iconv/system/.travis.yml deleted file mode 100644 index 9da353782..000000000 --- a/third_party/mason/scripts/iconv/system/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -#- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/iconv/system/script.sh b/third_party/mason/scripts/iconv/system/script.sh deleted file mode 100755 index 2a09510fe..000000000 --- a/third_party/mason/scripts/iconv/system/script.sh +++ /dev/null @@ -1,86 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=iconv -MASON_VERSION=system -MASON_SYSTEM_PACKAGE=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - : -} - -function mason_system_version { - mkdir -p "${MASON_PREFIX}" - cd "${MASON_PREFIX}" - if [ ! -f version ]; then - echo "#include -#include -#include -int main() { - printf(\"%d.%d\",_libiconv_version >> 8, _libiconv_version & 0xff); - return 0; -} -" > version.c && cc version.c -I${MASON_PREFIX}/include/ -L${MASON_PREFIX}/lib -liconv -o version - fi - ./version -} - -if [[ ${MASON_PLATFORM} = 'osx' || ${MASON_PLATFORM} = 'ios' ]]; then - MASON_HEADER_FILE="${MASON_SDK_PATH}/usr/include/iconv.h" - if [ ! -f "${MASON_HEADER_FILE}" ]; then - mason_error "Can't find header file ${MASON_HEADER_FILE}" - exit 1 - fi - - MASON_LIBRARY_FILE="${MASON_SDK_PATH}/usr/lib/libiconv.dylib" - if [ ! -f "${MASON_LIBRARY_FILE}" ]; then - mason_error "Can't find library file ${MASON_LIBRARY_FILE}" - exit 1 - fi - MASON_CFLAGS="-I${MASON_PREFIX}/include/" - MASON_LDFLAGS="-L${MASON_PREFIX}/lib -liconv" -elif [[ ${MASON_PLATFORM} = 'android' ]]; then - MASON_HEADER_FILE="${MASON_SDK_PATH}/usr/include/iconv.h" - if [ ! -f "${MASON_HEADER_FILE}" ]; then - mason_error "Can't find header file ${MASON_HEADER_FILE}" - exit 1 - fi - - MASON_LIBRARY_FILE="${MASON_SDK_PATH}/usr/lib/libiconv.so" - if [ ! -f "${MASON_LIBRARY_FILE}" ]; then - mason_error "Can't find library file ${MASON_LIBRARY_FILE}" - exit 1 - fi - - MASON_CFLAGS="-I${MASON_PREFIX}/include/" - MASON_LDFLAGS="-L${MASON_PREFIX}/lib -liconv" -else - MASON_CFLAGS="-I${MASON_PREFIX}/include/" - MASON_LDFLAGS="-L${MASON_PREFIX}/lib -liconv" -fi - -function mason_compile { - mkdir -p ${MASON_PREFIX}/lib/ - mkdir -p ${MASON_PREFIX}/include/ - if [[ ${MASON_PLATFORM} = 'osx' || ${MASON_PLATFORM} = 'ios' ]]; then - ln -sf ${MASON_SDK_PATH}/usr/include/iconv.h ${MASON_PREFIX}/include/iconv.h - ln -sf ${MASON_SDK_PATH}/usr/lib/libiconv.dylib ${MASON_PREFIX}/lib/libiconv.dylib - elif [[ ${MASON_PLATFORM} = 'android' ]]; then - ln -sf ${MASON_SDK_PATH}/usr/include/iconv.h ${MASON_PREFIX}/include/iconv.h - ln -sf ${MASON_SDK_PATH}/usr/lib/libiconv.dylib ${MASON_PREFIX}/lib/libiconv.dylib - elif [[ -d /usr/include/iconv.h ]]; then - ln -sf /usr/include/iconv.h ${MASON_PREFIX}/include/iconv.h - ln -sf /usr/lib/libiconv.so ${MASON_PREFIX}/lib/libiconv.so - fi -} - -function mason_cflags { - echo ${MASON_CFLAGS} -} - -function mason_ldflags { - echo ${MASON_LDFLAGS} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/icu/54.1/.travis.yml b/third_party/mason/scripts/icu/54.1/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/icu/54.1/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/icu/54.1/script.sh b/third_party/mason/scripts/icu/54.1/script.sh deleted file mode 100755 index 4620dd5ee..000000000 --- a/third_party/mason/scripts/icu/54.1/script.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=icu -MASON_VERSION=54.1 -MASON_LIB_FILE=lib/libicuuc.a -#MASON_PKGCONFIG_FILE=lib/pkgconfig/icu-uc.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.icu-project.org/files/icu4c/54.1/icu4c-54_1-src.tgz \ - d0f79be346f75862ccef8fd641e429d9c129ac14 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME} -} - -function mason_compile { - # note: -DUCONFIG_NO_BREAK_ITERATION=1 is desired by mapnik (for toTitle) - # http://www.icu-project.org/apiref/icu4c/uconfig_8h_source.html - export ICU_CORE_CPP_FLAGS="-DU_CHARSET_IS_UTF8=1" - # disabled due to breakage with node-mapnik on OS X: https://github.com/mapnik/mapnik-packaging/issues/98 - # -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION=1 -DU_TIMEZONE=0 -DUCONFIG_NO_LEGACY_CONVERSION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1" - export ICU_EXTRA_CPP_FLAGS="${ICU_CORE_CPP_FLAGS} -DUCONFIG_NO_COLLATION=1" - cd ./source - CFLAGS="${CFLAGS} -fvisibility=hidden" - CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" - ./configure ${MASON_HOST_ARG} --prefix=${MASON_PREFIX} \ - --with-data-packaging=archive \ - --enable-renaming \ - --enable-strict \ - --enable-release \ - --enable-static \ - --enable-draft \ - --enable-tools \ - --disable-rpath \ - --disable-debug \ - --disable-shared \ - --disable-tests \ - --disable-extras \ - --disable-tracing \ - --disable-layout \ - --disable-icuio \ - --disable-samples \ - --disable-dyload - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - echo "-lharfbuzz" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/icu/55.1/.travis.yml b/third_party/mason/scripts/icu/55.1/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/icu/55.1/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/icu/55.1/script.sh b/third_party/mason/scripts/icu/55.1/script.sh deleted file mode 100755 index a161f9917..000000000 --- a/third_party/mason/scripts/icu/55.1/script.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=icu -MASON_VERSION=55.1 -MASON_LIB_FILE=lib/libicuuc.a -#MASON_PKGCONFIG_FILE=lib/pkgconfig/icu-uc.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-src.tgz \ - 0b38bcdde97971917f0039eeeb5d070ed29e5ad7 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME} -} - -function mason_compile { - # note: -DUCONFIG_NO_BREAK_ITERATION=1 is desired by mapnik (for toTitle) - # http://www.icu-project.org/apiref/icu4c/uconfig_8h_source.html - export ICU_CORE_CPP_FLAGS="-DU_CHARSET_IS_UTF8=1" - # disabled due to breakage with node-mapnik on OS X: https://github.com/mapnik/mapnik-packaging/issues/98 - # -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION=1 -DU_TIMEZONE=0 -DUCONFIG_NO_LEGACY_CONVERSION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1" - export ICU_EXTRA_CPP_FLAGS="${ICU_CORE_CPP_FLAGS} -DUCONFIG_NO_COLLATION=1" - cd ./source - CFLAGS="${CFLAGS} -fvisibility=hidden" - CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" - ./configure ${MASON_HOST_ARG} --prefix=${MASON_PREFIX} \ - --with-data-packaging=archive \ - --enable-renaming \ - --enable-strict \ - --enable-release \ - --enable-static \ - --enable-draft \ - --enable-tools \ - --disable-rpath \ - --disable-debug \ - --disable-shared \ - --disable-tests \ - --disable-extras \ - --disable-tracing \ - --disable-layout \ - --disable-icuio \ - --disable-samples \ - --disable-dyload - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - echo "-licuuc" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/icu/58.1/.travis.yml b/third_party/mason/scripts/icu/58.1/.travis.yml deleted file mode 100644 index 370fbba2b..000000000 --- a/third_party/mason/scripts/icu/58.1/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - compiler: clang - sudo: false - - os: osx - env: MASON_PLATFORM=ios - compiler: clang - - os: linux - env: MASON_PLATFORM_VERSION=cortex_a9 - - os: linux - env: MASON_PLATFORM_VERSION=i686 - - os: linux - compiler: clang - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - - os: osx - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: osx - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: osx - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: osx - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: osx - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: osx - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: osx - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/icu/58.1/script.sh b/third_party/mason/scripts/icu/58.1/script.sh deleted file mode 100755 index ef2c38df6..000000000 --- a/third_party/mason/scripts/icu/58.1/script.sh +++ /dev/null @@ -1,119 +0,0 @@ -#!/usr/bin/env bash - -# Build ICU common package (libicuuc.a) with data file separate and with support for legacy conversion and break iteration turned off in order to minimize size - -MASON_NAME=icu -MASON_VERSION=58.1 -MASON_LIB_FILE=lib/libicuuc.a -#MASON_PKGCONFIG_FILE=lib/pkgconfig/icu-uc.pc - -. ${MASON_DIR}/mason.sh - -MASON_BUILD_DEBUG=0 # Enable to build library with debug symbols -MASON_CROSS_BUILD=0 - -function mason_load_source { - mason_download \ - http://download.icu-project.org/files/icu4c/58.1/icu4c-58_1-src.tgz \ - ad6995ba349ed79dde0f25d125a9b0bb56979420 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME} -} - -function mason_prepare_compile { - if [[ ${MASON_PLATFORM} == 'ios' || ${MASON_PLATFORM} == 'android' || ${MASON_PLATFORM_VERSION} != `uname -m` ]]; then - mason_substep "Cross-compiling ICU. Starting with host build of ICU to generate tools." - - pushd ${MASON_ROOT}/.. - env -i HOME="$HOME" PATH="$PATH" USER="$USER" ${MASON_DIR}/mason build icu ${MASON_VERSION} - popd - - # TODO: Copies a bunch of files to a kind of orphaned place, do we need to do something to clean up after the build? - # Copying the whole build directory is the easiest way to do a cross build, but we could limit this to a small subset of files (icucross.mk, the tools directory, probably a few others...) - # Also instead of using the regular build steps, we could use a dedicated built target that just builds the tools - mason_substep "Moving host ICU build directory to ${MASON_ROOT}/.build/icu-host" - rm -rf ${MASON_ROOT}/.build/icu-host - cp -R ${MASON_BUILD_PATH}/source ${MASON_ROOT}/.build/icu-host - fi -} - -function mason_compile { - if [[ ${MASON_PLATFORM} == 'ios' || ${MASON_PLATFORM} == 'android' || ${MASON_PLATFORM_VERSION} != `uname -m` ]]; then - MASON_CROSS_BUILD=1 - fi - mason_compile_base -} - -function mason_compile_base { - pushd ${MASON_BUILD_PATH}/source - - # Using uint_least16_t instead of char16_t because Android Clang doesn't recognize char16_t - # I'm being shady and telling users of the library to use char16_t, so there's an implicit raw cast - ICU_CORE_CPP_FLAGS="-DU_CHARSET_IS_UTF8=1 -DU_CHAR_TYPE=uint_least16_t" - ICU_MODULE_CPP_FLAGS="${ICU_CORE_CPP_FLAGS} -DUCONFIG_NO_LEGACY_CONVERSION=1 -DUCONFIG_NO_BREAK_ITERATION=1" - - CPPFLAGS="${CPPFLAGS} ${ICU_CORE_CPP_FLAGS} ${ICU_MODULE_CPP_FLAGS} -fvisibility=hidden $(icu_debug_cpp)" - #CXXFLAGS="--std=c++0x" - - echo "Configuring with ${MASON_HOST_ARG}" - - ./configure ${MASON_HOST_ARG} --prefix=${MASON_PREFIX} \ - $(icu_debug_configure) \ - $(cross_build_configure) \ - --with-data-packaging=archive \ - --enable-renaming \ - --enable-strict \ - --enable-static \ - --enable-draft \ - --disable-rpath \ - --disable-shared \ - --disable-tests \ - --disable-extras \ - --disable-tracing \ - --disable-layout \ - --disable-icuio \ - --disable-samples \ - --disable-dyload || cat config.log - - - # Must do make clean after configure to clear out object files left over from previous build on different architecture - make clean - make -j${MASON_CONCURRENCY} - make install - popd -} - -function icu_debug_cpp { - if [ ${MASON_BUILD_DEBUG} ]; then - echo "-glldb" - fi -} - -function icu_debug_configure { - if [ ${MASON_BUILD_DEBUG} == 1 ]; then - echo "--enable-debug --disable-release" - else - echo "--enable-release --disable-debug" - fi -} - -function cross_build_configure { - # Building tools is disabled in cross-build mode. Using the host-built version of the tools is the whole point of the --with-cross-build flag - if [ ${MASON_CROSS_BUILD} == 1 ]; then - echo "--with-cross-build=${MASON_ROOT}/.build/icu-host --disable-tools" - else - echo "--enable-tools" - fi -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include -DUCHAR_TYPE=char16_t" -} - -function mason_ldflags { - echo "" -} - -mason_run "$@" diff --git a/third_party/mason/scripts/icu/latest/.travis.yml b/third_party/mason/scripts/icu/latest/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/icu/latest/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/icu/latest/script.sh b/third_party/mason/scripts/icu/latest/script.sh deleted file mode 100755 index da7f9dcf6..000000000 --- a/third_party/mason/scripts/icu/latest/script.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=icu -MASON_VERSION=latest -MASON_LIB_FILE=lib/libicuuc.a -#MASON_PKGCONFIG_FILE=lib/pkgconfig/icu-uc.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - export MASON_BUILD_PATH=${MASON_ROOT}/.build/icu-trunk - if [[ ! -d ${MASON_BUILD_PATH} ]]; then - svn co http://source.icu-project.org/repos/icu/icu/trunk/source/ ${MASON_BUILD_PATH} - else - (cd ${MASON_BUILD_PATH} && svn update) - fi -} - -function mason_compile { - # note: -DUCONFIG_NO_BREAK_ITERATION=1 is desired by mapnik (for toTitle) - # http://www.icu-project.org/apiref/icu4c/uconfig_8h_source.html - export ICU_CORE_CPP_FLAGS="-DU_CHARSET_IS_UTF8=1" - # disabled due to breakage with node-mapnik on OS X: https://github.com/mapnik/mapnik-packaging/issues/98 - # -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION=1 -DU_TIMEZONE=0 -DUCONFIG_NO_LEGACY_CONVERSION=1 -DUCONFIG_NO_FORMATTING=1 -DUCONFIG_NO_TRANSLITERATION=1 -DUCONFIG_NO_REGULAR_EXPRESSIONS=1" - export ICU_EXTRA_CPP_FLAGS="${ICU_CORE_CPP_FLAGS} -DUCONFIG_NO_COLLATION=1" - CFLAGS="${CFLAGS} -fvisibility=hidden" - CXXFLAGS="${CXXFLAGS} -fvisibility=hidden" - ./configure ${MASON_HOST_ARG} --prefix=${MASON_PREFIX} \ - --with-data-packaging=archive \ - --enable-renaming \ - --enable-strict \ - --enable-release \ - --enable-static \ - --enable-draft \ - --enable-tools \ - --disable-rpath \ - --disable-debug \ - --disable-shared \ - --disable-tests \ - --disable-extras \ - --disable-tracing \ - --disable-layout \ - --disable-icuio \ - --disable-samples \ - --disable-dyload - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - echo "" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/include-what-you-use/3.8.1/.travis.yml b/third_party/mason/scripts/include-what-you-use/3.8.1/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/include-what-you-use/3.8.1/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/include-what-you-use/3.8.1/script.sh b/third_party/mason/scripts/include-what-you-use/3.8.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/include-what-you-use/3.8.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/include-what-you-use/3.9.1/.travis.yml b/third_party/mason/scripts/include-what-you-use/3.9.1/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/include-what-you-use/3.9.1/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/include-what-you-use/3.9.1/script.sh b/third_party/mason/scripts/include-what-you-use/3.9.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/include-what-you-use/3.9.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/include-what-you-use/4.0.0/.travis.yml b/third_party/mason/scripts/include-what-you-use/4.0.0/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/include-what-you-use/4.0.0/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/include-what-you-use/4.0.0/script.sh b/third_party/mason/scripts/include-what-you-use/4.0.0/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/include-what-you-use/4.0.0/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/include-what-you-use/base/common.sh b/third_party/mason/scripts/include-what-you-use/base/common.sh deleted file mode 100755 index 20b57971b..000000000 --- a/third_party/mason/scripts/include-what-you-use/base/common.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -function mason_build { - ${MASON_DIR}/mason install llvm ${MASON_VERSION} - CLANG_PREFIX=$(${MASON_DIR}/mason prefix llvm ${MASON_VERSION}) - # copy bin - mkdir -p "${MASON_PREFIX}/bin" - cp -a "${CLANG_PREFIX}/bin/${MASON_NAME}" "${MASON_PREFIX}/bin/" - cp -a "${CLANG_PREFIX}/bin/iwyu_tool.py" "${MASON_PREFIX}/bin/" - - # copy share - mkdir -p "${MASON_PREFIX}/share" - # directory only present with llvm >= 3.9 - if [[ -d "{CLANG_PREFIX}/share/${MASON_NAME}" ]]; then - cp -r "${CLANG_PREFIX}/share/${MASON_NAME}" "${MASON_PREFIX}/share/" - fi -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} \ No newline at end of file diff --git a/third_party/mason/scripts/iojs/1.2.0/.travis.yml b/third_party/mason/scripts/iojs/1.2.0/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/iojs/1.2.0/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/iojs/1.2.0/script.sh b/third_party/mason/scripts/iojs/1.2.0/script.sh deleted file mode 100755 index 985fd8c52..000000000 --- a/third_party/mason/scripts/iojs/1.2.0/script.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=iojs -MASON_VERSION=1.2.0 -MASON_LIB_FILE=bin/iojs - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - https://iojs.org/dist/v1.2.0/iojs-v1.2.0-darwin-x64.tar.gz \ - 15c553a35abb84085f993e605b83a6b924e22f3c - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - https://iojs.org/dist/v1.2.0/iojs-v1.2.0-linux-x64.tar.gz \ - 054234cb47ba4a3b3826a892836760b107596a57 - fi - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - mv -v */* ${MASON_PREFIX} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/iojs/2.0.1/.travis.yml b/third_party/mason/scripts/iojs/2.0.1/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/iojs/2.0.1/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/iojs/2.0.1/script.sh b/third_party/mason/scripts/iojs/2.0.1/script.sh deleted file mode 100755 index 22361da6e..000000000 --- a/third_party/mason/scripts/iojs/2.0.1/script.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=iojs -MASON_VERSION=2.0.1 -MASON_LIB_FILE=bin/iojs - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - https://iojs.org/dist/v2.0.1/iojs-v2.0.1-darwin-x64.tar.gz \ - 0b6d6a783907f4f4ef84e84af6b1ff9e954aae13 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - https://iojs.org/dist/v2.0.1/iojs-v2.0.1-linux-x64.tar.gz \ - 33ce94f563cc6deaf7bf84d66822be2770b5aad6 - fi - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - mv -v */* ${MASON_PREFIX} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/jemalloc/4.2.1/.travis.yml b/third_party/mason/scripts/jemalloc/4.2.1/.travis.yml deleted file mode 100644 index 9a6107680..000000000 --- a/third_party/mason/scripts/jemalloc/4.2.1/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - compiler: clang - sudo: false - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/jemalloc/4.2.1/script.sh b/third_party/mason/scripts/jemalloc/4.2.1/script.sh deleted file mode 100755 index 5f3489a55..000000000 --- a/third_party/mason/scripts/jemalloc/4.2.1/script.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=jemalloc -MASON_VERSION=4.2.1 -MASON_LIB_FILE=bin/jeprof - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/jemalloc/jemalloc/releases/download/${MASON_VERSION}/jemalloc-${MASON_VERSION}.tar.bz2 \ - 6bd515d75d192ac82f3171d36a998e0e6e77ac8a - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - # warning: CFLAGS overwrites jemalloc CFLAGS, so we need to add back the jemalloc defaults - export CFLAGS="${CFLAGS} -std=gnu99 -Wall -pipe -O3 -funroll-loops" - ./configure --prefix=${MASON_PREFIX} - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/jemalloc/4.4.0/.travis.yml b/third_party/mason/scripts/jemalloc/4.4.0/.travis.yml deleted file mode 100644 index e5ec5ff23..000000000 --- a/third_party/mason/scripts/jemalloc/4.4.0/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - compiler: clang - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/jemalloc/4.4.0/script.sh b/third_party/mason/scripts/jemalloc/4.4.0/script.sh deleted file mode 100755 index c82368aa8..000000000 --- a/third_party/mason/scripts/jemalloc/4.4.0/script.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=jemalloc -MASON_VERSION=4.4.0 -MASON_LIB_FILE=bin/jeprof - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/jemalloc/jemalloc/releases/download/${MASON_VERSION}/jemalloc-${MASON_VERSION}.tar.bz2 \ - 90f752aeb070639f5f8fd5d87a86cf9cc2ddc8f3 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - # warning: CFLAGS overwrites jemalloc CFLAGS, so we need to add back the jemalloc defaults - export CFLAGS="${CFLAGS} -std=gnu11 -Wall -pipe -O3 -funroll-loops -DNDEBUG -D_REENTRANT" - ./configure --prefix=${MASON_PREFIX} - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/jni.hpp/1.0.0/.travis.yml b/third_party/mason/scripts/jni.hpp/1.0.0/.travis.yml deleted file mode 100644 index 379192656..000000000 --- a/third_party/mason/scripts/jni.hpp/1.0.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/jni.hpp/1.0.0/script.sh b/third_party/mason/scripts/jni.hpp/1.0.0/script.sh deleted file mode 100755 index 050d0927a..000000000 --- a/third_party/mason/scripts/jni.hpp/1.0.0/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=jni.hpp -MASON_VERSION=1.0.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/jni.hpp/archive/v${MASON_VERSION}.tar.gz \ - eff354ffb0c01d1bcca562c779d78d4261516eeb - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/jni.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - cp -vR include README.md LICENSE.txt ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" \ No newline at end of file diff --git a/third_party/mason/scripts/jni.hpp/2.0.0-1/.travis.yml b/third_party/mason/scripts/jni.hpp/2.0.0-1/.travis.yml deleted file mode 100644 index 379192656..000000000 --- a/third_party/mason/scripts/jni.hpp/2.0.0-1/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/jni.hpp/2.0.0-1/script.sh b/third_party/mason/scripts/jni.hpp/2.0.0-1/script.sh deleted file mode 100755 index 85ecdecce..000000000 --- a/third_party/mason/scripts/jni.hpp/2.0.0-1/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=jni.hpp -MASON_VERSION=2.0.0-1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/jni.hpp/archive/v2.0.0.tar.gz \ - 02a99b3a4b55686a8956c8bef9de036819826de0 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/jni.hpp-2.0.0 -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - cp -vR include README.md LICENSE.txt ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" \ No newline at end of file diff --git a/third_party/mason/scripts/jni.hpp/2.0.0/.travis.yml b/third_party/mason/scripts/jni.hpp/2.0.0/.travis.yml deleted file mode 100644 index 379192656..000000000 --- a/third_party/mason/scripts/jni.hpp/2.0.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/jni.hpp/2.0.0/script.sh b/third_party/mason/scripts/jni.hpp/2.0.0/script.sh deleted file mode 100755 index c2ba706aa..000000000 --- a/third_party/mason/scripts/jni.hpp/2.0.0/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=jni.hpp -MASON_VERSION=2.0.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/jni.hpp/archive/v${MASON_VERSION}.tar.gz \ - 02a99b3a4b55686a8956c8bef9de036819826de0 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/jni.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - cp -vR include README.md LICENSE.txt ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" \ No newline at end of file diff --git a/third_party/mason/scripts/jni.hpp/3.0.0/.travis.yml b/third_party/mason/scripts/jni.hpp/3.0.0/.travis.yml deleted file mode 100644 index 379192656..000000000 --- a/third_party/mason/scripts/jni.hpp/3.0.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/jni.hpp/3.0.0/script.sh b/third_party/mason/scripts/jni.hpp/3.0.0/script.sh deleted file mode 100755 index 3082755a6..000000000 --- a/third_party/mason/scripts/jni.hpp/3.0.0/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=jni.hpp -MASON_VERSION=3.0.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/jni.hpp/archive/v${MASON_VERSION}.tar.gz \ - abc0e127abfe0ce7992e29f0f1b51877495ad4f0 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/jni.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - cp -vR include README.md LICENSE.txt ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" \ No newline at end of file diff --git a/third_party/mason/scripts/jpeg/v9a/.travis.yml b/third_party/mason/scripts/jpeg/v9a/.travis.yml deleted file mode 100644 index 19f10e7d8..000000000 --- a/third_party/mason/scripts/jpeg/v9a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/jpeg/v9a/script.sh b/third_party/mason/scripts/jpeg/v9a/script.sh deleted file mode 100755 index 55a63965a..000000000 --- a/third_party/mason/scripts/jpeg/v9a/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=jpeg -MASON_VERSION=v9a -MASON_LIB_FILE=lib/libjpeg.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.ijg.org/files/jpegsrc.v9a.tar.gz \ - fc3b1eefda3d8a193f9f92a16a1b0c9f56304b6d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/jpeg-9a -} - - -function mason_compile { - export CFLAGS="${CFLAGS:-} -O3" - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - V=1 make install -j${MASON_CONCURRENCY} - rm -rf ${MASON_PREFIX}/bin -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/jpeg_turbo/1.4.0/.travis.yml b/third_party/mason/scripts/jpeg_turbo/1.4.0/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/jpeg_turbo/1.4.0/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/jpeg_turbo/1.4.0/script.sh b/third_party/mason/scripts/jpeg_turbo/1.4.0/script.sh deleted file mode 100755 index e95146c62..000000000 --- a/third_party/mason/scripts/jpeg_turbo/1.4.0/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=jpeg_turbo -MASON_VERSION=1.4.0 -MASON_LIB_FILE=lib/libjpeg.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/libjpeg-turbo/1.4.0/libjpeg-turbo-1.4.0.tar.gz \ - 6ce52501e0be70b15cd062efeca8fa57faf84a16 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libjpeg-turbo-${MASON_VERSION} -} - -function mason_prepare_compile { - MASON_PLATFORM= ${MASON_DIR}/mason install nasm 2.11.06 - MASON_NASM=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix nasm 2.11.06) -} - -function mason_compile { - ./configure \ - NASM="${MASON_NASM}/bin/nasm" \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --with-jpeg8 \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make -j1 # -j1 since build breaks with concurrency - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo -L${MASON_PREFIX}/lib -ljpeg -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/jpeg_turbo/1.4.2/.travis.yml b/third_party/mason/scripts/jpeg_turbo/1.4.2/.travis.yml deleted file mode 100644 index a724e9e3f..000000000 --- a/third_party/mason/scripts/jpeg_turbo/1.4.2/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: generic - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/jpeg_turbo/1.4.2/script.sh b/third_party/mason/scripts/jpeg_turbo/1.4.2/script.sh deleted file mode 100755 index 1e385a2c0..000000000 --- a/third_party/mason/scripts/jpeg_turbo/1.4.2/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=jpeg_turbo -MASON_VERSION=1.4.2 -MASON_LIB_FILE=lib/libjpeg.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/libjpeg-turbo/${MASON_VERSION}/libjpeg-turbo-${MASON_VERSION}.tar.gz \ - d4638b2261ac3c1c20a2a2e1f8e19fc1f11bf524 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libjpeg-turbo-${MASON_VERSION} -} - -function mason_prepare_compile { - MASON_PLATFORM= ${MASON_DIR}/mason install nasm 2.11.06 - MASON_NASM=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix nasm 2.11.06) -} - -function mason_compile { - ./configure \ - NASM="${MASON_NASM}/bin/nasm" \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --with-jpeg8 \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make -j1 # -j1 since build breaks with concurrency - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo -L${MASON_PREFIX}/lib -ljpeg -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/jpeg_turbo/1.5.0/.travis.yml b/third_party/mason/scripts/jpeg_turbo/1.5.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/jpeg_turbo/1.5.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/jpeg_turbo/1.5.0/script.sh b/third_party/mason/scripts/jpeg_turbo/1.5.0/script.sh deleted file mode 100755 index 842a7d8b6..000000000 --- a/third_party/mason/scripts/jpeg_turbo/1.5.0/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=jpeg_turbo -MASON_VERSION=1.5.0 -MASON_LIB_FILE=lib/libjpeg.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/libjpeg-turbo/${MASON_VERSION}/libjpeg-turbo-${MASON_VERSION}.tar.gz \ - b90a76db4d0628bde8381150e355a858e3ced923 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libjpeg-turbo-${MASON_VERSION} -} - -function mason_prepare_compile { - MASON_PLATFORM= ${MASON_DIR}/mason install nasm 2.11.06 - MASON_NASM=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix nasm 2.11.06) -} - -function mason_compile { - ./configure \ - NASM="${MASON_NASM}/bin/nasm" \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --with-jpeg8 \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make -j1 # -j1 since build breaks with concurrency - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo -L${MASON_PREFIX}/lib -ljpeg -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/jpeg_turbo/1.5.1/.travis.yml b/third_party/mason/scripts/jpeg_turbo/1.5.1/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/jpeg_turbo/1.5.1/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/jpeg_turbo/1.5.1/script.sh b/third_party/mason/scripts/jpeg_turbo/1.5.1/script.sh deleted file mode 100755 index 25ed7c4ae..000000000 --- a/third_party/mason/scripts/jpeg_turbo/1.5.1/script.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=jpeg_turbo -MASON_VERSION=1.5.1 -MASON_LIB_FILE=lib/libjpeg.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/libjpeg-turbo/${MASON_VERSION}/libjpeg-turbo-${MASON_VERSION}.tar.gz \ - 4038bb4242a3fc3387d5dc4e37fc2ac7fffaf5da - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libjpeg-turbo-${MASON_VERSION} -} - -function mason_prepare_compile { - MASON_PLATFORM= ${MASON_DIR}/mason install nasm 2.11.06 - MASON_NASM=$(MASON_PLATFORM= ${MASON_DIR}/mason prefix nasm 2.11.06) -} - -function mason_compile { - # note CFLAGS overrides defaults so we need to add optimization flags back - export CFLAGS="${CFLAGS} -O3 -DNDEBUG" - ./configure \ - NASM="${MASON_NASM}/bin/nasm" \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --with-jpeg8 \ - --without-12bit \ - --without-java \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make V=1 -j1 # -j1 since build breaks with concurrency - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo -L${MASON_PREFIX}/lib -ljpeg -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/js-number-to-string/1.0.2/.travis.yml b/third_party/mason/scripts/js-number-to-string/1.0.2/.travis.yml deleted file mode 100644 index 422a9dcd8..000000000 --- a/third_party/mason/scripts/js-number-to-string/1.0.2/.travis.yml +++ /dev/null @@ -1,68 +0,0 @@ -language: c - -sudo: false - -# Save common build configurations as shortcuts, so we can reference them later. -addons_shortcuts: - cmake3: &cmake3 - apt: - sources: [ 'george-edison55-precise-backports' ] - packages: [ 'cmake', 'cmake-data' ] - -matrix: - exclude: - - os: linux - - os: osx - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.7 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7', 'george-edison55-precise-backports' ] - packages: [ 'clang-3.7', 'cmake', 'cmake-data' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - addons: *cmake3 - -before_install: -- if [[ ${MASON_PLATFORM} == "osx" || ${MASON_PLATFORM} == "ios" ]]; then brew install cmake ; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/js-number-to-string/1.0.2/script.sh b/third_party/mason/scripts/js-number-to-string/1.0.2/script.sh deleted file mode 100755 index df90b3e01..000000000 --- a/third_party/mason/scripts/js-number-to-string/1.0.2/script.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=js-number-to-string -MASON_VERSION=1.0.2 -MASON_LIB_FILE=lib/libjs-number-to-string.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/js-number-to-string/archive/v${MASON_VERSION}.tar.gz \ - b6b7e0184876ef9035a555936921e8481eb9801a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/js-number-to-string-${MASON_VERSION} -} - -function mason_compile { - rm -rf build - mkdir build - cd build - CMAKE_TOOLCHAIN_FILE= - if [ ${MASON_PLATFORM} == 'ios' ] ; then - # Make sure CMake thinks we're cross-compiling and manually set the exit codes - # because CMake can't run the test programs - echo "set (CMAKE_SYSTEM_NAME Darwin)" > toolchain.cmake - CMAKE_TOOLCHAIN_FILE="-DCMAKE_TOOLCHAIN_FILE=toolchain.cmake" - elif [ ${MASON_PLATFORM} == 'android' ] ; then - # Make sure CMake thinks we're cross-compiling and manually set the exit codes - # because CMake can't run the test programs - echo "set (CMAKE_SYSTEM_NAME Android)" > toolchain.cmake - CMAKE_TOOLCHAIN_FILE="-DCMAKE_TOOLCHAIN_FILE=toolchain.cmake" - fi - - cmake .. ${CMAKE_TOOLCHAIN_FILE} \ - -DCMAKE_CXX_FLAGS="${CFLAGS:-}" \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DCMAKE_BUILD_TYPE=Release - - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -ljs-number-to-string" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/js-number-to-string/1.0.3/.travis.yml b/third_party/mason/scripts/js-number-to-string/1.0.3/.travis.yml deleted file mode 100644 index 422a9dcd8..000000000 --- a/third_party/mason/scripts/js-number-to-string/1.0.3/.travis.yml +++ /dev/null @@ -1,68 +0,0 @@ -language: c - -sudo: false - -# Save common build configurations as shortcuts, so we can reference them later. -addons_shortcuts: - cmake3: &cmake3 - apt: - sources: [ 'george-edison55-precise-backports' ] - packages: [ 'cmake', 'cmake-data' ] - -matrix: - exclude: - - os: linux - - os: osx - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.2 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7.3 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.7 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.7', 'george-edison55-precise-backports' ] - packages: [ 'clang-3.7', 'cmake', 'cmake-data' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - addons: *cmake3 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - addons: *cmake3 - -before_install: -- if [[ ${MASON_PLATFORM} == "osx" || ${MASON_PLATFORM} == "ios" ]]; then brew install cmake ; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/js-number-to-string/1.0.3/script.sh b/third_party/mason/scripts/js-number-to-string/1.0.3/script.sh deleted file mode 100755 index c6f926c0b..000000000 --- a/third_party/mason/scripts/js-number-to-string/1.0.3/script.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=js-number-to-string -MASON_VERSION=1.0.3 -MASON_LIB_FILE=lib/libjs-number-to-string.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/js-number-to-string/archive/v${MASON_VERSION}.tar.gz \ - b85f911c51309c77c5bd3239c74a62129bd6bc1c - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/js-number-to-string-${MASON_VERSION} -} - -function mason_compile { - rm -rf build - mkdir build - cd build - CMAKE_TOOLCHAIN_FILE= - if [ ${MASON_PLATFORM} == 'ios' ] ; then - # Make sure CMake thinks we're cross-compiling and manually set the exit codes - # because CMake can't run the test programs - echo "set (CMAKE_SYSTEM_NAME Darwin)" > toolchain.cmake - CMAKE_TOOLCHAIN_FILE="-DCMAKE_TOOLCHAIN_FILE=toolchain.cmake" - elif [ ${MASON_PLATFORM} == 'android' ] ; then - # Make sure CMake thinks we're cross-compiling and manually set the exit codes - # because CMake can't run the test programs - echo "set (CMAKE_SYSTEM_NAME Android)" > toolchain.cmake - CMAKE_TOOLCHAIN_FILE="-DCMAKE_TOOLCHAIN_FILE=toolchain.cmake" - fi - - cmake .. ${CMAKE_TOOLCHAIN_FILE} \ - -DCMAKE_CXX_FLAGS="${CFLAGS:-}" \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DCMAKE_BUILD_TYPE=Release \ - -DBUILD_EXAMPLES=OFF - - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -ljs-number-to-string" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/kdbush/0.1.0/.travis.yml b/third_party/mason/scripts/kdbush/0.1.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/kdbush/0.1.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/kdbush/0.1.0/script.sh b/third_party/mason/scripts/kdbush/0.1.0/script.sh deleted file mode 100644 index bb6cb12f6..000000000 --- a/third_party/mason/scripts/kdbush/0.1.0/script.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=kdbush -MASON_VERSION=0.1.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mourner/kdbush.hpp/archive/v${MASON_VERSION}.tar.gz \ - e40170a84ee9fd6cff0a74577d70c22c570b0bdf - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/kdbush.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -v include/*.hpp ${MASON_PREFIX}/include - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/kdbush/0.1.1-1/.travis.yml b/third_party/mason/scripts/kdbush/0.1.1-1/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/kdbush/0.1.1-1/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/kdbush/0.1.1-1/script.sh b/third_party/mason/scripts/kdbush/0.1.1-1/script.sh deleted file mode 100644 index 053dbb30a..000000000 --- a/third_party/mason/scripts/kdbush/0.1.1-1/script.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=kdbush -MASON_VERSION=0.1.1-1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mourner/kdbush.hpp/archive/v0.1.1.tar.gz \ - a7ce2860374fc547fbf4568c6c77eba6af376e5a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/kdbush.hpp-0.1.1 -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -v include/*.hpp ${MASON_PREFIX}/include - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/kdbush/0.1.1/.travis.yml b/third_party/mason/scripts/kdbush/0.1.1/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/kdbush/0.1.1/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/kdbush/0.1.1/script.sh b/third_party/mason/scripts/kdbush/0.1.1/script.sh deleted file mode 100644 index 21706e50d..000000000 --- a/third_party/mason/scripts/kdbush/0.1.1/script.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=kdbush -MASON_VERSION=0.1.1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mourner/kdbush.hpp/archive/v${MASON_VERSION}.tar.gz \ - a7ce2860374fc547fbf4568c6c77eba6af376e5a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/kdbush.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -v include/*.hpp ${MASON_PREFIX}/include - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/lcov/1.12/.travis.yml b/third_party/mason/scripts/lcov/1.12/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/lcov/1.12/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/lcov/1.12/script.sh b/third_party/mason/scripts/lcov/1.12/script.sh deleted file mode 100755 index b7deca076..000000000 --- a/third_party/mason/scripts/lcov/1.12/script.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=lcov -MASON_VERSION=1.12 -MASON_LIB_FILE=usr/bin/lcov - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/ltp/lcov-1.12.tar.gz \ - c7470ce9d89bb9c276ef7f461e9ab5b9c9935eff - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - if [[ ${MASON_PLATFORM} == "osx" || ${MASON_PLATFORM} == "ios" ]]; then - brew install coreutils - export PATH="/usr/local/opt/coreutils/libexec/gnubin:${PATH}" - fi - PREFIX=${MASON_PREFIX} make install -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/leveldb/a7bff69/.travis.yml b/third_party/mason/scripts/leveldb/a7bff69/.travis.yml deleted file mode 100644 index dbdb2c2c7..000000000 --- a/third_party/mason/scripts/leveldb/a7bff69/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/leveldb/a7bff69/script.sh b/third_party/mason/scripts/leveldb/a7bff69/script.sh deleted file mode 100644 index 97561efb5..000000000 --- a/third_party/mason/scripts/leveldb/a7bff69/script.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=leveldb -MASON_VERSION=a7bff69 -MASON_LIB_FILE=lib/libleveldb.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/google/leveldb/archive/a7bff697baa062c8f6b8fb760eacf658712b611a.tar.gz \ - f9fb5e3c97ab59e2a8c24c68eb7af85f17a370ff - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-a7bff697baa062c8f6b8fb760eacf658712b611a -} - -function mason_compile { - # note: OPT is set in the Makefile and defaults to '-O2 -DNDEBUG' - # (dane) we should use -O3 for the fastest code - I presume -O2 - # is being used as safe default since some old compilers were buggy - # with -O3 back in the day... - OPT="-O3 -DNDEBUG" make out-static/libleveldb.a -j${MASON_CONCURRENCY} - # leveldb lacks an install target - # https://github.com/google/leveldb/pull/2 - mkdir -p ${MASON_PREFIX}/include/ - mkdir -p ${MASON_PREFIX}/lib/ - cp -r include/leveldb ${MASON_PREFIX}/include/leveldb - cp out-static/libleveldb.a ${MASON_PREFIX}/lib/ -} - -function mason_ldflags { - echo -L${MASON_PREFIX}/lib -lleveldb -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libcrypto/1.0.1p/.travis.yml b/third_party/mason/scripts/libcrypto/1.0.1p/.travis.yml deleted file mode 100644 index 3be062b03..000000000 --- a/third_party/mason/scripts/libcrypto/1.0.1p/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - -addons: - apt_packages: - - xutils-dev matrix: - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - - MASON_PLATFORM=linux - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libcrypto/1.0.1p/script.sh b/third_party/mason/scripts/libcrypto/1.0.1p/script.sh deleted file mode 100755 index 0074903f0..000000000 --- a/third_party/mason/scripts/libcrypto/1.0.1p/script.sh +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libcrypto -MASON_VERSION=1.0.1p -MASON_LIB_FILE=lib/libcrypto.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/openssl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://ftp.openssl.org/source/old/1.0.1/openssl-${MASON_VERSION}.tar.gz \ - db77eba6cc1f9e50f61a864c07d09ecd0154c84d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/openssl-${MASON_VERSION} -} - -function mason_prepare_compile { - MASON_MAKEDEPEND="gccmakedep" - - if [ ${MASON_PLATFORM} = 'osx' ]; then - MASON_MAKEDEPEND="makedepend" - MASON_OS_COMPILER="darwin64-x86_64-cc enable-ec_nistp_64_gcc_128" - elif [ ${MASON_PLATFORM} = 'linux' ]; then - MASON_OS_COMPILER="linux-x86_64 enable-ec_nistp_64_gcc_128" - elif [[ ${MASON_PLATFORM} == 'android' ]]; then - COMMON="-fPIC -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-integrated-as -O2 -g -DNDEBUG -fomit-frame-pointer -fstrict-aliasing -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes" - if [ ${MASON_ANDROID_ABI} = 'arm-v5' ]; then - MASON_OS_COMPILER="linux-armv4 -march=armv5te -mtune=xscale -msoft-float -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'arm-v7' ]; then - MASON_OS_COMPILER="linux-armv4 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'x86' ]; then - MASON_OS_COMPILER="linux-elf -march=i686 -msse3 -mfpmath=sse -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'mips' ]; then - MASON_OS_COMPILER="linux-generic32 $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'arm-v8' ]; then - MASON_OS_COMPILER="linux-generic64 enable-ec_nistp_64_gcc_128 -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'x86-64' ]; then - MASON_OS_COMPILER="linux-x86_64 enable-ec_nistp_64_gcc_128 -march=x86-64 -msse4.2 -mpopcnt -m64 -mtune=intel -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'mips-64' ]; then - MASON_OS_COMPILER="linux-generic32 $COMMON" - fi - fi -} - -function mason_compile { - NO_ASM= - - # Work around a Android 6.0 TEXTREL exception. See https://github.com/mapbox/mapbox-gl-native/issues/2772 - if [[ ${MASON_PLATFORM} == 'android' ]]; then - if [ ${MASON_ANDROID_ABI} = 'x86' ]; then - NO_ASM=-no-asm - fi - fi - - ./Configure \ - --prefix=${MASON_PREFIX} \ - enable-tlsext \ - ${NO_ASM} \ - -no-dso \ - -no-hw \ - -no-engines \ - -no-comp \ - -no-gmp \ - -no-zlib \ - -no-shared \ - -no-ssl2 \ - -no-ssl3 \ - -no-krb5 \ - -no-camellia \ - -no-capieng \ - -no-cast \ - -no-dtls \ - -no-gost \ - -no-idea \ - -no-jpake \ - -no-md2 \ - -no-mdc2 \ - -no-rc5 \ - -no-rdrand \ - -no-ripemd \ - -no-rsax \ - -no-sctp \ - -no-seed \ - -no-sha0 \ - -no-whirlpool \ - -fPIC \ - -DOPENSSL_PIC \ - -DOPENSSL_NO_DEPRECATED \ - -DOPENSSL_NO_COMP \ - -DOPENSSL_NO_HEARTBEATS \ - --openssldir=${MASON_PREFIX}/etc/openssl \ - ${MASON_OS_COMPILER} - - make depend MAKEDEPPROG=${MASON_MAKEDEPEND} - - make - - # https://github.com/openssl/openssl/issues/57 - make install_sw -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libcurl/7.38.0-boringssl/.travis.yml b/third_party/mason/scripts/libcurl/7.38.0-boringssl/.travis.yml deleted file mode 100644 index bca00074e..000000000 --- a/third_party/mason/scripts/libcurl/7.38.0-boringssl/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=arm - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ARCH=x86 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libcurl/7.38.0-boringssl/openssl.patch b/third_party/mason/scripts/libcurl/7.38.0-boringssl/openssl.patch deleted file mode 100644 index 1a85ae705..000000000 --- a/third_party/mason/scripts/libcurl/7.38.0-boringssl/openssl.patch +++ /dev/null @@ -1,187 +0,0 @@ ---- openssl.orig.c 2014-09-04 01:22:36.000000000 +1200 -+++ openssl.c 2015-01-04 11:26:39.827435900 +1300 -@@ -92,15 +92,6 @@ - #undef HAVE_USERDATA_IN_PWD_CALLBACK - #endif - --#if OPENSSL_VERSION_NUMBER >= 0x00907001L --/* ENGINE_load_private_key() takes four arguments */ --#define HAVE_ENGINE_LOAD_FOUR_ARGS --#include --#else --/* ENGINE_load_private_key() takes three arguments */ --#undef HAVE_ENGINE_LOAD_FOUR_ARGS --#endif -- - #if (OPENSSL_VERSION_NUMBER >= 0x00903001L) && defined(HAVE_OPENSSL_PKCS12_H) - /* OpenSSL has PKCS 12 support */ - #define HAVE_PKCS12_SUPPORT -@@ -135,6 +126,9 @@ - #define OPENSSL_NO_SSL2 - #endif - -+#undef HAVE_OPENSSL_ENGINE_H -+#define SSLEAY_VERSION_NUMBER OPENSSL_VERSION_NUMBER -+ - /* - * Number of bytes to read from the random number seed file. This must be - * a finite value (because some entropy "files" like /dev/urandom have -@@ -168,108 +162,8 @@ - return 0; - } - --/* -- * rand_enough() is a function that returns TRUE if we have seeded the random -- * engine properly. We use some preprocessor magic to provide a seed_enough() -- * macro to use, just to prevent a compiler warning on this function if we -- * pass in an argument that is never used. -- */ -- --#ifdef HAVE_RAND_STATUS --#define seed_enough(x) rand_enough() --static bool rand_enough(void) --{ -- return (0 != RAND_status()) ? TRUE : FALSE; --} --#else --#define seed_enough(x) rand_enough(x) --static bool rand_enough(int nread) --{ -- /* this is a very silly decision to make */ -- return (nread > 500) ? TRUE : FALSE; --} --#endif -- --static int ossl_seed(struct SessionHandle *data) --{ -- char *buf = data->state.buffer; /* point to the big buffer */ -- int nread=0; -- -- /* Q: should we add support for a random file name as a libcurl option? -- A: Yes, it is here */ -- --#ifndef RANDOM_FILE -- /* if RANDOM_FILE isn't defined, we only perform this if an option tells -- us to! */ -- if(data->set.ssl.random_file) --#define RANDOM_FILE "" /* doesn't matter won't be used */ --#endif -- { -- /* let the option override the define */ -- nread += RAND_load_file((data->set.str[STRING_SSL_RANDOM_FILE]? -- data->set.str[STRING_SSL_RANDOM_FILE]: -- RANDOM_FILE), -- RAND_LOAD_LENGTH); -- if(seed_enough(nread)) -- return nread; -- } -- --#if defined(HAVE_RAND_EGD) -- /* only available in OpenSSL 0.9.5 and later */ -- /* EGD_SOCKET is set at configure time or not at all */ --#ifndef EGD_SOCKET -- /* If we don't have the define set, we only do this if the egd-option -- is set */ -- if(data->set.str[STRING_SSL_EGDSOCKET]) --#define EGD_SOCKET "" /* doesn't matter won't be used */ --#endif -- { -- /* If there's an option and a define, the option overrides the -- define */ -- int ret = RAND_egd(data->set.str[STRING_SSL_EGDSOCKET]? -- data->set.str[STRING_SSL_EGDSOCKET]:EGD_SOCKET); -- if(-1 != ret) { -- nread += ret; -- if(seed_enough(nread)) -- return nread; -- } -- } --#endif -- -- /* If we get here, it means we need to seed the PRNG using a "silly" -- approach! */ -- do { -- unsigned char randb[64]; -- int len = sizeof(randb); -- RAND_bytes(randb, len); -- RAND_add(randb, len, (len >> 1)); -- } while(!RAND_status()); -- -- /* generates a default path for the random seed file */ -- buf[0]=0; /* blank it first */ -- RAND_file_name(buf, BUFSIZE); -- if(buf[0]) { -- /* we got a file name to try */ -- nread += RAND_load_file(buf, RAND_LOAD_LENGTH); -- if(seed_enough(nread)) -- return nread; -- } -- -- infof(data, "libcurl is now using a weak random seed!\n"); -- return nread; --} -- - static int Curl_ossl_seed(struct SessionHandle *data) - { -- /* we have the "SSL is seeded" boolean static to prevent multiple -- time-consuming seedings in vain */ -- static bool ssl_seeded = FALSE; -- -- if(!ssl_seeded || data->set.str[STRING_SSL_RANDOM_FILE] || -- data->set.str[STRING_SSL_EGDSOCKET]) { -- ossl_seed(data); -- ssl_seeded = TRUE; -- } - return 0; - } - -@@ -742,17 +636,6 @@ - - OpenSSL_add_all_algorithms(); - -- -- /* OPENSSL_config(NULL); is "strongly recommended" to use but unfortunately -- that function makes an exit() call on wrongly formatted config files -- which makes it hard to use in some situations. OPENSSL_config() itself -- calls CONF_modules_load_file() and we use that instead and we ignore -- its return code! */ -- -- (void)CONF_modules_load_file(NULL, NULL, -- CONF_MFLAGS_DEFAULT_SECTION| -- CONF_MFLAGS_IGNORE_MISSING_FILE); -- - return 1; - } - -@@ -2825,29 +2708,10 @@ - #if(SSLEAY_VERSION_NUMBER >= 0x905000) - { - char sub[3]; -- unsigned long ssleay_value; -+ unsigned long ssleay_value = 0; - sub[2]='\0'; - sub[1]='\0'; -- ssleay_value=SSLeay(); -- if(ssleay_value < 0x906000) { -- ssleay_value=SSLEAY_VERSION_NUMBER; -- sub[0]='\0'; -- } -- else { -- if(ssleay_value&0xff0) { -- int minor_ver = (ssleay_value >> 4) & 0xff; -- if(minor_ver > 26) { -- /* handle extended version introduced for 0.9.8za */ -- sub[1] = (char) ((minor_ver - 1) % 26 + 'a' + 1); -- sub[0] = 'z'; -- } -- else { -- sub[0]=(char)(((ssleay_value>>4)&0xff) + 'a' -1); -- } -- } -- else -- sub[0]='\0'; -- } -+ sub[0]='\0'; - - return snprintf(buffer, size, "%s/%lx.%lx.%lx%s", - #ifdef OPENSSL_IS_BORINGSSL diff --git a/third_party/mason/scripts/libcurl/7.38.0-boringssl/script.sh b/third_party/mason/scripts/libcurl/7.38.0-boringssl/script.sh deleted file mode 100755 index 06ad229c4..000000000 --- a/third_party/mason/scripts/libcurl/7.38.0-boringssl/script.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libcurl -MASON_VERSION=7.38.0-boringssl -MASON_LIB_FILE=lib/libcurl.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libcurl.pc - -MASON_PWD=`pwd` - -. ${MASON_DIR}/mason.sh - - -function mason_load_source { - mason_download \ - http://curl.haxx.se/download/curl-7.38.0.tar.gz \ - 5463f1b9dc807e4ae8be2ef4ed57e67f677f4426 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/curl-7.38.0 -} - -function mason_prepare_compile { - ${MASON_DIR}/mason install boringssl d3bcf13 - MASON_OPENSSL=`${MASON_DIR}/mason prefix boringssl d3bcf13` - - if [ ${MASON_PLATFORM} = 'linux' ]; then - LIBS="-ldl ${LIBS=}" - fi -} - -function mason_compile { - curl --retry 3 -f -# -L "https://raw.githubusercontent.com/mapbox/mason/libcurl-7.38.0-boringssl/openssl.patch" -o ${MASON_BUILD_PATH}/openssl.patch - patch ${MASON_BUILD_PATH}/lib/vtls/openssl.c < ${MASON_BUILD_PATH}/openssl.patch - - LIBS="${LIBS=}" ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --with-pic \ - --enable-manual \ - --with-ssl=${MASON_OPENSSL} \ - --without-ca-bundle \ - --without-ca-path \ - --without-darwinssl \ - --without-gnutls \ - --without-polarssl \ - --without-cyassl \ - --without-nss \ - --without-axtls \ - --without-libmetalink \ - --without-libssh2 \ - --without-librtmp \ - --without-winidn \ - --without-libidn \ - --without-nghttp2 \ - --disable-ldap \ - --disable-ldaps \ - --disable-ldap \ - --disable-ftp \ - --disable-file \ - --disable-rtsp \ - --disable-proxy \ - --disable-dict \ - --disable-telnet \ - --disable-tftp \ - --disable-pop3 \ - --disable-imap \ - --disable-smtp \ - --disable-gopher \ - --disable-libcurl-option \ - --disable-sspi \ - --disable-crypto-auth \ - --disable-ntlm-wb \ - --disable-tls-srp \ - --disable-cookies || cat config.log - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - echo -L${MASON_PREFIX}/lib -lcurl -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libcurl/7.38.0-boringssl/temp.txt b/third_party/mason/scripts/libcurl/7.38.0-boringssl/temp.txt deleted file mode 100644 index e69de29bb..000000000 diff --git a/third_party/mason/scripts/libcurl/7.40.0/.travis.yml b/third_party/mason/scripts/libcurl/7.40.0/.travis.yml deleted file mode 100644 index c70cae350..000000000 --- a/third_party/mason/scripts/libcurl/7.40.0/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - matrix: - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - - MASON_PLATFORM=linux - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libcurl/7.40.0/script.sh b/third_party/mason/scripts/libcurl/7.40.0/script.sh deleted file mode 100755 index 03d2adc1c..000000000 --- a/third_party/mason/scripts/libcurl/7.40.0/script.sh +++ /dev/null @@ -1,82 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libcurl -MASON_VERSION=7.40.0 -MASON_LIB_FILE=lib/libcurl.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libcurl.pc - -. ${MASON_DIR}/mason.sh - - -function mason_load_source { - mason_download \ - http://curl.haxx.se/download/curl-7.40.0.tar.gz \ - c7c97e02f5fa4302f4c25c72486359f7b46f7d6d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/curl-${MASON_VERSION} -} - -function mason_prepare_compile { - ${MASON_DIR}/mason install openssl 1.0.1l - MASON_OPENSSL=`${MASON_DIR}/mason prefix openssl 1.0.1l` - - if [ ${MASON_PLATFORM} = 'linux' ]; then - LIBS="-ldl ${LIBS=}" - fi -} - -function mason_compile { - LIBS="${LIBS=}" ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --with-pic \ - --enable-manual \ - --with-ssl=${MASON_OPENSSL} \ - --without-ca-bundle \ - --without-ca-path \ - --without-darwinssl \ - --without-gnutls \ - --without-polarssl \ - --without-cyassl \ - --without-nss \ - --without-axtls \ - --without-libmetalink \ - --without-libssh2 \ - --without-librtmp \ - --without-winidn \ - --without-libidn \ - --without-nghttp2 \ - --disable-ldap \ - --disable-ldaps \ - --disable-ldap \ - --disable-ftp \ - --disable-file \ - --disable-rtsp \ - --disable-proxy \ - --disable-dict \ - --disable-telnet \ - --disable-tftp \ - --disable-pop3 \ - --disable-imap \ - --disable-smtp \ - --disable-gopher \ - --disable-libcurl-option \ - --disable-sspi \ - --disable-crypto-auth \ - --disable-ntlm-wb \ - --disable-tls-srp \ - --disable-cookies - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libcurl/7.45.0/.travis.yml b/third_party/mason/scripts/libcurl/7.45.0/.travis.yml deleted file mode 100644 index c70cae350..000000000 --- a/third_party/mason/scripts/libcurl/7.45.0/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - matrix: - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - - MASON_PLATFORM=linux - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libcurl/7.45.0/script.sh b/third_party/mason/scripts/libcurl/7.45.0/script.sh deleted file mode 100755 index 4d4f30180..000000000 --- a/third_party/mason/scripts/libcurl/7.45.0/script.sh +++ /dev/null @@ -1,84 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libcurl -MASON_VERSION=7.45.0 -MASON_LIB_FILE=lib/libcurl.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libcurl.pc - -OPENSSL_VERSION=1.0.1p - -. ${MASON_DIR}/mason.sh - - -function mason_load_source { - mason_download \ - http://curl.haxx.se/download/curl-${MASON_VERSION}.tar.gz \ - cf5b820a1ab30e49083784c46fe3ec9e6d2c84dc - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/curl-${MASON_VERSION} -} - -function mason_prepare_compile { - ${MASON_DIR}/mason install openssl ${OPENSSL_VERSION} - MASON_OPENSSL=`${MASON_DIR}/mason prefix openssl ${OPENSSL_VERSION}` - - if [ ${MASON_PLATFORM} = 'linux' ]; then - LIBS="-ldl ${LIBS=}" - fi -} - -function mason_compile { - LIBS="${LIBS=}" ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --with-pic \ - --enable-manual \ - --with-ssl=${MASON_OPENSSL} \ - --without-ca-bundle \ - --without-ca-path \ - --without-darwinssl \ - --without-gnutls \ - --without-polarssl \ - --without-cyassl \ - --without-nss \ - --without-axtls \ - --without-libmetalink \ - --without-libssh2 \ - --without-librtmp \ - --without-winidn \ - --without-libidn \ - --without-nghttp2 \ - --disable-ldap \ - --disable-ldaps \ - --disable-ldap \ - --disable-ftp \ - --disable-file \ - --disable-rtsp \ - --disable-proxy \ - --disable-dict \ - --disable-telnet \ - --disable-tftp \ - --disable-pop3 \ - --disable-imap \ - --disable-smtp \ - --disable-gopher \ - --disable-libcurl-option \ - --disable-sspi \ - --disable-crypto-auth \ - --disable-ntlm-wb \ - --disable-tls-srp \ - --disable-cookies - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libcurl/system/script.sh b/third_party/mason/scripts/libcurl/system/script.sh deleted file mode 100755 index 0c68fd3af..000000000 --- a/third_party/mason/scripts/libcurl/system/script.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libcurl -MASON_VERSION=system -MASON_SYSTEM_PACKAGE=true - -. ${MASON_DIR}/mason.sh - - -if [[ ${MASON_PLATFORM} = 'ios' || ${MASON_PLATFORM} = 'android' ]]; then - mason_error "Unavailable on platform \"${MASON_PLATFORM}\"" - exit 1 -fi - -MASON_CFLAGS="-I${MASON_PREFIX}/include" -MASON_LDFLAGS="-L${MASON_PREFIX}/lib" - -if [[ ${MASON_PLATFORM} = 'osx' ]]; then - CURL_INCLUDE_PREFIX="${MASON_SDK_PATH}/usr/include" - CURL_LIBRARY="${MASON_SDK_PATH}/usr/lib/libcurl.${MASON_DYNLIB_SUFFIX}" - MASON_LDFLAGS="${MASON_LDFLAGS} -lcurl" -else - CURL_INCLUDE_PREFIX="`pkg-config libcurl --variable=includedir`" - CURL_LIBRARY="`pkg-config libcurl --variable=libdir`/libcurl.${MASON_DYNLIB_SUFFIX}" - MASON_CFLAGS="${MASON_CFLAGS} `pkg-config libcurl --cflags-only-other`" - MASON_LDFLAGS="${MASON_LDFLAGS} `pkg-config libcurl --libs-only-other --libs-only-l`" -fi - - -if [ ! -f "${CURL_INCLUDE_PREFIX}/curl/curl.h" ]; then - mason_error "Can't find header file ${CURL_INCLUDE_PREFIX}/curl/curl.h" - exit 1 -fi - -if [ ! -f "${CURL_LIBRARY}" ]; then - mason_error "Can't find library file ${CURL_LIBRARY}" - exit 1 -fi - -function mason_system_version { - mkdir -p "${MASON_PREFIX}" - cd "${MASON_PREFIX}" - if [ ! -f version ]; then - echo "#include -#include -int main() { - printf(\"%s\", curl_version_info(CURLVERSION_NOW)->version); - return 0; -} -" > version.c && ${CC:-cc} version.c $(mason_cflags) $(mason_ldflags) -o version - fi - ./version -} - -function mason_build { - mkdir -p ${MASON_PREFIX}/{include,lib} - ln -sf ${CURL_INCLUDE_PREFIX}/curl ${MASON_PREFIX}/include/ - ln -sf ${CURL_LIBRARY} ${MASON_PREFIX}/lib/ - echo "build is done and available at ${MASON_PREFIX}/" -} - -function mason_cflags { - echo ${MASON_CFLAGS} -} - -function mason_ldflags { - echo ${MASON_LDFLAGS} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libgdal/2.1.3/.travis.yml b/third_party/mason/scripts/libgdal/2.1.3/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/libgdal/2.1.3/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libgdal/2.1.3/script.sh b/third_party/mason/scripts/libgdal/2.1.3/script.sh deleted file mode 100755 index 3dad7bdb8..000000000 --- a/third_party/mason/scripts/libgdal/2.1.3/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libgdal -MASON_VERSION=2.1.3 -MASON_LIB_FILE=lib/libgdal.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} - mkdir -p ${MASON_BUILD_PATH} -} - -function mason_prepare_compile { - ${MASON_DIR}/mason install gdal ${MASON_VERSION} - GDAL_PREFIX=$(${MASON_DIR}/mason prefix gdal ${MASON_VERSION}) -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/lib - mkdir -p ${MASON_PREFIX}/include - mkdir -p ${MASON_PREFIX}/share - mkdir -p ${MASON_PREFIX}/bin - cp -r ${GDAL_PREFIX}/bin/gdal-config ${MASON_PREFIX}/bin/ - cp -r ${GDAL_PREFIX}/include/* ${MASON_PREFIX}/include/ - cp -r ${GDAL_PREFIX}/share/* ${MASON_PREFIX}/share/ - cp -r ${GDAL_PREFIX}/lib/libgdal.a ${MASON_PREFIX}/lib/ -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo $(${MASON_PREFIX}/bin/gdal-config --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libjpeg-turbo/1.4.2/.travis.yml b/third_party/mason/scripts/libjpeg-turbo/1.4.2/.travis.yml deleted file mode 100644 index c54981942..000000000 --- a/third_party/mason/scripts/libjpeg-turbo/1.4.2/.travis.yml +++ /dev/null @@ -1,41 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux - compiler: clang - addons: - apt: - packages: [ 'yasm' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - addons: - apt: - packages: [ 'yasm' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -before_install: -- if [[ "${MASON_PLATFORM}" == "osx" ]]; then brew install yasm ; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libjpeg-turbo/1.4.2/script.sh b/third_party/mason/scripts/libjpeg-turbo/1.4.2/script.sh deleted file mode 100755 index ab4294f04..000000000 --- a/third_party/mason/scripts/libjpeg-turbo/1.4.2/script.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libjpeg-turbo -MASON_VERSION=1.4.2 -MASON_LIB_FILE=lib/libjpeg.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/libjpeg-turbo/1.4.2/libjpeg-turbo-1.4.2.tar.gz \ - d4638b2261ac3c1c20a2a2e1f8e19fc1f11bf524 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libjpeg-turbo-1.4.2 -} - - -function mason_compile { - export CFLAGS="${CFLAGS:-} -O3" - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --with-jpeg8 \ - --without-turbojpeg \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking \ - NASM=yasm - - V=1 make install -j${MASON_CONCURRENCY} - rm -rf ${MASON_PREFIX}/bin -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libjpeg-turbo/1.5.0/.travis.yml b/third_party/mason/scripts/libjpeg-turbo/1.5.0/.travis.yml deleted file mode 100644 index ad12b05a5..000000000 --- a/third_party/mason/scripts/libjpeg-turbo/1.5.0/.travis.yml +++ /dev/null @@ -1,50 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM_VERSION=cortex_a9 - - os: linux - env: MASON_PLATFORM_VERSION=i686 - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev', 'yasm' ] - - os: linux - env: MASON_PLATFORM=linux - compiler: clang - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev', 'yasm' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - addons: - apt: - packages: [ 'yasm' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -before_install: -- if [[ "${MASON_PLATFORM}" == "osx" ]]; then brew install yasm ; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libjpeg-turbo/1.5.0/script.sh b/third_party/mason/scripts/libjpeg-turbo/1.5.0/script.sh deleted file mode 100755 index 25b5b4793..000000000 --- a/third_party/mason/scripts/libjpeg-turbo/1.5.0/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libjpeg-turbo -MASON_VERSION=1.5.0 -MASON_LIB_FILE=lib/libjpeg.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/libjpeg-turbo/libjpeg-turbo/archive/1.5.0.tar.gz \ - 8b06f41d821a4dbcd20fd5fea97ba80916a22b00 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libjpeg-turbo-1.5.0 -} - - -function mason_compile { - export CFLAGS="${CFLAGS:-} -O3" - autoreconf -fiv - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --with-jpeg8 \ - --without-turbojpeg \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking \ - NASM=yasm - - V=1 make install -j${MASON_CONCURRENCY} - rm -rf ${MASON_PREFIX}/bin -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libosmium/2.10.3/.travis.yml b/third_party/mason/scripts/libosmium/2.10.3/.travis.yml deleted file mode 100644 index 00c277c21..000000000 --- a/third_party/mason/scripts/libosmium/2.10.3/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - compiler: clang - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libosmium/2.10.3/script.sh b/third_party/mason/scripts/libosmium/2.10.3/script.sh deleted file mode 100755 index b60162596..000000000 --- a/third_party/mason/scripts/libosmium/2.10.3/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libosmium -MASON_VERSION=2.10.3 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/osmcode/${MASON_NAME}/archive/v${MASON_VERSION}.tar.gz \ - ddfacd6671befcf63989b749b3302608bd206af4 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/osmium ${MASON_PREFIX}/include/osmium -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libosmium/2.11.0/.travis.yml b/third_party/mason/scripts/libosmium/2.11.0/.travis.yml deleted file mode 100644 index 00c277c21..000000000 --- a/third_party/mason/scripts/libosmium/2.11.0/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - compiler: clang - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libosmium/2.11.0/script.sh b/third_party/mason/scripts/libosmium/2.11.0/script.sh deleted file mode 100755 index f9f647244..000000000 --- a/third_party/mason/scripts/libosmium/2.11.0/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libosmium -MASON_VERSION=2.11.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/osmcode/${MASON_NAME}/archive/v${MASON_VERSION}.tar.gz \ - 0e6b565a8566e359393e5c1f5486aaba2a2e15b8 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/osmium ${MASON_PREFIX}/include/osmium -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libosmium/2.6.1/.travis.yml b/third_party/mason/scripts/libosmium/2.6.1/.travis.yml deleted file mode 100644 index 6cb8a7653..000000000 --- a/third_party/mason/scripts/libosmium/2.6.1/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libosmium/2.6.1/script.sh b/third_party/mason/scripts/libosmium/2.6.1/script.sh deleted file mode 100755 index 87f270845..000000000 --- a/third_party/mason/scripts/libosmium/2.6.1/script.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libosmium -MASON_VERSION=2.6.1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/osmcode/libosmium/tarball/v2.6.1 \ - 079814b4632dcc585cef6e6b0f1e1e1d27b53904 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/osmcode-libosmium-2282c84 -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/osmium ${MASON_PREFIX}/include/osmium -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libosmium/2.7.2/.travis.yml b/third_party/mason/scripts/libosmium/2.7.2/.travis.yml deleted file mode 100644 index 6620f3a74..000000000 --- a/third_party/mason/scripts/libosmium/2.7.2/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libosmium/2.7.2/script.sh b/third_party/mason/scripts/libosmium/2.7.2/script.sh deleted file mode 100755 index 5d87df9c2..000000000 --- a/third_party/mason/scripts/libosmium/2.7.2/script.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libosmium -MASON_VERSION=2.7.2 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/osmcode/${MASON_NAME}/archive/v${MASON_VERSION}.tar.gz \ - aca66253eb73fdac4433c0207c508ad155b2f8de - - mason_extract_tar_gz - ls - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/osmium ${MASON_PREFIX}/include/osmium -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libosmium/2.8.0/.travis.yml b/third_party/mason/scripts/libosmium/2.8.0/.travis.yml deleted file mode 100644 index 6362a8f96..000000000 --- a/third_party/mason/scripts/libosmium/2.8.0/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libosmium/2.8.0/script.sh b/third_party/mason/scripts/libosmium/2.8.0/script.sh deleted file mode 100755 index d7e5f40d9..000000000 --- a/third_party/mason/scripts/libosmium/2.8.0/script.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libosmium -MASON_VERSION=2.8.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/osmcode/${MASON_NAME}/archive/v${MASON_VERSION}.tar.gz \ - 30c5b5b74bdda40bace1ea993f43a00874ac553f - - mason_extract_tar_gz - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/osmium ${MASON_PREFIX}/include/osmium -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpng/1.6.16/.travis.yml b/third_party/mason/scripts/libpng/1.6.16/.travis.yml deleted file mode 100644 index daaec0be1..000000000 --- a/third_party/mason/scripts/libpng/1.6.16/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - - os: linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpng/1.6.16/script.sh b/third_party/mason/scripts/libpng/1.6.16/script.sh deleted file mode 100755 index 985ef42db..000000000 --- a/third_party/mason/scripts/libpng/1.6.16/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpng -MASON_VERSION=1.6.16 -MASON_LIB_FILE=lib/libpng.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpng.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://prdownloads.sourceforge.net/libpng/libpng-1.6.16.tar.gz?download \ - b0449a7d05447842f3f19642c2104e0a57db13a8 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libpng-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lpng16 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpng/1.6.17/.travis.yml b/third_party/mason/scripts/libpng/1.6.17/.travis.yml deleted file mode 100644 index daaec0be1..000000000 --- a/third_party/mason/scripts/libpng/1.6.17/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - - os: linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpng/1.6.17/script.sh b/third_party/mason/scripts/libpng/1.6.17/script.sh deleted file mode 100755 index ceafc44ee..000000000 --- a/third_party/mason/scripts/libpng/1.6.17/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpng -MASON_VERSION=1.6.17 -MASON_LIB_FILE=lib/libpng.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpng.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://prdownloads.sourceforge.net/libpng/libpng-${MASON_VERSION}.tar.gz?download \ - ccc3b2243585a8aedf762fc72ffcc253aaed9298 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libpng-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lpng16 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpng/1.6.18/.travis.yml b/third_party/mason/scripts/libpng/1.6.18/.travis.yml deleted file mode 100644 index d3c947aef..000000000 --- a/third_party/mason/scripts/libpng/1.6.18/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - osx_image: xcode7 - - os: linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpng/1.6.18/script.sh b/third_party/mason/scripts/libpng/1.6.18/script.sh deleted file mode 100755 index 26a3c5b40..000000000 --- a/third_party/mason/scripts/libpng/1.6.18/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpng -MASON_VERSION=1.6.18 -MASON_LIB_FILE=lib/libpng.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpng.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://prdownloads.sourceforge.net/libpng/libpng-${MASON_VERSION}.tar.gz?download \ - d9ed998cee89dc6ea3427c17882b5cfe7882429a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libpng-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lpng16 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpng/1.6.20/.travis.yml b/third_party/mason/scripts/libpng/1.6.20/.travis.yml deleted file mode 100644 index ca76ff117..000000000 --- a/third_party/mason/scripts/libpng/1.6.20/.travis.yml +++ /dev/null @@ -1,39 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - osx_image: xcode6 - - os: osx - osx_image: xcode7 - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpng/1.6.20/script.sh b/third_party/mason/scripts/libpng/1.6.20/script.sh deleted file mode 100755 index d59501016..000000000 --- a/third_party/mason/scripts/libpng/1.6.20/script.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpng -MASON_VERSION=1.6.20 -MASON_LIB_FILE=lib/libpng.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpng.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/libpng/libpng16/older-releases/${MASON_VERSION}/libpng-${MASON_VERSION}.tar.gz \ - 0b5df1201ea4b63777a9c9c49ff26a45dd87890e - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libpng-${MASON_VERSION} -} - -function mason_compile { - export CFLAGS="${CFLAGS:-} -O3" - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lpng16 - echo "$@" -} - -function mason_ldflags { - local PREFIX FLAGS - PREFIX=$(${MASON_PREFIX}/bin/libpng-config --prefix) - FLAGS=$(${MASON_PREFIX}/bin/libpng-config --static --ldflags) - # Replace hard-coded prefix with the current one. - mason_strip_ldflags ${FLAGS//${PREFIX}/${MASON_PREFIX}} -} - -function mason_cflags { - local PREFIX FLAGS - PREFIX=$(${MASON_PREFIX}/bin/libpng-config --prefix) - FLAGS=$(${MASON_PREFIX}/bin/libpng-config --static --cflags) - # Replace hard-coded prefix with the current one. - echo ${FLAGS//${PREFIX}/${MASON_PREFIX}} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpng/1.6.21/.travis.yml b/third_party/mason/scripts/libpng/1.6.21/.travis.yml deleted file mode 100644 index 7b1f9afed..000000000 --- a/third_party/mason/scripts/libpng/1.6.21/.travis.yml +++ /dev/null @@ -1,33 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - osx_image: xcode6 - - os: osx - osx_image: xcode7 - - os: linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpng/1.6.21/script.sh b/third_party/mason/scripts/libpng/1.6.21/script.sh deleted file mode 100755 index 3f05c61b3..000000000 --- a/third_party/mason/scripts/libpng/1.6.21/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpng -MASON_VERSION=1.6.21 -MASON_LIB_FILE=lib/libpng.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpng.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/libpng/libpng16/${MASON_VERSION}/libpng-${MASON_VERSION}.tar.gz \ - 1604e875b732b08ae81e155259422f1c1407255d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libpng-${MASON_VERSION} -} - -function mason_compile { - export CFLAGS="${CFLAGS:-} -O3" - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lpng16 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpng/1.6.24/.travis.yml b/third_party/mason/scripts/libpng/1.6.24/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/libpng/1.6.24/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpng/1.6.24/script.sh b/third_party/mason/scripts/libpng/1.6.24/script.sh deleted file mode 100755 index db1417b1d..000000000 --- a/third_party/mason/scripts/libpng/1.6.24/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpng -MASON_VERSION=1.6.24 -MASON_LIB_FILE=lib/libpng.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpng.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://superb-sea2.dl.sourceforge.net/project/${MASON_NAME}/${MASON_NAME}16/${MASON_VERSION}/${MASON_NAME}-${MASON_VERSION}.tar.gz \ - ea724d11c25753ebad23ca0f63518b7f17c46a6a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libpng-${MASON_VERSION} -} - -function mason_compile { - export CFLAGS="${CFLAGS:-} -O3" - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lpng16 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpng/1.6.25/.travis.yml b/third_party/mason/scripts/libpng/1.6.25/.travis.yml deleted file mode 100644 index c38cf5962..000000000 --- a/third_party/mason/scripts/libpng/1.6.25/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM_VERSION=cortex_a9 - - os: linux - env: MASON_PLATFORM_VERSION=i686 - addons: - apt: - packages: [ 'zlib1g-dev:i386' ] - - os: linux - env: MASON_PLATFORM=linux - compiler: clang - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpng/1.6.25/script.sh b/third_party/mason/scripts/libpng/1.6.25/script.sh deleted file mode 100755 index 7b8682d85..000000000 --- a/third_party/mason/scripts/libpng/1.6.25/script.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpng -MASON_VERSION=1.6.25 -MASON_LIB_FILE=lib/libpng.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpng.pc - -# Used when cross compiling to cortex_a9 -ZLIB_SHARED_VERSION=1.2.8 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/libpng/libpng16/older-releases/${MASON_VERSION}/libpng-${MASON_VERSION}.tar.gz \ - a88b710714a8e27e5e5aa52de28076860fc7748c - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libpng-${MASON_VERSION} -} - -function mason_prepare_compile { - # Install the zlib dependency when cross compiling as usually the host system only - # provides the zlib headers and libraries in the path for the host architecture. - if [ ${MASON_PLATFORM_VERSION} == "cortex_a9" ] || [ ${MASON_PLATFORM_VERSION} == "i686" ]; then - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install zlib_shared ${ZLIB_SHARED_VERSION} - ${MASON_DIR}/mason link zlib_shared ${ZLIB_SHARED_VERSION} - - MASON_ZLIB_CFLAGS="$(${MASON_DIR}/mason cflags zlib_shared ${ZLIB_SHARED_VERSION})" - MASON_ZLIB_LDFLAGS="-L$(${MASON_DIR}/mason prefix zlib_shared ${ZLIB_SHARED_VERSION})/lib" - fi -} - -function mason_compile { - export CFLAGS="${CFLAGS:-} ${MASON_ZLIB_CFLAGS} -O3" - export LDFLAGS="${CFLAGS:-} ${MASON_ZLIB_LDFLAGS}" - - if [ ${MASON_PLATFORM_VERSION} == "cortex_a9" ] || [ ${MASON_PLATFORM_VERSION} == "i686" ]; then - # XXX: This hack is because libpng does not respect CFLAGS - # for all the files. Bruteforce in the compiler command line. - export CC="${CC:-} ${CFLAGS}" - fi - - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - V=1 VERBOSE=1 make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lpng16 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpng/1.6.28/.travis.yml b/third_party/mason/scripts/libpng/1.6.28/.travis.yml deleted file mode 100644 index 215be2672..000000000 --- a/third_party/mason/scripts/libpng/1.6.28/.travis.yml +++ /dev/null @@ -1,45 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - env: MASON_PLATFORM_VERSION=cortex_a9 - sudo: false - - os: linux - env: MASON_PLATFORM_VERSION=i686 - sudo: false - addons: - apt: - packages: [ 'zlib1g-dev:i386' ] - - os: linux - env: MASON_PLATFORM=linux - compiler: clang - sudo: false - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - sudo: false - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - sudo: false - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - sudo: false - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - sudo: false - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - sudo: false - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - sudo: false - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpng/1.6.28/script.sh b/third_party/mason/scripts/libpng/1.6.28/script.sh deleted file mode 100755 index 4c475a3d6..000000000 --- a/third_party/mason/scripts/libpng/1.6.28/script.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpng -MASON_VERSION=1.6.28 -MASON_LIB_FILE=lib/libpng.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpng.pc - -# Used when cross compiling to cortex_a9 -ZLIB_SHARED_VERSION=1.2.8 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.sourceforge.net/project/libpng/libpng16/${MASON_VERSION}/libpng-${MASON_VERSION}.tar.gz \ - a424121a192420e2fbbea20db1d13dca0c7c99ca - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libpng-${MASON_VERSION} -} - -function mason_prepare_compile { - # Install the zlib dependency when cross compiling as usually the host system only - # provides the zlib headers and libraries in the path for the host architecture. - if [ ${MASON_PLATFORM_VERSION} == "cortex_a9" ] || [ ${MASON_PLATFORM_VERSION} == "i686" ]; then - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install zlib_shared ${ZLIB_SHARED_VERSION} - ${MASON_DIR}/mason link zlib_shared ${ZLIB_SHARED_VERSION} - - MASON_ZLIB_CFLAGS="$(${MASON_DIR}/mason cflags zlib_shared ${ZLIB_SHARED_VERSION})" - MASON_ZLIB_LDFLAGS="-L$(${MASON_DIR}/mason prefix zlib_shared ${ZLIB_SHARED_VERSION})/lib" - fi -} - -function mason_compile { - export CFLAGS="${CFLAGS:-} ${MASON_ZLIB_CFLAGS} -O3 -DNDEBUG" - export LDFLAGS="${CFLAGS:-} ${MASON_ZLIB_LDFLAGS}" - - if [ ${MASON_PLATFORM_VERSION} == "cortex_a9" ] || [ ${MASON_PLATFORM_VERSION} == "i686" ]; then - # XXX: This hack is because libpng does not respect CFLAGS - # for all the files. Bruteforce in the compiler command line. - export CC="${CC:-} ${CFLAGS}" - fi - - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - V=1 VERBOSE=1 make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lpng16 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpng/system/script.sh b/third_party/mason/scripts/libpng/system/script.sh deleted file mode 100755 index 85097dd29..000000000 --- a/third_party/mason/scripts/libpng/system/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpng -MASON_VERSION=system -MASON_SYSTEM_PACKAGE=true - -. ${MASON_DIR}/mason.sh - -if [ ! $(pkg-config libpng --exists; echo $?) = 0 ]; then - mason_error "Cannot find libpng with pkg-config" - exit 1 -fi - -function mason_system_version { - # Use host compiler to produce a binary that can run on the host - HOST_CC=`MASON_PLATFORM= mason env CC` - HOST_CFLAGS=`MASON_PLATFORM= mason env CFLAGS` - - mkdir -p "${MASON_PREFIX}" - cd "${MASON_PREFIX}" - if [ ! -f version ]; then - echo "#define PNG_VERSION_INFO_ONLY -#include -#include -int main() { - printf(\"%s\", PNG_LIBPNG_VER_STRING); - return 0; -} -" > version.c && ${HOST_CC} ${HOST_CFLAGS} version.c $(mason_cflags) -o version - fi - ./version -} - -function mason_build { - : -} - -function mason_pkgconfig { - echo 'pkg-config libpng' -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpq/9.4.0/.travis.yml b/third_party/mason/scripts/libpq/9.4.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/libpq/9.4.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpq/9.4.0/patch.diff b/third_party/mason/scripts/libpq/9.4.0/patch.diff deleted file mode 100644 index ae2f06a46..000000000 --- a/third_party/mason/scripts/libpq/9.4.0/patch.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- src/include/pg_config_manual.h 2013-10-07 20:17:38.000000000 -0700 -+++ src/include/pg_config_manual.h 2014-03-08 21:29:48.000000000 -0800 -@@ -144,7 +144,7 @@ - * here's where to twiddle it. You can also override this at runtime - * with the postmaster's -k switch. - */ --#define DEFAULT_PGSOCKET_DIR "/tmp" -+#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql" - - /* - * The random() function is expected to yield values between 0 and diff --git a/third_party/mason/scripts/libpq/9.4.0/script.sh b/third_party/mason/scripts/libpq/9.4.0/script.sh deleted file mode 100755 index 8098cb726..000000000 --- a/third_party/mason/scripts/libpq/9.4.0/script.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpq -MASON_VERSION=9.4.0 -MASON_LIB_FILE=lib/libpq.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpq.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://ftp.postgresql.org/pub/source/v9.4.0/postgresql-9.4.0.tar.bz2 \ - d1cf3f96059532a99445e34a15cf0ef67f8da9c7 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/postgresql-${MASON_VERSION} -} - -function mason_compile { - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch src/include/pg_config_manual.h ./patch.diff - fi - - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-thread-safety \ - --enable-largefile \ - --without-bonjour \ - --without-openssl \ - --without-pam \ - --without-krb5 \ - --without-gssapi \ - --without-ossp-uuid \ - --without-readline \ - --without-ldap \ - --without-zlib \ - --without-libxml \ - --without-libxslt \ - --without-selinux \ - --without-python \ - --without-perl \ - --without-tcl \ - --disable-rpath \ - --disable-debug \ - --disable-profiling \ - --disable-coverage \ - --disable-dtrace \ - --disable-depend \ - --disable-cassert - - make -j${MASON_CONCURRENCY} -C src/bin/pg_config install - make -j${MASON_CONCURRENCY} -C src/interfaces/libpq/ install - cp src/include/postgres_ext.h ${MASON_PREFIX}/include/ - cp src/include/pg_config_ext.h ${MASON_PREFIX}/include/ - rm -f ${MASON_PREFIX}/lib/libpq{*.so*,*.dylib} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpq/9.4.1/.travis.yml b/third_party/mason/scripts/libpq/9.4.1/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/libpq/9.4.1/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpq/9.4.1/patch.diff b/third_party/mason/scripts/libpq/9.4.1/patch.diff deleted file mode 100644 index ae2f06a46..000000000 --- a/third_party/mason/scripts/libpq/9.4.1/patch.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- src/include/pg_config_manual.h 2013-10-07 20:17:38.000000000 -0700 -+++ src/include/pg_config_manual.h 2014-03-08 21:29:48.000000000 -0800 -@@ -144,7 +144,7 @@ - * here's where to twiddle it. You can also override this at runtime - * with the postmaster's -k switch. - */ --#define DEFAULT_PGSOCKET_DIR "/tmp" -+#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql" - - /* - * The random() function is expected to yield values between 0 and diff --git a/third_party/mason/scripts/libpq/9.4.1/script.sh b/third_party/mason/scripts/libpq/9.4.1/script.sh deleted file mode 100755 index 4704bf921..000000000 --- a/third_party/mason/scripts/libpq/9.4.1/script.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpq -MASON_VERSION=9.4.1 -MASON_LIB_FILE=lib/libpq.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpq.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://ftp.postgresql.org/pub/source/v${MASON_VERSION}/postgresql-${MASON_VERSION}.tar.bz2 \ - 1fcc75dccdb9ffd3f30e723828cbfce00c9b13fd - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/postgresql-${MASON_VERSION} -} - -function mason_compile { - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch src/include/pg_config_manual.h ./patch.diff - fi - - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-thread-safety \ - --enable-largefile \ - --without-bonjour \ - --without-openssl \ - --without-pam \ - --without-krb5 \ - --without-gssapi \ - --without-ossp-uuid \ - --without-readline \ - --without-ldap \ - --without-zlib \ - --without-libxml \ - --without-libxslt \ - --without-selinux \ - --without-python \ - --without-perl \ - --without-tcl \ - --disable-rpath \ - --disable-debug \ - --disable-profiling \ - --disable-coverage \ - --disable-dtrace \ - --disable-depend \ - --disable-cassert - - make -j${MASON_CONCURRENCY} -C src/bin/pg_config install - make -j${MASON_CONCURRENCY} -C src/interfaces/libpq/ install - cp src/include/postgres_ext.h ${MASON_PREFIX}/include/ - cp src/include/pg_config_ext.h ${MASON_PREFIX}/include/ - rm -f ${MASON_PREFIX}/lib/libpq{*.so*,*.dylib} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpq/9.5.2/.travis.yml b/third_party/mason/scripts/libpq/9.5.2/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/libpq/9.5.2/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpq/9.5.2/patch.diff b/third_party/mason/scripts/libpq/9.5.2/patch.diff deleted file mode 100644 index ae2f06a46..000000000 --- a/third_party/mason/scripts/libpq/9.5.2/patch.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- src/include/pg_config_manual.h 2013-10-07 20:17:38.000000000 -0700 -+++ src/include/pg_config_manual.h 2014-03-08 21:29:48.000000000 -0800 -@@ -144,7 +144,7 @@ - * here's where to twiddle it. You can also override this at runtime - * with the postmaster's -k switch. - */ --#define DEFAULT_PGSOCKET_DIR "/tmp" -+#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql" - - /* - * The random() function is expected to yield values between 0 and diff --git a/third_party/mason/scripts/libpq/9.5.2/script.sh b/third_party/mason/scripts/libpq/9.5.2/script.sh deleted file mode 100755 index bd899a306..000000000 --- a/third_party/mason/scripts/libpq/9.5.2/script.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpq -MASON_VERSION=9.5.2 -MASON_LIB_FILE=lib/libpq.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpq.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://ftp.postgresql.org/pub/source/v${MASON_VERSION}/postgresql-${MASON_VERSION}.tar.bz2 \ - 9c7bd5c1c601075ff6d5ea7615f9461d5b1f4c88 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/postgresql-${MASON_VERSION} -} - -function mason_compile { - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - mason_step "Loading patch" - patch src/include/pg_config_manual.h ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - fi - - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-thread-safety \ - --enable-largefile \ - --without-bonjour \ - --without-openssl \ - --without-pam \ - --without-krb5 \ - --without-gssapi \ - --without-ossp-uuid \ - --without-readline \ - --without-ldap \ - --without-zlib \ - --without-libxml \ - --without-libxslt \ - --without-selinux \ - --without-python \ - --without-perl \ - --without-tcl \ - --disable-rpath \ - --disable-debug \ - --disable-profiling \ - --disable-coverage \ - --disable-dtrace \ - --disable-depend \ - --disable-cassert - - make -j${MASON_CONCURRENCY} -C src/bin/pg_config install - make -j${MASON_CONCURRENCY} -C src/interfaces/libpq/ install - cp src/include/postgres_ext.h ${MASON_PREFIX}/include/ - cp src/include/pg_config_ext.h ${MASON_PREFIX}/include/ - rm -f ${MASON_PREFIX}/lib/libpq{*.so*,*.dylib} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libpq/9.6.1/.travis.yml b/third_party/mason/scripts/libpq/9.6.1/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/libpq/9.6.1/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libpq/9.6.1/patch.diff b/third_party/mason/scripts/libpq/9.6.1/patch.diff deleted file mode 100644 index ae2f06a46..000000000 --- a/third_party/mason/scripts/libpq/9.6.1/patch.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- src/include/pg_config_manual.h 2013-10-07 20:17:38.000000000 -0700 -+++ src/include/pg_config_manual.h 2014-03-08 21:29:48.000000000 -0800 -@@ -144,7 +144,7 @@ - * here's where to twiddle it. You can also override this at runtime - * with the postmaster's -k switch. - */ --#define DEFAULT_PGSOCKET_DIR "/tmp" -+#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql" - - /* - * The random() function is expected to yield values between 0 and diff --git a/third_party/mason/scripts/libpq/9.6.1/script.sh b/third_party/mason/scripts/libpq/9.6.1/script.sh deleted file mode 100755 index ce3bc4f33..000000000 --- a/third_party/mason/scripts/libpq/9.6.1/script.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libpq -MASON_VERSION=9.6.1 -MASON_LIB_FILE=lib/libpq.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libpq.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://ftp.postgresql.org/pub/source/v${MASON_VERSION}/postgresql-${MASON_VERSION}.tar.bz2 \ - 6aef3fb521aaf987a9363a314ff7d5539b6601cd - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/postgresql-${MASON_VERSION} -} - -function mason_compile { - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - mason_step "Loading patch" - patch src/include/pg_config_manual.h ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - fi - - # note CFLAGS overrides defaults (-Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument) so we need to add optimization flags back - export CFLAGS="${CFLAGS} -O3 -DNDEBUG -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument" - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-thread-safety \ - --enable-largefile \ - --without-bonjour \ - --without-openssl \ - --without-pam \ - --without-krb5 \ - --without-gssapi \ - --without-ossp-uuid \ - --without-readline \ - --without-ldap \ - --without-zlib \ - --without-libxml \ - --without-libxslt \ - --without-selinux \ - --without-python \ - --without-perl \ - --without-tcl \ - --disable-rpath \ - --disable-debug \ - --disable-profiling \ - --disable-coverage \ - --disable-dtrace \ - --disable-depend \ - --disable-cassert - - make -j${MASON_CONCURRENCY} -C src/bin/pg_config install - make -j${MASON_CONCURRENCY} -C src/interfaces/libpq/ install - cp src/include/postgres_ext.h ${MASON_PREFIX}/include/ - cp src/include/pg_config_ext.h ${MASON_PREFIX}/include/ - rm -f ${MASON_PREFIX}/lib/libpq{*.so*,*.dylib} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libtiff/4.0.4beta/.travis.yml b/third_party/mason/scripts/libtiff/4.0.4beta/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/libtiff/4.0.4beta/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libtiff/4.0.4beta/script.sh b/third_party/mason/scripts/libtiff/4.0.4beta/script.sh deleted file mode 100755 index 9ef375b62..000000000 --- a/third_party/mason/scripts/libtiff/4.0.4beta/script.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libtiff -MASON_VERSION=4.0.4beta -MASON_LIB_FILE=lib/libtiff.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libtiff-4.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/libtiff/tiff-${MASON_VERSION}.tar.gz \ - 7bbd91b09cef1a4c29d3cccb7e656ee32587e5ef - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/tiff-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install jpeg_turbo 1.4.0 - MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg_turbo 1.4.0) - SYSTEM_ZLIB="/usr" -} - - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --disable-dependency-tracking \ - --disable-cxx \ - --enable-defer-strile-load \ - --enable-chunky-strip-read \ - --with-jpeg-include-dir=${MASON_JPEG}/include \ - --with-jpeg-lib-dir=${MASON_JPEG}/lib \ - --with-zlib-include-dir=${SYSTEM_ZLIB}/include \ - --with-zlib-lib-dir=${SYSTEM_ZLIB}/lib \ - --disable-lzma --disable-jbig --disable-mdi \ - --without-x - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - echo "-ltiff -ljpeg -lz" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libtiff/4.0.6/.travis.yml b/third_party/mason/scripts/libtiff/4.0.6/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/libtiff/4.0.6/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libtiff/4.0.6/script.sh b/third_party/mason/scripts/libtiff/4.0.6/script.sh deleted file mode 100755 index 45f98b84b..000000000 --- a/third_party/mason/scripts/libtiff/4.0.6/script.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libtiff -MASON_VERSION=4.0.6 -MASON_LIB_FILE=lib/libtiff.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libtiff-4.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/libtiff/tiff-${MASON_VERSION}.tar.gz \ - a6c275bb0a444f9b43f5cd3f15e0400599dc5ffc - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/tiff-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install jpeg_turbo 1.5.0 - MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg_turbo 1.5.0) - # depends on sudo apt-get install zlib1g-dev - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) -} - - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --disable-dependency-tracking \ - --disable-cxx \ - --enable-defer-strile-load \ - --enable-chunky-strip-read \ - --with-jpeg-include-dir=${MASON_JPEG}/include \ - --with-jpeg-lib-dir=${MASON_JPEG}/lib \ - --with-zlib-include-dir=${MASON_ZLIB}/include \ - --with-zlib-lib-dir=${MASON_ZLIB}/lib \ - --disable-lzma --disable-jbig --disable-mdi \ - --without-x - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - echo "-ltiff -ljpeg -lz" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libtiff/4.0.7/.travis.yml b/third_party/mason/scripts/libtiff/4.0.7/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/libtiff/4.0.7/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libtiff/4.0.7/script.sh b/third_party/mason/scripts/libtiff/4.0.7/script.sh deleted file mode 100755 index cf17b39d6..000000000 --- a/third_party/mason/scripts/libtiff/4.0.7/script.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libtiff -MASON_VERSION=4.0.7 -MASON_LIB_FILE=lib/libtiff.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libtiff-4.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/libtiff/tiff-${MASON_VERSION}.tar.gz \ - 3ef673aa786929fea2f997439e33473777465927 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/tiff-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install jpeg_turbo 1.5.1 - MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg_turbo 1.5.1) - # depends on sudo apt-get install zlib1g-dev - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) -} - - -function mason_compile { - # note CFLAGS overrides defaults (-g -O2 -Wall -W) so we need to add optimization flags back - export CFLAGS="${CFLAGS} -O3 -DNDEBUG" - ./configure --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --enable-largefile \ - --enable-defer-strile-load \ - --enable-chunky-strip-read \ - --disable-jpeg12 \ - --disable-dependency-tracking \ - --disable-cxx \ - --with-jpeg-include-dir=${MASON_JPEG}/include \ - --with-jpeg-lib-dir=${MASON_JPEG}/lib \ - --with-zlib-include-dir=${MASON_ZLIB}/include \ - --with-zlib-lib-dir=${MASON_ZLIB}/lib \ - --disable-lzma --disable-jbig --disable-mdi \ - --without-x --disable-pixarlog --disable-next --disable-old-jpeg --disable-logluv \ - --disable-thunder --disable-packbits --disable-ccitt - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - echo "-ltiff -ljpeg -lz" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libtiff/46346a6b570b6084be53063216fbd2825d311675/.travis.yml b/third_party/mason/scripts/libtiff/46346a6b570b6084be53063216fbd2825d311675/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/libtiff/46346a6b570b6084be53063216fbd2825d311675/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libtiff/46346a6b570b6084be53063216fbd2825d311675/script.sh b/third_party/mason/scripts/libtiff/46346a6b570b6084be53063216fbd2825d311675/script.sh deleted file mode 100755 index 1c8463fc8..000000000 --- a/third_party/mason/scripts/libtiff/46346a6b570b6084be53063216fbd2825d311675/script.sh +++ /dev/null @@ -1,54 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libtiff -MASON_VERSION=46346a6b570b6084be53063216fbd2825d311675 -MASON_LIB_FILE=lib/libtiff.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libtiff-4.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/vadz/libtiff/archive/${MASON_VERSION}.tar.gz \ - 26bc51193cfba8c017128143b19414adb0897c5b - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - ${MASON_DIR}/mason install jpeg v8d - MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg v8d) - SYSTEM_ZLIB="/usr" -} - - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --disable-dependency-tracking \ - --disable-cxx \ - --enable-defer-strile-load \ - --enable-chunky-strip-read \ - --with-jpeg-include-dir=${MASON_JPEG}/include \ - --with-jpeg-lib-dir=${MASON_JPEG}/lib \ - --with-zlib-include-dir=${SYSTEM_ZLIB}/include \ - --with-zlib-lib-dir=${SYSTEM_ZLIB}/lib \ - --disable-lzma --disable-jbig --disable-mdi \ - --without-x - - make -j${MASON_CONCURRENCY} V=1 - make install -} - -function mason_ldflags { - echo "-ltiff -ljpeg -lz" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libuv/0.10.28/.travis.yml b/third_party/mason/scripts/libuv/0.10.28/.travis.yml deleted file mode 100644 index 5cda07712..000000000 --- a/third_party/mason/scripts/libuv/0.10.28/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -before_install: - -install: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -before_script: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - -script: -- ./mason remove ${MASON_NAME} ${MASON_VERSION} -- ./mason install ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libuv/0.10.28/script.sh b/third_party/mason/scripts/libuv/0.10.28/script.sh deleted file mode 100755 index 3ee84f007..000000000 --- a/third_party/mason/scripts/libuv/0.10.28/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libuv -MASON_VERSION=0.10.28 -MASON_LIB_FILE=lib/libuv.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/joyent/libuv/archive/v${MASON_VERSION}.tar.gz \ - a3fc90eca125e49979103d748be436a438083cb7 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libuv-${MASON_VERSION} -} - -function mason_compile { - CFLAGS="-fPIC ${CFLAGS:-}" make libuv.a -j${MASON_CONCURRENCY} - mkdir -p lib - mv libuv.a "${MASON_LIB_FILE}" - mkdir -p "${MASON_PREFIX}" - cp -rv lib include "${MASON_PREFIX}" -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - if [ ${MASON_PLATFORM} = 'osx' ]; then - echo "-lpthread -ldl -framework CoreFoundation -framework CoreServices" - elif [ ${MASON_PLATFORM} = 'ios' ]; then - echo "-lpthread -ldl" - elif [ ${MASON_PLATFORM} = 'linux' ]; then - echo "-lpthread -ldl -lrt" - fi -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libuv/0.10.33/.travis.yml b/third_party/mason/scripts/libuv/0.10.33/.travis.yml deleted file mode 100644 index 5cda07712..000000000 --- a/third_party/mason/scripts/libuv/0.10.33/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -before_install: - -install: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -before_script: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - -script: -- ./mason remove ${MASON_NAME} ${MASON_VERSION} -- ./mason install ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libuv/0.10.33/script.sh b/third_party/mason/scripts/libuv/0.10.33/script.sh deleted file mode 100755 index 60a8531a2..000000000 --- a/third_party/mason/scripts/libuv/0.10.33/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libuv -MASON_VERSION=0.10.33 -MASON_LIB_FILE=lib/libuv.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/libuv/libuv/archive/v${MASON_VERSION}.tar.gz \ - d4bc9973e0cc4b653ebc4fccaccb9564c022b52b - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libuv-${MASON_VERSION} -} - -function mason_compile { - CFLAGS="-fPIC ${CFLAGS:-}" make libuv.a -j${MASON_CONCURRENCY} - mkdir -p lib - mv libuv.a "${MASON_LIB_FILE}" - mkdir -p "${MASON_PREFIX}" - cp -rv lib include "${MASON_PREFIX}" -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - if [ ${MASON_PLATFORM} = 'osx' ]; then - echo "-lpthread -ldl -framework CoreFoundation -framework CoreServices" - elif [ ${MASON_PLATFORM} = 'ios' ]; then - echo "-lpthread -ldl" - elif [ ${MASON_PLATFORM} = 'linux' ]; then - echo "-lpthread -ldl -lrt" - fi -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libuv/0.10.36/.travis.yml b/third_party/mason/scripts/libuv/0.10.36/.travis.yml deleted file mode 100644 index 5cda07712..000000000 --- a/third_party/mason/scripts/libuv/0.10.36/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -before_install: - -install: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -before_script: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - -script: -- ./mason remove ${MASON_NAME} ${MASON_VERSION} -- ./mason install ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libuv/0.10.36/script.sh b/third_party/mason/scripts/libuv/0.10.36/script.sh deleted file mode 100755 index f2b4fe8d5..000000000 --- a/third_party/mason/scripts/libuv/0.10.36/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libuv -MASON_VERSION=0.10.36 -MASON_LIB_FILE=lib/libuv.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/libuv/libuv/archive/v${MASON_VERSION}.tar.gz \ - 8885b330c9c9aea3892aa3e5f7534a6dba128733 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libuv-${MASON_VERSION} -} - -function mason_compile { - CFLAGS="-fPIC ${CFLAGS:-}" make libuv.a -j${MASON_CONCURRENCY} - mkdir -p lib - mv libuv.a "${MASON_LIB_FILE}" - mkdir -p "${MASON_PREFIX}" - cp -rv lib include "${MASON_PREFIX}" -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - if [ ${MASON_PLATFORM} = 'osx' ]; then - echo "-lpthread -ldl -framework CoreFoundation -framework CoreServices" - elif [ ${MASON_PLATFORM} = 'ios' ]; then - echo "-lpthread -ldl" - elif [ ${MASON_PLATFORM} = 'linux' ]; then - echo "-lpthread -ldl -lrt" - fi -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libuv/0.11.29/.travis.yml b/third_party/mason/scripts/libuv/0.11.29/.travis.yml deleted file mode 100644 index b5f4117b5..000000000 --- a/third_party/mason/scripts/libuv/0.11.29/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -before_install: - -install: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -before_script: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - -script: -- ./mason remove ${MASON_NAME} ${MASON_VERSION} -- ./mason install ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libuv/0.11.29/script.sh b/third_party/mason/scripts/libuv/0.11.29/script.sh deleted file mode 100755 index 15f32e34d..000000000 --- a/third_party/mason/scripts/libuv/0.11.29/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libuv -MASON_VERSION=0.11.29 -MASON_LIB_FILE=lib/libuv.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libuv.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/joyent/libuv/archive/v0.11.29.tar.gz \ - 5bf49a8652f680557cbaf335a160187b2da3bf7f - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libuv-${MASON_VERSION} -} - -function mason_prepare_compile { - ./autogen.sh -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --disable-dtrace - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -luv - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libuv/1.4.0/.travis.yml b/third_party/mason/scripts/libuv/1.4.0/.travis.yml deleted file mode 100644 index b5f4117b5..000000000 --- a/third_party/mason/scripts/libuv/1.4.0/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -before_install: - -install: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -before_script: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - -script: -- ./mason remove ${MASON_NAME} ${MASON_VERSION} -- ./mason install ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libuv/1.4.0/script.sh b/third_party/mason/scripts/libuv/1.4.0/script.sh deleted file mode 100755 index 838c2de5d..000000000 --- a/third_party/mason/scripts/libuv/1.4.0/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libuv -MASON_VERSION=1.4.0 -MASON_LIB_FILE=lib/libuv.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libuv.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/libuv/libuv/archive/v1.4.0.tar.gz \ - 22d3aada0b532d41c95cf51029f539f0570eeaa4 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libuv-${MASON_VERSION} -} - -function mason_prepare_compile { - ./autogen.sh -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --disable-dtrace - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -luv - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libuv/1.6.1/.travis.yml b/third_party/mason/scripts/libuv/1.6.1/.travis.yml deleted file mode 100644 index 5cda07712..000000000 --- a/third_party/mason/scripts/libuv/1.6.1/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -before_install: - -install: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -before_script: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - -script: -- ./mason remove ${MASON_NAME} ${MASON_VERSION} -- ./mason install ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libuv/1.6.1/script.sh b/third_party/mason/scripts/libuv/1.6.1/script.sh deleted file mode 100755 index ef5b2015d..000000000 --- a/third_party/mason/scripts/libuv/1.6.1/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libuv -MASON_VERSION=1.6.1 -MASON_LIB_FILE=lib/libuv.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libuv.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/libuv/libuv/archive/v1.6.1.tar.gz \ - 7e0bf128a4e7e82f8d3a13bf789e66ad963f82a1 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libuv-${MASON_VERSION} -} - -function mason_prepare_compile { - ./autogen.sh -} - -function mason_compile { - CFLAGS="-O3 -DNDEBUG -fPIC ${CFLAGS}" ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --disable-dtrace - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -luv - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libuv/1.7.5/.travis.yml b/third_party/mason/scripts/libuv/1.7.5/.travis.yml deleted file mode 100644 index 61529000b..000000000 --- a/third_party/mason/scripts/libuv/1.7.5/.travis.yml +++ /dev/null @@ -1,47 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux CXX=clang++-3.5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'llvm-toolchain-precise-3.5' ] - packages: [ 'clang-3.5', 'libstdc++-4.9-dev', 'libstdc++6' ] - -before_install: - -install: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -before_script: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - -script: -- ./mason remove ${MASON_NAME} ${MASON_VERSION} -- ./mason install ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libuv/1.7.5/script.sh b/third_party/mason/scripts/libuv/1.7.5/script.sh deleted file mode 100755 index 9ff9733f0..000000000 --- a/third_party/mason/scripts/libuv/1.7.5/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libuv -MASON_VERSION=1.7.5 -MASON_LIB_FILE=lib/libuv.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libuv.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/libuv/libuv/archive/v1.7.5.tar.gz \ - 236deb17974ea1114121907672894c2a7bc6673c - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libuv-${MASON_VERSION} -} - -function mason_prepare_compile { - ./autogen.sh -} - -function mason_compile { - CFLAGS="-O3 -DNDEBUG -fPIC ${CFLAGS}" ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --disable-dtrace - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -luv - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libuv/1.9.1/.travis.yml b/third_party/mason/scripts/libuv/1.9.1/.travis.yml deleted file mode 100644 index ca618f0cf..000000000 --- a/third_party/mason/scripts/libuv/1.9.1/.travis.yml +++ /dev/null @@ -1,46 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=ios - compiler: clang - - os: osx - osx_image: xcode7 - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -before_install: - -install: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -before_script: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - -script: -- ./mason remove ${MASON_NAME} ${MASON_VERSION} -- ./mason install ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libuv/1.9.1/script.sh b/third_party/mason/scripts/libuv/1.9.1/script.sh deleted file mode 100755 index c6e389571..000000000 --- a/third_party/mason/scripts/libuv/1.9.1/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libuv -MASON_VERSION=1.9.1 -MASON_LIB_FILE=lib/libuv.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libuv.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/libuv/libuv/archive/v1.9.1.tar.gz \ - f58168a132477d505ef462e83319740ff7122c48 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libuv-${MASON_VERSION} -} - -function mason_prepare_compile { - ./autogen.sh -} - -function mason_compile { - CFLAGS="-O3 -DNDEBUG -fPIC ${CFLAGS}" ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --disable-dtrace - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -luv - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libxml2/2.9.2/.travis.yml b/third_party/mason/scripts/libxml2/2.9.2/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/libxml2/2.9.2/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libxml2/2.9.2/script.sh b/third_party/mason/scripts/libxml2/2.9.2/script.sh deleted file mode 100755 index 932cad450..000000000 --- a/third_party/mason/scripts/libxml2/2.9.2/script.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libxml2 -MASON_VERSION=2.9.2 -MASON_LIB_FILE=lib/libxml2.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libxml-2.0.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://xmlsoft.org/libxml2/libxml2-2.9.2.tar.gz \ - be0b605b2bb5a1bbca9bb375d8748b702bdeb29a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - # note --with-writer for osmium - ./configure --prefix=${MASON_PREFIX} \ - --enable-static --disable-shared ${MASON_HOST_ARG} \ - --with-writer \ - --with-xptr \ - --with-xpath \ - --with-xinclude \ - --with-threads \ - --with-tree \ - --with-catalog \ - --without-icu \ - --without-zlib \ - --without-python \ - --without-legacy \ - --without-iconv \ - --without-debug \ - --without-docbook \ - --without-ftp \ - --without-html \ - --without-http \ - --without-sax1 \ - --without-schemas \ - --without-schematron \ - --without-valid \ - --without-modules \ - --without-lzma \ - --without-readline \ - --without-regexps \ - --without-c14n - make install -j${MASON_CONCURRENCY} -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include/libxml2" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -lxml2 -lpthread -lm" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libxml2/2.9.3/.travis.yml b/third_party/mason/scripts/libxml2/2.9.3/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/libxml2/2.9.3/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libxml2/2.9.3/script.sh b/third_party/mason/scripts/libxml2/2.9.3/script.sh deleted file mode 100755 index ae6c2d1f9..000000000 --- a/third_party/mason/scripts/libxml2/2.9.3/script.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libxml2 -MASON_VERSION=2.9.3 -MASON_LIB_FILE=lib/libxml2.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libxml-2.0.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://xmlsoft.org/libxml2/libxml2-${MASON_VERSION}.tar.gz \ - 5b5ff1b6cc9b5aa292a3748a45fc22fa9b46dc8e - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - # note --with-writer for osmium - ./configure --prefix=${MASON_PREFIX} \ - --enable-static --disable-shared ${MASON_HOST_ARG} \ - --with-writer \ - --with-xptr \ - --with-xpath \ - --with-xinclude \ - --with-threads \ - --with-tree \ - --with-catalog \ - --without-icu \ - --without-zlib \ - --without-python \ - --without-legacy \ - --without-iconv \ - --without-debug \ - --without-docbook \ - --without-ftp \ - --without-html \ - --without-http \ - --without-sax1 \ - --without-schemas \ - --without-schematron \ - --without-valid \ - --without-modules \ - --without-lzma \ - --without-readline \ - --without-regexps \ - --without-c14n - make install -j${MASON_CONCURRENCY} -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include/libxml2" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -lxml2 -lpthread -lm" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libzip/0.11.2/.travis.yml b/third_party/mason/scripts/libzip/0.11.2/.travis.yml deleted file mode 100644 index ef53c438e..000000000 --- a/third_party/mason/scripts/libzip/0.11.2/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - matrix: - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - - env: MASON_PLATFORM=linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libzip/0.11.2/script.sh b/third_party/mason/scripts/libzip/0.11.2/script.sh deleted file mode 100755 index c900b853e..000000000 --- a/third_party/mason/scripts/libzip/0.11.2/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libzip -MASON_VERSION=0.11.2 -MASON_LIB_FILE=lib/libzip.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libzip.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.nih.at/libzip/libzip-0.11.2.tar.gz \ - 5e2407b231390e1cb8234541e89693ae57487170 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libzip-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lzip - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libzip/1.0.1/.travis.yml b/third_party/mason/scripts/libzip/1.0.1/.travis.yml deleted file mode 100644 index 8087f40b2..000000000 --- a/third_party/mason/scripts/libzip/1.0.1/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: cpp -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - - os: linux - env: MASON_PLATFORM=linux - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libzip/1.0.1/script.sh b/third_party/mason/scripts/libzip/1.0.1/script.sh deleted file mode 100755 index a3a98afc9..000000000 --- a/third_party/mason/scripts/libzip/1.0.1/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libzip -MASON_VERSION=1.0.1 -MASON_LIB_FILE=lib/libzip.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libzip.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.nih.at/libzip/libzip-${MASON_VERSION}.tar.gz \ - b7761ee2ef581979df32f42637042f5663d766bf - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libzip-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lzip - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/libzip/1.1.3/.travis.yml b/third_party/mason/scripts/libzip/1.1.3/.travis.yml deleted file mode 100644 index fca15836e..000000000 --- a/third_party/mason/scripts/libzip/1.1.3/.travis.yml +++ /dev/null @@ -1,36 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux - compiler: clang - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/libzip/1.1.3/script.sh b/third_party/mason/scripts/libzip/1.1.3/script.sh deleted file mode 100755 index d1df74560..000000000 --- a/third_party/mason/scripts/libzip/1.1.3/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=libzip -MASON_VERSION=1.1.3 -MASON_LIB_FILE=lib/libzip.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libzip.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.nih.at/libzip/libzip-${MASON_VERSION}.tar.gz \ - 4bc18317d0607d5a24b618a6a5c1c229dade48e8 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libzip-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lzip - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/lldb/3.8.1/.travis.yml b/third_party/mason/scripts/lldb/3.8.1/.travis.yml deleted file mode 100644 index 1a6942504..000000000 --- a/third_party/mason/scripts/lldb/3.8.1/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/lldb/3.8.1/script.sh b/third_party/mason/scripts/lldb/3.8.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/lldb/3.8.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/lldb/3.9.1/.travis.yml b/third_party/mason/scripts/lldb/3.9.1/.travis.yml deleted file mode 100644 index 1a6942504..000000000 --- a/third_party/mason/scripts/lldb/3.9.1/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/lldb/3.9.1/script.sh b/third_party/mason/scripts/lldb/3.9.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/lldb/3.9.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/lldb/4.0.0/.travis.yml b/third_party/mason/scripts/lldb/4.0.0/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/lldb/4.0.0/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/lldb/4.0.0/script.sh b/third_party/mason/scripts/lldb/4.0.0/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/lldb/4.0.0/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/lldb/base/common.sh b/third_party/mason/scripts/lldb/base/common.sh deleted file mode 100755 index 8444e3cca..000000000 --- a/third_party/mason/scripts/lldb/base/common.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash - -function mason_build { - ${MASON_DIR}/mason install llvm ${MASON_VERSION} - CLANG_PREFIX=$(${MASON_DIR}/mason prefix llvm ${MASON_VERSION}) - # copy bin - mkdir -p "${MASON_PREFIX}/bin" - cp "${CLANG_PREFIX}/bin/${MASON_NAME}" "${MASON_PREFIX}/bin/" - cp "${CLANG_PREFIX}/bin/lldb-server" "${MASON_PREFIX}/bin/" - cp "${CLANG_PREFIX}/bin/lldb-argdumper" "${MASON_PREFIX}/bin/" - # copy lib - mkdir -p "${MASON_PREFIX}/lib" - if [[ $(uname -s) == 'Darwin' ]]; then - cp -r ${CLANG_PREFIX}/lib/liblldb*.dylib "${MASON_PREFIX}/lib/" - else - cp -r ${CLANG_PREFIX}/lib/liblldb*.so* "${MASON_PREFIX}/lib/" - fi -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} \ No newline at end of file diff --git a/third_party/mason/scripts/llnode/1.4.1/.travis.yml b/third_party/mason/scripts/llnode/1.4.1/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/llnode/1.4.1/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/llnode/1.4.1/script.sh b/third_party/mason/scripts/llnode/1.4.1/script.sh deleted file mode 100755 index 2c3da09db..000000000 --- a/third_party/mason/scripts/llnode/1.4.1/script.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=llnode -MASON_VERSION=1.4.1 -MASON_LIB_FILE=lib/llnode.${MASON_DYNLIB_SUFFIX} - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/nodejs/llnode/archive/v${MASON_VERSION}.tar.gz \ - b7ff83ff4686fdeb15517310b6e048c9c864794a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - LLVM_VERSION=3.9.1 - ${MASON_DIR}/mason install llvm 3.9.1 - LLVM_PATH=$(${MASON_DIR}/mason prefix llvm 3.9.1) -} - -function mason_compile { - git clone --depth 1 https://chromium.googlesource.com/external/gyp.git tools/gyp - # ../src/llv8.cc:256:43: error: expected ')' - #snprintf(tmp, sizeof(tmp), " fn=0x%016" PRIx64, fn.raw()); - # need to define STDC macros since libc++ adheres to spec: http://en.cppreference.com/w/cpp/types/integer - export CXXFLAGS="-stdlib=libc++ ${CXXFLAGS} -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS" - export LDFLAGS="-stdlib=libc++ ${LDFLAGS}" - # per the llvm package, on linux we statically link libc++ for full portability - # while on osx we use the system libc++ - if [[ -f ${LLVM_PATH}/lib/libc++.a ]]; then - export LDFLAGS="-Wl,--whole-archive ${LLVM_PATH}/lib/libc++.a ${LLVM_PATH}/lib/libc++abi.a ${LDFLAGS}" - fi - ./gyp_llnode -Dlldb_build_dir=${LLVM_PATH} -Dlldb_dir=${LLVM_PATH} - make -C out/ -j${MASON_CONCURRENCY} V=1 - mkdir -p ${MASON_PREFIX}/lib - if [[ $(uname -s) == 'Darwin' ]]; then - cp ./out/Release/llnode* ${MASON_PREFIX}/lib/ - else - cp ./out/Release/lib.target/llnode* ${MASON_PREFIX}/lib/ - fi -} - -function mason_cflags { - : -} - -function mason_ldflags { - echo -L${MASON_PREFIX} -llnode -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/llvm-cov/3.8.1/.travis.yml b/third_party/mason/scripts/llvm-cov/3.8.1/.travis.yml deleted file mode 100644 index 1a6942504..000000000 --- a/third_party/mason/scripts/llvm-cov/3.8.1/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/llvm-cov/3.8.1/script.sh b/third_party/mason/scripts/llvm-cov/3.8.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/llvm-cov/3.8.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/llvm-cov/3.9.1/.travis.yml b/third_party/mason/scripts/llvm-cov/3.9.1/.travis.yml deleted file mode 100644 index 1a6942504..000000000 --- a/third_party/mason/scripts/llvm-cov/3.9.1/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/llvm-cov/3.9.1/script.sh b/third_party/mason/scripts/llvm-cov/3.9.1/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/llvm-cov/3.9.1/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/llvm-cov/4.0.0/.travis.yml b/third_party/mason/scripts/llvm-cov/4.0.0/.travis.yml deleted file mode 100644 index d22a82784..000000000 --- a/third_party/mason/scripts/llvm-cov/4.0.0/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/llvm-cov/4.0.0/script.sh b/third_party/mason/scripts/llvm-cov/4.0.0/script.sh deleted file mode 100755 index 391259e3c..000000000 --- a/third_party/mason/scripts/llvm-cov/4.0.0/script.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" - -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -MASON_LIB_FILE=bin/${MASON_NAME} - -. ${MASON_DIR}/mason.sh - -# inherit all functions from base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -mason_run "$@" diff --git a/third_party/mason/scripts/llvm-cov/base/common.sh b/third_party/mason/scripts/llvm-cov/base/common.sh deleted file mode 100755 index ccb83e897..000000000 --- a/third_party/mason/scripts/llvm-cov/base/common.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -function mason_build { - ${MASON_DIR}/mason install llvm ${MASON_VERSION} - CLANG_PREFIX=$(${MASON_DIR}/mason prefix llvm ${MASON_VERSION}) - # copy bin - mkdir -p "${MASON_PREFIX}/bin" - cp "${CLANG_PREFIX}/bin/${MASON_NAME}" "${MASON_PREFIX}/bin/" - cp "${CLANG_PREFIX}/bin/llvm-profdata" "${MASON_PREFIX}/bin/" -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} \ No newline at end of file diff --git a/third_party/mason/scripts/llvm/3.8.1-libstdcxx/.travis.yml b/third_party/mason/scripts/llvm/3.8.1-libstdcxx/.travis.yml deleted file mode 100644 index cc9a85738..000000000 --- a/third_party/mason/scripts/llvm/3.8.1-libstdcxx/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: generic - -script: -- echo "nothing to do since travis cannot compile something as large as llvm" diff --git a/third_party/mason/scripts/llvm/3.8.1-libstdcxx/README.md b/third_party/mason/scripts/llvm/3.8.1-libstdcxx/README.md deleted file mode 100644 index 7282f5646..000000000 --- a/third_party/mason/scripts/llvm/3.8.1-libstdcxx/README.md +++ /dev/null @@ -1,3 +0,0 @@ -### llvm v3.8.1 - -This is a package of all llvm tools. It is dynamically linked to libstdc++ instead of statically linked to libc++ (like the main llvm packages) \ No newline at end of file diff --git a/third_party/mason/scripts/llvm/3.8.1-libstdcxx/script.sh b/third_party/mason/scripts/llvm/3.8.1-libstdcxx/script.sh deleted file mode 100755 index 583fee6d9..000000000 --- a/third_party/mason/scripts/llvm/3.8.1-libstdcxx/script.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash - -export BUILD_AND_LINK_LIBCXX=false - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -export MASON_BASE_VERSION=${MASON_VERSION/-libstdcxx/} - -# inherit all functions from llvm base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -function setup_release() { - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/llvm-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/ 6de84b7bb71e49ef2764d364c4318e01fda1e1e3 - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/cfe-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/clang 9a05f9c1c8dc865c064782dedbbbfb533c3909ac - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/compiler-rt-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/compiler-rt 678cbff6e177a18f4e2d0662901a744163da3347 - if [[ ${BUILD_AND_LINK_LIBCXX} == true ]]; then - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/libcxx-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libcxx d15220e86eb8480e58a4378a4c977bbb5463fb79 - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/libcxxabi-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libcxxabi b7508c64ab8e670062ee57a12ae1e542bcb2bfb4 - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/libunwind-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libunwind 90c0184ca72e1999fec304f76bfa10340f038ee5 - fi - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/lld-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/lld 416c36ded12ead42dc4739d52eabf22267300883 - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/clang-tools-extra-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/clang/tools/extra ea40e36d54dc8c9bb21cbebcc872a3221a2ed685 - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/lldb-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/lldb c8c38fa9ab92f9021067678f1a1c8f07ea75ac93 -} - -mason_run "$@" diff --git a/third_party/mason/scripts/llvm/3.8.1/.travis.yml b/third_party/mason/scripts/llvm/3.8.1/.travis.yml deleted file mode 100644 index cc9a85738..000000000 --- a/third_party/mason/scripts/llvm/3.8.1/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: generic - -script: -- echo "nothing to do since travis cannot compile something as large as llvm" diff --git a/third_party/mason/scripts/llvm/3.8.1/script.sh b/third_party/mason/scripts/llvm/3.8.1/script.sh deleted file mode 100755 index 22878b697..000000000 --- a/third_party/mason/scripts/llvm/3.8.1/script.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -# inherit all functions from llvm base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -function setup_release() { - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/llvm-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/ 6de84b7bb71e49ef2764d364c4318e01fda1e1e3 - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/cfe-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/clang 9a05f9c1c8dc865c064782dedbbbfb533c3909ac - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/compiler-rt-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/compiler-rt 678cbff6e177a18f4e2d0662901a744163da3347 - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/libcxx-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libcxx d15220e86eb8480e58a4378a4c977bbb5463fb79 - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/libcxxabi-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libcxxabi b7508c64ab8e670062ee57a12ae1e542bcb2bfb4 - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/libunwind-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libunwind 90c0184ca72e1999fec304f76bfa10340f038ee5 - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/lld-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/lld 416c36ded12ead42dc4739d52eabf22267300883 - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/clang-tools-extra-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/clang/tools/extra ea40e36d54dc8c9bb21cbebcc872a3221a2ed685 - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/lldb-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/lldb c8c38fa9ab92f9021067678f1a1c8f07ea75ac93 - get_llvm_project "https://github.com/include-what-you-use/include-what-you-use/archive/clang_${MAJOR_MINOR}.tar.gz" ${MASON_BUILD_PATH}/tools/clang/tools/include-what-you-use 2b5c5be3c7dcbe555a481083363408399b40e0c8 -} - -mason_run "$@" diff --git a/third_party/mason/scripts/llvm/3.9.1/.travis.yml b/third_party/mason/scripts/llvm/3.9.1/.travis.yml deleted file mode 100644 index cc9a85738..000000000 --- a/third_party/mason/scripts/llvm/3.9.1/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: generic - -script: -- echo "nothing to do since travis cannot compile something as large as llvm" diff --git a/third_party/mason/scripts/llvm/3.9.1/script.sh b/third_party/mason/scripts/llvm/3.9.1/script.sh deleted file mode 100755 index 7e636afc7..000000000 --- a/third_party/mason/scripts/llvm/3.9.1/script.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -# inherit all functions from llvm base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -function setup_release() { - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/llvm-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/ 282e47884738e362ff4dc70910d2e08c242f161a - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/cfe-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/clang 211b70f3cc75ef318dfa4efd57a2e9c547375f94 - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/compiler-rt-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/compiler-rt 19981bad5a444b36b2834d5bfd3edd5c66c7ca22 - if [[ ${BUILD_AND_LINK_LIBCXX} == true ]]; then - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/libcxx-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libcxx 2fdaf6017fe742974eb06f9529321a915e84a034 - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/libcxxabi-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libcxxabi 277446b2957d2a82ef10d173b3882b64d68ca5d0 - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/libunwind-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libunwind 0df57c982fda5ba8b97698525ed6fea09f87ea15 - fi - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/lld-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/lld 6c8018e5caf82f1f771d24b532af11c67228f333 - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/clang-tools-extra-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/clang/tools/extra a3f5d99cd3d4ccdfc6d4dba15db616d53a654c3f - get_llvm_project "http://llvm.org/releases/${MASON_VERSION}/lldb-${MASON_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/lldb c8e35a599bd366d1fc122526d3b7a1902890d1ed - get_llvm_project "https://github.com/include-what-you-use/include-what-you-use/archive/clang_${MAJOR_MINOR}.tar.gz" ${MASON_BUILD_PATH}/tools/clang/tools/include-what-you-use 7e5c73ce1a2fdd1ffd29fad1ae2628d0134368c6 -} - -mason_run "$@" diff --git a/third_party/mason/scripts/llvm/4.0.0/.travis.yml b/third_party/mason/scripts/llvm/4.0.0/.travis.yml deleted file mode 100644 index cc9a85738..000000000 --- a/third_party/mason/scripts/llvm/4.0.0/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: generic - -script: -- echo "nothing to do since travis cannot compile something as large as llvm" diff --git a/third_party/mason/scripts/llvm/4.0.0/README.md b/third_party/mason/scripts/llvm/4.0.0/README.md deleted file mode 100644 index 6ce52d7fd..000000000 --- a/third_party/mason/scripts/llvm/4.0.0/README.md +++ /dev/null @@ -1,3 +0,0 @@ -### llvm v4.x - -Development package of llvm git head \ No newline at end of file diff --git a/third_party/mason/scripts/llvm/4.0.0/script.sh b/third_party/mason/scripts/llvm/4.0.0/script.sh deleted file mode 100755 index c093bc98d..000000000 --- a/third_party/mason/scripts/llvm/4.0.0/script.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -# dynamically determine the path to this package -HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" > /dev/null && pwd )" -# dynamically take name of package from directory -MASON_NAME=$(basename $(dirname $HERE)) -# dynamically take the version of the package from directory -MASON_VERSION=$(basename $HERE) -# inherit all functions from llvm base -source ${HERE}/../../${MASON_NAME}/base/common.sh - -function setup_release() { - get_llvm_project "http://llvm.org/git/llvm.git" ${MASON_BUILD_PATH} - get_llvm_project "http://llvm.org/git/clang.git" ${MASON_BUILD_PATH}/tools/clang - get_llvm_project "http://llvm.org/git/compiler-rt.git" ${MASON_BUILD_PATH}/projects/compiler-rt - if [[ ${BUILD_AND_LINK_LIBCXX} == true ]]; then - get_llvm_project "http://llvm.org/git/libcxx.git" ${MASON_BUILD_PATH}/projects/libcxx - get_llvm_project "http://llvm.org/git/libcxxabi.git" ${MASON_BUILD_PATH}/projects/libcxxabi - get_llvm_project "http://llvm.org/git/libunwind.git" ${MASON_BUILD_PATH}/projects/libunwind - fi - get_llvm_project "http://llvm.org/git/lld.git" ${MASON_BUILD_PATH}/tools/lld - get_llvm_project "http://llvm.org/git/clang-tools-extra.git" ${MASON_BUILD_PATH}/tools/clang/tools/extra - get_llvm_project "http://llvm.org/git/lldb.git" ${MASON_BUILD_PATH}/tools/lldb - get_llvm_project "https://github.com/include-what-you-use/include-what-you-use.git" ${MASON_BUILD_PATH}/tools/clang/tools/include-what-you-use -} - -mason_run "$@" diff --git a/third_party/mason/scripts/llvm/base/README.md b/third_party/mason/scripts/llvm/base/README.md deleted file mode 100644 index 4bd90d815..000000000 --- a/third_party/mason/scripts/llvm/base/README.md +++ /dev/null @@ -1,40 +0,0 @@ -## llvm - -This is a package of llvm. Multiple packages are based on repackaging the binaries from this one. - -### Depends - -#### On Linux - - - >= Ubuntu precise - - binutils 2.27 from mason for -flto support - -#### On OS X - - - OS X >= 10.11 - - On XCode >= 8 installed to `/Applications/Xcode.app` such that `xcode-select -p` returns `/Applications/Xcode.app/Contents/Developer` - -If you don't have Xcode installed in `/Applications` you can still use the clang++ in this package but you need to set: - -1) `-isysroot` to point at your Mac SDK (the value returned from `xcrun --show-sdk-path`) - -2) Add an include flag to point at your C++ headers which are generally at `ls $(dirname $(xcrun --find clang++))/../include/c++/v1`. For the command line tools this directory is at `/Library/Developer/CommandLineTools/usr/include/c++/v1/` - -### Details of builds - - - OS X build done on OS X 10.12.1 - - Linux build done on Ubuntu precise - -Builds (and rebuilds) are done using `utils/rebuild-llvm-tools.sh` - -#### OS X details - -On MacOS we use the apple system clang++ to compile and link against the apple system libc++. - -#### Linux details - -On Linux we use Ubuntu Precise in order to ensure that binaries can be run on Ubuntu Precise and newer platforms. - -We link clang++ and other llvm c++ tools to libc++ (the one within the build) to avoid clang++ itself depending on a specific libstdc++ version. - -The clang++ binary still defaults to building and linking linux programs against libstdc++. \ No newline at end of file diff --git a/third_party/mason/scripts/llvm/base/common.sh b/third_party/mason/scripts/llvm/base/common.sh deleted file mode 100755 index af81f2acc..000000000 --- a/third_party/mason/scripts/llvm/base/common.sh +++ /dev/null @@ -1,289 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=llvm -MASON_LIB_FILE=bin/clang - -. ${MASON_DIR}/mason.sh - -export MASON_BASE_VERSION=${MASON_BASE_VERSION:-${MASON_VERSION}} -export MAJOR_MINOR=$(echo ${MASON_BASE_VERSION} | cut -d '.' -f1-2) - -if [[ $(uname -s) == 'Darwin' ]]; then - export BUILD_AND_LINK_LIBCXX=false - # avoids this kind of problem with include-what-you-use - # because iwyu hardcodes at https://github.com/include-what-you-use/include-what-you-use/blob/da5c9b17fec571e6b2bbca29145463d7eaa3582e/iwyu_driver.cc#L219 - : ' - /Library/Developer/CommandLineTools/usr/include/c++/v1/cstdlib:167:44: error: declaration conflicts with target of using declaration already in scope - inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);} - ^ - /Users/dane/.mason/mason_packages/osx-x86_64/llvm/3.9.0/bin/../include/c++/v1/stdlib.h:115:44: note: target of using declaration - inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);} - ' -else - export BUILD_AND_LINK_LIBCXX=${BUILD_AND_LINK_LIBCXX:-true} -fi - -# we use this custom function rather than "mason_download" since we need to easily grab multiple packages -function get_llvm_project() { - local URL=${1} - local TO_DIR=${2} - if [[ ${TO_DIR:-false} == false ]]; then - mason_error "TO_DIR unset" - exit 1 - fi - local EXPECTED_HASH=${3:-false} - local file_basename=$(basename ${URL}) - local local_file_or_checkout=$(pwd)/${file_basename} - if [[ ${URL} =~ '.git' ]]; then - if [ ! -d ${local_file_or_checkout} ] ; then - mason_step "cloning ${URL} to ${local_file_or_checkout}" - git clone --depth 1 ${URL} ${local_file_or_checkout} - else - mason_substep "already cloned ${URL}, pulling to update" - (cd ${local_file_or_checkout} && git pull) - fi - mason_step "moving ${local_file_or_checkout} into place at ${TO_DIR}" - cp -r ${local_file_or_checkout} ${TO_DIR} - else - if [ ! -f ${local_file_or_checkout} ] ; then - mason_step "Downloading ${URL} to ${local_file_or_checkout}" - curl --retry 3 -f -L -O "${URL}" - else - mason_substep "already downloaded $1 to ${local_file_or_checkout}" - fi - export OBJECT_HASH=$(git hash-object ${local_file_or_checkout}) - if [[ ${EXPECTED_HASH:-false} == false ]]; then - mason_error "Warning: no expected hash provided by script.sh, actual was ${OBJECT_HASH}" - else - if [[ $3 != ${OBJECT_HASH} ]]; then - mason_error "Error: hash mismatch ${EXPECTED_HASH} (expected) != ${OBJECT_HASH} (actual)" - exit 1 - else - mason_success "Success: hash matched: ${EXPECTED_HASH} (expected) == ${OBJECT_HASH} (actual)" - fi - fi - mason_step "uncompressing ${local_file_or_checkout}" - mkdir -p ./checkout - rm -rf ./checkout/* - tar xf ${local_file_or_checkout} --strip-components=1 --directory=./checkout - mkdir -p ${TO_DIR} - mv checkout/* ${TO_DIR}/ - fi -} - -# Note: override this function to set custom hash -function setup_release() { - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/llvm-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/ - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/cfe-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/clang - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/compiler-rt-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/compiler-rt - if [[ ${BUILD_AND_LINK_LIBCXX} == true ]]; then - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/libcxx-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libcxx - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/libcxxabi-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libcxxabi - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/libunwind-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/projects/libunwind - fi - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/lld-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/lld - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/clang-tools-extra-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/clang/tools/extra - get_llvm_project "http://llvm.org/releases/${MASON_BASE_VERSION}/lldb-${MASON_BASE_VERSION}.src.tar.xz" ${MASON_BUILD_PATH}/tools/lldb - get_llvm_project "https://github.com/include-what-you-use/include-what-you-use/archive/clang_${MAJOR_MINOR}.tar.gz" ${MASON_BUILD_PATH}/tools/clang/tools/include-what-you-use -} - -function mason_load_source { - mkdir -p "${MASON_ROOT}/.cache" - cd "${MASON_ROOT}/.cache" - export MASON_BUILD_PATH=${MASON_ROOT}/.build/llvm-${MASON_BASE_VERSION} - mkdir -p "${MASON_ROOT}/.build" - if [[ -d ${MASON_BUILD_PATH}/ ]]; then - rm -rf ${MASON_BUILD_PATH}/ - fi - # NOTE: this setup_release can be overridden per package to assert on different hash - setup_release -} - -function mason_prepare_compile { - CCACHE_VERSION=3.3.1 - CMAKE_VERSION=3.6.2 - NINJA_VERSION=1.7.1 - - ${MASON_DIR}/mason install ccache ${CCACHE_VERSION} - MASON_CCACHE=$(${MASON_DIR}/mason prefix ccache ${CCACHE_VERSION}) - ${MASON_DIR}/mason install cmake ${CMAKE_VERSION} - MASON_CMAKE=$(${MASON_DIR}/mason prefix cmake ${CMAKE_VERSION}) - ${MASON_DIR}/mason install ninja ${NINJA_VERSION} - MASON_NINJA=$(${MASON_DIR}/mason prefix ninja ${NINJA_VERSION}) - - if [[ $(uname -s) == 'Linux' ]]; then - BINUTILS_VERSION=2.27 - ${MASON_DIR}/mason install binutils ${BINUTILS_VERSION} - LLVM_BINUTILS_INCDIR=$(${MASON_DIR}/mason prefix binutils ${BINUTILS_VERSION})/include - fi -} - -function mason_compile { - export CXX="${CXX:-clang++}" - export CC="${CC:-clang}" - # knock out lldb doc building, to remove doxygen dependency - perl -i -p -e "s/add_subdirectory\(docs\)//g;" tools/lldb/CMakeLists.txt - - # remove /usr/local/include from default paths (targeting linux) - # because we want users to have to explictly link things in /usr/local to avoid conflicts - # between mason and homebrew or source installs - perl -i -p -e "s/AddPath\(\"\/usr\/local\/include\"\, System\, false\)\;//g;" tools/clang/lib/Frontend/InitHeaderSearch.cpp - - if [[ ${MAJOR_MINOR} == "3.8" ]]; then - # workaround https://llvm.org/bugs/show_bug.cgi?id=25565 - perl -i -p -e "s/set\(codegen_deps intrinsics_gen\)/set\(codegen_deps intrinsics_gen attributes_inc\)/g;" lib/CodeGen/CMakeLists.txt - - # note: LIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON is only needed with llvm < 3.9.0 to avoid libcxx(abi) build breaking when only a static libc++ exists - CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON" - fi - - if [[ -d tools/clang/tools/include-what-you-use ]]; then - echo 'add_subdirectory(include-what-you-use)' >> tools/clang/tools/CMakeLists.txt - fi - - mkdir -p ./build - cd ./build - CMAKE_EXTRA_ARGS="" - if [[ $(uname -s) == 'Darwin' ]]; then - : ' - Note: C_INCLUDE_DIRS and DEFAULT_SYSROOT are critical options to understand to ensure C and C++ headers are predictably found. - - The way things work in clang++ on OS X (inside http://clang.llvm.org/doxygen/InitHeaderSearch_8cpp.html) is: - - - The `:` separated `C_INCLUDE_DIRS` are added to the include paths - - If `C_INCLUDE_DIRS` is present `InitHeaderSearch::AddDefaultCIncludePaths` returns early - - Without that early return `/usr/include` would be added by default on OS X - - If `-isysroot` is passed then absolute `C_INCLUDE_DIRS` are appended to the sysroot - - So if sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/ and - C_INCLUDE_DIRS=/usr/include the actual path searched would be: - /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include - - Relative `C_INCLUDE_DIRS` seem pointless because they are not appended to the sysroot and so will not be portable - - clang++ finds C++ headers relative to itself at https://github.com/llvm-mirror/clang/blob/master/lib/Frontend/InitHeaderSearch.cpp#L469-L470 - - So, given on OS X we want to use the XCode/Apple provided libc++ and c++ headers we symlink the relative location to /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++ - - The alternative would be to symlink to the command line tools location (/Library/Developer/CommandLineTools/usr/include/c++/v1/) - - Another viable sysroot would be the command line tools at /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk - - Generally each SDK/Platform version has its own C headers inside SDK_PATH/usr/include while all platforms share the C++ headers which - are at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/ - - NOTE: show search paths with: `clang -x c -v -E /dev/null` || `cpp -v` && `clang -Xlinker -v` - ' - CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DC_INCLUDE_DIRS=/usr/include" - # setting the default sysroot to an explicit SDK avoids clang++ adding `/usr/local/include` to the paths by default at https://github.com/llvm-mirror/clang/blob/91d69c3c9c62946245a0fe6526d5ec226dfe7408/lib/Frontend/InitHeaderSearch.cpp#L226 - # because that value will be appended to the sysroot, not exist, and then get thrown out. If the sysroot were / then it would be added - CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DDEFAULT_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" - CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DCLANG_DEFAULT_CXX_STDLIB=libc++" - CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DCMAKE_OSX_DEPLOYMENT_TARGET=10.11" - CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DLLVM_CREATE_XCODE_TOOLCHAIN=ON -DLLVM_EXTERNALIZE_DEBUGINFO=ON" - fi - if [[ $(uname -s) == 'Linux' ]]; then - CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DLLVM_BINUTILS_INCDIR=${LLVM_BINUTILS_INCDIR}" - if [[ ${MAJOR_MINOR} == "3.8" ]] && [[ ${BUILD_AND_LINK_LIBCXX} == true ]]; then - # note: LIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON is only needed with llvm < 3.9.0 to avoid libcxx(abi) build breaking when only a static libc++ exists - CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON" - fi - fi - - # we strip this since we don't care about older os x for this package - if [[ $(uname -s) == 'Darwin' ]]; then - export CXXFLAGS="${CXXFLAGS//-mmacosx-version-min=10.8}" - export LDFLAGS="${LDFLAGS//-mmacosx-version-min=10.8}" - fi - - # llvm may request c++14 instead so let's not force c++11 - export CXXFLAGS="${CXXFLAGS//-std=c++11}" - - if [[ ${BUILD_AND_LINK_LIBCXX} == true ]]; then - # we link to libc++ even on linux to avoid runtime dependency on libstdc++: - # https://github.com/mapbox/mason/issues/252 - export CXXFLAGS="-stdlib=libc++ ${CXXFLAGS}" - export LDFLAGS="-stdlib=libc++ ${LDFLAGS}" - - if [[ $(uname -s) == 'Linux' ]]; then - export LDFLAGS="${LDFLAGS} -Wl,--start-group -L$(pwd)/lib -lc++ -lc++abi -pthread -lc -lgcc_s" - fi - fi - - # on linux the default is to link programs compiled by clang++ to libstdc++ and below we make that explicit. - if [[ $(uname -s) == 'Linux' ]]; then - export CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DCLANG_DEFAULT_CXX_STDLIB=libstdc++" - fi - - # TODO: test this - #-DLLVM_ENABLE_LTO=ON \ - - # TODO: try rtlib=compiler-rt on linux - # https://blogs.gentoo.org/gsoc2016-native-clang/2016/05/31/build-gnu-free-executables-with-clang/ - - if [[ ${BUILD_AND_LINK_LIBCXX} == true ]]; then - CMAKE_EXTRA_ARGS="${CMAKE_EXTRA_ARGS} -DLIBCXX_ENABLE_ASSERTIONS=OFF -DLIBCXX_ENABLE_SHARED=OFF -DLIBCXXABI_ENABLE_SHARED=OFF -DLIBCXXABI_USE_LLVM_UNWINDER=ON -DLIBUNWIND_ENABLE_SHARED=OFF" - fi - - ${MASON_CMAKE}/bin/cmake ../ -G Ninja -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DCMAKE_BUILD_TYPE=Release \ - -DLLVM_INCLUDE_DOCS=OFF \ - -DLLVM_TARGETS_TO_BUILD="X86" \ - -DCMAKE_CXX_COMPILER_LAUNCHER="${MASON_CCACHE}/bin/ccache" \ - -DCMAKE_CXX_COMPILER="$CXX" \ - -DCMAKE_C_COMPILER="$CC" \ - -DLLVM_ENABLE_ASSERTIONS=OFF \ - -DCLANG_VENDOR="mapbox/mason" \ - -DCLANG_REPOSITORY_STRING="https://github.com/mapbox/mason" \ - -DCLANG_VENDOR_UTI="org.mapbox.llvm" \ - -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \ - -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \ - -DLLDB_DISABLE_PYTHON=1 -DLLDB_DISABLE_CURSES=1 -DLLDB_DISABLE_LIBEDIT=1 -DLLVM_ENABLE_TERMINFO=0 \ - -DCMAKE_MAKE_PROGRAM=${MASON_NINJA}/bin/ninja \ - ${CMAKE_EXTRA_ARGS} - - if [[ ${BUILD_AND_LINK_LIBCXX} == true ]]; then - ${MASON_NINJA}/bin/ninja unwind -j${MASON_CONCURRENCY} - - # make libc++ and libc++abi first - ${MASON_NINJA}/bin/ninja cxx -j${MASON_CONCURRENCY} - - ${MASON_NINJA}/bin/ninja lldb -j${MASON_CONCURRENCY} - fi - - # then make everything else - ${MASON_NINJA}/bin/ninja -j${MASON_CONCURRENCY} - - # install it all - ${MASON_NINJA}/bin/ninja install - - if [[ $(uname -s) == 'Darwin' ]]; then - # https://reviews.llvm.org/D13605 - ${MASON_NINJA}/bin/ninja install-xcode-toolchain -j${MASON_CONCURRENCY} - fi - - # install the asan_symbolizer.py tool - cp -a ../projects/compiler-rt/lib/asan/scripts/asan_symbolize.py ${MASON_PREFIX}/bin/ - - # set up symlinks to match what llvm.org binaries provide - cd ${MASON_PREFIX}/bin/ - ln -s "clang++" "clang++-${MAJOR_MINOR}" - ln -s "asan_symbolize.py" "asan_symbolize" - - # symlink so that we use the system libc++ headers on osx - if [[ $(uname -s) == 'Darwin' ]]; then - mkdir -p ${MASON_PREFIX}/include - cd ${MASON_PREFIX}/include - # note: passing -nostdinc++ will result in this local path being ignored - ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++ c++ - fi - -} - - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} diff --git a/third_party/mason/scripts/lua/5.1.0/.travis.yml b/third_party/mason/scripts/lua/5.1.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/lua/5.1.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/lua/5.1.0/script.sh b/third_party/mason/scripts/lua/5.1.0/script.sh deleted file mode 100755 index 1193421eb..000000000 --- a/third_party/mason/scripts/lua/5.1.0/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=lua -MASON_VERSION=5.1.0 -MASON_LIB_FILE=lib/liblua.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.lua.org/ftp/lua-5.1.tar.gz \ - 3f8d5a84a38423829765512118bbf26c500b0c06 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-5.1 -} - -function mason_compile { - make generic CC=$CC CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" INSTALL_TOP=${MASON_PREFIX} install -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -llua" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/lua/5.2.4/.travis.yml b/third_party/mason/scripts/lua/5.2.4/.travis.yml deleted file mode 100644 index 73dad8415..000000000 --- a/third_party/mason/scripts/lua/5.2.4/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: generic - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7.3 - - os: linux - compiler: clang - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/lua/5.2.4/patch.diff b/third_party/mason/scripts/lua/5.2.4/patch.diff deleted file mode 100644 index d0d7b9817..000000000 --- a/third_party/mason/scripts/lua/5.2.4/patch.diff +++ /dev/null @@ -1,17 +0,0 @@ -diff --git a/src/Makefile b/src/Makefile -index 7b4b2b7..c1e3507 100644 ---- a/src/Makefile -+++ b/src/Makefile -@@ -6,9 +6,9 @@ - # Your platform. See PLATS for possible values. - PLAT= none - --CC= gcc --CFLAGS= -O2 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) --LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS) -+CC := $(CC) -+CFLAGS := -O3 -DNDEBUG -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS) -+LDFLAGS := $(SYSLDFLAGS) $(MYLDFLAGS) - LIBS= -lm $(SYSLIBS) $(MYLIBS) - - AR= ar rcu diff --git a/third_party/mason/scripts/lua/5.2.4/script.sh b/third_party/mason/scripts/lua/5.2.4/script.sh deleted file mode 100755 index 03b864452..000000000 --- a/third_party/mason/scripts/lua/5.2.4/script.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=lua -MASON_VERSION=5.2.4 -MASON_LIB_FILE=lib/liblua.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.lua.org/ftp/lua-${MASON_VERSION}.tar.gz \ - 6dd4526fdae5a7f76e44febf4d3066614920c43e - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - mason_step "Loading patch ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff" - patch -N -p1 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - make generic CC=$CC MYCFLAGS="${CFLAGS}" MYLDFLAGS="${LDFLAGS}" INSTALL_TOP=${MASON_PREFIX} install -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -llua" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/lua/5.3.0/.travis.yml b/third_party/mason/scripts/lua/5.3.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/lua/5.3.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/lua/5.3.0/script.sh b/third_party/mason/scripts/lua/5.3.0/script.sh deleted file mode 100755 index d755a6c50..000000000 --- a/third_party/mason/scripts/lua/5.3.0/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=lua -MASON_VERSION=5.3.0 -MASON_LIB_FILE=lib/liblua.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.lua.org/ftp/lua-5.3.0.tar.gz \ - 44ffcfd0f38445c76e5d58777089f392bed175c3 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - make generic CC=$CC CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" INSTALL_TOP=${MASON_PREFIX} install -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -llua" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mapnik/3.0.0-rc2/.travis.yml b/third_party/mason/scripts/mapnik/3.0.0-rc2/.travis.yml deleted file mode 100644 index 6cb8a7653..000000000 --- a/third_party/mason/scripts/mapnik/3.0.0-rc2/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mapnik/3.0.0-rc2/script.sh b/third_party/mason/scripts/mapnik/3.0.0-rc2/script.sh deleted file mode 100755 index 0f98dc939..000000000 --- a/third_party/mason/scripts/mapnik/3.0.0-rc2/script.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mapnik -MASON_VERSION=3.0.0-rc2 -MASON_LIB_FILE=lib/libmapnik-wkt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapnik/mapnik/archive/v${MASON_VERSION}.tar.gz \ - bd852ee3f7348ead66e6a6d78741f323365a49f0 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapnik-${MASON_VERSION} -} - -function mason_compile { - echo $(pwd) - source bootstrap.sh - cat config.py - ./configure PREFIX=${MASON_PREFIX} PYTHON_PREFIX=${MASON_PREFIX} PATH_REPLACE='' MAPNIK_BUNDLED_SHARE_DIRECTORY=True || true - cat ${MASON_BUILD_PATH}"/config.log" - cat config.py - echo $(pwd) - JOBS=${MASON_CONCURRENCY} make - make install - if [[ `uname` = 'Darwin' ]]; then - install_name_tool -id @loader_path/libmapnik.dylib ${MASON_PREFIX}"/lib/libmapnik.dylib"; - PLUGINDIRS=${MASON_PREFIX}"/lib/mapnik/input/*.input"; - for f in $PLUGINDIRS; do - echo $f; - echo `basename $f`; - install_name_tool -id plugins/input/`basename $f` $f; - install_name_tool -change ${MASON_PREFIX}"/lib/libmapnik.dylib" @loader_path/../../libmapnik.dylib $f; - done; - fi - # push over GDAL_DATA, ICU_DATA, PROJ_LIB - # fix mapnik-config entries for deps - HERE=$(pwd) - python -c "data=open('$MASON_PREFIX/bin/mapnik-config','r').read();open('$MASON_PREFIX/bin/mapnik-config','w').write(data.replace('$HERE','.'))" - cat $MASON_PREFIX/bin/mapnik-config - mkdir -p ${MASON_PREFIX}/share/gdal - mkdir -p ${MASON_PREFIX}/share/proj - mkdir -p ${MASON_PREFIX}/share/icu - cp -r $GDAL_DATA/ ${MASON_PREFIX}/share/gdal/ - cp -r $PROJ_LIB/ ${MASON_PREFIX}/share/proj/ - cp -r $ICU_DATA/*dat ${MASON_PREFIX}/share/icu/ - find ${MASON_PREFIX} -name "*.pyc" -exec rm {} \; -} - -function mason_cflags { - "" -} - -function mason_ldflags { - "" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mapnik/3.0.0-rc3/.travis.yml b/third_party/mason/scripts/mapnik/3.0.0-rc3/.travis.yml deleted file mode 100644 index 6cb8a7653..000000000 --- a/third_party/mason/scripts/mapnik/3.0.0-rc3/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mapnik/3.0.0-rc3/script.sh b/third_party/mason/scripts/mapnik/3.0.0-rc3/script.sh deleted file mode 100755 index 73f5286cb..000000000 --- a/third_party/mason/scripts/mapnik/3.0.0-rc3/script.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mapnik -MASON_VERSION=3.0.0-rc3 -MASON_LIB_FILE=lib/libmapnik-wkt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://s3.amazonaws.com/mapnik/dist/v${MASON_VERSION}/mapnik-v{$MASON_VERSION}.tar.bz2 \ - d6bf086cccc213db4e1196293f69869235af9008 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapnik-v${MASON_VERSION} -} - -function mason_compile { - echo $(pwd) - source bootstrap.sh - cat config.py - ./configure PREFIX=${MASON_PREFIX} PYTHON_PREFIX=${MASON_PREFIX} PATH_REPLACE='' MAPNIK_BUNDLED_SHARE_DIRECTORY=True || true - cat ${MASON_BUILD_PATH}"/config.log" - cat config.py - echo $(pwd) - JOBS=${MASON_CONCURRENCY} make - make install - if [[ `uname` = 'Darwin' ]]; then - install_name_tool -id @loader_path/libmapnik.dylib ${MASON_PREFIX}"/lib/libmapnik.dylib"; - PLUGINDIRS=${MASON_PREFIX}"/lib/mapnik/input/*.input"; - for f in $PLUGINDIRS; do - echo $f; - echo `basename $f`; - install_name_tool -id plugins/input/`basename $f` $f; - install_name_tool -change ${MASON_PREFIX}"/lib/libmapnik.dylib" @loader_path/../../libmapnik.dylib $f; - done; - fi - # push over GDAL_DATA, ICU_DATA, PROJ_LIB - # fix mapnik-config entries for deps - HERE=$(pwd) - python -c "data=open('$MASON_PREFIX/bin/mapnik-config','r').read();open('$MASON_PREFIX/bin/mapnik-config','w').write(data.replace('$HERE','.'))" - cat $MASON_PREFIX/bin/mapnik-config - mkdir -p ${MASON_PREFIX}/share/gdal - mkdir -p ${MASON_PREFIX}/share/proj - mkdir -p ${MASON_PREFIX}/share/icu - cp -r $GDAL_DATA/ ${MASON_PREFIX}/share/gdal/ - cp -r $PROJ_LIB/ ${MASON_PREFIX}/share/proj/ - cp -r $ICU_DATA/*dat ${MASON_PREFIX}/share/icu/ - find ${MASON_PREFIX} -name "*.pyc" -exec rm {} \; -} - -function mason_cflags { - "" -} - -function mason_ldflags { - "" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mapnik/3.0.0/.travis.yml b/third_party/mason/scripts/mapnik/3.0.0/.travis.yml deleted file mode 100644 index 6cb8a7653..000000000 --- a/third_party/mason/scripts/mapnik/3.0.0/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mapnik/3.0.0/script.sh b/third_party/mason/scripts/mapnik/3.0.0/script.sh deleted file mode 100755 index 5f0ef0964..000000000 --- a/third_party/mason/scripts/mapnik/3.0.0/script.sh +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mapnik -MASON_VERSION=3.0.0 -MASON_LIB_FILE=lib/libmapnik-wkt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://s3.amazonaws.com/mapnik/dist/v${MASON_VERSION}/mapnik-v${MASON_VERSION}.tar.bz2 \ - 24699baf01fa24c09bee472d6e2b3a543326a161 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapnik-v${MASON_VERSION} -} - -function mason_compile { - echo $(pwd) - source bootstrap.sh - if [[ $(uname -s) = 'Linux' ]]; then - echo "CUSTOM_LDFLAGS = '-Wl,-z,origin -Wl,-rpath=\\\$\$ORIGIN'" >> config.py - fi - cat config.py - ./configure PREFIX=${MASON_PREFIX} PYTHON_PREFIX=${MASON_PREFIX} - cat ${MASON_BUILD_PATH}"/config.log" - cat config.py - echo $(pwd) - JOBS=${MASON_CONCURRENCY} make - make install - if [[ `uname` = 'Darwin' ]]; then - install_name_tool -id @loader_path/libmapnik.dylib ${MASON_PREFIX}"/lib/libmapnik.dylib"; - PLUGINDIRS=${MASON_PREFIX}"/lib/mapnik/input/*.input"; - for f in $PLUGINDIRS; do - echo $f; - echo `basename $f`; - install_name_tool -id plugins/input/`basename $f` $f; - install_name_tool -change ${MASON_PREFIX}"/lib/libmapnik.dylib" @loader_path/../../libmapnik.dylib $f; - done; - fi - # push over GDAL_DATA, ICU_DATA, PROJ_LIB - # fix mapnik-config entries for deps - HERE=$(pwd) - python -c "data=open('$MASON_PREFIX/bin/mapnik-config','r').read();open('$MASON_PREFIX/bin/mapnik-config','w').write(data.replace('$HERE','.'))" - cat $MASON_PREFIX/bin/mapnik-config - mkdir -p ${MASON_PREFIX}/share/icu - cp -r $GDAL_DATA ${MASON_PREFIX}/share/ - cp -r $PROJ_LIB ${MASON_PREFIX}/share/ - cp -r $ICU_DATA/*dat ${MASON_PREFIX}/share/icu/ - find ${MASON_PREFIX} -name "*.pyc" -exec rm {} \; -} - -function mason_cflags { - "" -} - -function mason_ldflags { - "" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mapnik/dev/.travis.yml b/third_party/mason/scripts/mapnik/dev/.travis.yml deleted file mode 100644 index 6cb8a7653..000000000 --- a/third_party/mason/scripts/mapnik/dev/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mapnik/dev/script.sh b/third_party/mason/scripts/mapnik/dev/script.sh deleted file mode 100755 index cc323b379..000000000 --- a/third_party/mason/scripts/mapnik/dev/script.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mapnik -MASON_VERSION=dev -MASON_LIB_FILE=lib/libmapnik-wkt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapnik-3.x - if [[ ! -d ${MASON_BUILD_PATH} ]]; then - git clone --depth 1 https://github.com/mapnik/mapnik.git ${MASON_BUILD_PATH} - else - (cd ${MASON_BUILD_PATH} && git pull) - fi -} - -function mason_compile { - echo $(pwd) - source bootstrap.sh - cat config.py - ./configure PREFIX=${MASON_PREFIX} PYTHON_PREFIX=${MASON_PREFIX} PATH_REMOVE='/usr' RUNTIME_LINK='static' || true - cat ${MASON_BUILD_PATH}"/config.log" - echo $(pwd) - JOBS=${MASON_CONCURRENCY} make - make install - # push over GDAL_DATA, ICU_DATA, PROJ_LIB - # fix mapnik-config entries for deps - HERE=$(pwd) - python -c "data=open('$MASON_PREFIX/bin/mapnik-config','r').read();open('$MASON_PREFIX/bin/mapnik-config','w').write(data.replace('$HERE','.'))" - cat $MASON_PREFIX/bin/mapnik-config - mkdir -p ${MASON_PREFIX}/share/gdal - mkdir -p ${MASON_PREFIX}/share/proj - mkdir -p ${MASON_PREFIX}/share/icu - cp -r $GDAL_DATA/ ${MASON_PREFIX}/share/gdal/ - cp -r $PROJ_LIB/ ${MASON_PREFIX}/share/proj/ - cp -r $ICU_DATA/*dat ${MASON_PREFIX}/share/icu/ - find ${MASON_PREFIX} -name "*.pyc" -exec rm {} \; -} - -function mason_cflags { - "" -} - -function mason_ldflags { - "" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mapnik/geom/.travis.yml b/third_party/mason/scripts/mapnik/geom/.travis.yml deleted file mode 100644 index 6cb8a7653..000000000 --- a/third_party/mason/scripts/mapnik/geom/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mapnik/geom/script.sh b/third_party/mason/scripts/mapnik/geom/script.sh deleted file mode 100755 index 930d0d781..000000000 --- a/third_party/mason/scripts/mapnik/geom/script.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mapnik -MASON_VERSION=geom -MASON_LIB_FILE=lib/libmapnik-wkt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapnik-3.x - if [[ ! -d ${MASON_BUILD_PATH} ]]; then - git clone https://github.com/mapnik/mapnik.git ${MASON_BUILD_PATH} -b mapnik-geometry - else - (cd ${MASON_BUILD_PATH} && git pull && git checkout mapnik-geometry) - fi -} - -function mason_compile { - echo $(pwd) - source bootstrap.sh - cat config.py - ./configure PREFIX=${MASON_PREFIX} PYTHON_PREFIX=${MASON_PREFIX} PATH_REPLACE='' - cat config.py - echo $(pwd) - JOBS=${MASON_CONCURRENCY} make - make install - # push over GDAL_DATA, ICU_DATA, PROJ_LIB - # fix mapnik-config entries for deps - HERE=$(pwd) - python -c "data=open('$MASON_PREFIX/bin/mapnik-config','r').read();open('$MASON_PREFIX/bin/mapnik-config','w').write(data.replace('$HERE','.'))" - cat $MASON_PREFIX/bin/mapnik-config - mkdir -p ${MASON_PREFIX}/share/gdal - mkdir -p ${MASON_PREFIX}/share/proj - mkdir -p ${MASON_PREFIX}/share/icu - cp -r $GDAL_DATA/ ${MASON_PREFIX}/share/gdal/ - cp -r $PROJ_LIB/ ${MASON_PREFIX}/share/proj/ - cp -r $ICU_DATA/*dat ${MASON_PREFIX}/share/icu/ - find ${MASON_PREFIX} -name "*.pyc" -exec rm {} \; -} - -function mason_cflags { - "" -} - -function mason_ldflags { - "" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mapnik/latest/.travis.yml b/third_party/mason/scripts/mapnik/latest/.travis.yml deleted file mode 100644 index 6cb8a7653..000000000 --- a/third_party/mason/scripts/mapnik/latest/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mapnik/latest/script.sh b/third_party/mason/scripts/mapnik/latest/script.sh deleted file mode 100755 index 1e12a8ce4..000000000 --- a/third_party/mason/scripts/mapnik/latest/script.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mapnik -MASON_VERSION=latest -MASON_LIB_FILE=lib/libmapnik-wkt.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapnik-3.x - if [[ ! -d ${MASON_BUILD_PATH} ]]; then - git clone --depth 1 https://github.com/mapnik/mapnik.git ${MASON_BUILD_PATH} - else - (cd ${MASON_BUILD_PATH} && git pull) - fi -} - -function mason_compile { - echo $(pwd) - source bootstrap.sh - echo "CUSTOM_LDFLAGS = '-Wl,-z,origin -Wl,-rpath=\\\$\$ORIGIN'" >> config.py - cat config.py - ./configure PREFIX=${MASON_PREFIX} PYTHON_PREFIX=${MASON_PREFIX} - cat ${MASON_BUILD_PATH}"/config.log" - cat config.py - echo $(pwd) - JOBS=${MASON_CONCURRENCY} make - make install - if [[ `uname` = 'Darwin' ]]; then - install_name_tool -id @loader_path/libmapnik.dylib ${MASON_PREFIX}"/lib/libmapnik.dylib"; - PLUGINDIRS=${MASON_PREFIX}"/lib/mapnik/input/*.input"; - for f in $PLUGINDIRS; do - echo $f; - echo `basename $f`; - install_name_tool -id plugins/input/`basename $f` $f; - install_name_tool -change ${MASON_PREFIX}"/lib/libmapnik.dylib" @loader_path/../../libmapnik.dylib $f; - done; - fi - # push over GDAL_DATA, ICU_DATA, PROJ_LIB - # fix mapnik-config entries for deps - HERE=$(pwd) - python -c "data=open('$MASON_PREFIX/bin/mapnik-config','r').read();open('$MASON_PREFIX/bin/mapnik-config','w').write(data.replace('$HERE','.'))" - cat $MASON_PREFIX/bin/mapnik-config - mkdir -p ${MASON_PREFIX}/share/icu - cp -r $GDAL_DATA ${MASON_PREFIX}/share/ - cp -r $PROJ_LIB ${MASON_PREFIX}/share/ - cp -r $ICU_DATA/*dat ${MASON_PREFIX}/share/icu/ - find ${MASON_PREFIX} -name "*.pyc" -exec rm {} \; -} - -function mason_cflags { - "" -} - -function mason_ldflags { - "" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/10.3.5/.travis.yml b/third_party/mason/scripts/mesa/10.3.5/.travis.yml deleted file mode 100644 index cc0e61079..000000000 --- a/third_party/mason/scripts/mesa/10.3.5/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: cpp - -os: - - linux - -before_install: -- "if [[ `lsb_release -r` =~ '12.04' ]]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test ; fi" -- sudo apt-get update -y -- sudo apt-get -y install gcc-4.8 g++-4.8 automake pkg-config libtool -- export CXX="g++-4.8" -- export CC="gcc-4.8" -- sudo apt-get install -y libpthread-stubs0-dev xserver-xorg-dev x11proto-xinerama-dev libx11-xcb-dev libxcb-glx0-dev libxrender-dev llvm-3.4 mesa-utils -- sudo apt-get build-dep -y libgl1-mesa-dri libxcb-glx0-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - - - diff --git a/third_party/mason/scripts/mesa/10.3.5/script.sh b/third_party/mason/scripts/mesa/10.3.5/script.sh deleted file mode 100755 index 4fb4686c9..000000000 --- a/third_party/mason/scripts/mesa/10.3.5/script.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mesa -MASON_VERSION=10.3.5 -MASON_LIB_FILE=lib/libGL.so -MASON_PKGCONFIG_FILE=lib/pkgconfig/gl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://ftp.freedesktop.org/pub/mesa/10.3.5/MesaLib-10.3.5.tar.gz \ - 04b9046dfc9aa1558b939aae7032b80e411ff0e0 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/Mesa-10.3.5 -} - -function mason_compile { - CXXFLAGS=-std=c++11 ./autogen.sh \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-shared \ - --with-gallium-drivers=svga,swrast \ - --disable-dri \ - --enable-xlib-glx \ - --enable-glx-tls \ - --with-llvm-prefix=/usr/lib/llvm-3.4 \ - --without-va - - make install -} - -function mason_strip_ldflags { - shift # -L... - shift # -luv - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/10.4.3/.travis.yml b/third_party/mason/scripts/mesa/10.4.3/.travis.yml deleted file mode 100644 index cc0e61079..000000000 --- a/third_party/mason/scripts/mesa/10.4.3/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: cpp - -os: - - linux - -before_install: -- "if [[ `lsb_release -r` =~ '12.04' ]]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test ; fi" -- sudo apt-get update -y -- sudo apt-get -y install gcc-4.8 g++-4.8 automake pkg-config libtool -- export CXX="g++-4.8" -- export CC="gcc-4.8" -- sudo apt-get install -y libpthread-stubs0-dev xserver-xorg-dev x11proto-xinerama-dev libx11-xcb-dev libxcb-glx0-dev libxrender-dev llvm-3.4 mesa-utils -- sudo apt-get build-dep -y libgl1-mesa-dri libxcb-glx0-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - - - diff --git a/third_party/mason/scripts/mesa/10.4.3/script.sh b/third_party/mason/scripts/mesa/10.4.3/script.sh deleted file mode 100755 index 39b36a598..000000000 --- a/third_party/mason/scripts/mesa/10.4.3/script.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mesa -MASON_VERSION=10.4.3 -MASON_LIB_FILE=lib/libGL.so -MASON_PKGCONFIG_FILE=lib/pkgconfig/gl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://ftp.freedesktop.org/pub/mesa/10.4.3/MesaLib-10.4.3.tar.gz \ - 3a0cbced01f666d5d075bd3d6570fa43c91b86be - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/Mesa-10.4.3 -} - -function mason_compile { - autoreconf --force --install - - CXXFLAGS=-std=c++11 ./autogen.sh \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-shared \ - --with-gallium-drivers=svga,swrast \ - --disable-dri \ - --enable-xlib-glx \ - --enable-glx-tls \ - --with-llvm-prefix=/usr/lib/llvm-3.4 \ - --without-va - - make install -} - -function mason_strip_ldflags { - shift # -L... - shift # -luv - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/10.5.4-dbg/.travis.yml b/third_party/mason/scripts/mesa/10.5.4-dbg/.travis.yml deleted file mode 100644 index cc0e61079..000000000 --- a/third_party/mason/scripts/mesa/10.5.4-dbg/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: cpp - -os: - - linux - -before_install: -- "if [[ `lsb_release -r` =~ '12.04' ]]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test ; fi" -- sudo apt-get update -y -- sudo apt-get -y install gcc-4.8 g++-4.8 automake pkg-config libtool -- export CXX="g++-4.8" -- export CC="gcc-4.8" -- sudo apt-get install -y libpthread-stubs0-dev xserver-xorg-dev x11proto-xinerama-dev libx11-xcb-dev libxcb-glx0-dev libxrender-dev llvm-3.4 mesa-utils -- sudo apt-get build-dep -y libgl1-mesa-dri libxcb-glx0-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - - - diff --git a/third_party/mason/scripts/mesa/10.5.4-dbg/circle.yml b/third_party/mason/scripts/mesa/10.5.4-dbg/circle.yml deleted file mode 100644 index 19c12b80f..000000000 --- a/third_party/mason/scripts/mesa/10.5.4-dbg/circle.yml +++ /dev/null @@ -1,22 +0,0 @@ -machine: - environment: - CXX: g++-4.8 - CC: gcc-4.8 - -dependencies: - pre: - - "if [[ `lsb_release -r` =~ '12.04' ]]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test ; fi" - - sudo apt-get update -y - - sudo apt-get -y install gcc-4.8 g++-4.8 automake pkg-config libtool - - sudo apt-get install -y libpthread-stubs0-dev xserver-xorg-dev x11proto-xinerama-dev libx11-xcb-dev libxcb-glx0-dev libxrender-dev llvm-3.4 mesa-utils libxcb-dri2-0-dev libxcb-xfixes0-dev - -test: - override: - - ldd --version - - ./mason build ${MASON_NAME} ${MASON_VERSION} - -deployment: - publish: - branch: /.*/ - commands: - - ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mesa/10.5.4-dbg/script.sh b/third_party/mason/scripts/mesa/10.5.4-dbg/script.sh deleted file mode 100755 index d9dc8ab17..000000000 --- a/third_party/mason/scripts/mesa/10.5.4-dbg/script.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mesa -MASON_VERSION=10.5.4-dbg -MASON_LIB_FILE=lib/libGL.so -MASON_PKGCONFIG_FILE=lib/pkgconfig/gl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://ftp.freedesktop.org/pub/mesa/10.5.4/mesa-10.5.4.tar.gz \ - 2c87044700a738d23133477864c62f194aa9daba - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mesa-10.5.4 -} - -function mason_compile { - autoreconf --force --install - - CFLAGS='-g -DDEBUG' CXXFLAGS='-g -DDEBUG -std=c++11' ./autogen.sh \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-shared \ - --with-gallium-drivers=svga,swrast \ - --disable-dri \ - --enable-xlib-glx \ - --enable-glx-tls \ - --with-llvm-prefix=/usr/lib/llvm-3.4 \ - --without-va - - make install -} - -function mason_strip_ldflags { - shift # -L... - shift # -luv - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/10.5.4/.travis.yml b/third_party/mason/scripts/mesa/10.5.4/.travis.yml deleted file mode 100644 index cc0e61079..000000000 --- a/third_party/mason/scripts/mesa/10.5.4/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: cpp - -os: - - linux - -before_install: -- "if [[ `lsb_release -r` =~ '12.04' ]]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test ; fi" -- sudo apt-get update -y -- sudo apt-get -y install gcc-4.8 g++-4.8 automake pkg-config libtool -- export CXX="g++-4.8" -- export CC="gcc-4.8" -- sudo apt-get install -y libpthread-stubs0-dev xserver-xorg-dev x11proto-xinerama-dev libx11-xcb-dev libxcb-glx0-dev libxrender-dev llvm-3.4 mesa-utils -- sudo apt-get build-dep -y libgl1-mesa-dri libxcb-glx0-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} - - - diff --git a/third_party/mason/scripts/mesa/10.5.4/circle.yml b/third_party/mason/scripts/mesa/10.5.4/circle.yml deleted file mode 100644 index 19c12b80f..000000000 --- a/third_party/mason/scripts/mesa/10.5.4/circle.yml +++ /dev/null @@ -1,22 +0,0 @@ -machine: - environment: - CXX: g++-4.8 - CC: gcc-4.8 - -dependencies: - pre: - - "if [[ `lsb_release -r` =~ '12.04' ]]; then sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test ; fi" - - sudo apt-get update -y - - sudo apt-get -y install gcc-4.8 g++-4.8 automake pkg-config libtool - - sudo apt-get install -y libpthread-stubs0-dev xserver-xorg-dev x11proto-xinerama-dev libx11-xcb-dev libxcb-glx0-dev libxrender-dev llvm-3.4 mesa-utils libxcb-dri2-0-dev libxcb-xfixes0-dev - -test: - override: - - ldd --version - - ./mason build ${MASON_NAME} ${MASON_VERSION} - -deployment: - publish: - branch: /.*/ - commands: - - ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mesa/10.5.4/script.sh b/third_party/mason/scripts/mesa/10.5.4/script.sh deleted file mode 100755 index 99a2d2305..000000000 --- a/third_party/mason/scripts/mesa/10.5.4/script.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mesa -MASON_VERSION=10.5.4 -MASON_LIB_FILE=lib/libGL.so -MASON_PKGCONFIG_FILE=lib/pkgconfig/gl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://ftp.freedesktop.org/pub/mesa/10.5.4/mesa-10.5.4.tar.gz \ - 2c87044700a738d23133477864c62f194aa9daba - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mesa-10.5.4 -} - -function mason_compile { - autoreconf --force --install - - CXXFLAGS=-std=c++11 ./autogen.sh \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-shared \ - --with-gallium-drivers=svga,swrast \ - --disable-dri \ - --enable-xlib-glx \ - --enable-glx-tls \ - --with-llvm-prefix=/usr/lib/llvm-3.4 \ - --without-va - - make install -} - -function mason_strip_ldflags { - shift # -L... - shift # -luv - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/11.2.2/.travis.yml b/third_party/mason/scripts/mesa/11.2.2/.travis.yml deleted file mode 100644 index 53aed0a5e..000000000 --- a/third_party/mason/scripts/mesa/11.2.2/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - sudo: true - env: CXX=g++-5 CC=gcc-5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - - libstdc++6 - - libstdc++-5-dev - -install: -- sudo apt-get install -y libpthread-stubs0-dev xserver-xorg-dev x11proto-xinerama-dev libx11-xcb-dev libxcb-glx0-dev libxrender-dev libdrm-dev llvm-3.4 mesa-utils -- sudo apt-get build-dep -y libgl1-mesa-dri libxcb-glx0-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mesa/11.2.2/script.sh b/third_party/mason/scripts/mesa/11.2.2/script.sh deleted file mode 100755 index 8da6cbd9b..000000000 --- a/third_party/mason/scripts/mesa/11.2.2/script.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mesa -MASON_VERSION=11.2.2 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://ftp.freedesktop.org/pub/mesa/${MASON_VERSION}/mesa-${MASON_VERSION}.tar.gz \ - 1b69da0b8d72d59c62c5dc6ff0d71d79e1a8db9d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mesa-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-shared \ - --with-gallium-drivers=swrast \ - --disable-dri \ - --disable-egl \ - --enable-xlib-glx \ - --enable-glx-tls \ - --with-llvm-prefix=/usr/lib/llvm-3.4 - - make - make install -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/13.0.0-cxx11abi/.travis.yml b/third_party/mason/scripts/mesa/13.0.0-cxx11abi/.travis.yml deleted file mode 100644 index 90197b30b..000000000 --- a/third_party/mason/scripts/mesa/13.0.0-cxx11abi/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - sudo: required - dist: trusty - env: CXX=g++-5 CC=gcc-5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - - libstdc++6 - - libstdc++-5-dev - - mesa-utils - - llvm-3.8-dev - - libllvm3.8v4 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mesa/13.0.0-cxx11abi/script.sh b/third_party/mason/scripts/mesa/13.0.0-cxx11abi/script.sh deleted file mode 100755 index 9a7fc0aa2..000000000 --- a/third_party/mason/scripts/mesa/13.0.0-cxx11abi/script.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=13.0.0 - -MASON_NAME=mesa -MASON_VERSION=${LIB_VERSION}-cxx11abi -MASON_LIB_FILE=lib/libOSMesa.so -MASON_PKGCONFIG_FILE=lib/pkgconfig/osmesa.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://mesa.freedesktop.org/archive/${LIB_VERSION}/mesa-${LIB_VERSION}.tar.gz \ - bba4f687bc0b0066961424dd0ae2ca053ffc1fcb - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mesa-${LIB_VERSION} -} - -function mason_prepare_compile { - true -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --disable-gles1 \ - --disable-gles2 \ - --disable-dri \ - --disable-dri3 \ - --disable-glx \ - --disable-egl \ - --disable-driglx-direct \ - --disable-osmesa \ - --enable-opengl \ - --enable-gallium-osmesa \ - --enable-gallium-llvm \ - --enable-texture-float \ - --enable-llvm-shared-libs \ - --with-gallium-drivers=swrast \ - --with-llvm-prefix=/usr/lib/llvm-3.8 \ - --with-sha1=libcrypto - - make - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo $(`mason_pkgconfig` --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/13.0.0-egl-cxx11abi/.travis.yml b/third_party/mason/scripts/mesa/13.0.0-egl-cxx11abi/.travis.yml deleted file mode 100644 index 90197b30b..000000000 --- a/third_party/mason/scripts/mesa/13.0.0-egl-cxx11abi/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - sudo: required - dist: trusty - env: CXX=g++-5 CC=gcc-5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - - libstdc++6 - - libstdc++-5-dev - - mesa-utils - - llvm-3.8-dev - - libllvm3.8v4 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mesa/13.0.0-egl-cxx11abi/script.sh b/third_party/mason/scripts/mesa/13.0.0-egl-cxx11abi/script.sh deleted file mode 100755 index c4eca7866..000000000 --- a/third_party/mason/scripts/mesa/13.0.0-egl-cxx11abi/script.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=13.0.0 - -MASON_NAME=mesa -MASON_VERSION=${LIB_VERSION}-egl-cxx11abi -MASON_LIB_FILE=lib/libEGL.so -MASON_PKGCONFIG_FILE="lib/pkgconfig/egl.pc lib/pkgconfig/gbm.pc lib/pkgconfig/dri.pc lib/pkgconfig/glesv2.pc" - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://mesa.freedesktop.org/archive/${LIB_VERSION}/mesa-${LIB_VERSION}.tar.gz \ - bba4f687bc0b0066961424dd0ae2ca053ffc1fcb - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mesa-${LIB_VERSION} -} - -function mason_prepare_compile { - true -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --disable-glx \ - --disable-glx-tls \ - --disable-driglx-direct \ - --disable-osmesa \ - --disable-gallium-osmesa \ - --disable-dri3 \ - --enable-egl \ - --enable-dri \ - --enable-gbm \ - --enable-opengl \ - --enable-gles1 \ - --enable-gles2 \ - --enable-gallium-llvm \ - --enable-texture-float \ - --enable-llvm-shared-libs \ - --enable-shared-glapi \ - --with-egl-platforms=drm \ - --with-dri-drivers=swrast \ - --with-gallium-drivers=swrast \ - --with-llvm-prefix=/usr/lib/llvm-3.8 \ - --with-sha1=libcrypto - - make - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo $(`mason_pkgconfig` --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/13.0.0-egl/.travis.yml b/third_party/mason/scripts/mesa/13.0.0-egl/.travis.yml deleted file mode 100644 index 90197b30b..000000000 --- a/third_party/mason/scripts/mesa/13.0.0-egl/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - sudo: required - dist: trusty - env: CXX=g++-5 CC=gcc-5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - - libstdc++6 - - libstdc++-5-dev - - mesa-utils - - llvm-3.8-dev - - libllvm3.8v4 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mesa/13.0.0-egl/script.sh b/third_party/mason/scripts/mesa/13.0.0-egl/script.sh deleted file mode 100755 index 230c9976e..000000000 --- a/third_party/mason/scripts/mesa/13.0.0-egl/script.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=13.0.0 - -MASON_NAME=mesa -MASON_VERSION=${LIB_VERSION}-egl -MASON_LIB_FILE=lib/libEGL.so -MASON_PKGCONFIG_FILE="lib/pkgconfig/egl.pc lib/pkgconfig/gbm.pc lib/pkgconfig/dri.pc lib/pkgconfig/glesv2.pc" - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://mesa.freedesktop.org/archive/${LIB_VERSION}/mesa-${LIB_VERSION}.tar.gz \ - bba4f687bc0b0066961424dd0ae2ca053ffc1fcb - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mesa-${LIB_VERSION} -} - -function mason_prepare_compile { - true -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --disable-glx \ - --disable-glx-tls \ - --disable-driglx-direct \ - --disable-osmesa \ - --disable-gallium-osmesa \ - --disable-dri3 \ - --enable-egl \ - --enable-dri \ - --enable-gbm \ - --enable-opengl \ - --enable-gles1 \ - --enable-gles2 \ - --enable-gallium-llvm \ - --enable-texture-float \ - --enable-llvm-shared-libs \ - --enable-shared-glapi \ - --with-egl-platforms=drm \ - --with-dri-drivers=swrast \ - --with-gallium-drivers=swrast \ - --with-llvm-prefix=/usr/lib/llvm-3.8 \ - --with-sha1=libcrypto - - make - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo $(`mason_pkgconfig` --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/13.0.0-glx-cxx11abi/.travis.yml b/third_party/mason/scripts/mesa/13.0.0-glx-cxx11abi/.travis.yml deleted file mode 100644 index 90197b30b..000000000 --- a/third_party/mason/scripts/mesa/13.0.0-glx-cxx11abi/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - sudo: required - dist: trusty - env: CXX=g++-5 CC=gcc-5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - - libstdc++6 - - libstdc++-5-dev - - mesa-utils - - llvm-3.8-dev - - libllvm3.8v4 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mesa/13.0.0-glx-cxx11abi/script.sh b/third_party/mason/scripts/mesa/13.0.0-glx-cxx11abi/script.sh deleted file mode 100755 index f69abaa28..000000000 --- a/third_party/mason/scripts/mesa/13.0.0-glx-cxx11abi/script.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=13.0.0 - -MASON_NAME=mesa -MASON_VERSION=${LIB_VERSION}-glx-cxx11abi -MASON_LIB_FILE=lib/libGL.so -MASON_PKGCONFIG_FILE=lib/pkgconfig/gl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://mesa.freedesktop.org/archive/${LIB_VERSION}/mesa-${LIB_VERSION}.tar.gz \ - bba4f687bc0b0066961424dd0ae2ca053ffc1fcb - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mesa-${LIB_VERSION} -} - -function mason_prepare_compile { - true -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --disable-egl \ - --disable-dri \ - --disable-dri3 \ - --disable-driglx-direct \ - --disable-osmesa \ - --disable-gallium-osmesa \ - --enable-opengl \ - --enable-gles1 \ - --enable-gles2 \ - --enable-glx=gallium-xlib \ - --enable-glx-tls \ - --enable-gallium-llvm \ - --enable-texture-float \ - --enable-llvm-shared-libs \ - --with-gallium-drivers=swrast \ - --with-llvm-prefix=/usr/lib/llvm-3.8 \ - --with-sha1=libcrypto - - make - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo $(`mason_pkgconfig` --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/13.0.0-glx/.travis.yml b/third_party/mason/scripts/mesa/13.0.0-glx/.travis.yml deleted file mode 100644 index 90197b30b..000000000 --- a/third_party/mason/scripts/mesa/13.0.0-glx/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - sudo: required - dist: trusty - env: CXX=g++-5 CC=gcc-5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - - libstdc++6 - - libstdc++-5-dev - - mesa-utils - - llvm-3.8-dev - - libllvm3.8v4 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mesa/13.0.0-glx/script.sh b/third_party/mason/scripts/mesa/13.0.0-glx/script.sh deleted file mode 100755 index 4a470a51a..000000000 --- a/third_party/mason/scripts/mesa/13.0.0-glx/script.sh +++ /dev/null @@ -1,64 +0,0 @@ -#!/usr/bin/env bash - -LIB_VERSION=13.0.0 - -MASON_NAME=mesa -MASON_VERSION=${LIB_VERSION}-glx -MASON_LIB_FILE=lib/libGL.so -MASON_PKGCONFIG_FILE=lib/pkgconfig/gl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://mesa.freedesktop.org/archive/${LIB_VERSION}/mesa-${LIB_VERSION}.tar.gz \ - bba4f687bc0b0066961424dd0ae2ca053ffc1fcb - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mesa-${LIB_VERSION} -} - -function mason_prepare_compile { - true -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --disable-egl \ - --disable-dri \ - --disable-dri3 \ - --disable-driglx-direct \ - --disable-osmesa \ - --disable-gallium-osmesa \ - --enable-opengl \ - --enable-gles1 \ - --enable-gles2 \ - --enable-glx=gallium-xlib \ - --enable-glx-tls \ - --enable-gallium-llvm \ - --enable-texture-float \ - --enable-llvm-shared-libs \ - --with-gallium-drivers=swrast \ - --with-llvm-prefix=/usr/lib/llvm-3.8 \ - --with-sha1=libcrypto - - make - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo $(`mason_pkgconfig` --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/13.0.0/.travis.yml b/third_party/mason/scripts/mesa/13.0.0/.travis.yml deleted file mode 100644 index 90197b30b..000000000 --- a/third_party/mason/scripts/mesa/13.0.0/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - sudo: required - dist: trusty - env: CXX=g++-5 CC=gcc-5 - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - - libstdc++6 - - libstdc++-5-dev - - mesa-utils - - llvm-3.8-dev - - libllvm3.8v4 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mesa/13.0.0/script.sh b/third_party/mason/scripts/mesa/13.0.0/script.sh deleted file mode 100755 index 7663c47a9..000000000 --- a/third_party/mason/scripts/mesa/13.0.0/script.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mesa -MASON_VERSION=13.0.0 -MASON_LIB_FILE=lib/libOSMesa.so -MASON_PKGCONFIG_FILE=lib/pkgconfig/osmesa.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://mesa.freedesktop.org/archive/${MASON_VERSION}/mesa-${MASON_VERSION}.tar.gz \ - bba4f687bc0b0066961424dd0ae2ca053ffc1fcb - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mesa-${MASON_VERSION} -} - -function mason_prepare_compile { - true -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --disable-gles1 \ - --disable-gles2 \ - --disable-dri \ - --disable-dri3 \ - --disable-glx \ - --disable-egl \ - --disable-driglx-direct \ - --disable-osmesa \ - --enable-opengl \ - --enable-gallium-osmesa \ - --enable-gallium-llvm \ - --enable-texture-float \ - --enable-llvm-shared-libs \ - --with-gallium-drivers=swrast \ - --with-llvm-prefix=/usr/lib/llvm-3.8 \ - --with-sha1=libcrypto - - make - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo $(`mason_pkgconfig` --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/13.0.3/.travis.yml b/third_party/mason/scripts/mesa/13.0.3/.travis.yml deleted file mode 100644 index bb91b2187..000000000 --- a/third_party/mason/scripts/mesa/13.0.3/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - sudo: false - dist: trusty - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-4.8-dev - - pkg-config - - libpthread-stubs0-dev - - libssl-dev - - x11proto-gl-dev - - libx11-dev - - libxext-dev - - libxcb1-dev - - libdrm-dev - - valgrind - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mesa/13.0.3/script.sh b/third_party/mason/scripts/mesa/13.0.3/script.sh deleted file mode 100644 index 9384d9548..000000000 --- a/third_party/mason/scripts/mesa/13.0.3/script.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mesa -MASON_VERSION=13.0.3 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://mesa.freedesktop.org/archive/${MASON_VERSION}/mesa-${MASON_VERSION}.tar.gz \ - c65114c3566674642f698580efc136fe1fe19c67 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mesa-${MASON_VERSION} -} - -function mason_prepare_compile { - LLVM_VERSION=3.8.1-libstdcxx - ${MASON_DIR}/mason install llvm ${LLVM_VERSION} - MASON_LLVM=$(${MASON_DIR}/mason prefix llvm ${LLVM_VERSION}) -} - -function mason_compile { - CFLAGS=-g CXXFLAGS=-g \ - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-opengl \ - --enable-gles1 \ - --enable-gles2 \ - --enable-egl \ - --disable-osmesa \ - --enable-gallium-osmesa \ - --enable-gbm \ - --enable-dri \ - --disable-dri3 \ - --enable-gallium-llvm \ - --enable-glx \ - --enable-glx-tls \ - --enable-texture-float \ - --enable-shared-glapi \ - --enable-valgrind \ - --with-dri-drivers=swrast \ - --with-gallium-drivers=swrast \ - --with-egl-platforms=x11,drm,surfaceless \ - --disable-llvm-shared-libs \ - --with-llvm-prefix=${MASON_LLVM} \ - --with-sha1=libcrypto - - make - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - # We include just the library path. Users are expected to provide additional flags - # depending on which of the packaged libraries they actually want to link: - # - # * For GLX: -lGL -lX11 - # * For EGL: -lGLESv2 -lEGL -lgbm - # * For OSMesa: -lOSMesa - # - echo -L${MASON_PREFIX}/lib -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/mesa/13.0.4/.travis.yml b/third_party/mason/scripts/mesa/13.0.4/.travis.yml deleted file mode 100644 index bb91b2187..000000000 --- a/third_party/mason/scripts/mesa/13.0.4/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - sudo: false - dist: trusty - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-4.8-dev - - pkg-config - - libpthread-stubs0-dev - - libssl-dev - - x11proto-gl-dev - - libx11-dev - - libxext-dev - - libxcb1-dev - - libdrm-dev - - valgrind - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/mesa/13.0.4/script.sh b/third_party/mason/scripts/mesa/13.0.4/script.sh deleted file mode 100644 index 0366a6c5e..000000000 --- a/third_party/mason/scripts/mesa/13.0.4/script.sh +++ /dev/null @@ -1,74 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=mesa -MASON_VERSION=13.0.4 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://mesa.freedesktop.org/archive/${MASON_VERSION}/mesa-${MASON_VERSION}.tar.gz \ - 0584af2f3760d6a990a532b7c0af4f5447ebdd04 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mesa-${MASON_VERSION} -} - -function mason_prepare_compile { - LLVM_VERSION=3.8.1-libstdcxx - ${MASON_DIR}/mason install llvm ${LLVM_VERSION} - MASON_LLVM=$(${MASON_DIR}/mason prefix llvm ${LLVM_VERSION}) -} - -function mason_compile { - CFLAGS=-g CXXFLAGS=-g \ - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-opengl \ - --enable-gles1 \ - --enable-gles2 \ - --enable-egl \ - --disable-osmesa \ - --enable-gallium-osmesa \ - --enable-gbm \ - --enable-dri \ - --disable-dri3 \ - --enable-gallium-llvm \ - --enable-glx \ - --enable-glx-tls \ - --enable-texture-float \ - --enable-shared-glapi \ - --enable-valgrind \ - --with-dri-drivers=swrast \ - --with-gallium-drivers=swrast \ - --with-egl-platforms=x11,drm,surfaceless \ - --disable-llvm-shared-libs \ - --with-llvm-prefix=${MASON_LLVM} \ - --with-sha1=libcrypto - - make - make install -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - # We include just the library path. Users are expected to provide additional flags - # depending on which of the packaged libraries they actually want to link: - # - # * For GLX: -lGL -lX11 - # * For EGL: -lGLESv2 -lEGL -lgbm - # * For OSMesa: -lOSMesa - # - echo -L${MASON_PREFIX}/lib -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/minjur/0.1.0/.travis.yml b/third_party/mason/scripts/minjur/0.1.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/minjur/0.1.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/minjur/0.1.0/script.sh b/third_party/mason/scripts/minjur/0.1.0/script.sh deleted file mode 100755 index d6e53db03..000000000 --- a/third_party/mason/scripts/minjur/0.1.0/script.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=minjur -MASON_VERSION=0.1.0 -MASON_LIB_FILE=bin/minjur - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/${MASON_NAME}/archive/v${MASON_VERSION}.tar.gz \ - dfad234d88ed2777229d303e1b9cb8ec21b94b39 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - ${MASON_DIR}/mason install cmake 3.7.1 - ${MASON_DIR}/mason link cmake 3.7.1 - ${MASON_DIR}/mason install utfcpp 2.3.4 - ${MASON_DIR}/mason link utfcpp 2.3.4 - ${MASON_DIR}/mason install protozero 1.5.1 - ${MASON_DIR}/mason link protozero 1.5.1 - ${MASON_DIR}/mason install rapidjson 2016-07-20-369de87 - ${MASON_DIR}/mason link rapidjson 2016-07-20-369de87 - ${MASON_DIR}/mason install libosmium 2.11.0 - ${MASON_DIR}/mason link libosmium 2.11.0 - ${MASON_DIR}/mason install boost 1.63.0 - ${MASON_DIR}/mason link boost 1.63.0 - ${MASON_DIR}/mason install zlib 1.2.8 - ${MASON_DIR}/mason link zlib 1.2.8 - ${MASON_DIR}/mason install expat 2.2.0 - ${MASON_DIR}/mason link expat 2.2.0 - ${MASON_DIR}/mason install bzip2 1.0.6 - ${MASON_DIR}/mason link bzip2 1.0.6 -} - -function mason_compile { - rm -rf build - mkdir -p build - cd build - CMAKE_PREFIX_PATH=${MASON_ROOT}/.link \ - ${MASON_ROOT}/.link/bin/cmake \ - -DCMAKE_BUILD_TYPE=Release \ - .. - make VERBOSE=1 - mkdir -p ${MASON_PREFIX}/bin - mv minjur ${MASON_PREFIX}/bin/minjur - mv minjur-mp ${MASON_PREFIX}/bin/minjur-mp - mv minjur-generate-tilelist ${MASON_PREFIX}/bin/minjur-generate-tilelist -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/minjur/a2c9dc871369432c7978718834dac487c0591bd6/.travis.yml b/third_party/mason/scripts/minjur/a2c9dc871369432c7978718834dac487c0591bd6/.travis.yml deleted file mode 100644 index 381e52b55..000000000 --- a/third_party/mason/scripts/minjur/a2c9dc871369432c7978718834dac487c0591bd6/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- if [[ $(uname -s) == 'Darwin' ]]; then brew install cmake; fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/minjur/a2c9dc871369432c7978718834dac487c0591bd6/script.sh b/third_party/mason/scripts/minjur/a2c9dc871369432c7978718834dac487c0591bd6/script.sh deleted file mode 100755 index f5d2e1835..000000000 --- a/third_party/mason/scripts/minjur/a2c9dc871369432c7978718834dac487c0591bd6/script.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=minjur -MASON_VERSION=a2c9dc871369432c7978718834dac487c0591bd6 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/minjur/tarball/a2c9dc871369432c7978718834dac487c0591bd6 \ - b24a45f64ae0b75e2fbcbb6b87e04192b63b3014 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapbox-minjur-a2c9dc8 -} - -function mason_prepare_compile { - echo ${MASON_ROOT}/.build - cd ${MASON_ROOT} - OSMIUM_INCLUDE_DIR=${MASON_ROOT}/osmcode-libosmium-372d29a/include - curl --retry 3 -f -# -L "https://github.com/osmcode/libosmium/tarball/372d29a34d8b3f571ea7172d527730d3d5200dab" -o osmium.tar.gz - tar -xzf osmium.tar.gz - - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install boost 1.57.0 - ${MASON_DIR}/mason link boost 1.57.0 - ${MASON_DIR}/mason install boost_libprogram_options 1.57.0 - ${MASON_DIR}/mason link boost_libprogram_options 1.57.0 - ${MASON_DIR}/mason install protobuf 2.6.1 - ${MASON_DIR}/mason link protobuf 2.6.1 - ${MASON_DIR}/mason install zlib 1.2.8 - ${MASON_DIR}/mason link zlib 1.2.8 - ${MASON_DIR}/mason install expat 2.1.0 - ${MASON_DIR}/mason link expat 2.1.0 - ${MASON_DIR}/mason install osmpbf 1.3.3 - ${MASON_DIR}/mason link osmpbf 1.3.3 - ${MASON_DIR}/mason install bzip 1.0.6 - ${MASON_DIR}/mason link bzip 1.0.6 -} - -function mason_compile { - mkdir build - cd build - CMAKE_PREFIX_PATH=${MASON_ROOT}/.link \ - cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DOSMIUM_INCLUDE_DIR=${OSMIUM_INCLUDE_DIR} \ - .. - make - mkdir -p ${MASON_PREFIX}/bin - mv minjur ${MASON_PREFIX}/bin/minjur - mv minjur-mp ${MASON_PREFIX}/bin/minjur-mp - mv minjur-generate-tilelist ${MASON_PREFIX}/bin/minjur-generate-tilelist -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/minjur/feac70472f46c3145b6bdf7a02fdc37777828318/.travis.yml b/third_party/mason/scripts/minjur/feac70472f46c3145b6bdf7a02fdc37777828318/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/minjur/feac70472f46c3145b6bdf7a02fdc37777828318/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/minjur/feac70472f46c3145b6bdf7a02fdc37777828318/script.sh b/third_party/mason/scripts/minjur/feac70472f46c3145b6bdf7a02fdc37777828318/script.sh deleted file mode 100755 index 88e790bb7..000000000 --- a/third_party/mason/scripts/minjur/feac70472f46c3145b6bdf7a02fdc37777828318/script.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=minjur -MASON_VERSION=feac70472f46c3145b6bdf7a02fdc37777828318 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/minjur/tarball/feac70472f46c3145b6bdf7a02fdc37777828318 \ - 4af6719285ab68ad99ba35e441b925cc950a1a27 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapbox-minjur-feac704 -} - -function mason_prepare_compile { - echo ${MASON_ROOT}/.build - cd ${MASON_ROOT} - OSMIUM_INCLUDE_DIR=${MASON_ROOT}/osmcode-libosmium-372d29a/include - curl --retry 3 -f -# -L "https://github.com/osmcode/libosmium/tarball/372d29a34d8b3f571ea7172d527730d3d5200dab" -o osmium.tar.gz - tar -xzf osmium.tar.gz - - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install boost 1.57.0 - ${MASON_DIR}/mason link boost 1.57.0 - ${MASON_DIR}/mason install boost_libprogram_options 1.57.0 - ${MASON_DIR}/mason link boost_libprogram_options 1.57.0 - ${MASON_DIR}/mason install protobuf 2.6.1 - ${MASON_DIR}/mason link protobuf 2.6.1 - ${MASON_DIR}/mason install zlib 1.2.8 - ${MASON_DIR}/mason link zlib 1.2.8 - ${MASON_DIR}/mason install expat 2.1.0 - ${MASON_DIR}/mason link expat 2.1.0 - ${MASON_DIR}/mason install osmpbf 1.3.3 - ${MASON_DIR}/mason link osmpbf 1.3.3 - ${MASON_DIR}/mason install bzip 1.0.6 - ${MASON_DIR}/mason link bzip 1.0.6 -} - -function mason_compile { - mkdir build - cd build - CMAKE_PREFIX_PATH=${MASON_ROOT}/.link \ - cmake \ - -DCMAKE_BUILD_TYPE=Release \ - -DOSMIUM_INCLUDE_DIR=${OSMIUM_INCLUDE_DIR} \ - .. - make - mkdir -p ${MASON_PREFIX}/bin - mv minjur ${MASON_PREFIX}/bin/minjur - mv minjur-mp ${MASON_PREFIX}/bin/minjur-mp - mv minjur-generate-tilelist ${MASON_PREFIX}/bin/minjur-generate-tilelist -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/nasm/2.11.06/.travis.yml b/third_party/mason/scripts/nasm/2.11.06/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/nasm/2.11.06/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/nasm/2.11.06/script.sh b/third_party/mason/scripts/nasm/2.11.06/script.sh deleted file mode 100755 index f14091cee..000000000 --- a/third_party/mason/scripts/nasm/2.11.06/script.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=nasm -MASON_VERSION=2.11.06 -MASON_LIB_FILE=bin/nasm - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.nasm.us/pub/nasm/releasebuilds/${MASON_VERSION}/${MASON_NAME}-${MASON_VERSION}.tar.bz2 \ - 9602eca86270d4df37f53ae4de2342073ad4adc7 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install install_rdf -j${MASON_CONCURRENCY} -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/ninja/1.7.1/.travis.yml b/third_party/mason/scripts/ninja/1.7.1/.travis.yml deleted file mode 100644 index 5a6be3189..000000000 --- a/third_party/mason/scripts/ninja/1.7.1/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: gcc - env: CXX=gcc++-5 CC=gcc-5 - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/ninja/1.7.1/script.sh b/third_party/mason/scripts/ninja/1.7.1/script.sh deleted file mode 100755 index 136b6aec1..000000000 --- a/third_party/mason/scripts/ninja/1.7.1/script.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=ninja -MASON_VERSION=1.7.1 -MASON_LIB_FILE=bin/ninja - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/ninja-build/ninja/archive/v${MASON_VERSION}.tar.gz \ - 2756449c3d68f965d3b6bd6e4989fcaa84caee5a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure.py --bootstrap - mkdir -p ${MASON_PREFIX}/bin/ - cp ./ninja ${MASON_PREFIX}/bin/ -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/node/0.10.35/.travis.yml b/third_party/mason/scripts/node/0.10.35/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/node/0.10.35/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/node/0.10.35/script.sh b/third_party/mason/scripts/node/0.10.35/script.sh deleted file mode 100755 index 5004b3b84..000000000 --- a/third_party/mason/scripts/node/0.10.35/script.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=node -MASON_VERSION=0.10.35 -MASON_LIB_FILE=bin/node - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - https://nodejs.org/dist/v0.10.35/node-v0.10.35-darwin-x64.tar.gz \ - f0311c1291cafe98649e5733210792f7d57cbcd1 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - https://nodejs.org/dist/v0.10.35/node-v0.10.35-linux-x64.tar.gz \ - ffcb8592e9a2556ea0a25284d5ab5fe608f344c0 - fi - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - mv -v */* ${MASON_PREFIX} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/node/0.10.36/.travis.yml b/third_party/mason/scripts/node/0.10.36/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/node/0.10.36/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/node/0.10.36/script.sh b/third_party/mason/scripts/node/0.10.36/script.sh deleted file mode 100755 index d8df4f02b..000000000 --- a/third_party/mason/scripts/node/0.10.36/script.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=node -MASON_VERSION=0.10.36 -MASON_LIB_FILE=bin/node - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - https://nodejs.org/dist/v0.10.36/node-v0.10.36-darwin-x64.tar.gz \ - bead5971c06fb58ac5a84f81187c5ec45dfc2c15 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - https://nodejs.org/dist/v0.10.36/node-v0.10.36-linux-x64.tar.gz \ - f4c2b6f439671adc3ede4c435ead261cece7a05d - fi - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - mv -v */* ${MASON_PREFIX} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/node/0.12.0/.travis.yml b/third_party/mason/scripts/node/0.12.0/.travis.yml deleted file mode 100644 index 0abc340e5..000000000 --- a/third_party/mason/scripts/node/0.12.0/.travis.yml +++ /dev/null @@ -1,12 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - - osx - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/node/0.12.0/script.sh b/third_party/mason/scripts/node/0.12.0/script.sh deleted file mode 100755 index fb2fb4287..000000000 --- a/third_party/mason/scripts/node/0.12.0/script.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=node -MASON_VERSION=0.12.0 -MASON_LIB_FILE=bin/node - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - if [ ${MASON_PLATFORM} = 'osx' ]; then - mason_download \ - https://nodejs.org/dist/v0.12.0/node-v0.12.0-darwin-x64.tar.gz \ - 202d45f836ec45db11a58c4a3ced9774ea2144a2 - elif [ ${MASON_PLATFORM} = 'linux' ]; then - mason_download \ - https://nodejs.org/dist/v0.12.0/node-v0.12.0-linux-x64.tar.gz \ - 0cc11d3465ae5b57c181bdb6064e2ba618910d41 - fi - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - mv -v */* ${MASON_PREFIX} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/node_asan/4.4.4/.travis.yml b/third_party/mason/scripts/node_asan/4.4.4/.travis.yml deleted file mode 100644 index 337bf97c9..000000000 --- a/third_party/mason/scripts/node_asan/4.4.4/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: clang - env: CXX=clang++-3.5 CC=clang-3.5 - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/node_asan/4.4.4/script.sh b/third_party/mason/scripts/node_asan/4.4.4/script.sh deleted file mode 100644 index 96fa17cbc..000000000 --- a/third_party/mason/scripts/node_asan/4.4.4/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=node_asan -MASON_VERSION=4.4.4 -MASON_LIB_FILE=bin/node - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://nodejs.org/dist/v${MASON_VERSION}/node-v${MASON_VERSION}.tar.gz \ - 71c6b67274b5e042366e7fbba1ee92426ce6fe1a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/node-v${MASON_VERSION} -} - -function mason_compile { - export CXXFLAGS="${CXXFLAGS} -fsanitize=address" - export CFLAGS="${CFLAGS} -fsanitize=address" - export LDFLAGS="${LDFLAGS} -fsanitize=address" - if [[ $(uname -s) == 'Darwin' ]]; then - export CXXFLAGS="${CXXFLAGS} -std=c++11 -stdlib=libc++" - export LDFLAGS="${LDFLAGS} -std=c++11 -stdlib=libc++" - fi - - ./configure \ - --prefix=${MASON_PREFIX} \ - --debug - echo "making binary" - make binary -j${MASON_CONCURRENCY} - ls - echo "uncompressing binary" - tar -xf *.tar.gz - echo "making dir" - mkdir -p ${MASON_PREFIX} - echo "making copying" - cp -r node-v${MASON_VERSION}*/* ${MASON_PREFIX}/ -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/node_asan/4.4.5/.travis.yml b/third_party/mason/scripts/node_asan/4.4.5/.travis.yml deleted file mode 100644 index 6620f3a74..000000000 --- a/third_party/mason/scripts/node_asan/4.4.5/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/node_asan/4.4.5/script.sh b/third_party/mason/scripts/node_asan/4.4.5/script.sh deleted file mode 100644 index 9e981a8ac..000000000 --- a/third_party/mason/scripts/node_asan/4.4.5/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=node_asan -MASON_VERSION=4.4.5 -MASON_LIB_FILE=bin/node - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://nodejs.org/dist/v${MASON_VERSION}/node-v${MASON_VERSION}.tar.gz \ - 3dd25ccb1a5c529fbb1724b002ccce44ab0872cb - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/node-v${MASON_VERSION} -} - -function mason_compile { - export CXXFLAGS="${CXXFLAGS} -fsanitize=address" - export CFLAGS="${CFLAGS} -fsanitize=address" - export LDFLAGS="${LDFLAGS} -fsanitize=address" - if [[ $(uname -s) == 'Darwin' ]]; then - export CXXFLAGS="${CXXFLAGS} -std=c++11 -stdlib=libc++" - export LDFLAGS="${LDFLAGS} -std=c++11 -stdlib=libc++" - fi - - ./configure \ - --prefix=${MASON_PREFIX} \ - --debug - echo "making binary" - make binary -j${MASON_CONCURRENCY} - ls - echo "uncompressing binary" - tar -xf *.tar.gz - echo "making dir" - mkdir -p ${MASON_PREFIX} - echo "making copying" - cp -r node-v${MASON_VERSION}*/* ${MASON_PREFIX}/ -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/node_tsan/4.4.5/.travis.yml b/third_party/mason/scripts/node_tsan/4.4.5/.travis.yml deleted file mode 100644 index 6620f3a74..000000000 --- a/third_party/mason/scripts/node_tsan/4.4.5/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/node_tsan/4.4.5/script.sh b/third_party/mason/scripts/node_tsan/4.4.5/script.sh deleted file mode 100644 index 1dd15c609..000000000 --- a/third_party/mason/scripts/node_tsan/4.4.5/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=node_tsan -MASON_VERSION=4.4.5 -MASON_LIB_FILE=bin/node - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://nodejs.org/dist/v${MASON_VERSION}/node-v${MASON_VERSION}.tar.gz \ - 3dd25ccb1a5c529fbb1724b002ccce44ab0872cb - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/node-v${MASON_VERSION} -} - -function mason_compile { - export CXXFLAGS="${CXXFLAGS} -fsanitize=thread" - export CFLAGS="${CFLAGS} -fsanitize=thread" - export LDFLAGS="${LDFLAGS} -fsanitize=thread" - if [[ $(uname -s) == 'Darwin' ]]; then - export CXXFLAGS="${CXXFLAGS} -std=c++11 -stdlib=libc++" - export LDFLAGS="${LDFLAGS} -std=c++11 -stdlib=libc++" - fi - - ./configure \ - --prefix=${MASON_PREFIX} \ - --debug - echo "making binary" - make binary -j${MASON_CONCURRENCY} - ls - echo "uncompressing binary" - tar -xf *.tar.gz - echo "making dir" - mkdir -p ${MASON_PREFIX} - echo "making copying" - cp -r node-v${MASON_VERSION}*/* ${MASON_PREFIX}/ -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/nsis/3.01/.travis.yml b/third_party/mason/scripts/nsis/3.01/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/nsis/3.01/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/nsis/3.01/script.sh b/third_party/mason/scripts/nsis/3.01/script.sh deleted file mode 100755 index 10b97a437..000000000 --- a/third_party/mason/scripts/nsis/3.01/script.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=nsis -MASON_VERSION=3.01 -MASON_LIB_FILE=bin/makensis - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://downloads.sourceforge.net/project/nsis/NSIS%203/${MASON_VERSION}/nsis-${MASON_VERSION}-src.tar.bz2 \ - 99614aa0831b1cd93d13c479beda4f424b3e5875 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION}-src -} - -function mason_compile { - if [ ! -f scons-local-2.5.1.tar.gz ]; then - wget http://prdownloads.sourceforge.net/scons/scons-local-2.5.1.tar.gz - tar xvf scons-local-2.5.1.tar.gz - fi - perl -i -p -e "s/'__attribute__\(\(__stdcall__\)\)'/'\"__attribute__\(\(__stdcall__\)\)\"'/g" SCons/Config/gnu - if [[ $(uname -s) == 'Darwin' ]]; then - perl -i -p -e "s/'-Wall'/'-Wall','-stdlib=libstdc++','-fpermissive'/g" SCons/Config/gnu - perl -i -p -e "s/'-pthread'/'-stdlib=libstdc++'/g" SCons/Config/gnu - else - perl -i -p -e "s/'-Wall'/'-Wall','-fpermissive'/g" SCons/Config/gnu - perl -i -p -e "s/'-m32'/'-m64'/g" SCons/Config/gnu - fi - #perl -i -p -e "s/#include //g" Source/exehead/util.h - python scons.py STRIP=0 SKIPUTILS=all PREFIX=${MASON_PREFIX} makensis - mkdir -p ${MASON_PREFIX}/bin - cp build/urelease/makensis/makensis ${MASON_PREFIX}/bin/ - mkdir -p ${MASON_PREFIX}/Include - if [ ! -f nsis-${MASON_VERSION}.zip ]; then - wget https://downloads.sourceforge.net/project/nsis/NSIS%203/${MASON_VERSION}/nsis-${MASON_VERSION}.zip - unzip nsis-${MASON_VERSION}.zip - fi - mkdir -p ${MASON_PREFIX}/Plugins/ - cp -r nsis-${MASON_VERSION}/Plugins/* ${MASON_PREFIX}/Plugins/ - mkdir -p ${MASON_PREFIX}/Include/ - cp -r nsis-${MASON_VERSION}/Include/* ${MASON_PREFIX}/Include/ - mkdir -p ${MASON_PREFIX}/share/nsis/Contrib/ - mkdir -p ${MASON_PREFIX}/Contrib - cp -r nsis-${MASON_VERSION}/Contrib/* ${MASON_PREFIX}/share/nsis/Contrib/ - cp -r nsis-${MASON_VERSION}/Contrib/* ${MASON_PREFIX}/Contrib/ - mkdir -p ${MASON_PREFIX}/share/nsis/Stubs/ - mkdir -p ${MASON_PREFIX}/Stubs/ - cp nsis-${MASON_VERSION}/Stubs/* ${MASON_PREFIX}/Stubs/ - cp nsis-${MASON_VERSION}/Stubs/* ${MASON_PREFIX}/share/nsis/Stubs/ -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/nunicode/1.5.1/.travis.yml b/third_party/mason/scripts/nunicode/1.5.1/.travis.yml deleted file mode 100644 index 4edecef8c..000000000 --- a/third_party/mason/scripts/nunicode/1.5.1/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: cpp -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- if [[ $(uname -s) == 'Darwin' ]]; then brew install cmake; fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/nunicode/1.5.1/script.sh b/third_party/mason/scripts/nunicode/1.5.1/script.sh deleted file mode 100755 index da19ec9f1..000000000 --- a/third_party/mason/scripts/nunicode/1.5.1/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=nunicode -MASON_VERSION=1.5.1 -MASON_LIB_FILE=lib/libnu.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/nu.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://bitbucket.org/alekseyt/nunicode/get/1.5.1.tar.bz2 \ - d85a6cd2d779db3503034762f56fd094ea6f5def - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/alekseyt-nunicode-01c8e4ebc740 -} - -function mason_compile { - mkdir -p build-dir - cd build-dir - - # patch CMakeLists file - cat ../CMakeLists.txt | sed -e '/find_package.Sqlite3/ s/^/#/' > ../CMakeLists.txt.new && cp ../CMakeLists.txt.new ../CMakeLists.txt - - cmake \ - -DCMAKE_BUILD_TYPE=RELEASE \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - ${MASON_CMAKE_TOOLCHAIN} \ - .. - - make install -j${MASON_CONCURRENCY} -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/nunicode/1.6/.travis.yml b/third_party/mason/scripts/nunicode/1.6/.travis.yml deleted file mode 100644 index 9cd8eb042..000000000 --- a/third_party/mason/scripts/nunicode/1.6/.travis.yml +++ /dev/null @@ -1,34 +0,0 @@ -language: cpp - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -before_install: -- "if [[ `lsb_release -r` =~ '12.04' ]]; then sudo add-apt-repository --yes ppa:kubuntu-ppa/backports ; fi" -- "if [[ ${TRAVIS_OS_NAME:-linux} = 'linux' ]]; then sudo apt-get update -y ; fi" -- "if [[ ${TRAVIS_OS_NAME:-linux} = 'linux' ]]; then sudo apt-get -y install cmake ; fi" - -script: -- if [[ $(uname -s) == 'Darwin' ]]; then brew install cmake; fi -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/nunicode/1.6/script.sh b/third_party/mason/scripts/nunicode/1.6/script.sh deleted file mode 100755 index ce1525486..000000000 --- a/third_party/mason/scripts/nunicode/1.6/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=nunicode -MASON_VERSION=1.6 -MASON_LIB_FILE=lib/libnu.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/nu.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download https://bitbucket.org/alekseyt/nunicode/get/1.6.tar.bz2 \ - 3dd1b2487038823e6435ad9d44d76836577f0801 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/alekseyt-nunicode-34f278da1e6a -} - -function mason_compile { - mkdir -p build-dir - cd build-dir - - # patch CMakeLists file - cat ../CMakeLists.txt | sed -e '/find_package.Sqlite3/ s/^/#/' > ../CMakeLists.txt.new && cp ../CMakeLists.txt.new ../CMakeLists.txt - - cmake \ - -DCMAKE_BUILD_TYPE=RELEASE \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - ${MASON_CMAKE_TOOLCHAIN} \ - .. - - make install -j${MASON_CONCURRENCY} -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/nunicode/1.7.1/.travis.yml b/third_party/mason/scripts/nunicode/1.7.1/.travis.yml deleted file mode 100644 index 91aa3a854..000000000 --- a/third_party/mason/scripts/nunicode/1.7.1/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - env: MASON_PLATFORM=osx - compiler: clang - - os: linux - env: MASON_PLATFORM=linux - compiler: clang - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -addons: - apt: - sources: [ 'ubuntu-toolchain-r-test', 'george-edison55-precise-backports' ] - packages: [ 'libstdc++-5-dev', 'cmake', 'cmake-data' ] - -install: -- if [[ $(uname -s) == 'Darwin' ]]; then brew install cmake; fi - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/nunicode/1.7.1/script.sh b/third_party/mason/scripts/nunicode/1.7.1/script.sh deleted file mode 100755 index fd0448fbc..000000000 --- a/third_party/mason/scripts/nunicode/1.7.1/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=nunicode -MASON_VERSION=1.7.1 -MASON_LIB_FILE=lib/libnu.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/nu.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download https://bitbucket.org/alekseyt/nunicode/get/1.7.1.tar.bz2 \ - 96e4b9893c88be4dacd2db7db154ec1727a757d1 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/alekseyt-nunicode-263219737286 -} - -function mason_compile { - mkdir -p build-dir - cd build-dir - - # patch CMakeLists file - cat ../CMakeLists.txt | sed -e '/find_package.Sqlite3/ s/^/#/' > ../CMakeLists.txt.new && cp ../CMakeLists.txt.new ../CMakeLists.txt - - cmake \ - -DCMAKE_BUILD_TYPE=RELEASE \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - ${MASON_CMAKE_TOOLCHAIN} \ - .. - - make install -j${MASON_CONCURRENCY} -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/openssl/1.0.1l/.travis.yml b/third_party/mason/scripts/openssl/1.0.1l/.travis.yml deleted file mode 100644 index 3be062b03..000000000 --- a/third_party/mason/scripts/openssl/1.0.1l/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - -addons: - apt_packages: - - xutils-dev matrix: - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - - MASON_PLATFORM=linux - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/openssl/1.0.1l/script.sh b/third_party/mason/scripts/openssl/1.0.1l/script.sh deleted file mode 100755 index 994284db1..000000000 --- a/third_party/mason/scripts/openssl/1.0.1l/script.sh +++ /dev/null @@ -1,83 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=openssl -MASON_VERSION=1.0.1l -MASON_LIB_FILE=lib/libssl.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/openssl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://ftp.openssl.org/source/old/1.0.1/openssl-1.0.1l.tar.gz \ - 448aaf41b40d9ff0a1722a2838fb48f78b95dfa4 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/openssl-${MASON_VERSION} -} - -function mason_prepare_compile { - MASON_MAKEDEPEND="gccmakedep" - - if [ ${MASON_PLATFORM} = 'osx' ]; then - MASON_MAKEDEPEND="makedepend" - MASON_OS_COMPILER="darwin64-x86_64-cc enable-ec_nistp_64_gcc_128" - elif [ ${MASON_PLATFORM} = 'linux' ]; then - MASON_OS_COMPILER="linux-x86_64 enable-ec_nistp_64_gcc_128" - elif [[ ${MASON_PLATFORM} == 'android' ]]; then - COMMON="-fpic -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-integrated-as -O2 -g -DNDEBUG -fomit-frame-pointer -fstrict-aliasing -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes" - if [ ${MASON_ANDROID_ABI} = 'arm-v5' ]; then - MASON_OS_COMPILER="linux-armv4 -march=armv5te -mtune=xscale -msoft-float -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'arm-v7' ]; then - MASON_OS_COMPILER="linux-armv4 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'x86' ]; then - MASON_OS_COMPILER="linux-elf -march=i686 -msse3 -mfpmath=sse -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'mips' ]; then - MASON_OS_COMPILER="linux-generic32 $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'arm-v8' ]; then - MASON_OS_COMPILER="linux-generic64 enable-ec_nistp_64_gcc_128 -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'x86-64' ]; then - MASON_OS_COMPILER="linux-x86_64 enable-ec_nistp_64_gcc_128 -march=x86-64 -msse4.2 -mpopcnt -m64 -mtune=intel -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'mips-64' ]; then - MASON_OS_COMPILER="linux-generic32 $COMMON" - fi - fi -} - -function mason_compile { - ./Configure \ - --prefix=${MASON_PREFIX} \ - enable-tlsext \ - -no-dso \ - -no-hw \ - -no-comp \ - -no-idea \ - -no-mdc2 \ - -no-rc5 \ - -no-zlib \ - -no-shared \ - -no-ssl2 \ - -no-ssl3 \ - -no-krb5 \ - -fPIC \ - -DOPENSSL_PIC \ - -DOPENSSL_NO_DEPRECATED \ - -DOPENSSL_NO_COMP \ - -DOPENSSL_NO_HEARTBEATS \ - --openssldir=${MASON_PREFIX}/etc/openssl \ - ${MASON_OS_COMPILER} - - make depend MAKEDEPPROG=${MASON_MAKEDEPEND} - - make - - # https://github.com/openssl/openssl/issues/57 - make install_sw -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/openssl/1.0.1p/.travis.yml b/third_party/mason/scripts/openssl/1.0.1p/.travis.yml deleted file mode 100644 index 3be062b03..000000000 --- a/third_party/mason/scripts/openssl/1.0.1p/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - -addons: - apt_packages: - - xutils-dev matrix: - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - - MASON_PLATFORM=linux - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/openssl/1.0.1p/script.sh b/third_party/mason/scripts/openssl/1.0.1p/script.sh deleted file mode 100755 index 7df7c7420..000000000 --- a/third_party/mason/scripts/openssl/1.0.1p/script.sh +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=openssl -MASON_VERSION=1.0.1p -MASON_LIB_FILE=lib/libssl.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/openssl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://ftp.openssl.org/source/old/1.0.1/openssl-${MASON_VERSION}.tar.gz \ - db77eba6cc1f9e50f61a864c07d09ecd0154c84d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/openssl-${MASON_VERSION} -} - -function mason_prepare_compile { - MASON_MAKEDEPEND="gccmakedep" - - if [ ${MASON_PLATFORM} = 'osx' ]; then - MASON_MAKEDEPEND="makedepend" - MASON_OS_COMPILER="darwin64-x86_64-cc enable-ec_nistp_64_gcc_128" - elif [ ${MASON_PLATFORM} = 'linux' ]; then - MASON_OS_COMPILER="linux-x86_64 enable-ec_nistp_64_gcc_128" - elif [[ ${MASON_PLATFORM} == 'android' ]]; then - COMMON="-fPIC -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-integrated-as -O2 -g -DNDEBUG -fomit-frame-pointer -fstrict-aliasing -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes" - if [ ${MASON_ANDROID_ABI} = 'arm-v5' ]; then - MASON_OS_COMPILER="linux-armv4 -march=armv5te -mtune=xscale -msoft-float -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'arm-v7' ]; then - MASON_OS_COMPILER="linux-armv4 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'x86' ]; then - MASON_OS_COMPILER="linux-elf -march=i686 -msse3 -mfpmath=sse -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'mips' ]; then - MASON_OS_COMPILER="linux-generic32 $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'arm-v8' ]; then - MASON_OS_COMPILER="linux-generic64 enable-ec_nistp_64_gcc_128 -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'x86-64' ]; then - MASON_OS_COMPILER="linux-x86_64 enable-ec_nistp_64_gcc_128 -march=x86-64 -msse4.2 -mpopcnt -m64 -mtune=intel -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'mips-64' ]; then - MASON_OS_COMPILER="linux-generic32 $COMMON" - fi - fi -} - -function mason_compile { - NO_ASM= - - # Work around a Android 6.0 TEXTREL exception. See https://github.com/mapbox/mapbox-gl-native/issues/2772 - if [[ ${MASON_PLATFORM} == 'android' ]]; then - if [ ${MASON_ANDROID_ABI} = 'x86' ]; then - NO_ASM=-no-asm - fi - fi - - ./Configure \ - --prefix=${MASON_PREFIX} \ - enable-tlsext \ - ${NO_ASM} \ - -no-dso \ - -no-hw \ - -no-engines \ - -no-comp \ - -no-gmp \ - -no-zlib \ - -no-shared \ - -no-ssl2 \ - -no-ssl3 \ - -no-krb5 \ - -no-camellia \ - -no-capieng \ - -no-cast \ - -no-dtls \ - -no-gost \ - -no-idea \ - -no-jpake \ - -no-md2 \ - -no-mdc2 \ - -no-rc5 \ - -no-rdrand \ - -no-ripemd \ - -no-rsax \ - -no-sctp \ - -no-seed \ - -no-sha0 \ - -no-whirlpool \ - -fPIC \ - -DOPENSSL_PIC \ - -DOPENSSL_NO_DEPRECATED \ - -DOPENSSL_NO_COMP \ - -DOPENSSL_NO_HEARTBEATS \ - --openssldir=${MASON_PREFIX}/etc/openssl \ - ${MASON_OS_COMPILER} - - make depend MAKEDEPPROG=${MASON_MAKEDEPEND} - - make - - # https://github.com/openssl/openssl/issues/57 - make install_sw -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/openssl/1.0.2/.travis.yml b/third_party/mason/scripts/openssl/1.0.2/.travis.yml deleted file mode 100644 index 3be062b03..000000000 --- a/third_party/mason/scripts/openssl/1.0.2/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - -addons: - apt_packages: - - xutils-dev matrix: - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - - MASON_PLATFORM=linux - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/openssl/1.0.2/script.sh b/third_party/mason/scripts/openssl/1.0.2/script.sh deleted file mode 100755 index 2259a7999..000000000 --- a/third_party/mason/scripts/openssl/1.0.2/script.sh +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=openssl -MASON_VERSION=1.0.2 -MASON_LIB_FILE=lib/libssl.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/openssl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://ftp.openssl.org/source/old/1.0.2/openssl-${MASON_VERSION}.tar.gz \ - edb5a59838b24d0845950feed47dae014c66b2ab - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/openssl-${MASON_VERSION} -} - -function mason_prepare_compile { - MASON_MAKEDEPEND="gccmakedep" - - if [ ${MASON_PLATFORM} = 'osx' ]; then - MASON_MAKEDEPEND="makedepend" - MASON_OS_COMPILER="darwin64-x86_64-cc enable-ec_nistp_64_gcc_128" - elif [ ${MASON_PLATFORM} = 'linux' ]; then - MASON_OS_COMPILER="linux-x86_64 enable-ec_nistp_64_gcc_128" - elif [[ ${MASON_PLATFORM} == 'android' ]]; then - COMMON="-fPIC -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-integrated-as -O2 -g -DNDEBUG -fomit-frame-pointer -fstrict-aliasing -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes" - if [ ${MASON_ANDROID_ABI} = 'arm-v5' ]; then - MASON_OS_COMPILER="linux-armv4 -march=armv5te -mtune=xscale -msoft-float -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'arm-v7' ]; then - MASON_OS_COMPILER="linux-armv4 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'x86' ]; then - MASON_OS_COMPILER="linux-elf -march=i686 -msse3 -mfpmath=sse -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'mips' ]; then - MASON_OS_COMPILER="linux-generic32 $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'arm-v8' ]; then - MASON_OS_COMPILER="linux-generic64 enable-ec_nistp_64_gcc_128 -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'x86-64' ]; then - MASON_OS_COMPILER="linux-x86_64 enable-ec_nistp_64_gcc_128 -march=x86-64 -msse4.2 -mpopcnt -m64 -mtune=intel -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'mips-64' ]; then - MASON_OS_COMPILER="linux-generic32 $COMMON" - fi - fi -} - -function mason_compile { - NO_ASM= - - # Work around a Android 6.0 TEXTREL exception. See https://github.com/mapbox/mapbox-gl-native/issues/2772 - if [[ ${MASON_PLATFORM} == 'android' ]]; then - if [ ${MASON_ANDROID_ABI} = 'x86' ]; then - NO_ASM=-no-asm - fi - fi - - ./Configure \ - --prefix=${MASON_PREFIX} \ - enable-tlsext \ - ${NO_ASM} \ - -no-dso \ - -no-hw \ - -no-engines \ - -no-comp \ - -no-gmp \ - -no-zlib \ - -no-shared \ - -no-ssl2 \ - -no-ssl3 \ - -no-krb5 \ - -no-camellia \ - -no-capieng \ - -no-cast \ - -no-dtls \ - -no-gost \ - -no-idea \ - -no-jpake \ - -no-md2 \ - -no-mdc2 \ - -no-rc5 \ - -no-rdrand \ - -no-ripemd \ - -no-rsax \ - -no-sctp \ - -no-seed \ - -no-sha0 \ - -no-whirlpool \ - -fPIC \ - -DOPENSSL_PIC \ - -DOPENSSL_NO_DEPRECATED \ - -DOPENSSL_NO_COMP \ - -DOPENSSL_NO_HEARTBEATS \ - --openssldir=${MASON_PREFIX}/etc/openssl \ - ${MASON_OS_COMPILER} - - make depend MAKEDEPPROG=${MASON_MAKEDEPEND} - - make - - # https://github.com/openssl/openssl/issues/57 - make install_sw -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/openssl/1.0.2d/.travis.yml b/third_party/mason/scripts/openssl/1.0.2d/.travis.yml deleted file mode 100644 index 3be062b03..000000000 --- a/third_party/mason/scripts/openssl/1.0.2d/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: cpp -sudo: false - -os: - - linux - -addons: - apt_packages: - - xutils-dev matrix: - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - - MASON_PLATFORM=linux - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/openssl/1.0.2d/script.sh b/third_party/mason/scripts/openssl/1.0.2d/script.sh deleted file mode 100755 index 394ea312c..000000000 --- a/third_party/mason/scripts/openssl/1.0.2d/script.sh +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=openssl -MASON_VERSION=1.0.2d -MASON_LIB_FILE=lib/libssl.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/openssl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - ftp://ftp.openssl.org/source/old/1.0.2/openssl-${MASON_VERSION}.tar.gz \ - ec5b1937e8dcbf8c1831bf67f3744474f0f04bf8 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/openssl-${MASON_VERSION} -} - -function mason_prepare_compile { - MASON_MAKEDEPEND="gccmakedep" - - if [ ${MASON_PLATFORM} = 'osx' ]; then - MASON_MAKEDEPEND="makedepend" - MASON_OS_COMPILER="darwin64-x86_64-cc enable-ec_nistp_64_gcc_128" - elif [ ${MASON_PLATFORM} = 'linux' ]; then - MASON_OS_COMPILER="linux-x86_64 enable-ec_nistp_64_gcc_128" - elif [[ ${MASON_PLATFORM} == 'android' ]]; then - COMMON="-fPIC -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -fno-integrated-as -O2 -g -DNDEBUG -fomit-frame-pointer -fstrict-aliasing -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes" - if [ ${MASON_ANDROID_ABI} = 'arm-v5' ]; then - MASON_OS_COMPILER="linux-armv4 -march=armv5te -mtune=xscale -msoft-float -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'arm-v7' ]; then - MASON_OS_COMPILER="linux-armv4 -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=softfp -Wl,--fix-cortex-a8 -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'x86' ]; then - MASON_OS_COMPILER="linux-elf -march=i686 -msse3 -mfpmath=sse -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'mips' ]; then - MASON_OS_COMPILER="linux-generic32 $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'arm-v8' ]; then - MASON_OS_COMPILER="linux-generic64 enable-ec_nistp_64_gcc_128 -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'x86-64' ]; then - MASON_OS_COMPILER="linux-x86_64 enable-ec_nistp_64_gcc_128 -march=x86-64 -msse4.2 -mpopcnt -m64 -mtune=intel -fuse-ld=gold $COMMON" - elif [ ${MASON_ANDROID_ABI} = 'mips-64' ]; then - MASON_OS_COMPILER="linux-generic32 $COMMON" - fi - fi -} - -function mason_compile { - NO_ASM= - - # Work around a Android 6.0 TEXTREL exception. See https://github.com/mapbox/mapbox-gl-native/issues/2772 - if [[ ${MASON_PLATFORM} == 'android' ]]; then - if [ ${MASON_ANDROID_ABI} = 'x86' ]; then - NO_ASM=-no-asm - fi - fi - - ./Configure \ - --prefix=${MASON_PREFIX} \ - enable-tlsext \ - ${NO_ASM} \ - -no-dso \ - -no-hw \ - -no-engines \ - -no-comp \ - -no-gmp \ - -no-zlib \ - -no-shared \ - -no-ssl2 \ - -no-ssl3 \ - -no-krb5 \ - -no-camellia \ - -no-capieng \ - -no-cast \ - -no-dtls \ - -no-gost \ - -no-idea \ - -no-jpake \ - -no-md2 \ - -no-mdc2 \ - -no-rc5 \ - -no-rdrand \ - -no-ripemd \ - -no-rsax \ - -no-sctp \ - -no-seed \ - -no-sha0 \ - -no-whirlpool \ - -fPIC \ - -DOPENSSL_PIC \ - -DOPENSSL_NO_DEPRECATED \ - -DOPENSSL_NO_COMP \ - -DOPENSSL_NO_HEARTBEATS \ - --openssldir=${MASON_PREFIX}/etc/openssl \ - ${MASON_OS_COMPILER} - - make depend MAKEDEPPROG=${MASON_MAKEDEPEND} - - make - - # https://github.com/openssl/openssl/issues/57 - make install_sw -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/openswr-mesa/11.0-openswr/.travis.yml b/third_party/mason/scripts/openswr-mesa/11.0-openswr/.travis.yml deleted file mode 100644 index 017c74519..000000000 --- a/third_party/mason/scripts/openswr-mesa/11.0-openswr/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -sudo: required - -dist: trusty - -language: cpp - -os: - - linux - -before_install: -- "if [[ `lsb_release -r` =~ '14.04' ]]; then sudo apt-get install -y software-properties-common; fi" -- sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test -- sudo apt-get update -y -- sudo apt-get install -y gcc-4.9 g++-4.9 automake pkg-config libtool -- export CXX="g++-4.9" -- export CC="gcc-4.9" -- sudo apt-get install -y flex bison python-pip libdrm-dev x11proto-gl-dev x11proto-dri2-dev x11proto-dri3-dev x11proto-present-dev libx11-xcb-dev libxext-dev libxdamage-dev libxfixes-dev libxcb-glx0-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-present-dev libxcb-sync-dev libxshmfence-dev libudev-dev libexpat1-dev libva-dev gettext libnuma-dev llvm-3.6 mesa-utils -- sudo -H pip install mako - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/openswr-mesa/11.0-openswr/circle.yml b/third_party/mason/scripts/openswr-mesa/11.0-openswr/circle.yml deleted file mode 100644 index 309501b23..000000000 --- a/third_party/mason/scripts/openswr-mesa/11.0-openswr/circle.yml +++ /dev/null @@ -1,25 +0,0 @@ -machine: - environment: - CXX: g++-4.9 - CC: gcc-4.9 - -dependencies: - pre: - - "if [[ `lsb_release -r` =~ '14.04' ]]; then sudo apt-get install -y software-properties-common; fi" - - sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test - - sudo add-apt-repository --yes ppa:xorg-edgers/ppa - - sudo apt-get update -y - - sudo apt-get install -y gcc-4.9 g++-4.9 automake pkg-config libtool - - sudo apt-get install -y python-pip flex bison libdrm-dev x11proto-gl-dev x11proto-dri2-dev x11proto-dri3-dev x11proto-present-dev libx11-xcb-dev libxext-dev libxdamage-dev libxfixes-dev libxcb-glx0-dev libxcb-dri2-0-dev libxcb-dri3-dev libxcb-present-dev libxcb-sync-dev libxshmfence-dev libudev-dev libexpat1-dev libdrm-intel1 libva-dev gettext libnuma-dev llvm-3.6 mesa-utils - - sudo pip install mako - -test: - override: - - ldd --version - - ./mason build ${MASON_NAME} ${MASON_VERSION} - -deployment: - publish: - branch: /.*/ - commands: - - ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/openswr-mesa/11.0-openswr/script.sh b/third_party/mason/scripts/openswr-mesa/11.0-openswr/script.sh deleted file mode 100755 index 0d93fd822..000000000 --- a/third_party/mason/scripts/openswr-mesa/11.0-openswr/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=openswr-mesa -MASON_VERSION=11.0-openswr -MASON_LIB_FILE=lib/libGL.so -MASON_PKGCONFIG_FILE=lib/pkgconfig/gl.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/OpenSWR/openswr-mesa/archive/11.0-openswr.tar.gz \ - bf76df16a495d1fdd9f03fd301f325503d087c20 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - CXXFLAGS=-std=c++14 ./autogen.sh \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --with-gallium-drivers=swr,swrast \ - --enable-swr-native \ - --enable-glx-tls \ - --with-llvm-prefix=/usr/lib/llvm-3.6 - - make install -} - -function mason_strip_ldflags { - shift # -L... - shift # -luv - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/or-tools/5.1/.travis.yml b/third_party/mason/scripts/or-tools/5.1/.travis.yml deleted file mode 100644 index ca922876b..000000000 --- a/third_party/mason/scripts/or-tools/5.1/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-4.9-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/or-tools/5.1/patch.diff b/third_party/mason/scripts/or-tools/5.1/patch.diff deleted file mode 100644 index 1e1605054..000000000 --- a/third_party/mason/scripts/or-tools/5.1/patch.diff +++ /dev/null @@ -1,145 +0,0 @@ -diff --git a/makefiles/Makefile.third_party.unix b/makefiles/Makefile.third_party.unix -index f2b3403..c82d55d 100755 ---- a/makefiles/Makefile.third_party.unix -+++ b/makefiles/Makefile.third_party.unix -@@ -285,7 +285,7 @@ dependencies/sources/cbc-$(CBC_TAG)/Makefile: dependencies/sources/cbc-$(CBC_TAG - cd dependencies/sources/cbc-$(CBC_TAG) && $(SET_PATH) $(SET_COMPILER) ./configure --prefix=$(OR_ROOT_FULL)/dependencies/install --disable-bzlib --without-lapack --enable-static --enable-shared --with-pic ADD_CXXFLAGS="-DCBC_THREAD_SAFE -DCBC_NO_INTERRUPT $(MAC_VERSION)" - - dependencies/sources/cbc-$(CBC_TAG)/Makefile.in: -- svn co https://projects.coin-or.org/svn/Cbc/releases/$(CBC_TAG) dependencies/sources/cbc-$(CBC_TAG) -+ svn co --trust-server-cert --non-interactive https://projects.coin-or.org/svn/Cbc/releases/$(CBC_TAG) dependencies/sources/cbc-$(CBC_TAG) - - # Install pcre (dependency of SWIG). - dependencies/install/bin/pcretest: dependencies/sources/pcre-$(PCRE_TAG)/Makefile $(ACLOCAL_TARGET) -@@ -351,6 +351,8 @@ dependencies/install/bin/bison: dependencies/sources/bison-$(BISON_TAG)/Makefile - - dependencies/sources/bison-$(BISON_TAG)/Makefile: dependencies/sources/bison-$(BISON_TAG)/configure $(ACLOCAL_TARGET) - cd dependencies/sources/bison-$(BISON_TAG) && $(SET_PATH) autoreconf -+ sed -e "s/^INFO_DEPS = .*/INFO_DEPS =/g" < dependencies/sources/bison-$(BISON_TAG)/Makefile.in > dependencies/sources/bison-$(BISON_TAG)/Makefile.in.new -+ mv -f dependencies/sources/bison-$(BISON_TAG)/Makefile.in.new dependencies/sources/bison-$(BISON_TAG)/Makefile.in - cd dependencies/sources/bison-$(BISON_TAG) && $(SET_PATH) ./configure --prefix=$(OR_ROOT_FULL)/dependencies/install - - dependencies/sources/bison-$(BISON_TAG)/configure: dependencies/archives/bison-$(BISON_TAG).tar.gz -@@ -396,18 +398,22 @@ dependencies/sources/libtool-$(LIBTOOL_TAG)/Makefile: dependencies/sources/libto - - dependencies/sources/libtool-$(LIBTOOL_TAG)/configure: dependencies/archives/libtool-$(LIBTOOL_TAG).tar.gz - cd dependencies/sources && tar xvzmf ../archives/libtool-$(LIBTOOL_TAG).tar.gz -+ sed -e "s/^INFO_DEPS = .*/INFO_DEPS =/g" < dependencies/sources/libtool-$(LIBTOOL_TAG)/Makefile.in > dependencies/sources/libtool-$(LIBTOOL_TAG)/Makefile.in.new -+ mv -f dependencies/sources/libtool-$(LIBTOOL_TAG)/Makefile.in.new dependencies/sources/libtool-$(LIBTOOL_TAG)/Makefile.in - - dependencies/archives/libtool-$(LIBTOOL_TAG).tar.gz: - cd dependencies/archives && curl -OL http://ftpmirror.gnu.org/libtool/libtool-$(LIBTOOL_TAG).tar.gz - - # Install automake - dependencies/install/bin/automake: dependencies/sources/automake-$(AUTOMAKE_TAG)/Makefile -- cd dependencies/sources/automake-$(AUTOMAKE_TAG) && $(SET_PATH) ./bootstrap.sh - cd dependencies/sources/automake-$(AUTOMAKE_TAG) && $(SET_PATH) make - cd dependencies/sources/automake-$(AUTOMAKE_TAG) && $(SET_PATH) make install - - - dependencies/sources/automake-$(AUTOMAKE_TAG)/Makefile: dependencies/sources/automake-$(AUTOMAKE_TAG)/configure dependencies/install/bin/autoconf -+ cd dependencies/sources/automake-$(AUTOMAKE_TAG) && $(SET_PATH) ./bootstrap.sh -+ sed -e "s/^INFO_DEPS =.*/INFO_DEPS =/g" -e 's/^.*automake-history.info$$//g' < dependencies/sources/automake-$(AUTOMAKE_TAG)/Makefile.in > dependencies/sources/automake-$(AUTOMAKE_TAG)/Makefile.in.new -+ mv -f dependencies/sources/automake-$(AUTOMAKE_TAG)/Makefile.in.new dependencies/sources/automake-$(AUTOMAKE_TAG)/Makefile.in - cd dependencies/sources/automake-$(AUTOMAKE_TAG) && $(SET_PATH) ./configure --prefix=$(OR_ROOT_FULL)/dependencies/install - - dependencies/sources/automake-$(AUTOMAKE_TAG)/configure: dependencies/archives/automake-$(AUTOMAKE_TAG).tar.gz -@@ -471,22 +477,22 @@ makefile_third_party: Makefile.local - Makefile.local: makefiles/Makefile.third_party.unix - -$(DEL) Makefile.local - @echo Generating Makefile.local -- @echo $(SELECTED_JDK_DEF)>> Makefile.local -- @echo UNIX_PYTHON_VER = $(DETECTED_PYTHON_VERSION)>> Makefile.local -- @echo PATH_TO_CSHARP_COMPILER = $(DETECTED_MCS_BINARY)>> Makefile.local -- @echo CLR_KEYFILE = bin/or-tools.snk>> Makefile.local -+ #@echo $(SELECTED_JDK_DEF)>> Makefile.local -+ #@echo UNIX_PYTHON_VER = $(DETECTED_PYTHON_VERSION)>> Makefile.local -+ #@echo PATH_TO_CSHARP_COMPILER = $(DETECTED_MCS_BINARY)>> Makefile.local -+ #@echo CLR_KEYFILE = bin/or-tools.snk>> Makefile.local - @echo >> Makefile.local -- @echo $(GLPK_MAKEFILE)>> Makefile.local -- @echo $(SCIP_MAKEFILE)>> Makefile.local -- @echo \# Define UNIX_SLM_DIR to use Sulum Optimization.>> Makefile.local -- @echo \# Define UNIX_GUROBI_DIR and GUROBI_LIB_VERSION to use Gurobi.>> Makefile.local -- @echo \# Define UNIX_CPLEX_DIR to use CPLEX.>> Makefile.local -+ #@echo $(GLPK_MAKEFILE)>> Makefile.local -+ #@echo $(SCIP_MAKEFILE)>> Makefile.local -+ #@echo \# Define UNIX_SLM_DIR to use Sulum Optimization.>> Makefile.local -+ #@echo \# Define UNIX_GUROBI_DIR and GUROBI_LIB_VERSION to use Gurobi.>> Makefile.local -+ #@echo \# Define UNIX_CPLEX_DIR to use CPLEX.>> Makefile.local - @echo >> Makefile.local - @echo UNIX_GFLAGS_DIR = $(OR_ROOT_FULL)/dependencies/install>> Makefile.local - @echo UNIX_PROTOBUF_DIR = $(OR_ROOT_FULL)/dependencies/install>> Makefile.local - @echo UNIX_SPARSEHASH_DIR = $(OR_ROOT_FULL)/dependencies/install>> Makefile.local -- @echo UNIX_SWIG_BINARY = $(OR_ROOT_FULL)/dependencies/install/bin/swig>> Makefile.local -- @echo UNIX_CLP_DIR = $(OR_ROOT_FULL)/dependencies/install>> Makefile.local -- @echo UNIX_CBC_DIR = $(OR_ROOT_FULL)/dependencies/install>> Makefile.local -- @echo UNIX_SCIP_TAG = $(SCIP_TAG)>> Makefile.local -- @echo UNIX_SULUM_VERSION = $(SULUM_TAG) >> Makefile.local -\ No newline at end of file -+ #@echo UNIX_SWIG_BINARY = $(OR_ROOT_FULL)/dependencies/install/bin/swig>> Makefile.local -+ #@echo UNIX_CLP_DIR = $(OR_ROOT_FULL)/dependencies/install>> Makefile.local -+ #@echo UNIX_CBC_DIR = $(OR_ROOT_FULL)/dependencies/install>> Makefile.local -+ #@echo UNIX_SCIP_TAG = $(SCIP_TAG)>> Makefile.local -+ #@echo UNIX_SULUM_VERSION = $(SULUM_TAG) >> Makefile.local -\ No newline at end of file -diff --git a/makefiles/Makefile.unix b/makefiles/Makefile.unix -index 003352c..b3f3ee1 100755 ---- a/makefiles/Makefile.unix -+++ b/makefiles/Makefile.unix -@@ -102,7 +102,7 @@ endif - SWIG_INC = $(GLPK_SWIG) $(CLP_SWIG) $(CBC_SWIG) $(SCIP_SWIG) $(SLM_SWIG) $(GUROBI_SWIG) $(CPLEX_SWIG) -DUSE_GLOP -DUSE_BOP - - # Compilation flags --DEBUG = -O4 -DNDEBUG -+DEBUG = -O3 -DNDEBUG - JNIDEBUG = -O1 -DNDEBUG - - # Check wether CBC/CLP need a coin subdir in library. -@@ -118,8 +118,8 @@ ifdef UNIX_CLP_DIR - endif - - ifeq ($(PLATFORM),LINUX) -- CCC = g++ -fPIC -std=c++0x -fwrapv -- DYNAMIC_LD = g++ -shared -+ CCC = clang++ -fPIC -std=c++11 -fwrapv -+ DYNAMIC_LD = clang++ -shared - CMAKE = cmake - ifeq ($(PTRLENGTH),64) - ARCH = -DARCH_K8 -@@ -181,9 +181,9 @@ ifeq ($(PLATFORM),LINUX) - JNI_LIB_EXT = so - LIB_SUFFIX = so - SWIG_LIB_SUFFIX = so -- LINK_CMD = g++ -shared -+ LINK_CMD = clang++ -shared - LINK_PREFIX = -o # Need the space. -- PRE_LIB = -Wl,-rpath $(OR_ROOT_FULL)/lib -L$(OR_ROOT_FULL)/lib -l -+ PRE_LIB = -Wl,-z,origin -Wl,-rpath=\$$ORIGIN - POST_LIB = - BISON = dependencies/install/bin/bison - FLEX = dependencies/install/bin/flex -diff --git a/src/constraint_solver/constraint_solveri.h b/src/constraint_solver/constraint_solveri.h -index 1a5efbd..8f1419c 100644 ---- a/src/constraint_solver/constraint_solveri.h -+++ b/src/constraint_solver/constraint_solveri.h -@@ -63,6 +63,7 @@ - #include "base/integral_types.h" - #include "base/logging.h" - #include "base/sysinfo.h" -+#include "base/casts.h" - #include "base/timer.h" - #include "base/join.h" - #include "base/sparse_hash.h" -@@ -252,9 +253,9 @@ inline uint64 Hash1(int value) { return Hash1(static_cast(value)); } - - inline uint64 Hash1(void* const ptr) { - #if defined(ARCH_K8) || defined(__powerpc64__) || defined(__aarch64__) -- return Hash1(reinterpret_cast(ptr)); -+ return Hash1(bit_cast(ptr)); - #else -- return Hash1(reinterpret_cast(ptr)); -+ return Hash1(bit_cast(ptr)); - #endif - } - diff --git a/third_party/mason/scripts/or-tools/5.1/script.sh b/third_party/mason/scripts/or-tools/5.1/script.sh deleted file mode 100644 index 344593e85..000000000 --- a/third_party/mason/scripts/or-tools/5.1/script.sh +++ /dev/null @@ -1,93 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=or-tools -MASON_VERSION=5.1 -MASON_LIB_FILE=lib/libortools.${MASON_DYNLIB_SUFFIX} - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/google/or-tools/archive/v${MASON_VERSION}.tar.gz \ - 3d30004e60acfb27776fc7a8d135adb2e1924dde - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/or-tools-${MASON_VERSION} -} - -function mason_prepare_compile { - ${MASON_DIR}/mason install gflags 2.1.2 - MASON_GFLAGS=$(${MASON_DIR}/mason prefix gflags 2.1.2) - ${MASON_DIR}/mason install protobuf 3.0.0 - MASON_PROTOBUF=$(${MASON_DIR}/mason prefix protobuf 3.0.0) - ${MASON_DIR}/mason install sparsehash 2.0.2 - MASON_SPARSEHASH=$(${MASON_DIR}/mason prefix sparsehash 2.0.2) -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -lortools -lz" -} - -function mason_compile { - - # The following patch to the build script disables some of the more useless - # and heavyweight parts of the build, like building the automake and autoconf - # .info docs with TeXinfo. - patch -N -p1 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - - export CXXFLAGS="${CXXFLAGS} -fpermissive" - export CXX="${MASON_CCACHE} ${CXX}" - export CC="${MASON_CCACHE} ${CC}" - export CFLAGS="${CFLAGS} -fpermissive" - - make missing_directories - mkdir -p $(pwd)/dependencies/install/lib - mkdir -p $(pwd)/dependencies/install/bin - mkdir -p $(pwd)/dependencies/install/include/google - # includes - ln -s ${MASON_GFLAGS}/include/gflags $(pwd)/dependencies/install/include/gflags - ln -s ${MASON_PROTOBUF}/include/google/protobuf $(pwd)/dependencies/install/include/google/protobuf - cp -r ${MASON_SPARSEHASH}/include/google/* $(pwd)/dependencies/install/include/google/ - cp -r ${MASON_SPARSEHASH}/include/sparsehash $(pwd)/dependencies/install/include/ - # programs - ln -s ${MASON_PROTOBUF}/bin/protoc $(pwd)/dependencies/install/bin/protoc - # libraries - ln -s ${MASON_GFLAGS}/lib/libgflags.a $(pwd)/dependencies/install/lib/libgflags.a - ln -s ${MASON_PROTOBUF}/lib/libprotobuf.a $(pwd)/dependencies/install/lib/libprotobuf.a - - make ortoolslibs -j${MASON_CONCURRENCY} - - if [[ $(uname -s) == "Darwin" ]] ; then - install_name_tool -id @loader_path/libortools.dylib lib/libortools.dylib - fi - - mkdir -p ${MASON_PREFIX}/lib/ - cp -r lib/libortools* ${MASON_PREFIX}/lib/ - - mkdir -p "${MASON_PREFIX}/include/or-tools/" - - for i in {algorithms,base,bop,constraint_solver,glop,graph,linear_solver,sat,util}; do - cp -r src/$i ${MASON_PREFIX}/include/or-tools/ - done - - for i in {algorithms,base,bop,constraint_solver,glop,graph,linear_solver,sat,util}; do - if [[ -d src/gen/$i ]]; then - cp -r src/gen/$i/*h ${MASON_PREFIX}/include/or-tools/$i/ || true - fi - done - -} - -function mason_static_libs { - : -} - - -echo $DIR - -mason_run "$@" diff --git a/third_party/mason/scripts/osm2pgsql/0.87.2/.travis.yml b/third_party/mason/scripts/osm2pgsql/0.87.2/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/osm2pgsql/0.87.2/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/osm2pgsql/0.87.2/patch.diff b/third_party/mason/scripts/osm2pgsql/0.87.2/patch.diff deleted file mode 100644 index 28e567b19..000000000 --- a/third_party/mason/scripts/osm2pgsql/0.87.2/patch.diff +++ /dev/null @@ -1,15 +0,0 @@ -Index: configure.ac -=================================================================== ---- configure.ac (revision 29411) -+++ configure.ac (working copy) -@@ -29,10 +29,6 @@ - dnl Find C++ compiler - AC_PROG_CXX - AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no) --if test "$HAVE_CXX" = "no" --then -- AC_MSG_ERROR([Could not find a c++ compiler]); --fi - - dnl AX_CFLAGS_WARN_ALL - dnl AX_CXXFLAGS_WARN_ALL diff --git a/third_party/mason/scripts/osm2pgsql/0.87.2/script.sh b/third_party/mason/scripts/osm2pgsql/0.87.2/script.sh deleted file mode 100755 index 822c6e780..000000000 --- a/third_party/mason/scripts/osm2pgsql/0.87.2/script.sh +++ /dev/null @@ -1,107 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=osm2pgsql -MASON_VERSION=0.87.2 -MASON_LIB_FILE=bin/osm2pgsql - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/openstreetmap/osm2pgsql/archive/0.87.2.tar.gz \ - f585876898e7cf48e1662c5e5a3c8b6787e0aa2b - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - # set up to fix libtool .la files - # https://github.com/mapbox/mason/issues/61 - if [[ $(uname -s) == 'Darwin' ]]; then - FIND="\/Users\/travis\/build\/mapbox\/mason" - else - FIND="\/home\/travis\/build\/mapbox\/mason" - fi - REPLACE="$(pwd)" - REPLACE=${REPLACE////\\/} - ${MASON_DIR}/mason install boost 1.57.0 - MASON_BOOST=$(${MASON_DIR}/mason prefix boost 1.57.0) - MASON_BOOST_LIBS=$(pwd)/mason_packages/.link/lib - ${MASON_DIR}/mason install boost_libsystem 1.57.0 - ${MASON_DIR}/mason link boost_libsystem 1.57.0 - ${MASON_DIR}/mason install boost_libthread 1.57.0 - ${MASON_DIR}/mason link boost_libthread 1.57.0 - MASON_BOOST_SYSTEM=$(${MASON_DIR}/mason prefix boost_libsystem 1.57.0) - ${MASON_DIR}/mason install boost_libfilesystem 1.57.0 - ${MASON_DIR}/mason link boost_libfilesystem 1.57.0 - ${MASON_DIR}/mason install libxml2 2.9.2 - MASON_XML2=$(${MASON_DIR}/mason prefix libxml2 2.9.2) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_XML2}/bin/xml2-config - ${MASON_DIR}/mason install geos 3.4.2 - MASON_GEOS=$(${MASON_DIR}/mason prefix geos 3.4.2) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_GEOS}/bin/geos-config - ${MASON_DIR}/mason install proj 4.8.0 - MASON_PROJ=$(${MASON_DIR}/mason prefix proj 4.8.0) - ${MASON_DIR}/mason install bzip 1.0.6 - MASON_BZIP=$(${MASON_DIR}/mason prefix bzip 1.0.6) - # depends on sudo apt-get install zlib1g-dev - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) - ${MASON_DIR}/mason install protobuf 2.6.1 - MASON_PROTOBUF=$(${MASON_DIR}/mason prefix protobuf 2.6.1) - ${MASON_DIR}/mason install protobuf_c 1.1.0 - MASON_PROTOBUF_C=$(${MASON_DIR}/mason prefix protobuf_c 1.1.0) - ${MASON_DIR}/mason install libpq 9.4.1 - MASON_LIBPQ=$(${MASON_DIR}/mason prefix libpq 9.4.1) -} - -function mason_compile { - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p0 < ./patch.diff - NOCONFIGURE=1 ./autogen.sh - # --without-lockfree to workaround https://github.com/openstreetmap/osm2pgsql/issues/196 - # parse-o5m.cpp:405:58: error: invalid suffix on literal - LDFLAGS="-L${MASON_BOOST_LIBS} -lboost_thread ${LDFLAGS}" - if [[ $(uname -s) == 'Linux' ]]; then - LDFLAGS="${LDFLAGS} -lrt" - fi - CXXFLAGS="-Wno-reserved-user-defined-literal ${CXXFLAGS} -I${MASON_PROTOBUF_C}/include" LDFLAGS="${LDFLAGS}" ./configure \ - --enable-static --disable-shared \ - ${MASON_HOST_ARG} \ - --prefix=${MASON_PREFIX} \ - --without-lockfree \ - --with-boost=${MASON_BOOST} \ - --with-boost-libdir=${MASON_BOOST_LIBS} \ - --with-libxml2=${MASON_XML2}/bin/xml2-config \ - --with-zlib=${MASON_ZLIB} \ - --with-bzip2=${MASON_BZIP} \ - --with-geos=${MASON_GEOS}/bin/geos-config \ - --with-proj=${MASON_PROJ} \ - --with-protobuf-c=${MASON_PROTOBUF_C} \ - --with-protobuf-c-inc=${MASON_PROTOBUF_C}/include \ - --with-protobuf-c-lib=${MASON_PROTOBUF_C}/lib \ - --with-postgresql=${MASON_LIBPQ}/bin/pg_config - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/osm2pgsql/0.88.1/.travis.yml b/third_party/mason/scripts/osm2pgsql/0.88.1/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/osm2pgsql/0.88.1/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/osm2pgsql/0.88.1/patch.diff b/third_party/mason/scripts/osm2pgsql/0.88.1/patch.diff deleted file mode 100644 index 28e567b19..000000000 --- a/third_party/mason/scripts/osm2pgsql/0.88.1/patch.diff +++ /dev/null @@ -1,15 +0,0 @@ -Index: configure.ac -=================================================================== ---- configure.ac (revision 29411) -+++ configure.ac (working copy) -@@ -29,10 +29,6 @@ - dnl Find C++ compiler - AC_PROG_CXX - AC_CHECK_PROG(HAVE_CXX, $CXX, yes, no) --if test "$HAVE_CXX" = "no" --then -- AC_MSG_ERROR([Could not find a c++ compiler]); --fi - - dnl AX_CFLAGS_WARN_ALL - dnl AX_CXXFLAGS_WARN_ALL diff --git a/third_party/mason/scripts/osm2pgsql/0.88.1/script.sh b/third_party/mason/scripts/osm2pgsql/0.88.1/script.sh deleted file mode 100755 index 7650d5e9f..000000000 --- a/third_party/mason/scripts/osm2pgsql/0.88.1/script.sh +++ /dev/null @@ -1,111 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=osm2pgsql -MASON_VERSION=0.88.1 -MASON_LIB_FILE=bin/osm2pgsql - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/openstreetmap/osm2pgsql/archive/0.88.1.tar.gz \ - 24d58477f3f9b8406af115f9eb2bab51ac64e09d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - # set up to fix libtool .la files - # https://github.com/mapbox/mason/issues/61 - if [[ $(uname -s) == 'Darwin' ]]; then - FIND="\/Users\/travis\/build\/mapbox\/mason" - else - FIND="\/home\/travis\/build\/mapbox\/mason" - fi - REPLACE="$(pwd)" - REPLACE=${REPLACE////\\/} - ${MASON_DIR}/mason install boost 1.57.0 - MASON_BOOST=$(${MASON_DIR}/mason prefix boost 1.57.0) - MASON_BOOST_LIBS=$(pwd)/mason_packages/.link/lib - ${MASON_DIR}/mason install boost_libsystem 1.57.0 - ${MASON_DIR}/mason link boost_libsystem 1.57.0 - ${MASON_DIR}/mason install boost_libthread 1.57.0 - ${MASON_DIR}/mason link boost_libthread 1.57.0 - MASON_BOOST_SYSTEM=$(${MASON_DIR}/mason prefix boost_libsystem 1.57.0) - ${MASON_DIR}/mason install boost_libfilesystem 1.57.0 - ${MASON_DIR}/mason link boost_libfilesystem 1.57.0 - ${MASON_DIR}/mason install libxml2 2.9.2 - ${MASON_DIR}/mason link libxml2 2.9.2 - MASON_XML2=$(${MASON_DIR}/mason prefix libxml2 2.9.2) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_XML2}/bin/xml2-config - ${MASON_DIR}/mason install geos 3.4.2 - ${MASON_DIR}/mason link geos 3.4.2 - MASON_LINKED_HEADERS=$(pwd)/mason_packages/.link/include - MASON_GEOS=$(${MASON_DIR}/mason prefix geos 3.4.2) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_GEOS}/bin/geos-config - ${MASON_DIR}/mason install proj 4.8.0 - MASON_PROJ=$(${MASON_DIR}/mason prefix proj 4.8.0) - ${MASON_DIR}/mason install bzip 1.0.6 - MASON_BZIP=$(${MASON_DIR}/mason prefix bzip 1.0.6) - # depends on sudo apt-get install zlib1g-dev - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) - ${MASON_DIR}/mason install protobuf 2.6.1 - MASON_PROTOBUF=$(${MASON_DIR}/mason prefix protobuf 2.6.1) - ${MASON_DIR}/mason install protobuf_c 1.1.0 - MASON_PROTOBUF_C=$(${MASON_DIR}/mason prefix protobuf_c 1.1.0) - ${MASON_DIR}/mason install libpq 9.4.1 - MASON_LIBPQ=$(${MASON_DIR}/mason prefix libpq 9.4.1) -} - -function mason_compile { - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p0 < ./patch.diff - NOCONFIGURE=1 ./autogen.sh - # --without-lockfree to workaround https://github.com/openstreetmap/osm2pgsql/issues/196 - # parse-o5m.cpp:405:58: error: invalid suffix on literal - LDFLAGS="-L${MASON_BOOST_LIBS} -lboost_thread ${LDFLAGS}" - if [[ $(uname -s) == 'Linux' ]]; then - LDFLAGS="${LDFLAGS} -lrt" - fi - # -I${MASON_GEOS_HEADER} works around geos-config hardcoding the platform - which breaks if built on OS X 10.10 but building on 10.11 - CFLAGS="-I${MASON_LINKED_HEADERS} -I${MASON_LINKED_HEADERS}/libxml2 ${CFLAGS}" CXXFLAGS="-I${MASON_LINKED_HEADERS} -I${MASON_LINKED_HEADERS}/libxml2 -Wno-reserved-user-defined-literal ${CXXFLAGS} -I${MASON_PROTOBUF_C}/include" LDFLAGS="${LDFLAGS}" ./configure \ - --enable-static --disable-shared \ - ${MASON_HOST_ARG} \ - --prefix=${MASON_PREFIX} \ - --without-lockfree \ - --with-boost=${MASON_BOOST} \ - --with-boost-libdir=${MASON_BOOST_LIBS} \ - --with-libxml2=${MASON_XML2}/bin/xml2-config \ - --with-zlib=${MASON_ZLIB} \ - --with-bzip2=${MASON_BZIP} \ - --with-geos=${MASON_GEOS}/bin/geos-config \ - --with-proj=${MASON_PROJ} \ - --with-protobuf-c=${MASON_PROTOBUF_C} \ - --with-protobuf-c-inc=${MASON_PROTOBUF_C}/include \ - --with-protobuf-c-lib=${MASON_PROTOBUF_C}/lib \ - --with-postgresql=${MASON_LIBPQ}/bin/pg_config - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/osmium-tool/1.0.0/.travis.yml b/third_party/mason/scripts/osmium-tool/1.0.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/osmium-tool/1.0.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/osmium-tool/1.0.0/script.sh b/third_party/mason/scripts/osmium-tool/1.0.0/script.sh deleted file mode 100755 index 20933525b..000000000 --- a/third_party/mason/scripts/osmium-tool/1.0.0/script.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=osmium-tool -MASON_VERSION=1.0.0 -MASON_LIB_FILE=bin/osmium - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/osmcode/osmium-tool/tarball/v1.0.0 \ - a5a1822267e1832e27e805ff9bcfe9217a4f82ad - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/osmcode-osmium-tool-06bcd2c -} - -function mason_prepare_compile { - echo ${MASON_ROOT}/.build - cd ${MASON_ROOT} - OSMIUM_INCLUDE_DIR=${MASON_ROOT}/osmcode-libosmium-5e4af90/include - curl --retry 3 -f -# -L "https://github.com/osmcode/libosmium/tarball/v2.0.0" -o osmium.tar.gz - tar -xzf osmium.tar.gz - - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install boost 1.57.0 - ${MASON_DIR}/mason link boost 1.57.0 - ${MASON_DIR}/mason install boost_libprogram_options 1.57.0 - ${MASON_DIR}/mason link boost_libprogram_options 1.57.0 - ${MASON_DIR}/mason install protobuf 2.6.1 - ${MASON_DIR}/mason link protobuf 2.6.1 - ${MASON_DIR}/mason install zlib 1.2.8 - ${MASON_DIR}/mason link zlib 1.2.8 - ${MASON_DIR}/mason install expat 2.1.0 - ${MASON_DIR}/mason link expat 2.1.0 - ${MASON_DIR}/mason install osmpbf 1.3.3 - ${MASON_DIR}/mason link osmpbf 1.3.3 - ${MASON_DIR}/mason install bzip 1.0.6 - ${MASON_DIR}/mason link bzip 1.0.6 -} - -function mason_compile { - mkdir build - cd build - CMAKE_PREFIX_PATH=${MASON_ROOT}/.link \ - cmake \ - -DOSMIUM_INCLUDE_DIR=${OSMIUM_INCLUDE_DIR} \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - .. - make install -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/osmium-tool/1.3.0/.travis.yml b/third_party/mason/scripts/osmium-tool/1.3.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/osmium-tool/1.3.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/osmium-tool/1.3.0/script.sh b/third_party/mason/scripts/osmium-tool/1.3.0/script.sh deleted file mode 100755 index 9e773bb8e..000000000 --- a/third_party/mason/scripts/osmium-tool/1.3.0/script.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=osmium-tool -MASON_VERSION=1.3.0 -MASON_LIB_FILE=bin/osmium - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/osmcode/osmium-tool/tarball/v1.3.0 \ - b7be94a999061bb0dbfb04451cb2b2a8a09c1d23 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/osmcode-osmium-tool-24de9be -} - -function mason_prepare_compile { - echo ${MASON_ROOT}/.build - cd ${MASON_ROOT} - OSMIUM_INCLUDE_DIR=${MASON_ROOT}/osmcode-libosmium-0ff2780/include - curl --retry 3 -f -# -L "https://github.com/osmcode/libosmium/tarball/v2.5.4" -o osmium.tar.gz - tar -xzf osmium.tar.gz - - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install boost 1.57.0 - ${MASON_DIR}/mason link boost 1.57.0 - ${MASON_DIR}/mason install boost_libprogram_options 1.57.0 - ${MASON_DIR}/mason link boost_libprogram_options 1.57.0 - ${MASON_DIR}/mason install protobuf 2.6.1 - ${MASON_DIR}/mason link protobuf 2.6.1 - ${MASON_DIR}/mason install zlib 1.2.8 - ${MASON_DIR}/mason link zlib 1.2.8 - ${MASON_DIR}/mason install expat 2.1.0 - ${MASON_DIR}/mason link expat 2.1.0 - ${MASON_DIR}/mason install osmpbf 1.3.3 - ${MASON_DIR}/mason link osmpbf 1.3.3 - ${MASON_DIR}/mason install bzip 1.0.6 - ${MASON_DIR}/mason link bzip 1.0.6 -} - -function mason_compile { - mkdir build - cd build - CMAKE_PREFIX_PATH=${MASON_ROOT}/.link \ - cmake \ - -DOSMIUM_INCLUDE_DIR=${OSMIUM_INCLUDE_DIR} \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - .. - make install -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/osmium-tool/1.3.1/.travis.yml b/third_party/mason/scripts/osmium-tool/1.3.1/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/osmium-tool/1.3.1/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/osmium-tool/1.3.1/script.sh b/third_party/mason/scripts/osmium-tool/1.3.1/script.sh deleted file mode 100755 index d631dc1f3..000000000 --- a/third_party/mason/scripts/osmium-tool/1.3.1/script.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=osmium-tool -MASON_VERSION=1.3.1 -MASON_LIB_FILE=bin/osmium - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/osmcode/osmium-tool/tarball/v1.3.1 \ - 1718acc22f3d92d74967653d2194386d61746db3 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/osmcode-osmium-tool-52ee5b7 -} - -function mason_prepare_compile { - BOOST_VERSION=1.61.0 - ${MASON_DIR}/mason install cmake 3.5.2 - MASON_CMAKE=$(${MASON_DIR}/mason prefix cmake 3.5.2) - ${MASON_DIR}/mason install boost ${BOOST_VERSION} - ${MASON_DIR}/mason link boost ${BOOST_VERSION} - ${MASON_DIR}/mason install boost_libprogram_options ${BOOST_VERSION} - ${MASON_DIR}/mason link boost_libprogram_options ${BOOST_VERSION} - ${MASON_DIR}/mason install libosmium 2.8.0 - ${MASON_DIR}/mason link libosmium 2.8.0 - ${MASON_DIR}/mason install protozero 1.4.0 - ${MASON_DIR}/mason link protozero 1.4.0 - ${MASON_DIR}/mason install utfcpp 2.3.4 - ${MASON_DIR}/mason link utfcpp 2.3.4 - ${MASON_DIR}/mason install zlib 1.2.8 - ${MASON_DIR}/mason link zlib 1.2.8 - ${MASON_DIR}/mason install expat 2.1.0 - ${MASON_DIR}/mason link expat 2.1.0 - ${MASON_DIR}/mason install bzip2 1.0.6 - ${MASON_DIR}/mason link bzip2 1.0.6 - MASON_HOME=${MASON_ROOT}/.link/ - -} - -function mason_compile { - rm -rf ./build/ - mkdir ./build - cd ./build - echo $MASON_HOME - ${MASON_CMAKE}/bin/cmake ../ \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DCMAKE_BUILD_TYPE=Release \ - -DBoost_NO_SYSTEM_PATHS=ON \ - -DBoost_USE_STATIC_LIBS=ON \ - -DOSMIUM_INCLUDE_DIR=${MASON_HOME}/include \ - -DCMAKE_INCLUDE_PATH=${MASON_HOME}/include \ - -DCMAKE_LIBRARY_PATH=${MASON_HOME}/lib - make install -} - -function mason_clean { - make clean -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/osmium-tool/1.5.1/.travis.yml b/third_party/mason/scripts/osmium-tool/1.5.1/.travis.yml deleted file mode 100644 index ebbe5fc07..000000000 --- a/third_party/mason/scripts/osmium-tool/1.5.1/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - - pandoc - -script: -- if [[ $(uname -s) == 'Darwin' ]]; then brew install pandoc || true; fi; -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/osmium-tool/1.5.1/script.sh b/third_party/mason/scripts/osmium-tool/1.5.1/script.sh deleted file mode 100755 index abfa1e030..000000000 --- a/third_party/mason/scripts/osmium-tool/1.5.1/script.sh +++ /dev/null @@ -1,80 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=osmium-tool -MASON_VERSION=1.5.1 -MASON_LIB_FILE=bin/osmium - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/osmcode/${MASON_NAME}/archive/v${MASON_VERSION}.tar.gz \ - 0071430132d32936bd2683cf84d3e0a39e379389 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - CCACHE_VERSION=3.3.1 - ${MASON_DIR}/mason install ccache ${CCACHE_VERSION} - MASON_CCACHE=$(${MASON_DIR}/mason prefix ccache ${CCACHE_VERSION}) - ${MASON_DIR}/mason install cmake 3.7.1 - ${MASON_DIR}/mason link cmake 3.7.1 - ${MASON_DIR}/mason install utfcpp 2.3.4 - ${MASON_DIR}/mason link utfcpp 2.3.4 - ${MASON_DIR}/mason install protozero 1.5.1 - ${MASON_DIR}/mason link protozero 1.5.1 - ${MASON_DIR}/mason install rapidjson 2016-07-20-369de87 - ${MASON_DIR}/mason link rapidjson 2016-07-20-369de87 - ${MASON_DIR}/mason install libosmium 2.11.0 - ${MASON_DIR}/mason link libosmium 2.11.0 - BOOST_VERSION=1.63.0 - ${MASON_DIR}/mason install boost ${BOOST_VERSION} - ${MASON_DIR}/mason link boost ${BOOST_VERSION} - ${MASON_DIR}/mason install boost_libprogram_options ${BOOST_VERSION} - ${MASON_DIR}/mason link boost_libprogram_options ${BOOST_VERSION} - ${MASON_DIR}/mason install zlib 1.2.8 - ${MASON_DIR}/mason link zlib 1.2.8 - ${MASON_DIR}/mason install expat 2.2.0 - ${MASON_DIR}/mason link expat 2.2.0 - ${MASON_DIR}/mason install bzip2 1.0.6 - ${MASON_DIR}/mason link bzip2 1.0.6 -} - -function mason_compile { - rm -rf build - mkdir -p build - cd build - CMAKE_PREFIX_PATH=${MASON_ROOT}/.link \ - ${MASON_ROOT}/.link/bin/cmake \ - -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DCMAKE_CXX_COMPILER_LAUNCHER="${MASON_CCACHE}/bin/ccache" \ - -DCMAKE_BUILD_TYPE=Release \ - -DBoost_NO_SYSTEM_PATHS=ON \ - -DBoost_USE_STATIC_LIBS=ON \ - .. - # limit concurrency on travis to avoid heavy jobs being killed - if [[ ${TRAVIS_OS_NAME:-} ]]; then - make VERBOSE=1 -j4 - else - make VERBOSE=1 -j${MASON_CONCURRENCY} - fi - make install - -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/osmpbf/1.3.3/.travis.yml b/third_party/mason/scripts/osmpbf/1.3.3/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/osmpbf/1.3.3/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/osmpbf/1.3.3/script.sh b/third_party/mason/scripts/osmpbf/1.3.3/script.sh deleted file mode 100755 index 22f133a07..000000000 --- a/third_party/mason/scripts/osmpbf/1.3.3/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=osmpbf -MASON_VERSION=1.3.3 -MASON_LIB_FILE=lib/libosmpbf.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/scrosby/OSM-binary/tarball/v1.3.3 \ - ae165e355532e37f1ca60a36395abef959a12a81 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/scrosby-OSM-binary-72cd8e5 -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install protobuf 2.6.1 - ${MASON_DIR}/mason link protobuf 2.6.1 -} - -function mason_compile { - PROTOC="${MASON_ROOT}/.link/bin/protoc" \ - LDFLAGS="-L${MASON_ROOT}/.link/lib" \ - CXXFLAGS="-I${MASON_ROOT}/.link/include" \ - make -C src - - PREFIX="${MASON_PREFIX}" make -C src install -} - -function mason_clean { - make clean -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_lflags { - echo "-L${MASON_PREFIX}/lib" -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/osrm/0.4.1/.travis.yml b/third_party/mason/scripts/osrm/0.4.1/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/osrm/0.4.1/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/osrm/0.4.1/script.sh b/third_party/mason/scripts/osrm/0.4.1/script.sh deleted file mode 100755 index 2410c4ae3..000000000 --- a/third_party/mason/scripts/osrm/0.4.1/script.sh +++ /dev/null @@ -1,86 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=osrm -MASON_VERSION=0.4.1 -MASON_LIB_FILE=lib/libOSRM.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/Project-OSRM/osrm-backend/archive/v${MASON_VERSION}.tar.gz \ - 71e553834fa571854294626d4f4d5000ae530ed6 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/osrm-backend-${MASON_VERSION} -} - -function dep() { - ${MASON_DIR}/mason install $1 $2 - ${MASON_DIR}/mason link $1 $2 -} - -function all_deps() { - dep cmake 3.2.2 & - dep lua 5.3.0 & - dep luabind dev & - dep boost 1.57.0 & - dep boost_libsystem 1.57.0 & - dep boost_libthread 1.57.0 & - dep boost_libfilesystem 1.57.0 & - dep boost_libprogram_options 1.57.0 & - dep boost_libregex 1.57.0 & - dep boost_libiostreams 1.57.0 & - dep boost_libtest 1.57.0 & - dep boost_libdate_time 1.57.0 & - dep expat 2.1.0 & - dep stxxl 1.4.1 & - dep osmpbf 1.3.3 & - dep protobuf 2.6.1 & - dep bzip 1.0.6 & - dep zlib system & - dep tbb 43_20150316 & - wait -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - all_deps - MASON_HOME=$(pwd)/mason_packages/.link - PATH=${MASON_HOME}/bin:$PATH - PKG_CONFIG_PATH=${MASON_HOME}/lib/pkgconfig - LINK_FLAGS="" - if [[ $(uname -s) == 'Linux' ]]; then - LINK_FLAGS="${LINK_FLAGS} "'-Wl,-z,origin -Wl,-rpath=\$ORIGIN' - fi -} - -function mason_compile { - mkdir build - cd build - cmake - cmake ../ -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DBoost_NO_SYSTEM_PATHS=ON \ - -DTBB_INSTALL_DIR=${MASON_HOME} \ - -DCMAKE_INCLUDE_PATH=${MASON_HOME}/include \ - -DCMAKE_LIBRARY_PATH=${MASON_HOME}/lib \ - -DCMAKE_BUILD_TYPE=Release \ - -DCMAKE_EXE_LINKER_FLAGS="${LINK_FLAGS}" - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -lOSRM" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/parallel/20160422/.travis.yml b/third_party/mason/scripts/parallel/20160422/.travis.yml deleted file mode 100644 index a2a217964..000000000 --- a/third_party/mason/scripts/parallel/20160422/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - - os: linux - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/parallel/20160422/script.sh b/third_party/mason/scripts/parallel/20160422/script.sh deleted file mode 100755 index f49c95218..000000000 --- a/third_party/mason/scripts/parallel/20160422/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=parallel -MASON_VERSION=20160422 -MASON_LIB_FILE=bin/parallel - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://ftp.gnu.org/gnu/${MASON_NAME}/${MASON_NAME}-${MASON_VERSION}.tar.bz2 \ - 032c35aaecc65aa1298b33c48f0a4418041771e4 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} \ - --disable-dependency-tracking - - make -j${MASON_CONCURRENCY} - make install -} - - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/pixelmatch/0.10.0/.travis.yml b/third_party/mason/scripts/pixelmatch/0.10.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/pixelmatch/0.10.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/pixelmatch/0.10.0/script.sh b/third_party/mason/scripts/pixelmatch/0.10.0/script.sh deleted file mode 100755 index 5a2dc9f04..000000000 --- a/third_party/mason/scripts/pixelmatch/0.10.0/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=pixelmatch -MASON_VERSION=0.10.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/pixelmatch-cpp/archive/v${MASON_VERSION}.tar.gz \ - cfcacf7e910c43ee0570bd069c42026095bf28ae - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/pixelmatch-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include - cp -rv include ${MASON_PREFIX} - cp -v README.md LICENSE.txt ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/pixelmatch/0.9.0/.travis.yml b/third_party/mason/scripts/pixelmatch/0.9.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/pixelmatch/0.9.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/pixelmatch/0.9.0/script.sh b/third_party/mason/scripts/pixelmatch/0.9.0/script.sh deleted file mode 100755 index af019f7f7..000000000 --- a/third_party/mason/scripts/pixelmatch/0.9.0/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=pixelmatch -MASON_VERSION=0.9.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/pixelmatch-cpp/archive/v${MASON_VERSION}.tar.gz \ - 3a571d8ecf5247feffc239975b44e11b33c387df - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/pixelmatch-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/*.hpp ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE.txt ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/pixman/0.32.6/.travis.yml b/third_party/mason/scripts/pixman/0.32.6/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/pixman/0.32.6/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/pixman/0.32.6/script.sh b/third_party/mason/scripts/pixman/0.32.6/script.sh deleted file mode 100755 index 4fc30b378..000000000 --- a/third_party/mason/scripts/pixman/0.32.6/script.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=pixman -MASON_VERSION=0.32.6 -MASON_LIB_FILE=lib/libpixman-1.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://cairographics.org/releases/pixman-${MASON_VERSION}.tar.gz \ - ef6a79a704290fa28838d02faad3914fe9cbc895 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --disable-mmx \ - --disable-ssse3 \ - --disable-libpng \ - --disable-gtk - - # The -i and -k flags are to workaround osx bug in pixman tests: Undefined symbols for architecture x86_64: "_prng_state - make -j${MASON_CONCURRENCY} -i -k - make install -i -k -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo -L${MASON_PREFIX}/lib -ljpeg -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/pixman/0.34.0/.travis.yml b/third_party/mason/scripts/pixman/0.34.0/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/pixman/0.34.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/pixman/0.34.0/script.sh b/third_party/mason/scripts/pixman/0.34.0/script.sh deleted file mode 100755 index 806aa52e2..000000000 --- a/third_party/mason/scripts/pixman/0.34.0/script.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=pixman -MASON_VERSION=0.34.0 -MASON_LIB_FILE=lib/libpixman-1.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://cairographics.org/releases/pixman-${MASON_VERSION}.tar.gz \ - 022e9e5856f4c5a8c9bdea3996c6b199683fce78 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking \ - --disable-mmx \ - --disable-ssse3 \ - --disable-libpng \ - --disable-gtk - - # The -i and -k flags are to workaround osx bug in pixman tests: Undefined symbols for architecture x86_64: "_prng_state - make -j${MASON_CONCURRENCY} -i -k - make install -i -k -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - echo -L${MASON_PREFIX}/lib -ljpeg -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/pkgconfig/0.29.1/.travis.yml b/third_party/mason/scripts/pkgconfig/0.29.1/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/pkgconfig/0.29.1/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/pkgconfig/0.29.1/script.sh b/third_party/mason/scripts/pkgconfig/0.29.1/script.sh deleted file mode 100755 index b877eafc7..000000000 --- a/third_party/mason/scripts/pkgconfig/0.29.1/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=pkgconfig -MASON_VERSION=0.29.1 -MASON_LIB_FILE=bin/pkg-config - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://pkgconfig.freedesktop.org/releases/pkg-config-${MASON_VERSION}.tar.gz \ - e331df90bfd646f7b2ca1d66fb3c4fd74f4ec11c - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/pkg-config-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} ${MASON_HOST_ARG} \ - --disable-debug \ - --with-internal-glib \ - --disable-dependency-tracking \ - --with-pc-path=${MASON_PREFIX}/lib/pkgconfig - make -j${MASON_CONCURRENCY} - make install -} - -function mason_clean { - make clean -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/polylabel/1.0.2/.travis.yml b/third_party/mason/scripts/polylabel/1.0.2/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/polylabel/1.0.2/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/polylabel/1.0.2/script.sh b/third_party/mason/scripts/polylabel/1.0.2/script.sh deleted file mode 100755 index 1285e7766..000000000 --- a/third_party/mason/scripts/polylabel/1.0.2/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=polylabel -MASON_VERSION=1.0.2 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/polylabel/archive/ad5b37a15502507198f62d1ced608cebf0abf6cf.tar.gz \ - 7f982a293c5024ad170c8b54977189a995486615 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-ad5b37a15502507198f62d1ced608cebf0abf6cf -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v polylabel.hpp ${MASON_PREFIX}/include/mapbox/polylabel.hpp - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/postgis/2.2.2/.travis.yml b/third_party/mason/scripts/postgis/2.2.2/.travis.yml deleted file mode 100644 index 337bf97c9..000000000 --- a/third_party/mason/scripts/postgis/2.2.2/.travis.yml +++ /dev/null @@ -1,24 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: clang - env: CXX=clang++-3.5 CC=clang-3.5 - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - - llvm-toolchain-precise-3.5 - packages: - - clang-3.5 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/postgis/2.2.2/script.sh b/third_party/mason/scripts/postgis/2.2.2/script.sh deleted file mode 100755 index 28c1a4592..000000000 --- a/third_party/mason/scripts/postgis/2.2.2/script.sh +++ /dev/null @@ -1,140 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=postgis -MASON_VERSION=2.2.2 -MASON_LIB_FILE=bin/shp2pgsql - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/postgis/source/postgis-${MASON_VERSION}.tar.gz \ - e3a740fc6d9af5d567346f2729ee86af2b6da88c - - mason_extract_tar_gz - export MASON_BUILD_PATH=${MASON_ROOT}/.build/postgis-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install postgres 9.5.2 - MASON_POSTGRES=$(${MASON_DIR}/mason prefix postgres 9.5.2) - ${MASON_DIR}/mason install proj 4.9.2 - MASON_PROJ=$(${MASON_DIR}/mason prefix proj 4.9.2) - ${MASON_DIR}/mason install libxml2 2.9.3 - MASON_XML2=$(${MASON_DIR}/mason prefix libxml2 2.9.3) - ${MASON_DIR}/mason install geos 3.5.0 - MASON_GEOS=$(${MASON_DIR}/mason prefix geos 3.5.0) - if [[ $(uname -s) == 'Darwin' ]]; then - FIND="\/Users\/travis\/build\/mapbox\/mason" - else - FIND="\/home\/travis\/build\/mapbox\/mason" - fi - REPLACE="$(pwd)" - REPLACE=${REPLACE////\\/} - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PROJ}/lib/libproj.la - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_XML2}/lib/libxml2.la - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_XML2}/bin/xml2-config - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_GEOS}/lib/libgeos.la - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_GEOS}/lib/libgeos_c.la - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_GEOS}/bin/geos-config - - ${MASON_DIR}/mason install gdal 2.0.2 - MASON_GDAL=$(${MASON_DIR}/mason prefix gdal 2.0.2) - ln -sf ${MASON_GDAL}/include ${MASON_GDAL}/include/gdal - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_GDAL}/lib/libgdal.la - ${MASON_DIR}/mason install libtiff 4.0.6 - MASON_TIFF=$(${MASON_DIR}/mason prefix libtiff 4.0.6) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_TIFF}/lib/libtiff.la - ${MASON_DIR}/mason install jpeg_turbo 1.4.2 - MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg_turbo 1.4.2) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_JPEG}/lib/libjpeg.la - ${MASON_DIR}/mason install libpng 1.6.21 - MASON_PNG=$(${MASON_DIR}/mason prefix libpng 1.6.21) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_PNG}/lib/libpng.la - ${MASON_DIR}/mason install expat 2.1.1 - MASON_EXPAT=$(${MASON_DIR}/mason prefix expat 2.1.1) - perl -i -p -e "s/${FIND}/${REPLACE}/g;" ${MASON_EXPAT}/lib/libexpat.la - ${MASON_DIR}/mason install zlib system - MASON_ZLIB=$(${MASON_DIR}/mason prefix zlib system) - #${MASON_DIR}/mason install iconv system - #MASON_ICONV=$(${MASON_DIR}/mason prefix iconv system) -} - -function mason_compile { - export LDFLAGS="${LDFLAGS} \ - -L${MASON_GDAL}/lib -lgdal \ - -L${MASON_GEOS}/lib -lgeos_c -lgeos\ - -L${MASON_ZLIB}/lib -lz \ - -L${MASON_TIFF}/lib -ltiff \ - -L${MASON_JPEG}/lib -ljpeg \ - -L${MASON_PROJ}/lib -lproj \ - -L${MASON_PNG}/lib -lpng \ - -L${MASON_EXPAT}/lib -lexpat \ - -L${MASON_PROJ}/lib -lproj \ - -L${MASON_XML2}/lib -lxml2" - export CFLAGS="${CFLAGS} -I$(pwd)/liblwgeom/ \ - -I$(pwd)/raster/ -I$(pwd)/raster/rt_core/ \ - -I${MASON_TIFF}/include \ - -I${MASON_JPEG}/include \ - -I${MASON_PROJ}/include \ - -I${MASON_PNG}/include \ - -I${MASON_EXPAT}/include \ - -I${MASON_GDAL}/include \ - -I${MASON_POSTGRES}/include/server \ - -I${MASON_GEOS}/include \ - -I${MASON_PROJ}/include \ - -I${MASON_XML2}/include/libxml2" - - if [[ $(uname -s) == 'Darwin' ]]; then - export LDFLAGS="${LDFLAGS} -Wl,-lc++ -Wl,${MASON_GDAL}/lib/libgdal.a -Wl,${MASON_POSTGRES}/lib/libpq.a -liconv" - else - export LDFLAGS="${LDFLAGS} ${MASON_GDAL}/lib/libgdal.a -lgeos_c -lgeos -lxml2 -lproj -lexpat -lpng -ltiff -ljpeg ${MASON_POSTGRES}/lib/libpq.a -pthread -ldl -lz -lstdc++ -lm" - fi - - - MASON_LIBPQ_PATH=${MASON_POSTGRES}/lib/libpq.a - MASON_LIBPQ_PATH2=${MASON_LIBPQ_PATH////\\/} - perl -i -p -e "s/\-lpq/${MASON_LIBPQ_PATH2} -pthread/g;" configure - perl -i -p -e "s/librtcore\.a/librtcore\.a \.\.\/\.\.\/liblwgeom\/\.libs\/liblwgeom\.a/g;" raster/loader/Makefile.in - - if [[ $(uname -s) == 'Linux' ]]; then - # help initGEOS configure check - perl -i -p -e "s/\-lgeos_c /\-lgeos_c \-lgeos \-lstdc++ \-lm /g;" configure - # help GDALAllRegister configure check - CMD="data=open('./configure','r').read();open('./configure','w')" - CMD="${CMD}.write(data.replace('\`\$GDAL_CONFIG --libs\`','\"-lgdal -lgeos_c -lgeos -lxml2 -lproj -lexpat -lpng -ltiff -ljpeg ${MASON_POSTGRES}/lib/libpq.a -pthread -ldl -lz -lstdc++ -lm\"'))" - python -c "${CMD}" - fi - - ./configure \ - --enable-static --disable-shared \ - --prefix=$(mktemp -d) \ - ${MASON_HOST_ARG} \ - --with-projdir=${MASON_PROJ} \ - --with-geosconfig=${MASON_GEOS}/bin/geos-config \ - --with-pgconfig=${MASON_POSTGRES}/bin/pg_config \ - --with-xml2config=${MASON_XML2}/bin/xml2-config \ - --with-gdalconfig=${MASON_GDAL}/bin/gdal-config \ - --without-json \ - --without-gui \ - --with-topology \ - --with-raster \ - --with-sfcgal=no \ - --without-sfcgal \ - --disable-nls || (cat config.log && exit 1) - # -j${MASON_CONCURRENCY} disabled due to https://trac.osgeo.org/postgis/ticket/3345 - make LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS" - make install LDFLAGS="$LDFLAGS" CFLAGS="$CFLAGS" - # the meat of postgis installs into postgres directory - # so we actually want to package postgres with the postgis stuff - # inside, so here we symlink it - mkdir -p $(dirname $MASON_PREFIX) - ln -sf ${MASON_POSTGRES} ${MASON_PREFIX} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/postgis/2.2.2/test.sh b/third_party/mason/scripts/postgis/2.2.2/test.sh deleted file mode 100755 index 6a92e0697..000000000 --- a/third_party/mason/scripts/postgis/2.2.2/test.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash - -set -ue - -if [[ ${PGDATA:-unset} != "unset" ]] || [[ ${PGHOST:-unset} != "unset" ]] || [[ ${PGTEMP_DIR:-unset} != "unset" ]]; then - echo "ERROR: this script deletes \${PGDATA}, \${PGHOST}, and \${PGTEMP_DIR}." - echo "So it will not run if you have these set in your environment" - exit 1 -fi - -export GDAL_PREFIX=$(../../../mason prefix gdal 2.0.2) -# make sure we can init, start, create db, and stop -export PGDATA=./local-postgres -# PGHOST must start with / so therefore must be absolute path -export PGHOST=$(pwd)/local-unix-socket -export PGTEMP_DIR=$(pwd)/local-tmp -export PGPORT=1111 - -# cleanup -function cleanup() { - if [[ -d ${PGDATA} ]]; then rm -r ${PGDATA}; fi - if [[ -d ${PGTEMP_DIR} ]]; then rm -r ${PGTEMP_DIR}; fi - if [[ -d ${PGHOST} ]]; then rm -r ${PGHOST}; fi - rm -f postgres.log - rm -f seattle_washington_water_coast* - rm -f seattle_washington.water.coast* -} - -function setup() { - mkdir ${PGTEMP_DIR} - mkdir ${PGHOST} -} - -function finish { - ./mason_packages/.link/bin/pg_ctl -w stop - cleanup -} - -function pause(){ - read -p "$*" -} - -trap finish EXIT - -cleanup -setup - -if [[ ! -d ./mason_packages/.link ]]; then - ./script.sh link -fi - -./mason_packages/.link/bin/initdb -export PATH=./mason_packages/.link/bin/:${PATH} -export GDAL_DATA=${GDAL_PREFIX}/share/gdal -postgres -k $PGHOST > postgres.log & -sleep 2 -cat postgres.log -createdb template_postgis -psql -l -psql template_postgis -c "CREATE TABLESPACE temp_disk LOCATION '${PGTEMP_DIR}';" -psql template_postgis -c "SET temp_tablespaces TO 'temp_disk';" -psql template_postgis -c "CREATE EXTENSION postgis;" -psql template_postgis -c "SELECT PostGIS_Full_Version();" -curl -OL "https://s3.amazonaws.com/metro-extracts.mapzen.com/seattle_washington.water.coastline.zip" -unzip -o seattle_washington.water.coastline.zip -createdb test-osm -T template_postgis -shp2pgsql -s 4326 seattle_washington_water_coast.shp coast | psql test-osm -psql test-osm -c "SELECT count(*) from coast;" \ No newline at end of file diff --git a/third_party/mason/scripts/postgres/9.5.2/.travis.yml b/third_party/mason/scripts/postgres/9.5.2/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/postgres/9.5.2/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/postgres/9.5.2/patch.diff b/third_party/mason/scripts/postgres/9.5.2/patch.diff deleted file mode 100644 index ae2f06a46..000000000 --- a/third_party/mason/scripts/postgres/9.5.2/patch.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- src/include/pg_config_manual.h 2013-10-07 20:17:38.000000000 -0700 -+++ src/include/pg_config_manual.h 2014-03-08 21:29:48.000000000 -0800 -@@ -144,7 +144,7 @@ - * here's where to twiddle it. You can also override this at runtime - * with the postmaster's -k switch. - */ --#define DEFAULT_PGSOCKET_DIR "/tmp" -+#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql" - - /* - * The random() function is expected to yield values between 0 and diff --git a/third_party/mason/scripts/postgres/9.5.2/script.sh b/third_party/mason/scripts/postgres/9.5.2/script.sh deleted file mode 100755 index 0796ca415..000000000 --- a/third_party/mason/scripts/postgres/9.5.2/script.sh +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=postgres -MASON_VERSION=9.5.2 -MASON_LIB_FILE=bin/psql - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://ftp.postgresql.org/pub/source/v${MASON_VERSION}/postgresql-${MASON_VERSION}.tar.bz2 \ - 9c7bd5c1c601075ff6d5ea7615f9461d5b1f4c88 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/postgresql-${MASON_VERSION} -} - -function mason_compile { - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - mason_step "Loading patch" - patch src/include/pg_config_manual.h ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - fi - - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-thread-safety \ - --enable-largefile \ - --with-python \ - --with-zlib \ - --without-bonjour \ - --without-openssl \ - --without-pam \ - --without-gssapi \ - --without-ossp-uuid \ - --without-readline \ - --without-ldap \ - --without-libxml \ - --without-libxslt \ - --without-selinux \ - --without-perl \ - --without-tcl \ - --disable-rpath \ - --disable-debug \ - --disable-profiling \ - --disable-coverage \ - --disable-dtrace \ - --disable-depend \ - --disable-cassert - - make -j${MASON_CONCURRENCY} -C src/interfaces/libpq/ install - rm -f src/interfaces/libpq{*.so*,*.dylib} - rm -f ${MASON_PREFIX}/lib/libpq{*.so*,*.dylib} - MASON_LIBPQ_PATH=${MASON_PREFIX}/lib/libpq.a - MASON_LIBPQ_PATH2=${MASON_LIBPQ_PATH////\\/} - perl -i -p -e "s/\-lpq/${MASON_LIBPQ_PATH2} -pthread/g;" src//Makefile.global.in - perl -i -p -e "s/\-lpq/${MASON_LIBPQ_PATH2} -pthread/g;" src//Makefile.global - make -j${MASON_CONCURRENCY} install - make -j${MASON_CONCURRENCY} -C contrib/hstore install - rm -f ${MASON_PREFIX}/lib/lib{*.so*,*.dylib} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/postgres/9.6.1/.travis.yml b/third_party/mason/scripts/postgres/9.6.1/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/postgres/9.6.1/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/postgres/9.6.1/patch.diff b/third_party/mason/scripts/postgres/9.6.1/patch.diff deleted file mode 100644 index ae2f06a46..000000000 --- a/third_party/mason/scripts/postgres/9.6.1/patch.diff +++ /dev/null @@ -1,11 +0,0 @@ ---- src/include/pg_config_manual.h 2013-10-07 20:17:38.000000000 -0700 -+++ src/include/pg_config_manual.h 2014-03-08 21:29:48.000000000 -0800 -@@ -144,7 +144,7 @@ - * here's where to twiddle it. You can also override this at runtime - * with the postmaster's -k switch. - */ --#define DEFAULT_PGSOCKET_DIR "/tmp" -+#define DEFAULT_PGSOCKET_DIR "/var/run/postgresql" - - /* - * The random() function is expected to yield values between 0 and diff --git a/third_party/mason/scripts/postgres/9.6.1/script.sh b/third_party/mason/scripts/postgres/9.6.1/script.sh deleted file mode 100755 index 8ca3af308..000000000 --- a/third_party/mason/scripts/postgres/9.6.1/script.sh +++ /dev/null @@ -1,70 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=postgres -MASON_VERSION=9.6.1 -MASON_LIB_FILE=bin/psql - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://ftp.postgresql.org/pub/source/v${MASON_VERSION}/postgresql-${MASON_VERSION}.tar.bz2 \ - 6aef3fb521aaf987a9363a314ff7d5539b6601cd - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/postgresql-${MASON_VERSION} -} - -function mason_compile { - if [[ ${MASON_PLATFORM} == 'linux' ]]; then - mason_step "Loading patch" - patch src/include/pg_config_manual.h ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - fi - - # note CFLAGS overrides defaults (-Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument) so we need to add optimization flags back - export CFLAGS="${CFLAGS} -O3 -DNDEBUG -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -Wno-unused-command-line-argument" - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-thread-safety \ - --enable-largefile \ - --with-python \ - --with-zlib \ - --without-bonjour \ - --without-openssl \ - --without-pam \ - --without-gssapi \ - --without-ossp-uuid \ - --without-readline \ - --without-ldap \ - --without-libxml \ - --without-libxslt \ - --without-selinux \ - --without-perl \ - --without-tcl \ - --disable-rpath \ - --disable-debug \ - --disable-profiling \ - --disable-coverage \ - --disable-dtrace \ - --disable-depend \ - --disable-cassert - - make -j${MASON_CONCURRENCY} -C src/interfaces/libpq/ install - rm -f src/interfaces/libpq{*.so*,*.dylib} - rm -f ${MASON_PREFIX}/lib/libpq{*.so*,*.dylib} - MASON_LIBPQ_PATH=${MASON_PREFIX}/lib/libpq.a - MASON_LIBPQ_PATH2=${MASON_LIBPQ_PATH////\\/} - perl -i -p -e "s/\-lpq/${MASON_LIBPQ_PATH2} -pthread/g;" src//Makefile.global.in - perl -i -p -e "s/\-lpq/${MASON_LIBPQ_PATH2} -pthread/g;" src//Makefile.global - make -j${MASON_CONCURRENCY} install - make -j${MASON_CONCURRENCY} -C contrib/hstore install - rm -f ${MASON_PREFIX}/lib/lib{*.so*,*.dylib} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/proj/4.8.0/.travis.yml b/third_party/mason/scripts/proj/4.8.0/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/proj/4.8.0/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/proj/4.8.0/script.sh b/third_party/mason/scripts/proj/4.8.0/script.sh deleted file mode 100755 index 0cc8a3fb8..000000000 --- a/third_party/mason/scripts/proj/4.8.0/script.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=proj -MASON_VERSION=4.8.0 -MASON_LIB_FILE=lib/libproj.a -#MASON_PKGCONFIG_FILE=lib/pkgconfig/proj.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/proj/proj-${MASON_VERSION}.tar.gz \ - 531953338fd3167670cafb44ca59bd58eaa8712d - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - curl --retry 3 -f -# -L http://download.osgeo.org/proj/proj-datumgrid-1.5.zip -o proj-datumgrid-1.5.zip - cd nad - unzip -o ../proj-datumgrid-1.5.zip - cd ../ - ./configure --prefix=${MASON_PREFIX} \ - --without-mutex ${MASON_HOST_ARG} \ - --with-jni=no \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - echo "-lproj" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/proj/4.9.2/.travis.yml b/third_party/mason/scripts/proj/4.9.2/.travis.yml deleted file mode 100644 index a724e9e3f..000000000 --- a/third_party/mason/scripts/proj/4.9.2/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: generic - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/proj/4.9.2/script.sh b/third_party/mason/scripts/proj/4.9.2/script.sh deleted file mode 100755 index b21c20073..000000000 --- a/third_party/mason/scripts/proj/4.9.2/script.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=proj -MASON_VERSION=4.9.2 -MASON_LIB_FILE=lib/libproj.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/proj/proj-${MASON_VERSION}.tar.gz \ - d9d35af05af0d43464c280d14e24bf3743494daf - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - curl --retry 3 -f -# -L http://download.osgeo.org/proj/proj-datumgrid-1.5.zip -o proj-datumgrid-1.5.zip - cd nad - unzip -o ../proj-datumgrid-1.5.zip - cd ../ - ./configure --prefix=${MASON_PREFIX} \ - --without-mutex ${MASON_HOST_ARG} \ - --with-jni=no \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - echo "-lproj" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/proj/4.9.3/.travis.yml b/third_party/mason/scripts/proj/4.9.3/.travis.yml deleted file mode 100644 index e5ec5ff23..000000000 --- a/third_party/mason/scripts/proj/4.9.3/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - compiler: clang - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/proj/4.9.3/script.sh b/third_party/mason/scripts/proj/4.9.3/script.sh deleted file mode 100755 index c89a91b84..000000000 --- a/third_party/mason/scripts/proj/4.9.3/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=proj -MASON_VERSION=4.9.3 -MASON_LIB_FILE=lib/libproj.a -GRID_VERSION="1.6" - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://download.osgeo.org/proj/proj-${MASON_VERSION}.tar.gz \ - e3426c86eb2b834de78bf6535eff60d2ff521120 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - curl --retry 3 -f -# -L http://download.osgeo.org/proj/proj-datumgrid-${GRID_VERSION}.zip -o proj-datumgrid-${GRID_VERSION}.zip - cd nad - unzip -o ../proj-datumgrid-${GRID_VERSION}.zip - cd ../ - # note CFLAGS overrides defaults (-g -O2) so we need to add optimization flags back - export CFLAGS="${CFLAGS} -O3 -DNDEBUG" - ./configure --prefix=${MASON_PREFIX} \ - --without-mutex ${MASON_HOST_ARG} \ - --with-jni=no \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make -j${MASON_CONCURRENCY} - make install -} - -function mason_ldflags { - echo "-lproj" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/protobuf/2.6.1/.travis.yml b/third_party/mason/scripts/protobuf/2.6.1/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/protobuf/2.6.1/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/protobuf/2.6.1/script.sh b/third_party/mason/scripts/protobuf/2.6.1/script.sh deleted file mode 100755 index f63010785..000000000 --- a/third_party/mason/scripts/protobuf/2.6.1/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=protobuf -MASON_VERSION=2.6.1 -MASON_LIB_FILE=lib/libprotobuf-lite.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/protobuf-lite.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/google/protobuf/releases/download/v2.6.1/protobuf-2.6.1.tar.bz2 \ - 823368b46eee836243c20f0c358b15280b0f8cf9 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --disable-debug --without-zlib \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/protobuf/3.0.0/.travis.yml b/third_party/mason/scripts/protobuf/3.0.0/.travis.yml deleted file mode 100644 index 5430086e5..000000000 --- a/third_party/mason/scripts/protobuf/3.0.0/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/protobuf/3.0.0/script.sh b/third_party/mason/scripts/protobuf/3.0.0/script.sh deleted file mode 100755 index e8eb8d92e..000000000 --- a/third_party/mason/scripts/protobuf/3.0.0/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=protobuf -MASON_VERSION=3.0.0 -MASON_LIB_FILE=lib/libprotobuf.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/protobuf.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/google/${MASON_NAME}/releases/download/v${MASON_VERSION}/${MASON_NAME}-cpp-${MASON_VERSION}.tar.gz \ - 88f03530236797ee1a51748cb9a1fe43cc952b7c - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --disable-debug --without-zlib \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_clean { - make clean -} - -mason_run "$@" - diff --git a/third_party/mason/scripts/protobuf/3.2.0/.travis.yml b/third_party/mason/scripts/protobuf/3.2.0/.travis.yml deleted file mode 100644 index 8c71516f9..000000000 --- a/third_party/mason/scripts/protobuf/3.2.0/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/protobuf/3.2.0/script.sh b/third_party/mason/scripts/protobuf/3.2.0/script.sh deleted file mode 100755 index abf1ec517..000000000 --- a/third_party/mason/scripts/protobuf/3.2.0/script.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=protobuf -MASON_VERSION=3.2.0 -MASON_LIB_FILE=lib/libprotobuf-lite.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/protobuf-lite.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/google/protobuf/releases/download/v${MASON_VERSION}/protobuf-cpp-${MASON_VERSION}.tar.gz \ - 29792bf4d86237e41118d692dc11ca03dbe796d8 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - # note CFLAGS overrides defaults (-O2 -g -DNDEBUG) so we need to add optimization flags back - export CFLAGS="${CFLAGS} -O3 -DNDEBUG" - export CXXFLAGS="${CXXFLAGS} -O3 -DNDEBUG" - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --disable-debug --without-zlib \ - --disable-dependency-tracking - - make V=1 -j${MASON_CONCURRENCY} - make install -j${MASON_CONCURRENCY} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/protobuf_c/1.1.0/.travis.yml b/third_party/mason/scripts/protobuf_c/1.1.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/protobuf_c/1.1.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/protobuf_c/1.1.0/script.sh b/third_party/mason/scripts/protobuf_c/1.1.0/script.sh deleted file mode 100755 index 83bf97f0b..000000000 --- a/third_party/mason/scripts/protobuf_c/1.1.0/script.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=protobuf_c -MASON_VERSION=1.1.0 -MASON_LIB_FILE=lib/libprotobuf-c.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/protobuf-c.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/protobuf-c/protobuf-c/releases/download/v1.1.0/protobuf-c-1.1.0.tar.gz \ - c7e30c4410e50a14f9eeffbc26dbc62ab4d3ebc5 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/protobuf-c-${MASON_VERSION} -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install protobuf 2.6.1 - MASON_PROTOBUF=$(${MASON_DIR}/mason prefix protobuf 2.6.1) - export PKG_CONFIG_PATH=${MASON_PROTOBUF}/lib/pkgconfig:${PKG_CONFIG_PATH} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --disable-debug --without-zlib \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/protozero/1.3.0/.travis.yml b/third_party/mason/scripts/protozero/1.3.0/.travis.yml deleted file mode 100644 index 6cb8a7653..000000000 --- a/third_party/mason/scripts/protozero/1.3.0/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/protozero/1.3.0/script.sh b/third_party/mason/scripts/protozero/1.3.0/script.sh deleted file mode 100644 index 8aa4fd608..000000000 --- a/third_party/mason/scripts/protozero/1.3.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=protozero -MASON_VERSION=1.3.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/protozero/tarball/v1.3.0 \ - 6d0432ccb300fda98805ad429a1fac980d42510e - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapbox-protozero-ad3ca5b -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/protozero ${MASON_PREFIX}/include/protozero -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/protozero/1.4.0/.travis.yml b/third_party/mason/scripts/protozero/1.4.0/.travis.yml deleted file mode 100644 index 71b8ba358..000000000 --- a/third_party/mason/scripts/protozero/1.4.0/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/protozero/1.4.0/script.sh b/third_party/mason/scripts/protozero/1.4.0/script.sh deleted file mode 100644 index e65993e10..000000000 --- a/third_party/mason/scripts/protozero/1.4.0/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=protozero -MASON_VERSION=1.4.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/protozero/tarball/v1.4.0 \ - 0f6eb6234ee5a258216b2f9a83e35a1f5e60ca03 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapbox-protozero-ca34d86 -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/protozero ${MASON_PREFIX}/include/protozero -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/protozero/1.4.2/.travis.yml b/third_party/mason/scripts/protozero/1.4.2/.travis.yml deleted file mode 100644 index 11a1b27de..000000000 --- a/third_party/mason/scripts/protozero/1.4.2/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/protozero/1.4.2/script.sh b/third_party/mason/scripts/protozero/1.4.2/script.sh deleted file mode 100644 index 04ceb2a28..000000000 --- a/third_party/mason/scripts/protozero/1.4.2/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=protozero -MASON_VERSION=1.4.2 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/protozero/archive/v${MASON_VERSION}.tar.gz \ - d4db66ece4fb40460efbceafecbc84a8987e7aaf - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/protozero-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/protozero ${MASON_PREFIX}/include/protozero -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/protozero/1.4.5/.travis.yml b/third_party/mason/scripts/protozero/1.4.5/.travis.yml deleted file mode 100644 index 00c277c21..000000000 --- a/third_party/mason/scripts/protozero/1.4.5/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - compiler: clang - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/protozero/1.4.5/script.sh b/third_party/mason/scripts/protozero/1.4.5/script.sh deleted file mode 100644 index 114c3d252..000000000 --- a/third_party/mason/scripts/protozero/1.4.5/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=protozero -MASON_VERSION=1.4.5 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/protozero/archive/v${MASON_VERSION}.tar.gz \ - 17958acf20ba7071a040135821afc17d196a33ba - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/protozero-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/protozero ${MASON_PREFIX}/include/protozero -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/protozero/1.5.0/.travis.yml b/third_party/mason/scripts/protozero/1.5.0/.travis.yml deleted file mode 100644 index 00c277c21..000000000 --- a/third_party/mason/scripts/protozero/1.5.0/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - compiler: clang - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/protozero/1.5.0/script.sh b/third_party/mason/scripts/protozero/1.5.0/script.sh deleted file mode 100644 index 16603b044..000000000 --- a/third_party/mason/scripts/protozero/1.5.0/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=protozero -MASON_VERSION=1.5.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/protozero/archive/v${MASON_VERSION}.tar.gz \ - 4590673eddd523bfeb5d99d42ac7c73ce9c70f6f - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/protozero-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/protozero ${MASON_PREFIX}/include/protozero -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/protozero/1.5.1/.travis.yml b/third_party/mason/scripts/protozero/1.5.1/.travis.yml deleted file mode 100644 index 00c277c21..000000000 --- a/third_party/mason/scripts/protozero/1.5.1/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - compiler: clang - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/protozero/1.5.1/script.sh b/third_party/mason/scripts/protozero/1.5.1/script.sh deleted file mode 100644 index e2644981b..000000000 --- a/third_party/mason/scripts/protozero/1.5.1/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=protozero -MASON_VERSION=1.5.1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/protozero/archive/v${MASON_VERSION}.tar.gz \ - d36e3a99b7e29383455459df723dbbc0a83a85ae - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/protozero-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/protozero ${MASON_PREFIX}/include/protozero -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/ragel/6.9/.travis.yml b/third_party/mason/scripts/ragel/6.9/.travis.yml deleted file mode 100644 index a2a217964..000000000 --- a/third_party/mason/scripts/ragel/6.9/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - - os: linux - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/ragel/6.9/script.sh b/third_party/mason/scripts/ragel/6.9/script.sh deleted file mode 100755 index 6e0c47e7e..000000000 --- a/third_party/mason/scripts/ragel/6.9/script.sh +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=ragel -MASON_VERSION=6.9 -MASON_LIB_FILE=bin/ragel - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.colm.net/files/ragel/ragel-${MASON_VERSION}.tar.gz \ - adf45ba5bb04359e6a0f8d5a98bfc10e6388bf21 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - ./configure --prefix=${MASON_PREFIX} \ - --disable-dependency-tracking - - make -j${MASON_CONCURRENCY} - make install -} - - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/rapidjson/1.0.2/.travis.yml b/third_party/mason/scripts/rapidjson/1.0.2/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/rapidjson/1.0.2/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/rapidjson/1.0.2/script.sh b/third_party/mason/scripts/rapidjson/1.0.2/script.sh deleted file mode 100755 index d75e0ebda..000000000 --- a/third_party/mason/scripts/rapidjson/1.0.2/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=rapidjson -MASON_VERSION=1.0.2 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/miloyip/rapidjson/archive/v1.0.2.tar.gz \ - dada19604224e5040914181b67b536e9cf24dcbe - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/rapidjson-1.0.2 -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - cp -rv include ${MASON_PREFIX} -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/rapidjson/1.1.0/.travis.yml b/third_party/mason/scripts/rapidjson/1.1.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/rapidjson/1.1.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/rapidjson/1.1.0/script.sh b/third_party/mason/scripts/rapidjson/1.1.0/script.sh deleted file mode 100755 index 009a6b646..000000000 --- a/third_party/mason/scripts/rapidjson/1.1.0/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=rapidjson -MASON_VERSION=1.1.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/miloyip/rapidjson/archive/v1.1.0.tar.gz \ - eb129f3e940d4bc220a16cfb1b6625e79a09b2d4 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/rapidjson-1.1.0 -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - cp -rv include ${MASON_PREFIX} -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/rapidjson/2016-07-20-369de87/.travis.yml b/third_party/mason/scripts/rapidjson/2016-07-20-369de87/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/rapidjson/2016-07-20-369de87/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/rapidjson/2016-07-20-369de87/script.sh b/third_party/mason/scripts/rapidjson/2016-07-20-369de87/script.sh deleted file mode 100755 index cf551a2f7..000000000 --- a/third_party/mason/scripts/rapidjson/2016-07-20-369de87/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=rapidjson -MASON_VERSION=2016-07-20-369de87 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/miloyip/rapidjson/archive/369de87e5d7da05786731a712f25ab9b46c4b0ce.tar.gz \ - e2b9b08ee980ab82a4ced50a36d2bd12ac1a5dc4 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/rapidjson-369de87e5d7da05786731a712f25ab9b46c4b0ce -} - -function mason_compile { - mkdir -p ${MASON_PREFIX} - cp -rv include ${MASON_PREFIX} -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : # We're only using the full path to the archive, which is output in static_libs -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/rocksdb/4.13/.travis.yml b/third_party/mason/scripts/rocksdb/4.13/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/rocksdb/4.13/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/rocksdb/4.13/script.sh b/third_party/mason/scripts/rocksdb/4.13/script.sh deleted file mode 100644 index 8e5d79ff1..000000000 --- a/third_party/mason/scripts/rocksdb/4.13/script.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=rocksdb -MASON_VERSION=4.13 -MASON_LIB_FILE=lib/librocksdb.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/facebook/${MASON_NAME}/archive/v4.13.tar.gz \ - 0f82fd1e08e3c339dab5b19b08e201aebe6dace4 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-4.13 -} - -function mason_compile { - # by default -O2 is used for release builds (https://github.com/facebook/rocksdb/commit/1d08140e817d5908889f59046148ed4d3b1039e5) - # but this is too conservative - # we want -O3 for best performance - perl -i -p -e "s/-O2 -fno-omit-frame-pointer/-O3/g;" Makefile - INSTALL_PATH=${MASON_PREFIX} V=1 make install-static -j${MASON_CONCURRENCY} - # remove debug symbols (200 MB -> 10 MB) - strip -S ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_static_libs { - echo ${MASON_PREFIX}/${MASON_LIB_FILE} -} - -function mason_ldflags { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/shelf-pack/1.0.0/.travis.yml b/third_party/mason/scripts/shelf-pack/1.0.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/shelf-pack/1.0.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/shelf-pack/1.0.0/script.sh b/third_party/mason/scripts/shelf-pack/1.0.0/script.sh deleted file mode 100755 index 8e25ed4a5..000000000 --- a/third_party/mason/scripts/shelf-pack/1.0.0/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=shelf-pack -MASON_VERSION=1.0.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/shelf-pack-cpp/archive/v${MASON_VERSION}.tar.gz \ - b836bc2df9a12c66adccf124cf7f366d919776d6 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/shelf-pack-cpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v include/*.hpp ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE.md ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/snappy/32d6d7d/.travis.yml b/third_party/mason/scripts/snappy/32d6d7d/.travis.yml deleted file mode 100644 index 6620f3a74..000000000 --- a/third_party/mason/scripts/snappy/32d6d7d/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++6 - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/snappy/32d6d7d/script.sh b/third_party/mason/scripts/snappy/32d6d7d/script.sh deleted file mode 100644 index bb3e1f942..000000000 --- a/third_party/mason/scripts/snappy/32d6d7d/script.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=snappy -MASON_VERSION=32d6d7d -MASON_LIB_FILE=lib/libsnappy.a -MASON_PKGCONFIG_FILE=snappy.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/google/snappy/archive/32d6d7d8a2ef328a2ee1dd40f072e21f4983ebda.tar.gz \ - 2faac1dbc670bffc462cb87a370e6b76371d7764 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-32d6d7d8a2ef328a2ee1dd40f072e21f4983ebda -} - -function mason_prepare_compile { - ./autogen.sh -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/sparsehash/2.0.2/.travis.yml b/third_party/mason/scripts/sparsehash/2.0.2/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/sparsehash/2.0.2/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/sparsehash/2.0.2/patch.diff b/third_party/mason/scripts/sparsehash/2.0.2/patch.diff deleted file mode 100644 index 387b44a3b..000000000 --- a/third_party/mason/scripts/sparsehash/2.0.2/patch.diff +++ /dev/null @@ -1,31 +0,0 @@ -diff --git a/src/sparsehash/internal/sparsehashtable.h b/src/sparsehash/internal/sparsehashtable.h -index 7ee1391..f54ea51 100644 ---- a/src/sparsehash/internal/sparsehashtable.h -+++ b/src/sparsehash/internal/sparsehashtable.h -@@ -165,7 +165,7 @@ struct sparse_hashtable_iterator { - public: - typedef sparse_hashtable_iterator iterator; - typedef sparse_hashtable_const_iterator const_iterator; -- typedef typename sparsetable::nonempty_iterator -+ typedef typename sparsetable::nonempty_iterator - st_iterator; - - typedef std::forward_iterator_tag iterator_category; // very little defined! -@@ -217,7 +217,7 @@ struct sparse_hashtable_const_iterator { - public: - typedef sparse_hashtable_iterator iterator; - typedef sparse_hashtable_const_iterator const_iterator; -- typedef typename sparsetable::const_nonempty_iterator -+ typedef typename sparsetable::const_nonempty_iterator - st_iterator; - - typedef std::forward_iterator_tag iterator_category; // very little defined! -@@ -271,7 +271,7 @@ struct sparse_hashtable_destructive_iterator { - - public: - typedef sparse_hashtable_destructive_iterator iterator; -- typedef typename sparsetable::destructive_iterator -+ typedef typename sparsetable::destructive_iterator - st_iterator; - - typedef std::forward_iterator_tag iterator_category; // very little defined! diff --git a/third_party/mason/scripts/sparsehash/2.0.2/script.sh b/third_party/mason/scripts/sparsehash/2.0.2/script.sh deleted file mode 100755 index 2803ea046..000000000 --- a/third_party/mason/scripts/sparsehash/2.0.2/script.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=sparsehash -MASON_VERSION=2.0.2 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://sparsehash.googlecode.com/files/sparsehash-2.0.2.tar.gz \ - 700205d99da682a3d70512cd28aeea2805d39aab - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p1 < ./patch.diff - ./configure --prefix=${MASON_PREFIX} ${MASON_HOST_ARG} \ - --enable-static --disable-shared \ - --disable-dependency-tracking - make -j${MASON_CONCURRENCY} - make install -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/sqlite/3.14.1/.travis.yml b/third_party/mason/scripts/sqlite/3.14.1/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/sqlite/3.14.1/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/sqlite/3.14.1/script.sh b/third_party/mason/scripts/sqlite/3.14.1/script.sh deleted file mode 100755 index e61586b44..000000000 --- a/third_party/mason/scripts/sqlite/3.14.1/script.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=sqlite -MASON_VERSION=3.41.1 -MASON_LIB_FILE=lib/libsqlite3.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/sqlite3.pc - -SQLITE_FILE_VERSION=3140100 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://www.sqlite.org/2016/sqlite-autoconf-${SQLITE_FILE_VERSION}.tar.gz \ - 3cd6b9b45b3c8822d443e50587a242db7c05bbd4 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/sqlite-autoconf-${SQLITE_FILE_VERSION} -} - -function mason_compile { - CFLAGS="-O3 ${CFLAGS}" ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lsqlite3 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/sqlite/3.14.2/.travis.yml b/third_party/mason/scripts/sqlite/3.14.2/.travis.yml deleted file mode 100644 index 150694291..000000000 --- a/third_party/mason/scripts/sqlite/3.14.2/.travis.yml +++ /dev/null @@ -1,42 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - exclude: - - os: linux - include: - - os: osx - osx_image: xcode7 - - os: linux - env: MASON_PLATFORM_VERSION=cortex_a9 - - os: linux - env: MASON_PLATFORM_VERSION=i686 - - os: linux - sudo: false - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/sqlite/3.14.2/script.sh b/third_party/mason/scripts/sqlite/3.14.2/script.sh deleted file mode 100755 index 0cafc328e..000000000 --- a/third_party/mason/scripts/sqlite/3.14.2/script.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=sqlite -MASON_VERSION=3.14.2 -MASON_LIB_FILE=lib/libsqlite3.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/sqlite3.pc - -SQLITE_FILE_VERSION=3140200 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://www.sqlite.org/2016/sqlite-autoconf-${SQLITE_FILE_VERSION}.tar.gz \ - 3fa5871a56c939353e0afc1e701663f255d34c00 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/sqlite-autoconf-${SQLITE_FILE_VERSION} -} - -function mason_compile { - CFLAGS="-O3 ${CFLAGS}" ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lsqlite3 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/sqlite/3.16.2/.travis.yml b/third_party/mason/scripts/sqlite/3.16.2/.travis.yml deleted file mode 100644 index be65d22ff..000000000 --- a/third_party/mason/scripts/sqlite/3.16.2/.travis.yml +++ /dev/null @@ -1,39 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - - os: linux - sudo: false - env: MASON_PLATFORM_VERSION=cortex_a9 - - os: linux - sudo: false - env: MASON_PLATFORM_VERSION=i686 - - os: linux - sudo: false - - os: linux - sudo: false - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - sudo: false - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - sudo: false - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - sudo: false - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - sudo: false - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - sudo: false - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - sudo: false - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/sqlite/3.16.2/script.sh b/third_party/mason/scripts/sqlite/3.16.2/script.sh deleted file mode 100755 index e5b0c872f..000000000 --- a/third_party/mason/scripts/sqlite/3.16.2/script.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=sqlite -MASON_VERSION=3.16.2 -MASON_LIB_FILE=lib/libsqlite3.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/sqlite3.pc - -SQLITE_FILE_VERSION=3160200 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://www.sqlite.org/2017/sqlite-autoconf-${SQLITE_FILE_VERSION}.tar.gz \ - e070d08277ed4f1da54a0d31d85cda2a14438e3f - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/sqlite-autoconf-${SQLITE_FILE_VERSION} -} - -function mason_compile { - # Note: setting CFLAGS overrides the default in sqlite of `-g -O2` - # hence we add back the preferred optimization - CFLAGS="-O3 ${CFLAGS}" ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lsqlite3 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/sqlite/3.8.10.2/.travis.yml b/third_party/mason/scripts/sqlite/3.8.10.2/.travis.yml deleted file mode 100644 index daaec0be1..000000000 --- a/third_party/mason/scripts/sqlite/3.8.10.2/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - - os: linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/sqlite/3.8.10.2/script.sh b/third_party/mason/scripts/sqlite/3.8.10.2/script.sh deleted file mode 100755 index 4d9bf6c47..000000000 --- a/third_party/mason/scripts/sqlite/3.8.10.2/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=sqlite -MASON_VERSION=3.8.10.2 -MASON_LIB_FILE=lib/libsqlite3.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/sqlite3.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://www.sqlite.org/2015/sqlite-autoconf-3081002.tar.gz \ - 841053dd606523187b42aa2dd8d9356735d3d382 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/sqlite-autoconf-3081002 -} - -function mason_compile { - CFLAGS="-O3 ${CFLAGS}" ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking \ - --disable-dynamic-extensions - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lsqlite3 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/sqlite/3.8.8.1/.travis.yml b/third_party/mason/scripts/sqlite/3.8.8.1/.travis.yml deleted file mode 100644 index daaec0be1..000000000 --- a/third_party/mason/scripts/sqlite/3.8.8.1/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - - os: linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/sqlite/3.8.8.1/script.sh b/third_party/mason/scripts/sqlite/3.8.8.1/script.sh deleted file mode 100755 index ad698d0d8..000000000 --- a/third_party/mason/scripts/sqlite/3.8.8.1/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=sqlite -MASON_VERSION=3.8.8.1 -MASON_LIB_FILE=lib/libsqlite3.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/sqlite3.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://www.sqlite.org/2015/sqlite-autoconf-3080801.tar.gz \ - 24012945241c0b55774b8bad2679912e14703a24 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/sqlite-autoconf-3080801 -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lsqlite3 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/sqlite/3.8.8.3/.travis.yml b/third_party/mason/scripts/sqlite/3.8.8.3/.travis.yml deleted file mode 100644 index 9a5fb07c1..000000000 --- a/third_party/mason/scripts/sqlite/3.8.8.3/.travis.yml +++ /dev/null @@ -1,35 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/sqlite/3.8.8.3/script.sh b/third_party/mason/scripts/sqlite/3.8.8.3/script.sh deleted file mode 100755 index 9bc34df24..000000000 --- a/third_party/mason/scripts/sqlite/3.8.8.3/script.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=sqlite -MASON_VERSION=3.8.8.3 -MASON_LIB_FILE=lib/libsqlite3.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/sqlite3.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://sqlite.org/2015/sqlite-autoconf-3080803.tar.gz \ - 55d0c095e5bf76ed7b450265261b367228bbd0ba - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/sqlite-autoconf-3080803 -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lsqlite3 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/sqlite/3.9.1/.travis.yml b/third_party/mason/scripts/sqlite/3.9.1/.travis.yml deleted file mode 100644 index d3c947aef..000000000 --- a/third_party/mason/scripts/sqlite/3.9.1/.travis.yml +++ /dev/null @@ -1,31 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - osx_image: xcode7 - - os: linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/sqlite/3.9.1/script.sh b/third_party/mason/scripts/sqlite/3.9.1/script.sh deleted file mode 100755 index 4068ac442..000000000 --- a/third_party/mason/scripts/sqlite/3.9.1/script.sh +++ /dev/null @@ -1,48 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=sqlite -MASON_VERSION=3.9.1 -MASON_LIB_FILE=lib/libsqlite3.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/sqlite3.pc - -SQLITE_FILE_VERSION=3090100 - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://www.sqlite.org/2015/sqlite-autoconf-${SQLITE_FILE_VERSION}.tar.gz \ - 92d8a46908e793c9e387f3199699783fd5f6ebed - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/sqlite-autoconf-${SQLITE_FILE_VERSION} -} - -function mason_compile { - CFLAGS="-O3 ${CFLAGS}" ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --with-pic \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - shift # -L... - shift # -lsqlite3 - echo "$@" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/sqlite/system/script.sh b/third_party/mason/scripts/sqlite/system/script.sh deleted file mode 100755 index 5f98310f1..000000000 --- a/third_party/mason/scripts/sqlite/system/script.sh +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=sqlite -MASON_VERSION=system -MASON_SYSTEM_PACKAGE=true - -. ${MASON_DIR}/mason.sh - - -if [[ ${MASON_PLATFORM} = 'android' ]]; then - mason_error "Unavailable on platform \"${MASON_PLATFORM}\"" - exit 1 -elif [[ ${MASON_PLATFORM} = 'ios' ]]; then - MASON_CFLAGS="" - MASON_LDFLAGS="-lsqlite3" -else - MASON_CFLAGS="-I${MASON_PREFIX}/include" - MASON_LDFLAGS="-L${MASON_PREFIX}/lib" - SQLITE_INCLUDE_PREFIX="`pkg-config sqlite3 --variable=includedir`" - SQLITE_LIBRARY="`pkg-config sqlite3 --variable=libdir`/libsqlite3.${MASON_DYNLIB_SUFFIX}" - MASON_CFLAGS="${MASON_CFLAGS} `pkg-config sqlite3 --cflags-only-other`" - MASON_LDFLAGS="${MASON_LDFLAGS} `pkg-config sqlite3 --libs-only-other --libs-only-l`" - - if [ ! -f "${SQLITE_INCLUDE_PREFIX}/sqlite3.h" ]; then - mason_error "Can't find header file ${SQLITE_INCLUDE_PREFIX}/sqlite3.h" - exit 1 - fi - - if [ ! -f "${SQLITE_LIBRARY}" ]; then - mason_error "Can't find library file ${SQLITE_LIBRARY}" - exit 1 - fi -fi - -function mason_system_version { - if [[ ${MASON_PLATFORM} = 'ios' ]]; then - FLAGS="-I${MASON_SDK_PATH}/usr/include -Wp,-w" - else - FLAGS=$(mason_cflags) - fi - - mkdir -p "${MASON_PREFIX}" - cd "${MASON_PREFIX}" - if [ ! -f version ]; then - echo "#include -#include -int main() { - printf(\"%s\", SQLITE_VERSION); - return 0; -} -" > version.c && cc version.c ${FLAGS} -o version - fi - ./version -} - -function mason_build { - if [[ ! -z ${SQLITE_INCLUDE_PREFIX} ]]; then - mkdir -p ${MASON_PREFIX}/include - ln -sf ${SQLITE_INCLUDE_PREFIX}/sqlite3.h ${MASON_PREFIX}/include/ - fi - if [[ ! -z ${SQLITE_LIBRARY} ]]; then - mkdir -p ${MASON_PREFIX}/lib - ln -sf ${SQLITE_LIBRARY} ${MASON_PREFIX}/lib/ - fi -} - -function mason_cflags { - echo ${MASON_CFLAGS} -} - -function mason_ldflags { - echo ${MASON_LDFLAGS} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/stxxl/1.4.1/.travis.yml b/third_party/mason/scripts/stxxl/1.4.1/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/stxxl/1.4.1/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/stxxl/1.4.1/script.sh b/third_party/mason/scripts/stxxl/1.4.1/script.sh deleted file mode 100755 index de09192c5..000000000 --- a/third_party/mason/scripts/stxxl/1.4.1/script.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=stxxl -MASON_VERSION=1.4.1 -MASON_LIB_FILE=lib/libstxxl.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/stxxl/stxxl/releases/download/1.4.1/stxxl-1.4.1.tar.gz \ - 68c0d402ec19e0d254b5b2b217a8c9c5d759a9ef - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - mkdir build - cd build - cmake - cmake ../ -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DBUILD_STATIC_LIBS=ON \ - -DUSE_GNU_PARALLEL=OFF \ - -DCMAKE_BUILD_TYPE=Release - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -lstxxl" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/stxxl_shared/1.4.1/.travis.yml b/third_party/mason/scripts/stxxl_shared/1.4.1/.travis.yml deleted file mode 100644 index e6bb07740..000000000 --- a/third_party/mason/scripts/stxxl_shared/1.4.1/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} -- ./test.sh - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/stxxl_shared/1.4.1/script.sh b/third_party/mason/scripts/stxxl_shared/1.4.1/script.sh deleted file mode 100755 index 8b73bcd58..000000000 --- a/third_party/mason/scripts/stxxl_shared/1.4.1/script.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=stxxl_shared -MASON_VERSION=1.4.1 -MASON_LIB_FILE=lib/libstxxl.${MASON_DYNLIB_SUFFIX} - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/stxxl/stxxl/releases/download/1.4.1/stxxl-1.4.1.tar.gz \ - 68c0d402ec19e0d254b5b2b217a8c9c5d759a9ef - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/stxxl-${MASON_VERSION} -} - -function mason_compile { - mkdir build - cd build - cmake - cmake ../ -DCMAKE_INSTALL_PREFIX=${MASON_PREFIX} \ - -DBUILD_STATIC_LIBS=OFF \ - -DBUILD_SHARED_LIBS=ON \ - -DUSE_GNU_PARALLEL=OFF \ - -DCMAKE_BUILD_TYPE=Release - make -j${MASON_CONCURRENCY} VERBOSE=1 - make install -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -lstxxl" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/stxxl_shared/1.4.1/test.sh b/third_party/mason/scripts/stxxl_shared/1.4.1/test.sh deleted file mode 100755 index 4a29563dd..000000000 --- a/third_party/mason/scripts/stxxl_shared/1.4.1/test.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -set -e -u -set -o pipefail - -failure=0 - -if [[ ! -d mason_packages/.link/include/stxxl ]]; then - echo "could not find expected include/stxxl" - failure=1 -fi - -if [[ ! -L mason_packages/.link/include/stxxl ]]; then - echo "include/stxxl is expected to be a symlink" - failure=1 -fi - -if [[ $(uname -s) == 'Darwin' ]]; then - if [[ ! -f mason_packages/.link/lib/libstxxl.dylib ]]; then - echo "libstxxl.dylib expected to be present" - failure=1 - fi -elif [[ $(uname -s) == 'Linux' ]]; then - if [[ ! -f mason_packages/.link/lib/libstxxl.so ]]; then - echo "libstxxl.dylib expected to be present" - failure=1 - fi -fi - -exit $failure - diff --git a/third_party/mason/scripts/supercluster/0.1.0/.travis.yml b/third_party/mason/scripts/supercluster/0.1.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/supercluster/0.1.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/supercluster/0.1.0/script.sh b/third_party/mason/scripts/supercluster/0.1.0/script.sh deleted file mode 100644 index 69f12e607..000000000 --- a/third_party/mason/scripts/supercluster/0.1.0/script.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=supercluster -MASON_VERSION=0.1.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/supercluster.hpp/archive/v${MASON_VERSION}.tar.gz \ - 323f09e49b327312b3583fc1ae5ec7c48964aa1a - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/supercluster.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -v include/*.hpp ${MASON_PREFIX}/include - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/supercluster/0.1.1/.travis.yml b/third_party/mason/scripts/supercluster/0.1.1/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/supercluster/0.1.1/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/supercluster/0.1.1/script.sh b/third_party/mason/scripts/supercluster/0.1.1/script.sh deleted file mode 100644 index 1331ff4d6..000000000 --- a/third_party/mason/scripts/supercluster/0.1.1/script.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=supercluster -MASON_VERSION=0.1.1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/supercluster.hpp/archive/v${MASON_VERSION}.tar.gz \ - a9cdf909042455e93aed1efdc084fbb1f633e9a8 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/supercluster.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -v include/*.hpp ${MASON_PREFIX}/include - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/supercluster/0.2.0-1/.travis.yml b/third_party/mason/scripts/supercluster/0.2.0-1/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/supercluster/0.2.0-1/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/supercluster/0.2.0-1/script.sh b/third_party/mason/scripts/supercluster/0.2.0-1/script.sh deleted file mode 100644 index 96a069923..000000000 --- a/third_party/mason/scripts/supercluster/0.2.0-1/script.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=supercluster -MASON_VERSION=0.2.0-1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/supercluster.hpp/archive/v0.2.0.tar.gz \ - 48bda562627a3032ba73b8b1ff739dc525544d72 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/supercluster.hpp-0.2.0 -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -v include/*.hpp ${MASON_PREFIX}/include - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/supercluster/0.2.0/.travis.yml b/third_party/mason/scripts/supercluster/0.2.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/supercluster/0.2.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/supercluster/0.2.0/script.sh b/third_party/mason/scripts/supercluster/0.2.0/script.sh deleted file mode 100644 index 64402733a..000000000 --- a/third_party/mason/scripts/supercluster/0.2.0/script.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=supercluster -MASON_VERSION=0.2.0-1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/supercluster.hpp/archive/v${MASON_VERSION}.tar.gz \ - 48bda562627a3032ba73b8b1ff739dc525544d72 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/supercluster.hpp-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -v include/*.hpp ${MASON_PREFIX}/include - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/tbb/2017_20161128/.travis.yml b/third_party/mason/scripts/tbb/2017_20161128/.travis.yml deleted file mode 100644 index e5ec5ff23..000000000 --- a/third_party/mason/scripts/tbb/2017_20161128/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - compiler: clang - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/tbb/2017_20161128/patch.diff b/third_party/mason/scripts/tbb/2017_20161128/patch.diff deleted file mode 100644 index aa90e6c3e..000000000 --- a/third_party/mason/scripts/tbb/2017_20161128/patch.diff +++ /dev/null @@ -1,48 +0,0 @@ -diff --git a/build/linux.gcc.inc b/build/linux.gcc.inc -index b7ed0c5..588fcd2 100644 ---- a/build/linux.gcc.inc -+++ b/build/linux.gcc.inc -@@ -32,8 +32,8 @@ DYLIB_KEY = -shared - EXPORT_KEY = -Wl,--version-script, - LIBDL = -ldl - --CPLUS = g++ --CONLY = gcc -+CPLUS = $(CXX) -+CONLY = $(CC) - LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY) - LIBS += -lpthread -lrt - LINK_FLAGS = -Wl,-rpath-link=. -rdynamic -@@ -68,7 +68,7 @@ ifneq (,$(shell gcc -dumpversion | egrep "^([6-9])")) - endif - - ifeq ($(cfg), release) -- CPLUS_FLAGS = $(ITT_NOTIFY) -g -O2 -DUSE_PTHREAD -+ CPLUS_FLAGS = $(ITT_NOTIFY) -O3 -DNDEBUG -DUSE_PTHREAD - endif - ifeq ($(cfg), debug) - CPLUS_FLAGS = -DTBB_USE_DEBUG $(ITT_NOTIFY) -g -O0 -DUSE_PTHREAD -diff --git a/build/macos.clang.inc b/build/macos.clang.inc -index 330c721..4d7d568 100644 ---- a/build/macos.clang.inc -+++ b/build/macos.clang.inc -@@ -16,8 +16,8 @@ - # - # - --CPLUS = clang++ --CONLY = clang -+CPLUS = $(CXX) -+CONLY = $(CC) - COMPILE_ONLY = -c -MMD - PREPROC_ONLY = -E -x c++ - INCLUDE_KEY = -I -@@ -39,7 +39,7 @@ LIB_LINK_FLAGS = -dynamiclib -install_name @rpath/$(BUILDING_LIBRARY) - C_FLAGS = $(CPLUS_FLAGS) - - ifeq ($(cfg), release) -- CPLUS_FLAGS = -g -O2 -+ CPLUS_FLAGS = -O3 -DNDEBUG - else - CPLUS_FLAGS = -g -O0 -DTBB_USE_DEBUG - endif diff --git a/third_party/mason/scripts/tbb/2017_20161128/script.sh b/third_party/mason/scripts/tbb/2017_20161128/script.sh deleted file mode 100755 index d7362daf2..000000000 --- a/third_party/mason/scripts/tbb/2017_20161128/script.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=tbb -MASON_VERSION=2017_20161128 -MASON_LIB_FILE=lib/libtbb.${MASON_DYNLIB_SUFFIX} - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb${MASON_VERSION}oss_src.tgz \ - 2eaf7db61c59a31c2a6c9faaad36cc42fb8d1da7 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}${MASON_VERSION}oss -} - -function create_links() { - libname=$1 - if [ -f ${MASON_PREFIX}/lib/${libname}.so ]; then rm ${MASON_PREFIX}/lib/${libname}.so; fi - cp $(pwd)/build/BUILDPREFIX_release/${libname}.so.2 ${MASON_PREFIX}/lib/ - (cd ${MASON_PREFIX}/lib/ && ln -s ${libname}.so.2 ${libname}.so) -} - -function mason_compile { - mason_step "Loading patch" - patch -N -p1 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - CXXFLAGS="${CXXFLAGS} -Wno-attributes" - # libtbb does not support -fvisibility=hidden - CXXFLAGS="${CXXFLAGS//-fvisibility=hidden}" - export CXXFLAGS="${CXXFLAGS//-fvisibility-inlines-hidden}" - - if [[ $(uname -s) == 'Darwin' ]]; then - # build shared libs first - make -j${MASON_CONCURRENCY} tbb_build_prefix=BUILDPREFIX cfg=release arch=intel64 stdver=c++11 stdlib=libc++ compiler=clang tbb_build_dir=$(pwd)/build - # prevent ldflags being sent to ar for the static linking, which does not work - unset LDFLAGS - make -j${MASON_CONCURRENCY} tbb_build_prefix=BUILDPREFIX cfg=release arch=intel64 stdver=c++11 stdlib=libc++ compiler=clang tbb_build_dir=$(pwd)/build extra_inc=big_iron.inc - else - LDFLAGS="${LDFLAGS} "'-Wl,-z,origin -Wl,-rpath=\$$ORIGIN' - make -j${MASON_CONCURRENCY} tbb_build_prefix=BUILDPREFIX cfg=release arch=intel64 stdver=c++11 tbb_build_dir=$(pwd)/build - # prevent ldflags being sent to ar for the static linking, which does not work - unset LDFLAGS - make -j${MASON_CONCURRENCY} tbb_build_prefix=BUILDPREFIX cfg=release arch=intel64 stdver=c++11 tbb_build_dir=$(pwd)/build extra_inc=big_iron.inc - fi - - # custom install - mkdir -p ${MASON_PREFIX}/lib/ - mkdir -p ${MASON_PREFIX}/include/ - mkdir -p ${MASON_PREFIX}/bin/ - - if [[ $(uname -s) == "Darwin" ]]; then - cp $(pwd)/build/BUILDPREFIX_release/lib*.* ${MASON_PREFIX}/lib/ - # add rpath so that apps building against this lib can embed location to this lib - # by passing '-rpath ${MASON_PREFIX}/lib/' - # https://wincent.com/wiki/@executable_path,_@load_path_and_@rpath - install_name_tool -id @rpath/libtbb.dylib ${MASON_PREFIX}/lib/libtbb.dylib - install_name_tool -id @rpath/libtbbmalloc.dylib ${MASON_PREFIX}/lib/libtbbmalloc.dylib - install_name_tool -id @rpath/libtbbmalloc_proxy.dylib ${MASON_PREFIX}/lib/libtbbmalloc_proxy.dylib - install_name_tool -change libtbbmalloc.dylib @rpath/libtbbmalloc.dylib ${MASON_PREFIX}/lib/libtbbmalloc_proxy.dylib - else - # the linux libraries are funky: the lib.so.2 is the real lib - # and the lib.so is an ascii text file, so we need to only copy - # the lib.so.2 and then recreate the lib.so as a relative symlink - # to the lib.so.2 - create_links libtbbmalloc_proxy - create_links libtbbmalloc - create_links libtbb - cp $(pwd)/build/BUILDPREFIX_release/lib*.a ${MASON_PREFIX}/lib/ - fi - cp -r $(pwd)/include/tbb ${MASON_PREFIX}/include/ - touch ${MASON_PREFIX}/bin/tbb -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libtbb.a -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -ltbb" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/tbb/43_20150316/.travis.yml b/third_party/mason/scripts/tbb/43_20150316/.travis.yml deleted file mode 100644 index 9a6107680..000000000 --- a/third_party/mason/scripts/tbb/43_20150316/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - compiler: clang - sudo: false - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/tbb/43_20150316/patch.diff b/third_party/mason/scripts/tbb/43_20150316/patch.diff deleted file mode 100644 index 7113c386c..000000000 --- a/third_party/mason/scripts/tbb/43_20150316/patch.diff +++ /dev/null @@ -1,30 +0,0 @@ -diff --git a/build/linux.gcc.inc b/build/linux.gcc.inc -index b4faddc..7668a57 100644 ---- a/build/linux.gcc.inc -+++ b/build/linux.gcc.inc -@@ -40,8 +40,8 @@ DYLIB_KEY = -shared - EXPORT_KEY = -Wl,--version-script, - LIBDL = -ldl - --CPLUS = g++ --CONLY = gcc -+CPLUS = $(CXX) -+CONLY = $(CC) - LIB_LINK_FLAGS = $(DYLIB_KEY) -Wl,-soname=$(BUILDING_LIBRARY) - LIBS += -lpthread -lrt - LINK_FLAGS = -Wl,-rpath-link=. -rdynamic -diff --git a/build/macos.clang.inc b/build/macos.clang.inc -index ca28be7..355d418 100644 ---- a/build/macos.clang.inc -+++ b/build/macos.clang.inc -@@ -24,8 +24,8 @@ - # invalidate any other reasons why the executable file might be covered by - # the GNU General Public License. - --CPLUS = clang++ --CONLY = clang -+CPLUS = $(CXX) -+CONLY = $(CC) - COMPILE_ONLY = -c -MMD - PREPROC_ONLY = -E -x c++ - INCLUDE_KEY = -I diff --git a/third_party/mason/scripts/tbb/43_20150316/script.sh b/third_party/mason/scripts/tbb/43_20150316/script.sh deleted file mode 100755 index b8cfec3dd..000000000 --- a/third_party/mason/scripts/tbb/43_20150316/script.sh +++ /dev/null @@ -1,87 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=tbb -MASON_VERSION=43_20150316 -MASON_LIB_FILE=lib/libtbb.${MASON_DYNLIB_SUFFIX} - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://www.threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb${MASON_VERSION}oss_src.tgz \ - 4dabc26bb82aa35b6ef6b30ea57fe6e89f55a485 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}${MASON_VERSION}oss -} - -function create_links() { - libname=$1 - if [ -f ${MASON_PREFIX}/lib/${libname}.so ]; then rm ${MASON_PREFIX}/lib/${libname}.so; fi - cp $(pwd)/build/BUILDPREFIX_release/${libname}.so.2 ${MASON_PREFIX}/lib/ - (cd ${MASON_PREFIX}/lib/ && ln -s ${libname}.so.2 ${libname}.so) -} - -function mason_compile { - mason_step "Loading patch 'https://github.com/mapbox/mason/blob/${MASON_SLUG}/patch.diff'..." - curl --retry 3 -s -f -# -L \ - https://raw.githubusercontent.com/mapbox/mason/${MASON_SLUG}/patch.diff \ - -O || (mason_error "Could not find patch for ${MASON_SLUG}" && exit 1) - patch -N -p1 < ./patch.diff - CXXFLAGS="${CXXFLAGS} -Wno-attributes" - # libtbb does not support -fvisibility=hidden - CXXFLAGS="${CXXFLAGS//-fvisibility=hidden}" - #patch -N -p1 < ${PATCHES}/tbb_compiler_override.diff || true - # note: static linking not allowed: http://www.threadingbuildingblocks.org/faq/11 - if [[ $(uname -s) == 'Darwin' ]]; then - make -j${MASON_CONCURRENCY} tbb_build_prefix=BUILDPREFIX arch=intel64 cpp0x=1 stdlib=libc++ compiler=clang tbb_build_dir=$(pwd)/build - else - LDFLAGS="${LDFLAGS} "'-Wl,-z,origin -Wl,-rpath=\$$ORIGIN' - make -j${MASON_CONCURRENCY} tbb_build_prefix=BUILDPREFIX cfg=release arch=intel64 cpp0x=1 tbb_build_dir=$(pwd)/build - fi - - # custom install - mkdir -p ${MASON_PREFIX}/lib/ - mkdir -p ${MASON_PREFIX}/include/ - mkdir -p ${MASON_PREFIX}/bin/ - - if [[ $(uname -s) == "Darwin" ]]; then - cp $(pwd)/build/BUILDPREFIX_release/lib*.* ${MASON_PREFIX}/lib/ - # add rpath so that apps building against this lib can embed location to this lib - # by passing '-rpath ${MASON_PREFIX}/lib/' - # https://wincent.com/wiki/@executable_path,_@load_path_and_@rpath - install_name_tool -id @rpath/libtbb.dylib ${MASON_PREFIX}/lib/libtbb.dylib - install_name_tool -id @rpath/libtbbmalloc.dylib ${MASON_PREFIX}/lib/libtbbmalloc.dylib - install_name_tool -id @rpath/libtbbmalloc_proxy.dylib ${MASON_PREFIX}/lib/libtbbmalloc_proxy.dylib - install_name_tool -change libtbbmalloc.dylib @rpath/libtbbmalloc.dylib ${MASON_PREFIX}/lib/libtbbmalloc_proxy.dylib - else - # the linux libraries are funky: the lib.so.2 is the real lib - # and the lib.so is an ascii text file, so we need to only copy - # the lib.so.2 and then recreate the lib.so as a relative symlink - # to the lib.so.2 - create_links libtbbmalloc_proxy - create_links libtbbmalloc - create_links libtbb - fi - cp -r $(pwd)/include/tbb ${MASON_PREFIX}/include/ - touch ${MASON_PREFIX}/bin/tbb -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_static_libs { - : -} - -function mason_ldflags { - echo "-L${MASON_PREFIX}/lib -ltbb" -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/tippecanoe/1.15.1/.travis.yml b/third_party/mason/scripts/tippecanoe/1.15.1/.travis.yml deleted file mode 100644 index 0a2b60f97..000000000 --- a/third_party/mason/scripts/tippecanoe/1.15.1/.travis.yml +++ /dev/null @@ -1,21 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/tippecanoe/1.15.1/script.sh b/third_party/mason/scripts/tippecanoe/1.15.1/script.sh deleted file mode 100644 index e958c1dd3..000000000 --- a/third_party/mason/scripts/tippecanoe/1.15.1/script.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=tippecanoe -MASON_VERSION=1.15.1 -MASON_LIB_FILE=bin/tippecanoe - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/tippecanoe/archive/${MASON_VERSION}.tar.gz \ - 0b31a40e7ababf34fa5945afc538224d86f6b729 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_prepare_compile { - ${MASON_DIR}/mason install sqlite 3.14.2 - MASON_SQLITE=$(${MASON_DIR}/mason prefix sqlite 3.14.2) -} - -function mason_compile { - PREFIX=${MASON_PREFIX} \ - PATH=${MASON_SQLITE}/bin:${PATH} \ - CXXFLAGS="${CXXFLAGS} -I${MASON_SQLITE}/include" \ - LDFLAGS="${LDFLAGS} -L${MASON_SQLITE}/lib -ldl -lpthread" make - - PREFIX=${MASON_PREFIX} \ - PATH=${MASON_SQLITE}/bin:${PATH} \ - CXXFLAGS="${CXXFLAGS} -I${MASON_SQLITE}/include" \ - LDFLAGS="${LDFLAGS} -L${MASON_SQLITE}/lib -ldl -lpthread" make install -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/tippecanoe/1.16.3/.travis.yml b/third_party/mason/scripts/tippecanoe/1.16.3/.travis.yml deleted file mode 100644 index 27039bdbf..000000000 --- a/third_party/mason/scripts/tippecanoe/1.16.3/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - osx_image: xcode8.2 - - os: linux - compiler: clang - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/tippecanoe/1.16.3/script.sh b/third_party/mason/scripts/tippecanoe/1.16.3/script.sh deleted file mode 100644 index 7aac9713b..000000000 --- a/third_party/mason/scripts/tippecanoe/1.16.3/script.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=tippecanoe -MASON_VERSION=1.16.3 -MASON_LIB_FILE=bin/tippecanoe - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/tippecanoe/archive/${MASON_VERSION}.tar.gz \ - ec03e364934a61fe19b8f47970fd373ea8db2a27 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -SQLITE_VERSION=3.16.2 - -function mason_prepare_compile { - ${MASON_DIR}/mason install sqlite ${SQLITE_VERSION} - MASON_SQLITE=$(${MASON_DIR}/mason prefix sqlite ${SQLITE_VERSION}) -} - -function mason_compile { - # knock out /usr/local to ensure libsqlite without a doubt that - # sqlite from from mason is used - perl -i -p -e "s/-L\/usr\/local\/lib//g;" Makefile - perl -i -p -e "s/-I\/usr\/local\/include//g;" Makefile - PREFIX=${MASON_PREFIX} \ - PATH=${MASON_SQLITE}/bin:${PATH} \ - CXXFLAGS="${CXXFLAGS} -I${MASON_SQLITE}/include" \ - LDFLAGS="${LDFLAGS} -L${MASON_SQLITE}/lib -ldl -lpthread" make - - PREFIX=${MASON_PREFIX} \ - PATH=${MASON_SQLITE}/bin:${PATH} \ - CXXFLAGS="${CXXFLAGS} -I${MASON_SQLITE}/include" \ - LDFLAGS="${LDFLAGS} -L${MASON_SQLITE}/lib -ldl -lpthread" make install -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/tippecanoe/1.9.7/.travis.yml b/third_party/mason/scripts/tippecanoe/1.9.7/.travis.yml deleted file mode 100644 index 6cb8a7653..000000000 --- a/third_party/mason/scripts/tippecanoe/1.9.7/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/tippecanoe/1.9.7/script.sh b/third_party/mason/scripts/tippecanoe/1.9.7/script.sh deleted file mode 100755 index ada9a35cf..000000000 --- a/third_party/mason/scripts/tippecanoe/1.9.7/script.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=tippecanoe -MASON_VERSION=1.9.7 -MASON_LIB_FILE=bin/tippecanoe - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/tippecanoe/tarball/1.9.7 \ - efc54e601e93f3b965c6d350f2fa73c81384b720 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/mapbox-tippecanoe-8cc844c -} - -function mason_prepare_compile { - cd $(dirname ${MASON_ROOT}) - ${MASON_DIR}/mason install protobuf 2.6.1 - ${MASON_DIR}/mason link protobuf 2.6.1 - ${MASON_DIR}/mason install sqlite 3.9.1 - ${MASON_DIR}/mason link sqlite 3.9.1 -} - -function mason_compile { - PREFIX=${MASON_PREFIX} \ - PATH=${MASON_DIR}/mason_packages/.link/bin:${PATH} \ - CXXFLAGS=-I${MASON_DIR}/mason_packages/.link/include \ - LDFLAGS="-L${MASON_DIR}/mason_packages/.link/lib -lprotobuf-lite -ldl -lpthread" make - - PREFIX=${MASON_PREFIX} \ - PATH=${MASON_DIR}/mason_packages/.link/bin:${PATH} \ - CXXFLAGS=-I${MASON_DIR}/mason_packages/.link/include \ - LDFLAGS="-L${MASON_DIR}/mason_packages/.link/lib -lprotobuf-lite -ldl -lpthread" make install -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/twemproxy/0.4.1/.travis.yml b/third_party/mason/scripts/twemproxy/0.4.1/.travis.yml deleted file mode 100644 index d4048f062..000000000 --- a/third_party/mason/scripts/twemproxy/0.4.1/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8 - compiler: clang - - os: linux - sudo: false - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - libstdc++-5-dev - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/twemproxy/0.4.1/script.sh b/third_party/mason/scripts/twemproxy/0.4.1/script.sh deleted file mode 100755 index 50ae18ca1..000000000 --- a/third_party/mason/scripts/twemproxy/0.4.1/script.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=twemproxy -MASON_VERSION=0.4.1 -MASON_LIB_FILE=sbin/nutcracker - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/twitter/${MASON_NAME}/archive/v${MASON_VERSION}.tar.gz \ - 8af659bf54240aecc2f86cdd9ba3ddcc9c35f1f0 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - - -function mason_compile { - autoreconf -ivf - # NOTE: CFLAGS overrides internal default - # which in this case is desirable because it allows us to override the internal - # default of -O2 - export CFLAGS="${CFLAGS} -O3 -DNDEBUG" - ./configure \ - --prefix=${MASON_PREFIX} \ - --disable-debug --disable-dependency-tracking - make -j${MASON_CONCURRENCY} - make install -} - -function mason_cflags { - : -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/unique_resource/cba309e/.travis.yml b/third_party/mason/scripts/unique_resource/cba309e/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/unique_resource/cba309e/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/unique_resource/cba309e/script.sh b/third_party/mason/scripts/unique_resource/cba309e/script.sh deleted file mode 100644 index e80498e4a..000000000 --- a/third_party/mason/scripts/unique_resource/cba309e/script.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=unique_resource -MASON_VERSION=cba309e -MASON_HEADER_ONLY=true - -GIT_HASH="cba309e92ec79a95be2aa5a324a688a06af8d40a" - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/okdshin/${MASON_NAME}/archive/${GIT_HASH}.tar.gz \ - 1423b932d80d39250fd0c5715b165bb0efa63883 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${GIT_HASH} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r unique_resource.hpp ${MASON_PREFIX}/include/ -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/utfcpp/2.3.4/.travis.yml b/third_party/mason/scripts/utfcpp/2.3.4/.travis.yml deleted file mode 100644 index 00c277c21..000000000 --- a/third_party/mason/scripts/utfcpp/2.3.4/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: generic - -matrix: - include: - - os: linux - compiler: clang - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/utfcpp/2.3.4/script.sh b/third_party/mason/scripts/utfcpp/2.3.4/script.sh deleted file mode 100644 index 90c1d584c..000000000 --- a/third_party/mason/scripts/utfcpp/2.3.4/script.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=utfcpp -MASON_VERSION=2.3.4 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/nemtrif/utfcpp/tarball/v2.3.4 \ - 8df46127dfc5371efe7435fba947946e4081dc58 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/nemtrif-utfcpp-be66c3f -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r source/utf8 ${MASON_PREFIX}/include/utf8 - cp source/utf8.h ${MASON_PREFIX}/include/ -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/v8/3.14.5.10/.travis.yml b/third_party/mason/scripts/v8/3.14.5.10/.travis.yml deleted file mode 100644 index 24b13a5aa..000000000 --- a/third_party/mason/scripts/v8/3.14.5.10/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: clang - sudo: false - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/v8/3.14.5.10/patch.diff b/third_party/mason/scripts/v8/3.14.5.10/patch.diff deleted file mode 100644 index a0af5dc9d..000000000 --- a/third_party/mason/scripts/v8/3.14.5.10/patch.diff +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/build/standalone.gypi b/build/standalone.gypi -index 7145a16..84e512d 100644 ---- a/build/standalone.gypi -+++ b/build/standalone.gypi -@@ -190,7 +190,7 @@ - 'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', - 'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden - 'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics -- 'GCC_TREAT_WARNINGS_AS_ERRORS': 'YES', # -Werror -+ 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror - 'GCC_VERSION': '4.2', - 'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof - # MACOSX_DEPLOYMENT_TARGET maps to -mmacosx-version-min diff --git a/third_party/mason/scripts/v8/3.14.5.10/script.sh b/third_party/mason/scripts/v8/3.14.5.10/script.sh deleted file mode 100755 index ed24c8af8..000000000 --- a/third_party/mason/scripts/v8/3.14.5.10/script.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=v8 -MASON_VERSION=3.14.5.10 -MASON_LIB_FILE=lib/libv8_base.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/${MASON_NAME}/${MASON_NAME}/archive/${MASON_VERSION}.tar.gz \ - 2e3700f00d1c1863e7718b2c2bd109cced7217ff - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - git clone --depth 1 https://chromium.googlesource.com/external/gyp build/gyp - mason_step "Loading patch ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff" - patch -N -p1 < ${MASON_DIR}/scripts/${MASON_NAME}/${MASON_VERSION}/patch.diff - if [[ $(uname -s) == 'Darwin' ]]; then - export LDFLAGS="${LDFLAGS:-} -stdlib=libc++" - fi - make x64.release werror=no -j${MASON_CONCURRENCY} - mkdir -p ${MASON_PREFIX}/include - mkdir -p ${MASON_PREFIX}/bin - mkdir -p ${MASON_PREFIX}/lib - cp -r include/* ${MASON_PREFIX}/include/ - if [[ $(uname -s) == 'Darwin' ]]; then - cp out/x64.release/lib*.a ${MASON_PREFIX}/lib/ - else - cp out/x64.release/obj.target/tools/gyp/lib*.a ${MASON_PREFIX}/lib/ - fi - cp out/x64.release/d8 ${MASON_PREFIX}/bin/ -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/v8/5.1.281.47/.travis.yml b/third_party/mason/scripts/v8/5.1.281.47/.travis.yml deleted file mode 100644 index 24b13a5aa..000000000 --- a/third_party/mason/scripts/v8/5.1.281.47/.travis.yml +++ /dev/null @@ -1,18 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode7.3 - compiler: clang - - os: linux - compiler: clang - sudo: false - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/v8/5.1.281.47/script.sh b/third_party/mason/scripts/v8/5.1.281.47/script.sh deleted file mode 100755 index 011b5ec63..000000000 --- a/third_party/mason/scripts/v8/5.1.281.47/script.sh +++ /dev/null @@ -1,132 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=v8 -MASON_VERSION=5.1.281.47 -MASON_LIB_FILE=lib/libv8_base.a - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/${MASON_NAME}/${MASON_NAME}/archive/${MASON_VERSION}.tar.gz \ - 3304589e65c878dfe45898abb5e7c7f85a9c9ab6 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} -function mason_prepare_compile { - CCACHE_VERSION=3.3.1 - ${MASON_DIR}/mason install ccache ${CCACHE_VERSION} - MASON_CCACHE=$(${MASON_DIR}/mason prefix ccache ${CCACHE_VERSION}) - - # create a directory to cache v8 deps - mkdir -p ../v8-deps - cd ../v8-deps - - M_GYP_PATH=$(pwd)/build/gyp/ - if [[ ! -d ${M_GYP_PATH} ]]; then - git clone https://chromium.googlesource.com/external/gyp ${M_GYP_PATH} - (cd ${M_GYP_PATH} && git checkout 4ec6c4e3a94bd04a6da2858163d40b2429b8aad1) - fi - - M_ICU_PATH=$(pwd)/third_party/icu/ - if [[ ! -d ${M_ICU_PATH} ]]; then - git clone https://chromium.googlesource.com/chromium/deps/icu.git ${M_ICU_PATH} - (cd ${M_ICU_PATH} && git checkout c291cde264469b20ca969ce8832088acb21e0c48) - fi - - M_BUILDTOOLS_PATH=$(pwd)/buildtools/ - if [[ ! -d ${M_BUILDTOOLS_PATH} ]]; then - git clone https://chromium.googlesource.com/chromium/buildtools.git ${M_BUILDTOOLS_PATH} - (cd ${M_BUILDTOOLS_PATH} && git checkout 80b5126f91be4eb359248d28696746ef09d5be67) - fi - - M_CLANG_PATH=$(pwd)/tools/clang/ - if [[ ! -d ${M_CLANG_PATH} ]]; then - git clone https://chromium.googlesource.com/chromium/src/tools/clang.git ${M_CLANG_PATH} - (cd ${M_CLANG_PATH} && git checkout faee82e064e04e5cbf60cc7327e7a81d2a4557ad) - fi - - M_TRACE_PATH=$(pwd)/base/trace_event/common/ - if [[ ! -d ${M_TRACE_PATH} ]]; then - git clone https://chromium.googlesource.com/chromium/src/base/trace_event/common.git ${M_TRACE_PATH} - (cd ${M_TRACE_PATH} && git checkout c8c8665c2deaf1cc749d9f8e153256d4f67bf1b8) - fi - - M_GTEST_PATH=$(pwd)/testing/gtest/ - if [[ ! -d ${M_GTEST_PATH} ]]; then - git clone https://chromium.googlesource.com/external/github.com/google/googletest.git ${M_GTEST_PATH} - (cd ${M_GTEST_PATH} && git checkout 6f8a66431cb592dad629028a50b3dd418a408c87) - fi - - M_GMOCK_PATH=$(pwd)/testing/gmock/ - if [[ ! -d ${M_GMOCK_PATH} ]]; then - git clone https://chromium.googlesource.com/external/googlemock.git ${M_GMOCK_PATH} - (cd ${M_GMOCK_PATH} && git checkout 0421b6f358139f02e102c9c332ce19a33faf75be) - fi - - M_SWARMING_PATH=$(pwd)/tools/swarming_client/ - if [[ ! -d ${M_SWARMING_PATH} ]]; then - git clone https://chromium.googlesource.com/external/swarming.client.git ${M_SWARMING_PATH} - (cd ${M_SWARMING_PATH} && git checkout df6e95e7669883c8fe9ef956c69a544154701a49) - fi - -} - -function mason_compile { - if [[ $(uname -s) == 'Darwin' ]]; then - export LDFLAGS="${LDFLAGS:-} -stdlib=libc++" - fi - export CXX="${MASON_CCACHE}/bin/ccache ${CXX}" - cp -r ${M_GYP_PATH} build/gyp - cp -r ${M_ICU_PATH} third_party/icu - cp -r ${M_BUILDTOOLS_PATH} buildtools - cp -r ${M_CLANG_PATH} tools/clang - mkdir -p base/trace_event - cp -r ${M_TRACE_PATH} base/trace_event/common - cp -r ${M_GTEST_PATH} testing/gtest - cp -r ${M_GMOCK_PATH} testing/gmock - cp -r ${M_SWARMING_PATH} tools/swarming_client - - # make gyp default to full archives for static libs rather than thin - if [[ $(uname -s) == 'Linux' ]]; then - perl -i -p -e "s/\'standalone_static_library\', 0\)/\'standalone_static_library\', 1\)/g;" build/gyp/pylib/gyp/generator/make.py - fi - #PYTHONPATH="$(pwd)/tools/generate_shim_headers:$(pwd)/build:$(pwd)/build/gyp/pylib:" \ - #GYP_GENERATORS=make \ - #build/gyp/gyp --generator-output="out" build/all.gyp \ - # -Ibuild/standalone.gypi --depth=. \ - # -Dv8_target_arch=x64 \ - # -Dtarget_arch=x64 \ - # -S.x64.release -Dv8_enable_backtrace=1 -Dwerror='' -Darm_fpu=default -Darm_float_abi=default \ - # -Dv8_no_strict_aliasing=1 -Dv8_enable_i18n_support=0 - GYPFLAGS=-Dmac_deployment_target=10.8 make x64.release library=static werror=no snapshot=on strictaliasing=off i18nsupport=off -j${MASON_CONCURRENCY} - mkdir -p ${MASON_PREFIX}/include - mkdir -p ${MASON_PREFIX}/lib - cp -r include/* ${MASON_PREFIX}/include/ - if [[ $(uname -s) == 'Darwin' ]]; then - cp out/x64.release/*v8*.a ${MASON_PREFIX}/lib/ - else - cp out/x64.release/obj.target/tools/gyp/lib*.a ${MASON_PREFIX}/lib/ - fi - strip -S ${MASON_PREFIX}/lib/* -} - -function mason_cflags { - echo -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - echo ${MASON_PREFIX}/lib/libv8_base.a ${MASON_PREFIX}/lib/libv8_libplatform.a ${MASON_PREFIX}/lib/libv8_external_snapshot.a ${MASON_PREFIX}/lib/libv8_libbase.a -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/valgrind/3.12.0/.travis.yml b/third_party/mason/scripts/valgrind/3.12.0/.travis.yml deleted file mode 100644 index b0f3f980b..000000000 --- a/third_party/mason/scripts/valgrind/3.12.0/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/valgrind/3.12.0/script.sh b/third_party/mason/scripts/valgrind/3.12.0/script.sh deleted file mode 100755 index 553be7e1b..000000000 --- a/third_party/mason/scripts/valgrind/3.12.0/script.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=valgrind -MASON_VERSION=3.12.0 -MASON_LIB_FILE=bin/valgrind - -MASON_IGNORE_OSX_SDK=true -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://valgrind.org/downloads/valgrind-${MASON_VERSION}.tar.bz2 \ - 9d10673077704b02513d216672ecb64d3719f537 - - mason_extract_tar_bz2 - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - if [ ${MASON_PLATFORM} = 'osx' ]; then - if [ $(xcode-select -p > /dev/null && echo $?) != 0 ]; then - sed -i 's@/usr/include/mach@'"$MASON_SDK_PATH"'&@' coregrind/Makefile.am - fi - EXTRA_ARGS="--enable-only64bit --build=amd64-darwin" - fi - ./autogen.sh - ./configure ${MASON_HOST_ARG} \ - --prefix=${MASON_PREFIX} \ - --disable-dependency-tracking \ - ${EXTRA_ARGS:-} - if [ ${MASON_PLATFORM} = 'osx' ]; then - make install -j${MASON_CONCURRENCY} - else - make install-strip -j${MASON_CONCURRENCY} - fi -} - -function mason_ldflags { - : -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/variant/1.0/.travis.yml b/third_party/mason/scripts/variant/1.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/variant/1.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/variant/1.0/script.sh b/third_party/mason/scripts/variant/1.0/script.sh deleted file mode 100755 index 24016f192..000000000 --- a/third_party/mason/scripts/variant/1.0/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=variant -MASON_VERSION=1.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/variant/archive/v1.0.tar.gz \ - fe96e8d9d5fe0294bf4a7cc6946b98e49534d232 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/variant-1.0 -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v *.hpp ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/variant/1.1.0/.travis.yml b/third_party/mason/scripts/variant/1.1.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/variant/1.1.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/variant/1.1.0/script.sh b/third_party/mason/scripts/variant/1.1.0/script.sh deleted file mode 100755 index 4181e2ff7..000000000 --- a/third_party/mason/scripts/variant/1.1.0/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=variant -MASON_VERSION=1.1.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/variant/archive/v1.1.0.tar.gz \ - cd61bc7ad50429875c7a5deb80611f97d87a8fe0 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/variant-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/mapbox - cp -v *.hpp ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/variant/1.1.1/.travis.yml b/third_party/mason/scripts/variant/1.1.1/.travis.yml deleted file mode 100644 index e7e77e2b0..000000000 --- a/third_party/mason/scripts/variant/1.1.1/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/variant/1.1.1/script.sh b/third_party/mason/scripts/variant/1.1.1/script.sh deleted file mode 100755 index 9777f4a60..000000000 --- a/third_party/mason/scripts/variant/1.1.1/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=variant -MASON_VERSION=1.1.1 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/variant/archive/v${MASON_VERSION}.tar.gz \ - 41389a2b58fae9d294ea44e1f407de268eeb9584 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/variant-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/variant/1.1.4/.travis.yml b/third_party/mason/scripts/variant/1.1.4/.travis.yml deleted file mode 100644 index e7e77e2b0..000000000 --- a/third_party/mason/scripts/variant/1.1.4/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/variant/1.1.4/script.sh b/third_party/mason/scripts/variant/1.1.4/script.sh deleted file mode 100755 index 8de3ba67b..000000000 --- a/third_party/mason/scripts/variant/1.1.4/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=variant -MASON_VERSION=1.1.4 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/variant/archive/v${MASON_VERSION}.tar.gz \ - 402efb62ad55bd124c5ecc73c2c2a220ba5fa378 - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/variant-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox - cp -v README.md LICENSE ${MASON_PREFIX} -} - -function mason_cflags { - echo -isystem ${MASON_PREFIX}/include -I${MASON_PREFIX}/include -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" diff --git a/third_party/mason/scripts/vector-tile/1.0.0-rc4/.travis.yml b/third_party/mason/scripts/vector-tile/1.0.0-rc4/.travis.yml deleted file mode 100644 index 6eaefcf17..000000000 --- a/third_party/mason/scripts/vector-tile/1.0.0-rc4/.travis.yml +++ /dev/null @@ -1,7 +0,0 @@ -language: generic - -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} \ No newline at end of file diff --git a/third_party/mason/scripts/vector-tile/1.0.0-rc4/script.sh b/third_party/mason/scripts/vector-tile/1.0.0-rc4/script.sh deleted file mode 100644 index fc563c103..000000000 --- a/third_party/mason/scripts/vector-tile/1.0.0-rc4/script.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=vector-tile -MASON_VERSION=1.0.0-rc4 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/${MASON_NAME}/archive/v${MASON_VERSION}.tar.gz \ - 7f9e12913ccb09bbe4e32cc8300383b1e7a2aef0 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/${MASON_NAME}-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - -function mason_static_libs { - : -} - -mason_run "$@" \ No newline at end of file diff --git a/third_party/mason/scripts/wagyu/0.1.0/.travis.yml b/third_party/mason/scripts/wagyu/0.1.0/.travis.yml deleted file mode 100644 index 5fca39ee3..000000000 --- a/third_party/mason/scripts/wagyu/0.1.0/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: cpp -sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/wagyu/0.1.0/script.sh b/third_party/mason/scripts/wagyu/0.1.0/script.sh deleted file mode 100644 index 2cab4c9c2..000000000 --- a/third_party/mason/scripts/wagyu/0.1.0/script.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=wagyu -MASON_VERSION=0.1.0 -MASON_HEADER_ONLY=true - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/mapbox/wagyu/archive/${MASON_VERSION}.tar.gz \ - fd8197ef6258338683b0fe583dca7b0957b98339 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/wagyu-${MASON_VERSION} -} - -function mason_compile { - mkdir -p ${MASON_PREFIX}/include/ - cp -r include/mapbox ${MASON_PREFIX}/include/mapbox -} - -function mason_cflags { - echo "-I${MASON_PREFIX}/include" -} - -function mason_ldflags { - : -} - - -mason_run "$@" diff --git a/third_party/mason/scripts/webp/0.4.2/.travis.yml b/third_party/mason/scripts/webp/0.4.2/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/webp/0.4.2/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/webp/0.4.2/script.sh b/third_party/mason/scripts/webp/0.4.2/script.sh deleted file mode 100755 index e38e09fd0..000000000 --- a/third_party/mason/scripts/webp/0.4.2/script.sh +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=webp -MASON_VERSION=0.4.2 -MASON_LIB_FILE=lib/libwebp.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libwebp.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.webmproject.org/releases/webp/libwebp-0.4.2.tar.gz \ - fdc496dcbcb03c9f26c2d9ce771545fa557a40c8 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libwebp-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_ldflags { - echo $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/webp/0.5.0/.travis.yml b/third_party/mason/scripts/webp/0.5.0/.travis.yml deleted file mode 100644 index 599aedabd..000000000 --- a/third_party/mason/scripts/webp/0.5.0/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode6 - compiler: clang - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/webp/0.5.0/script.sh b/third_party/mason/scripts/webp/0.5.0/script.sh deleted file mode 100755 index 868fc682a..000000000 --- a/third_party/mason/scripts/webp/0.5.0/script.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=webp -MASON_VERSION=0.5.0 -MASON_LIB_FILE=lib/libwebp.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libwebp.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.webmproject.org/releases/webp/libwebp-$MASON_VERSION.tar.gz \ - 9e5a4130ff09d28f0217eba972dcca5a57525f03 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libwebp-${MASON_VERSION} -} - -function mason_compile { - export CFLAGS="${CFLAGS:-} -Os" - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --with-pic \ - --enable-libwebpdecoder \ - --disable-cwebp \ - --disable-dwebp \ - --enable-swap-16bit-csp \ - --disable-gl \ - --disable-png \ - --disable-jpeg \ - --disable-tiff \ - --disable-gif \ - --disable-wic \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - ldflags=() - while [[ $1 ]] - do - case "$1" in - -lwebp) - shift - ;; - -L*) - shift - ;; - *) - ldflags+=("$1") - shift - ;; - esac - done - echo "${ldflags[@]}" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/webp/0.5.1/.travis.yml b/third_party/mason/scripts/webp/0.5.1/.travis.yml deleted file mode 100644 index ac1977aaf..000000000 --- a/third_party/mason/scripts/webp/0.5.1/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - osx_image: xcode7 - compiler: clang - - os: linux - env: MASON_PLATFORM_VERSION=i686 - - os: linux - env: MASON_PLATFORM_VERSION=cortex_a9 - - os: linux - compiler: clang - sudo: false - addons: - apt: - sources: [ 'ubuntu-toolchain-r-test' ] - packages: [ 'libstdc++-5-dev' ] - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/webp/0.5.1/script.sh b/third_party/mason/scripts/webp/0.5.1/script.sh deleted file mode 100755 index 557877349..000000000 --- a/third_party/mason/scripts/webp/0.5.1/script.sh +++ /dev/null @@ -1,79 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=webp -MASON_VERSION=0.5.1 -MASON_LIB_FILE=lib/libwebp.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libwebp.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.webmproject.org/releases/webp/libwebp-$MASON_VERSION.tar.gz \ - 7c2350c6524e8419e6b541a9087607c91c957377 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libwebp-${MASON_VERSION} -} - -function mason_compile { - export CFLAGS="${CFLAGS:-} -Os" - - # -mfpu=neon is not enabled by default for cortex_a9 because - # it affects floating point precision. webp is fine with it. - # See: https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html - if [[ ${MASON_PLATFORM_VERSION} == "cortex_a9" ]]; then - CFLAGS="${CFLAGS:-} -mfloat-abi=softfp -mfpu=neon" - fi - - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --with-pic \ - --enable-libwebpdecoder \ - --disable-cwebp \ - --disable-dwebp \ - --enable-swap-16bit-csp \ - --disable-gl \ - --disable-png \ - --disable-jpeg \ - --disable-tiff \ - --disable-gif \ - --disable-wic \ - --disable-dependency-tracking - - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - ldflags=() - while [[ $1 ]] - do - case "$1" in - -lwebp) - shift - ;; - -L*) - shift - ;; - *) - ldflags+=("$1") - shift - ;; - esac - done - echo "${ldflags[@]}" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/webp/0.6.0/.travis.yml b/third_party/mason/scripts/webp/0.6.0/.travis.yml deleted file mode 100644 index 51e10bc90..000000000 --- a/third_party/mason/scripts/webp/0.6.0/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: generic - -matrix: - include: - - os: osx - osx_image: xcode8.2 - compiler: clang - - os: linux - env: MASON_PLATFORM_VERSION=i686 - sudo: false - - os: linux - env: MASON_PLATFORM_VERSION=cortex_a9 - sudo: false - - os: linux - compiler: clang - sudo: false - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/webp/0.6.0/script.sh b/third_party/mason/scripts/webp/0.6.0/script.sh deleted file mode 100755 index b5dcd7ef9..000000000 --- a/third_party/mason/scripts/webp/0.6.0/script.sh +++ /dev/null @@ -1,86 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=webp -MASON_VERSION=0.6.0 -MASON_LIB_FILE=lib/libwebp.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/libwebp.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://downloads.webmproject.org/releases/webp/libwebp-$MASON_VERSION.tar.gz \ - 7669dc9a7c110cafc9e352d3abc1753bcb465dc0 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/libwebp-${MASON_VERSION} -} - -function mason_compile { - - # note CFLAGS overrides defaults - # -fvisibility=hidden -Wall -Wdeclaration-after-statement -Wextra -Wfloat-conversion -Wformat -Wformat-nonliteral -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wshadow -Wshorten-64-to-32 -Wunreachable-code -Wunused -Wvla -g -O2 - # so we need to add optimization flags back - export CFLAGS="${CFLAGS:-} -O3 -DNDEBUG -fvisibility=hidden -Wall" - - # -mfpu=neon is not enabled by default for cortex_a9 because - # it affects floating point precision. webp is fine with it. - # See: https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html - # this avoids the error from webp of: - # #error You must enable NEON instructions (e.g. -mfloat-abi=softfp -mfpu=neon) to use arm_neon.h - if [[ ${MASON_PLATFORM_VERSION} == "cortex_a9" ]]; then - CFLAGS="${CFLAGS:-} -mfloat-abi=softfp -mfpu=neon" - fi - - # TODO(springmeyer) - why is --enable-swap-16bit-csp enabled? - ./configure \ - --prefix=${MASON_PREFIX} \ - ${MASON_HOST_ARG} \ - --enable-static \ - --disable-shared \ - --with-pic \ - --disable-cwebp \ - --disable-dwebp \ - --enable-swap-16bit-csp \ - --disable-gl \ - --disable-png \ - --disable-jpeg \ - --disable-tiff \ - --disable-gif \ - --disable-wic \ - --disable-dependency-tracking - - make V=1 -j${MASON_CONCURRENCY} - make install -j${MASON_CONCURRENCY} -} - -function mason_strip_ldflags { - ldflags=() - while [[ $1 ]] - do - case "$1" in - -lwebp) - shift - ;; - -L*) - shift - ;; - *) - ldflags+=("$1") - shift - ;; - esac - done - echo "${ldflags[@]}" -} - -function mason_ldflags { - mason_strip_ldflags $(`mason_pkgconfig` --static --libs) -} - -function mason_clean { - make clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/zip/3.0.0/.travis.yml b/third_party/mason/scripts/zip/3.0.0/.travis.yml deleted file mode 100644 index 3431d4fb7..000000000 --- a/third_party/mason/scripts/zip/3.0.0/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - - os: linux - compiler: clang - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/zip/3.0.0/script.sh b/third_party/mason/scripts/zip/3.0.0/script.sh deleted file mode 100755 index 05c8c645d..000000000 --- a/third_party/mason/scripts/zip/3.0.0/script.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=zip -MASON_VERSION=3.0.0 -MASON_LIB_FILE=bin/zip - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - http://sourceforge.net/projects/infozip/files/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz/download \ - 57f60be499bef90ccf84fe47d522d32504609e9b - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/zip30 -} - -function mason_compile { - perl -i -p -e "s/prefix = \/usr\/local/prefix = ${MASON_PREFIX//\//\\/}/g;" unix/Makefile - make -f unix/Makefile install -} - -function mason_clean { - make -f unix/Makefile clean -} - -mason_run "$@" diff --git a/third_party/mason/scripts/zlib/1.2.8/.travis.yml b/third_party/mason/scripts/zlib/1.2.8/.travis.yml deleted file mode 100644 index daaec0be1..000000000 --- a/third_party/mason/scripts/zlib/1.2.8/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: osx - - os: linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86-64 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/zlib/1.2.8/script.sh b/third_party/mason/scripts/zlib/1.2.8/script.sh deleted file mode 100755 index f64dc38ce..000000000 --- a/third_party/mason/scripts/zlib/1.2.8/script.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=zlib -MASON_VERSION=1.2.8 -MASON_LIB_FILE=lib/libz.a -MASON_PKGCONFIG_FILE=lib/pkgconfig/zlib.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/madler/zlib/archive/v1.2.8.tar.gz \ - 72509ccfd1708e0073c84e8ee09de7a869816823 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/zlib-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - --static - - make install -j${MASON_CONCURRENCY} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/zlib/system/.travis.yml b/third_party/mason/scripts/zlib/system/.travis.yml deleted file mode 100644 index 895a3e615..000000000 --- a/third_party/mason/scripts/zlib/system/.travis.yml +++ /dev/null @@ -1,40 +0,0 @@ -language: cpp - -sudo: false - -matrix: - include: - - os: osx - compiler: clang - env: MASON_PLATFORM=osx - - os: osx - compiler: clang - env: MASON_PLATFORM=ios - - os: linux - compiler: clang - env: MASON_PLATFORM=linux - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v5 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v7 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=arm-v8 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=x86 - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips - - os: linux - env: MASON_PLATFORM=android MASON_ANDROID_ABI=mips-64 - -env: - global: - - ANDROID_NDK_VERSION=10d - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} -- ./mason link ${MASON_NAME} ${MASON_VERSION} -- ./test.sh -- ./mason version ${MASON_NAME} ${MASON_VERSION} - -after_success: -#- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/zlib/system/script.sh b/third_party/mason/scripts/zlib/system/script.sh deleted file mode 100755 index ed850785f..000000000 --- a/third_party/mason/scripts/zlib/system/script.sh +++ /dev/null @@ -1,81 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=zlib -MASON_VERSION=system -MASON_SYSTEM_PACKAGE=true - -. ${MASON_DIR}/mason.sh - - -if [[ ${MASON_PLATFORM} = 'ios' ]]; then - MASON_CFLAGS="" - MASON_LDFLAGS="-lz" -else - MASON_CFLAGS="-I${MASON_PREFIX}/include" - MASON_LDFLAGS="-L${MASON_PREFIX}/lib" - - if [[ ${MASON_PLATFORM} = 'osx' || ${MASON_PLATFORM} = 'android' ]]; then - ZLIB_INCLUDE_PREFIX="${MASON_SDK_PATH}/usr/include" - if [[ -d "${MASON_SDK_PATH}/usr/lib64" ]]; then - ZLIB_LIBRARY="${MASON_SDK_PATH}/usr/lib64/libz.${MASON_DYNLIB_SUFFIX}" - else - ZLIB_LIBRARY="${MASON_SDK_PATH}/usr/lib/libz.${MASON_DYNLIB_SUFFIX}" - fi - MASON_LDFLAGS="${MASON_LDFLAGS} -lz" - else - ZLIB_INCLUDE_PREFIX="${MASON_SDK_PATH}`pkg-config zlib --variable=includedir`" - ZLIB_LIBRARY="${MASON_SDK_PATH}`pkg-config zlib --variable=libdir`/libz.${MASON_DYNLIB_SUFFIX}" - MASON_CFLAGS="${MASON_CFLAGS} `pkg-config zlib --cflags-only-other`" - MASON_LDFLAGS="${MASON_LDFLAGS} `pkg-config zlib --libs-only-other --libs-only-l`" - fi - - if [ ! -f "${ZLIB_INCLUDE_PREFIX}/zlib.h" -a ! -h "${ZLIB_INCLUDE_PREFIX}/zlib.h" ]; then - mason_error "Can't find header file ${ZLIB_INCLUDE_PREFIX}/zlib.h" - exit 1 - fi - - if [ ! -f "${ZLIB_LIBRARY}" -a ! -h "${ZLIB_LIBRARY}" ]; then - mason_error "Can't find library file ${ZLIB_LIBRARY}" - exit 1 - fi -fi - -function mason_system_version { - if [[ ${MASON_PLATFORM} = 'ios' ]]; then - FLAGS="-I${MASON_SDK_PATH}/usr/include" - else - FLAGS=$(mason_cflags) - fi - - mkdir -p "${MASON_PREFIX}" - cd "${MASON_PREFIX}" - if [ ! -f version ]; then - echo "#include -#include -int main() { - printf(\"%s\", ZLIB_VERSION); - return 0; -} -" > version.c && cc version.c ${FLAGS} -o version - fi - ./version -} - -function mason_build { - if [[ ${MASON_PLATFORM} != 'ios' ]]; then - mkdir -p ${MASON_PREFIX}/{include,lib} - ln -sf ${ZLIB_INCLUDE_PREFIX}/z*.h ${MASON_PREFIX}/include/ - ln -sf ${ZLIB_LIBRARY} ${MASON_PREFIX}/lib/ - fi - VERSION=$(mason_system_version) -} - -function mason_cflags { - echo ${MASON_CFLAGS} -} - -function mason_ldflags { - echo ${MASON_LDFLAGS} -} - -mason_run "$@" diff --git a/third_party/mason/scripts/zlib/system/test.sh b/third_party/mason/scripts/zlib/system/test.sh deleted file mode 100755 index 0f740aa41..000000000 --- a/third_party/mason/scripts/zlib/system/test.sh +++ /dev/null @@ -1,135 +0,0 @@ -#!/usr/bin/env bash - -set -u - -CODE=0 - -function check_cflags() { - MASON_CFLAGS=$(./mason cflags ${MASON_NAME} ${MASON_VERSION}) - MASON_CFLAGS=${MASON_CFLAGS/-I/} - if [[ ! -d ${MASON_CFLAGS} ]]; then - echo "not ok: Path for cflags not found: ${MASON_CFLAGS}" - CODE=1 - else - echo "ok: path to cflags found: ${MASON_CFLAGS}" - fi -} - -function check_ldflags() { - MASON_LDFLAGS=$(./mason ldflags ${MASON_NAME} ${MASON_VERSION}) - for var in $MASON_LDFLAGS; do - if [[ "${var}" =~ "-L" ]]; then - vpath=${var/-L/} - if [[ ! -d ${vpath} ]]; then - echo "not ok: Path for ldflags not found: ${vpath}" - CODE=1 - else - echo "ok: path to ldflags found: ${vpath}" - fi - fi - done -} - -function read_link() { - # number of processors on the current system - case "$(uname -s)" in - 'Linux') readlink -f $1;; - 'Darwin') readlink $1;; - *) echo 1;; - esac -} - -# symlinks should be two deep -function check_file_links() { - if [[ ! -L ./mason_packages/.link/$1 ]]; then - echo "not ok: ./mason_packages/.link/$1 is not a symlink" - CODE=1 - else - resolved=$(read_link ./mason_packages/.link/$1) - echo "ok: $resolved is a symlink" - # resolve osx symlinks further - if [[ -L $resolved ]]; then - resolved=$(read_link $resolved) - fi - if [[ ! -f $resolved ]]; then - echo "not ok: $resolved is not a file" - CODE=1 - else - echo "ok: $resolved is a file" - expected_keyword="" - if [[ ${MASON_PLATFORM} == 'osx' ]]; then - expected_keyword="MacOSX.platform" - elif [[ ${MASON_PLATFORM} == 'linux' ]]; then - if [[ ${1} =~ "libz" ]]; then - expected_keyword="/lib/x86_64-linux-gnu/" - elif [[ ${1} =~ "include" ]]; then - expected_keyword="/usr/include/" - fi - elif [[ ${MASON_PLATFORM} == 'android' ]]; then - MASON_ANDROID_ABI=$(${MASON_DIR}/mason env MASON_ANDROID_ABI) - MASON_NDK_PACKAGE_VERSION=$(${MASON_DIR}/mason env MASON_NDK_PACKAGE_VERSION) - expected_keyword="android-ndk/${MASON_NDK_PACKAGE_VERSION}" - fi - if [[ "$resolved" =~ "${expected_keyword}" ]]; then - echo "ok: '${expected_keyword}' found in path $resolved" - else - echo "not ok: '${expected_keyword}' not found in path $resolved" - CODE=1 - fi - fi - fi -} - -function check_shared_lib_info() { - resolved=$(read_link ./mason_packages/.link/$1) - if [[ -f $resolved ]]; then - echo "ok: resolved to $resolved" - if [[ ${MASON_PLATFORM} == 'osx' ]]; then - file $resolved - otool -L $resolved - lipo -info $resolved - elif [[ ${MASON_PLATFORM} == 'linux' ]]; then - file $resolved - ldd $resolved - readelf -d $resolved - elif [[ ${MASON_PLATFORM} == 'android' ]]; then - FILE_DETAILS=$(file $resolved) - MASON_ANDROID_ARCH=$(${MASON_DIR}/mason env MASON_ANDROID_ARCH) - if [[ ${MASON_ANDROID_ARCH} =~ "64" ]]; then - if [[ ${FILE_DETAILS} =~ "64-bit" ]]; then - echo "ok: ${MASON_ANDROID_ARCH} 64-bit arch (for ${MASON_ANDROID_ABI}) expected and detected in $FILE_DETAILS" - else - echo "not ok: ${MASON_ANDROID_ARCH} 64-bit arch (for ${MASON_ANDROID_ABI}) expected and not detected in $FILE_DETAILS" - CODE=1 - fi - else - if [[ ${FILE_DETAILS} =~ "64-bit" ]]; then - echo "not ok: ${MASON_ANDROID_ARCH} 32 bit arch (for ${MASON_ANDROID_ABI}) expected and not detected in $FILE_DETAILS" - CODE=1 - fi - fi - BIN_PATH=$(${MASON_DIR}/mason env MASON_SDK_ROOT)/bin - MASON_ANDROID_TOOLCHAIN=$(${MASON_DIR}/mason env MASON_ANDROID_TOOLCHAIN) - ${BIN_PATH}/${MASON_ANDROID_TOOLCHAIN}-readelf -d $resolved - fi - - else - echo "not okay: could not resolve to file: $resolved" - CODE=1 - fi -} - -if [[ $MASON_PLATFORM != 'ios' ]]; then - check_cflags - check_ldflags - check_file_links "include/zlib.h" - check_file_links "include/zconf.h" - check_file_links "lib/libz.$(${MASON_DIR}/mason env MASON_DYNLIB_SUFFIX)" - if [[ ${CODE} == 0 ]]; then - check_shared_lib_info "lib/libz.$(${MASON_DIR}/mason env MASON_DYNLIB_SUFFIX)" - else - echo "Error already occured so skipping shared library test" - fi -fi - -exit ${CODE} diff --git a/third_party/mason/scripts/zlib_shared/1.2.8/.travis.yml b/third_party/mason/scripts/zlib_shared/1.2.8/.travis.yml deleted file mode 100644 index 54ccebb35..000000000 --- a/third_party/mason/scripts/zlib_shared/1.2.8/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: cpp - -sudo: false - -compiler: clang - -matrix: - include: - - os: linux - env: MASON_PLATFORM_VERSION=cortex_a9 - - os: linux - env: MASON_PLATFORM_VERSION=i686 - - os: linux - -script: -- ./mason build ${MASON_NAME} ${MASON_VERSION} - -after_success: -- ./mason publish ${MASON_NAME} ${MASON_VERSION} diff --git a/third_party/mason/scripts/zlib_shared/1.2.8/script.sh b/third_party/mason/scripts/zlib_shared/1.2.8/script.sh deleted file mode 100755 index 202584d73..000000000 --- a/third_party/mason/scripts/zlib_shared/1.2.8/script.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env bash - -MASON_NAME=zlib -MASON_VERSION=1.2.8 -MASON_LIB_FILE=lib/libz.${MASON_DYNLIB_SUFFIX} -MASON_PKGCONFIG_FILE=lib/pkgconfig/zlib.pc - -. ${MASON_DIR}/mason.sh - -function mason_load_source { - mason_download \ - https://github.com/madler/zlib/archive/v1.2.8.tar.gz \ - 72509ccfd1708e0073c84e8ee09de7a869816823 - - mason_extract_tar_gz - - export MASON_BUILD_PATH=${MASON_ROOT}/.build/zlib-${MASON_VERSION} -} - -function mason_compile { - ./configure \ - --prefix=${MASON_PREFIX} \ - --shared - - make install -j${MASON_CONCURRENCY} -} - -mason_run "$@" diff --git a/third_party/mason/test/all.sh b/third_party/mason/test/all.sh deleted file mode 100755 index 2557fe765..000000000 --- a/third_party/mason/test/all.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env bash - -set -eu -set -o pipefail - -$(dirname $0)/unit.sh -$(dirname $0)/llvm.sh -$(dirname $0)/c_install.sh -$(dirname $0)/c_build.sh -$(dirname $0)/c_build_android.sh -$(dirname $0)/c_install_symlink_includes.sh -$(dirname $0)/cpp11_header_install.sh -$(dirname $0)/cpp11_install.sh -$(dirname $0)/cpp11_build.sh \ No newline at end of file diff --git a/third_party/mason/test/assert.sh b/third_party/mason/test/assert.sh deleted file mode 100755 index 8a42862d2..000000000 --- a/third_party/mason/test/assert.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -function assertEqual() { - if [ "$1" == "$2" ]; then - echo "ok - $1 ($3)" - else - echo "not ok - $1 != $2 ($3)" - CODE=1 - fi -} diff --git a/third_party/mason/test/c_build.sh b/third_party/mason/test/c_build.sh deleted file mode 100755 index 078a30d4e..000000000 --- a/third_party/mason/test/c_build.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -set -e -u -set -o pipefail - -./mason build sqlite 3.8.8.1 -./mason build libuv 0.10.28 -./mason build libuv 0.11.29 \ No newline at end of file diff --git a/third_party/mason/test/c_build_android.sh b/third_party/mason/test/c_build_android.sh deleted file mode 100755 index ffa7ce663..000000000 --- a/third_party/mason/test/c_build_android.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -set -e -u -set -o pipefail - -export MASON_PLATFORM=android -export MASON_ANDROID_ARCH=arm -./mason build freetype 2.5.5 \ No newline at end of file diff --git a/third_party/mason/test/c_install.sh b/third_party/mason/test/c_install.sh deleted file mode 100755 index ab25ef172..000000000 --- a/third_party/mason/test/c_install.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -set -e -u -set -o pipefail - -./mason install sqlite 3.8.8.1 -./mason install libuv 0.10.28 -./mason install libuv 0.11.29 diff --git a/third_party/mason/test/c_install_symlink_includes.sh b/third_party/mason/test/c_install_symlink_includes.sh deleted file mode 100755 index cd0d35bea..000000000 --- a/third_party/mason/test/c_install_symlink_includes.sh +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env bash - -set -e -u -set -o pipefail - -./mason install libpng 1.6.16 -./mason link libpng 1.6.16 - -failure=0 - -if [[ ! -d mason_packages/.link/include/libpng16 ]]; then - echo "could not find expected include/libpng16" - failure=1 -fi - -if [[ ! -L mason_packages/.link/include/libpng16/png.h ]]; then - echo "include/libpng16/png.h is expected to be a symlink" - failure=1 -fi - -if [[ ! -L mason_packages/.link/include/png.h ]]; then - echo "include/png.h is expected to be a symlink" - failure=1 -fi - -exit $failure - diff --git a/third_party/mason/test/cpp11_build.sh b/third_party/mason/test/cpp11_build.sh deleted file mode 100755 index 5705fe117..000000000 --- a/third_party/mason/test/cpp11_build.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env bash - -set -e -u -set -o pipefail - -# ensure building a C++ lib works -./mason build stxxl 1.4.1 - -# ensure linking results in expected files -./mason link stxxl 1.4.1 - -failure=0 - -if [[ ! -f mason_packages/.link/lib/libstxxl.a ]]; then - echo "could not find expected lib/libstxxl.a" - failure=1 -fi - -if [[ ! -f mason_packages/.link/lib/pkgconfig/stxxl.pc ]]; then - echo "could not find expected lib/pkgconfig/stxxl.pc" - failure=1 -fi - -if [[ ! -d mason_packages/.link/include/stxxl ]]; then - echo "could not find expected include/stxxl" - failure=1 -fi - -if [[ ! -f mason_packages/.link/include/stxxl.h ]]; then - echo "could not find expected include/stxxl.h" - failure=1 -fi - -exit $failure \ No newline at end of file diff --git a/third_party/mason/test/cpp11_header_install.sh b/third_party/mason/test/cpp11_header_install.sh deleted file mode 100755 index 237e479e8..000000000 --- a/third_party/mason/test/cpp11_header_install.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -set -e -u -set -o pipefail - -./mason install boost 1.57.0 -./mason link boost 1.57.0 - -failure=0 - -# boost and packages other we symlink the directory -if [[ ! -d mason_packages/.link/include/boost ]]; then - echo "could not find expected include/boost" - failure=1 -fi - -# install packages that share namespaces and directories -# and insure they get placed okay (and don't prevent each other -# from being symlinked) - -./mason install sparsehash 2.0.2 -./mason link sparsehash 2.0.2 -./mason install protobuf 2.6.1 -./mason link protobuf 2.6.1 -./mason install geometry 0.7.0 -./mason link geometry 0.7.0 -./mason install variant 1.1.0 -./mason link variant 1.1.0 - -if [[ ! -d mason_packages/.link/include/google/sparsehash ]]; then - echo "could not find expected include/google/sparsehash" - failure=1 -fi - - -if [[ ! -d mason_packages/.link/include/google/protobuf ]]; then - echo "could not find expected include/google/protobuf" - failure=1 -fi - - -if [[ ! -d mason_packages/.link/include/mapbox/geometry ]]; then - echo "could not find expected include/mapbox/geometry" - failure=1 -fi - -exit $failure - - diff --git a/third_party/mason/test/cpp11_install.sh b/third_party/mason/test/cpp11_install.sh deleted file mode 100755 index db348b9b4..000000000 --- a/third_party/mason/test/cpp11_install.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -set -e -u -set -o pipefail - -./mason install boost_libregex 1.57.0 -./mason link boost_libregex 1.57.0 - - -failure=0 - -if [[ ! -f mason_packages/.link/lib/libboost_regex.a ]]; then - echo "could not find expected lib/libboost_regex.a" - failure=1 -fi - -if [[ ! -L mason_packages/.link/lib/libboost_regex.a ]]; then - echo "lib/libboost_regex.a is not a symlink like expected" - failure=1 -fi - -exit $failure \ No newline at end of file diff --git a/third_party/mason/test/llvm.sh b/third_party/mason/test/llvm.sh deleted file mode 100755 index fd7b92457..000000000 --- a/third_party/mason/test/llvm.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/env bash - -set -e -u -set -o pipefail - -failure=0 - -if [[ $(uname -s) == 'Linux' ]]; then - - # install both llvm variants - ./mason install llvm 3.8.1 # linked to libc++ - ./mason install llvm 3.8.1-libstdcxx # linked to libstd++ - LLVM1=$(./mason prefix llvm 3.8.1) - LLVM2=$(./mason prefix llvm 3.8.1-libstdcxx) - - if [[ ${LLVM1} == ${LLVM2} ]]; then - echo "expected prefix to be different for both llvm versions" - failure=1 - fi - - CXXFLAGS1=$($(./mason prefix llvm 3.8.1)/bin/llvm-config --cxxflags) - if [[ ${CXXFLAGS1} =~ '-stdlib=libc++' ]]; then - # found expected libc++ flag - : - else - echo "Did not find libc++ in flags" - failure=1 - fi - - CXXFLAGS2=$($(./mason prefix llvm 3.8.1-libstdcxx)/bin/llvm-config --cxxflags) - if [[ ${CXXFLAGS2} =~ '-stdlib=libc++' ]]; then - echo "Found libc++ in flags (unexpected for libstdc++ package variant)" - failure=1 - fi -fi - -exit $failure \ No newline at end of file diff --git a/third_party/mason/test/unit.sh b/third_party/mason/test/unit.sh deleted file mode 100755 index 270a05781..000000000 --- a/third_party/mason/test/unit.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env bash - -CODE=0 - -source $(dirname $0)/assert.sh - -VAL=$(./mason env MASON_DIR) -assertEqual "$?" "0" "able to run ./mason env MASON_DIR" -if [[ ${MASON_DIR:-unset} != "unset" ]]; then - assertEqual "$MASON_DIR" "$VAL" "got correct result of ./mason env MASON_DIR" -else - assertEqual "$(pwd)" "$VAL" "got correct result of ./mason env MASON_DIR" -fi - -VAL=$(./mason --version) -assertEqual "$?" "0" "able to run ./mason --version" - -exit $CODE \ No newline at end of file diff --git a/third_party/mason/utils/android.sh b/third_party/mason/utils/android.sh deleted file mode 100755 index a2d943770..000000000 --- a/third_party/mason/utils/android.sh +++ /dev/null @@ -1,16 +0,0 @@ -#!/usr/bin/env bash - -set -e -set -o pipefail - -echo "set(CMAKE_SYSTEM_NAME Android)" -echo "set(CMAKE_SYSTEM_VERSION 1)" -echo "set(CMAKE_CXX_COMPILER \"`which $(${MASON_DIR}/mason env CXX)`\")" -echo "set(CMAKE_C_COMPILER \"`which $(${MASON_DIR}/mason env CC)`\")" -echo "set(ANDROID_JNIDIR \"`${MASON_DIR}/mason env JNIDIR`\")" -echo "set(ANDROID_ABI \"\${ANDROID_JNIDIR}\")" -echo "set(CMAKE_EXE_LINKER_FLAGS \"`${MASON_DIR}/mason env LDFLAGS` \${CMAKE_EXE_LINKER_FLAGS}\")" -echo "set(CMAKE_SHARED_LINKER_FLAGS \"`${MASON_DIR}/mason env LDFLAGS` \${CMAKE_SHARED_LINKER_FLAGS}\")" -echo "set(CMAKE_CXX_FLAGS \"`${MASON_DIR}/mason env CXXFLAGS` \${CMAKE_CXX_FLAGS}\")" -echo "set(CMAKE_C_FLAGS \"`${MASON_DIR}/mason env CPPFLAGS` \${CMAKE_C_FLAGS}\")" -echo "set(STRIP_COMMAND \"`which $(${MASON_DIR}/mason env STRIP)`\")" diff --git a/third_party/mason/utils/ios.cmake b/third_party/mason/utils/ios.cmake deleted file mode 100644 index 60dbac07c..000000000 --- a/third_party/mason/utils/ios.cmake +++ /dev/null @@ -1,136 +0,0 @@ -# From https://github.com/OtherLevels/ios-cmake -# This file is based off of the Platform/Darwin.cmake and Platform/UnixPaths.cmake -# files which are included with CMake 2.8.4 -# It has been altered for iOS development - -# Options: -# -# IOS_PLATFORM = OS (default) or SIMULATOR or SIMULATOR64 -# This decides if SDKS will be selected from the iPhoneOS.platform or iPhoneSimulator.platform folders -# OS - the default, used to build for iPhone and iPad physical devices, which have an arm arch. -# SIMULATOR - used to build for the Simulator platforms, which have an x86 arch. -# -# CMAKE_IOS_DEVELOPER_ROOT = automatic(default) or /path/to/platform/Developer folder -# By default this location is automatcially chosen based on the IOS_PLATFORM value above. -# If set manually, it will override the default location and force the user of a particular Developer Platform -# -# CMAKE_IOS_SDK_ROOT = automatic(default) or /path/to/platform/Developer/SDKs/SDK folder -# By default this location is automatcially chosen based on the CMAKE_IOS_DEVELOPER_ROOT value. -# In this case it will always be the most up-to-date SDK found in the CMAKE_IOS_DEVELOPER_ROOT path. -# If set manually, this will force the use of a specific SDK version - -# Macros: -# -# set_xcode_property (TARGET XCODE_PROPERTY XCODE_VALUE) -# A convenience macro for setting xcode specific properties on targets -# example: set_xcode_property (myioslib IPHONEOS_DEPLOYMENT_TARGET "3.1") -# -# find_host_package (PROGRAM ARGS) -# A macro used to find executable programs on the host system, not within the iOS environment. -# Thanks to the android-cmake project for providing the command - -# Standard settings -set (CMAKE_SYSTEM_NAME Darwin) -set (CMAKE_SYSTEM_VERSION 1) -set (UNIX True) -set (APPLE True) -set (IOS True) - -# Required as of cmake 2.8.10 -set (CMAKE_OSX_DEPLOYMENT_TARGET "" CACHE STRING "Force unset of the deployment target for iOS" FORCE) - -# Determine the cmake host system version so we know where to find the iOS SDKs -find_program (CMAKE_UNAME uname /bin /usr/bin /usr/local/bin) -if (CMAKE_UNAME) - exec_program(uname ARGS -r OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_VERSION) - string (REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_HOST_SYSTEM_VERSION}") -endif (CMAKE_UNAME) - -# Force the compilers to gcc for iOS -include (CMakeForceCompiler) -set(XCODE_TOOLCHAIN /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain) -set(XCODE_BIN ${XCODE_TOOLCHAIN}/usr/bin) -set(CMAKE_C_COMPILER ${XCODE_BIN}/clang) -set(CMAKE_CXX_COMPILER ${XCODE_BIN}/clang++) -set(CMAKE_FIND_ROOT_PATH ${XCODE_TOOLCHAIN_ROOT}) -set(CMAKE_AR ar CACHE FILEPATH "" FORCE) - -# Skip the platform compiler checks for cross compiling -set (CMAKE_CXX_COMPILER_WORKS TRUE) -set (CMAKE_C_COMPILER_WORKS TRUE) - -# All iOS/Darwin specific settings - some may be redundant -set (CMAKE_SHARED_LIBRARY_PREFIX "lib") -set (CMAKE_SHARED_LIBRARY_SUFFIX ".dylib") -set (CMAKE_SHARED_MODULE_PREFIX "lib") -set (CMAKE_SHARED_MODULE_SUFFIX ".so") -set (CMAKE_MODULE_EXISTS 1) -set (CMAKE_DL_LIBS "") - -set (CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ") -set (CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version ") -set (CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG}") -set (CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}") - - -# This was required for Other C++ Flags to be set for enabling bitcode in a static lib. -# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fembed-bitcode") - - -set (CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}") -set (CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_CXX_LINK_FLAGS}") - -set (CMAKE_PLATFORM_HAS_INSTALLNAME 1) -set (CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib -headerpad_max_install_names") -set (CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -headerpad_max_install_names") -set (CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,") -set (CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,") -set (CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a") - - -# Point to the latest SDK. -set (CMAKE_OSX_SYSROOT "iphoneos" CACHE string "Sysroot used for iOS support") - - - -set (CMAKE_OSX_ARCHITECTURES "$(ARCHS_STANDARD)" CACHE string "Build architecture for iOS") - -# Set the find root to the iOS developer roots and to user defined paths -set (CMAKE_FIND_ROOT_PATH ${CMAKE_IOS_DEVELOPER_ROOT} ${CMAKE_IOS_SDK_ROOT} ${CMAKE_PREFIX_PATH} CACHE string "iOS find search path root") - -# default to searching for frameworks first -set (CMAKE_FIND_FRAMEWORK FIRST) - -# set up the default search directories for frameworks -set (CMAKE_SYSTEM_FRAMEWORK_PATH - ${CMAKE_IOS_SDK_ROOT}/System/Library/Frameworks - ${CMAKE_IOS_SDK_ROOT}/System/Library/PrivateFrameworks - ${CMAKE_IOS_SDK_ROOT}/Developer/Library/Frameworks -) - -# only search the iOS sdks, not the remainder of the host filesystem -set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY) -set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) -set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) - - -# This little macro lets you set any XCode specific property -macro (set_xcode_property TARGET XCODE_PROPERTY XCODE_VALUE) - set_property (TARGET ${TARGET} PROPERTY XCODE_ATTRIBUTE_${XCODE_PROPERTY} ${XCODE_VALUE}) -endmacro (set_xcode_property) - - -# This macro lets you find executable programs on the host system -macro (find_host_package) - set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) - set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER) - set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER) - set (IOS FALSE) - - find_package(${ARGN}) - - set (IOS TRUE) - set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY) - set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) - set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) -endmacro (find_host_package) diff --git a/third_party/mason/utils/new_boost.sh b/third_party/mason/utils/new_boost.sh deleted file mode 100755 index 05d61405f..000000000 --- a/third_party/mason/utils/new_boost.sh +++ /dev/null @@ -1,54 +0,0 @@ -set -eu -set -o pipefail - -LAST_VERSION="1.62.0" -NEW_VERSION="1.63.0" - -: ' - -manual intervention: - - - change/upgrade icu version used by boost_regex - - new libraries available to build? - -' - -CLEAN="${CLEAN:-false}" - - -if [[ ${CLEAN} ]]; then - rm -rf scripts/boost/${NEW_VERSION} -fi - -mkdir scripts/boost/${NEW_VERSION} -cp -r scripts/boost/${LAST_VERSION}/. scripts/boost/${NEW_VERSION}/ -perl -i -p -e "s/MASON_VERSION=${LAST_VERSION}/MASON_VERSION=${NEW_VERSION}/g;" scripts/boost/${NEW_VERSION}/base.sh -export BOOST_VERSION=${NEW_VERSION//./_} -export CACHE_PATH="mason_packages/.cache" -mkdir -p "${CACHE_PATH}" -if [[ ! -f ${CACHE_PATH}/boost-${NEW_VERSION} ]]; then - curl --retry 3 -f -S -L http://downloads.sourceforge.net/project/boost/boost/${NEW_VERSION}/boost_${BOOST_VERSION}.tar.bz2 -o ${CACHE_PATH}/boost-${NEW_VERSION} -fi - -NEW_SHASUM=$(git hash-object ${CACHE_PATH}/boost-${NEW_VERSION}) - -perl -i -p -e "s/BOOST_SHASUM=(.*)/BOOST_SHASUM=${NEW_SHASUM}/g;" scripts/boost/${NEW_VERSION}/base.sh - -for lib in $(find scripts/ -maxdepth 1 -type dir -name 'boost_lib*' -print); do - if [[ -d $lib/${LAST_VERSION} ]]; then - if [[ ${CLEAN} ]]; then - rm -rf $lib/${NEW_VERSION} - fi - mkdir $lib/${NEW_VERSION} - cp -r $lib/${LAST_VERSION}/. $lib/${NEW_VERSION}/ - else - echo "skipping creating package for $lib" - fi -done - -./mason trigger boost ${NEW_VERSION} -# TODO: this is rate limited so it needs to be run over many hours to avoid travis blocking -for lib in $(find scripts/ -maxdepth 1 -type dir -name 'boost_lib*' -print); do - echo ./mason trigger $(basename $lib) ${NEW_VERSION} -done - diff --git a/third_party/mason/utils/rebuild-llvm-tools.sh b/third_party/mason/utils/rebuild-llvm-tools.sh deleted file mode 100755 index 6df2eb7f1..000000000 --- a/third_party/mason/utils/rebuild-llvm-tools.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env bash - -set -eu -set -o pipefail - -packages=(llvm clang++ clang-tidy clang-format lldb llvm-cov include-what-you-use) -versions=(3.9.1 4.0.0 3.8.1) - -if [[ $(uname -s) == 'Linux' ]]; then - CLANG_BOOTSTRAP_VERSION="3.8.1" - ./mason install clang++ ${CLANG_BOOTSTRAP_VERSION} - CLANG_PREFIX=$(./mason prefix clang++ ${CLANG_BOOTSTRAP_VERSION}) - export CXX=${CLANG_PREFIX}/bin/clang++ - export CC=${CLANG_PREFIX}/bin/clang -fi - -function build() { - local VERSION=$1 - for package in "${!packages[@]}"; do - ./mason build ${packages[$package]} ${VERSION} - done -} - -function publish() { - local VERSION=$1 - for package in "${!packages[@]}"; do - ./mason publish ${packages[$package]} ${VERSION} - done -} - -function new_version() { - local NEW_VERSION="$1" - local LAST_VERSION="$2" - for package in "${!packages[@]}"; do - mkdir -p scripts/${package}/${NEW_VERSION} - cp -r scripts/${package}/${LAST_VERSION}/. scripts/${package}/${NEW_VERSION}/ - done -} - - -function build_all() { - for ver in "${!versions[@]}"; do - build ${versions[$ver]} - publish ${versions[$ver]} - done -} - -if [[ ${1:-0} == "all" ]]; then - build_all -fi diff --git a/third_party/mason/utils/toolchain.sh b/third_party/mason/utils/toolchain.sh deleted file mode 100644 index 54fd3eee8..000000000 --- a/third_party/mason/utils/toolchain.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -set -eu -set -o pipefail - -CLANG_VERSION="3.9.1" -./mason install clang++ ${CLANG_VERSION} -export PATH=$(./mason prefix clang++ ${CLANG_VERSION})/bin:${PATH} -export CXX=clang++-3.9 -export CC=clang-3.9 - -set +eu \ No newline at end of file