Merge commit 'a34a885031fcb1797621e8968497561a4837e06a' as 'third_party/mason'

This commit is contained in:
Dane Springmeyer
2016-10-28 12:21:21 -07:00
707 changed files with 29942 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
language: cpp
sudo: false
matrix:
include:
- os: osx
compiler: clang
- os: linux
compiler: clang
env:
global:
- secure: "clCFM3prHnDocZ8lXlimPxAogvFirD1Zx8cMcFJ/XpkTA/0pCgnhpArM4y/NzLHR57pNZTSCr3p6XZI1c1iTG4Zm8x0sK2A4aTFRahypXNy/e+LzAbtd1y1+dEEDwlJvNNGxizQX4frhOgSNQFDFnWLtmF3stlft5YWyc2kI+FI="
- secure: "jKJErCng8Sk8YJ0IN2FX3lhv7G1LeudMfFBAXViZaXn8w/gWPs+SlfXQmIJ5SruU7U2GQKnAhzbjwXjVAgAh8OAblzny0DDm5Lh5WmwkgAP8JH1LpsBwCYx2S/v8qyR4DX1RVhHS8mQu298180ZDVgGccw+hd8xrE/S5TEQcNfQ="
before_install:
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
after_success:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+65
View File
@@ -0,0 +1,65 @@
#!/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 "$@"
+23
View File
@@ -0,0 +1,23 @@
language: cpp
sudo: false
matrix:
include:
- os: osx
compiler: clang
- os: linux
compiler: clang
env:
global:
- secure: "clCFM3prHnDocZ8lXlimPxAogvFirD1Zx8cMcFJ/XpkTA/0pCgnhpArM4y/NzLHR57pNZTSCr3p6XZI1c1iTG4Zm8x0sK2A4aTFRahypXNy/e+LzAbtd1y1+dEEDwlJvNNGxizQX4frhOgSNQFDFnWLtmF3stlft5YWyc2kI+FI="
- secure: "jKJErCng8Sk8YJ0IN2FX3lhv7G1LeudMfFBAXViZaXn8w/gWPs+SlfXQmIJ5SruU7U2GQKnAhzbjwXjVAgAh8OAblzny0DDm5Lh5WmwkgAP8JH1LpsBwCYx2S/v8qyR4DX1RVhHS8mQu298180ZDVgGccw+hd8xrE/S5TEQcNfQ="
before_install:
script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
after_success:
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
+65
View File
@@ -0,0 +1,65 @@
#!/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 "$@"