#!/bin/sh

export CPPFLAGS="-I$PREFIX/include -fPIC"
export LDFLAGS="-L$PREFIX/lib"

./configure \
    --with-boost=$PREFIX \
    --disable-tests \
    --with-cpp \
    --without-qt4 \
    --without-qt5 \
    --without-c_glib \
    --without-csharp \
    --without-java \
    --without-erlang \
    --without-nodejs \
    --without-lua \
    --without-python \
    --without-perl \
    --without-php \
    --without-php_extension \
    --without-ruby \
    --without-haskell \
    --without-go \
    --without-haxe \
    --without-d \
    --prefix=$PREFIX

make
make install

strip $PREFIX/bin/thrift
