Better ncurses URL and some other fixes.

This commit is contained in:
Nicholas Marriott 2020-05-03 12:03:50 +01:00
parent 97d490204b
commit b203f7f19f
2 changed files with 28 additions and 19 deletions

View File

@ -4,31 +4,32 @@ BUILD=$PWD/build
LIBEVENT=https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stab\ LIBEVENT=https://github.com/libevent/libevent/releases/download/release-2.1.11-stable/libevent-2.1.11-stab\
le.tar.gz le.tar.gz
NCURSES=ftp://ftp.invisible-island.net/ncurses/ncurses-6.2.tar.gz NCURSES=https://ftp.gnu.org/gnu/ncurses/ncurses-6.2.tar.gz
wget -q $LIBEVENT || exit 1 wget -4q $LIBEVENT || exit 1
tar -zxf libevent-*.tar.gz || exit 1 tar -zxf libevent-*.tar.gz || exit 1
(cd libevent-*/ && (cd libevent-*/ &&
./configure --prefix=$BUILD \ ./configure --prefix=$BUILD \
--enable-shared \ --enable-shared \
--disable-libevent-regress \ --disable-libevent-regress \
--disable-samples && --disable-samples &&
make && make install) || exit 1 make && make install) || exit 1
wget -q $NCURSES || exit 1 wget -4q $NCURSES || exit 1
tar -zxf ncurses-*.tar.gz || exit 1 tar -zxf ncurses-*.tar.gz || exit 1
(cd ncurses-*/ && (cd ncurses-*/ &&
CPPFLAGS=-P ./configure --prefix=$BUILD \ CPPFLAGS=-P ./configure --prefix=$BUILD \
--with-shared \ --with-shared \
--without-ada \ --with-termlib \
--without-cxx \ --without-ada \
--without-manpages \ --without-cxx \
--without-progs \ --without-manpages \
--without-tests \ --without-progs \
--without-tack \ --without-tests \
--enable-pc-files \ --without-tack \
--with-pkg-config-libdir=$BUILD/lib/pkgconfig && --enable-pc-files \
make && make install) || exit 1 --with-pkg-config-libdir=$BUILD/lib/pkgconfig &&
make && make install) || exit 1
sh autogen.sh || exit 1 sh autogen.sh || exit 1
PKG_CONFIG_PATH=$BUILD/lib/pkgconfig ./configure --prefix=$BUILD "$@" PKG_CONFIG_PATH=$BUILD/lib/pkgconfig ./configure --prefix=$BUILD "$@"

View File

@ -25,6 +25,14 @@ jobs:
- os: osx - os: osx
compiler: clang compiler: clang
env: BUILD=static env: BUILD=static
- os: linux
compiler: gcc
arch: arm64
env: BUILD=all
- os: linux
compiler: clang
arch: arm64
env: BUILD=all
before_install: before_install:
- sh .github/travis/before-install.sh - sh .github/travis/before-install.sh