Merge commit 'f8dd96543542220181c76afb8c084f4908213fb5' as 'third_party/mason'

This commit is contained in:
Patrick Niklaus
2016-12-15 10:31:15 +00:00
796 changed files with 30230 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
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}
+55
View File
@@ -0,0 +1,55 @@
#!/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 "$@"
+17
View File
@@ -0,0 +1,17 @@
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}
+55
View File
@@ -0,0 +1,55 @@
#!/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.4.2
MASON_JPEG=$(${MASON_DIR}/mason prefix jpeg_turbo 1.4.2)
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 "$@"
@@ -0,0 +1,16 @@
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}
@@ -0,0 +1,54 @@
#!/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 "$@"