tmux/.github/travis/build-all.sh

39 lines
1.0 KiB
Bash
Raw Normal View History

2020-05-03 10:47:28 +00:00
#!/bin/sh
BUILD=$PWD/build
LIBEVENT=https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stab\
le.tar.gz
NCURSES=https://ftp.gnu.org/gnu/ncurses/ncurses-6.2.tar.gz
2020-05-03 10:47:28 +00:00
wget -4q $LIBEVENT || exit 1
2020-05-03 10:47:28 +00:00
tar -zxf libevent-*.tar.gz || exit 1
(cd libevent-*/ &&
./configure --prefix=$BUILD \
--enable-shared \
--disable-libevent-regress \
--disable-samples &&
make && make install) || exit 1
2020-05-03 10:47:28 +00:00
wget -4q $NCURSES || exit 1
2020-05-03 10:47:28 +00:00
tar -zxf ncurses-*.tar.gz || exit 1
(cd ncurses-*/ &&
CPPFLAGS=-P ./configure --prefix=$BUILD \
--with-shared \
--with-termlib \
--without-ada \
--without-cxx \
--without-manpages \
--without-progs \
--without-tests \
--without-tack \
2020-05-03 11:12:47 +00:00
--disable-database \
2020-05-03 11:20:08 +00:00
--enable-termcap \
--enable-pc-files \
--with-pkg-config-libdir=$BUILD/lib/pkgconfig &&
make && make install) || exit 1
2020-05-03 10:47:28 +00:00
sh autogen.sh || exit 1
PKG_CONFIG_PATH=$BUILD/lib/pkgconfig ./configure --prefix=$BUILD "$@"
make && make install || exit 1