forked from ariadne/pkgconf
install_deps.sh: first cut at cygwin support
parent
8b4a4b831b
commit
26d9a81c9c
|
@ -51,20 +51,42 @@ install_from_github() {
|
||||||
CPPFLAGS="-I/usr/local/include" \
|
CPPFLAGS="-I/usr/local/include" \
|
||||||
LDFLAGS="-L/usr/local/lib -Wl,-R/usr/local/lib" \
|
LDFLAGS="-L/usr/local/lib -Wl,-R/usr/local/lib" \
|
||||||
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
|
PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"
|
||||||
make
|
make -j2
|
||||||
sudo make install
|
$SUDO make install
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
rm -rf "${distname}" "${distname}.tar.gz"
|
rm -rf "${distname}" "${distname}.tar.gz"
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ $(uname -s) = "Darwin" ]; then
|
SUDO=sudo
|
||||||
|
CFLAGS="-g -O2"
|
||||||
|
case $(uname -s) in
|
||||||
|
Darwin)
|
||||||
brew update
|
brew update
|
||||||
brew install libarchive --with-xz
|
brew install libarchive --with-xz
|
||||||
brew install openssl
|
brew install openssl
|
||||||
brew install kyua
|
brew install kyua
|
||||||
elif [ $(uname -s) = "Linux" ]; then
|
;;
|
||||||
|
Linux)
|
||||||
install_from_github atf 0.21
|
install_from_github atf 0.21
|
||||||
install_from_github lutok 0.4
|
install_from_github lutok 0.4
|
||||||
install_from_github kyua 0.12
|
install_from_github kyua 0.12
|
||||||
fi
|
;;
|
||||||
|
CYGWIN*)
|
||||||
|
SUDO=""
|
||||||
|
apt-cyg update
|
||||||
|
apt-cyg install lua-devel libsqlite3-devel
|
||||||
|
install_from_github lutok 0.4
|
||||||
|
|
||||||
|
# Work around
|
||||||
|
# utils/process/system.cpp:59:68: error: invalid conversion from ‘pid_t (*)(pid_t, __wait_status_ptr_t, int) {aka int (*)(int, void*, int)}’ to ‘pid_t (*)(pid_t, int*, int) {aka int (*)(int, int*, int)}’ [-fpermissive]
|
||||||
|
# pid_t (*detail::syscall_waitpid)(const pid_t, int*, const int) = ::waitpid;
|
||||||
|
# ^
|
||||||
|
# make[1]: *** [Makefile:7014: utils/process/libutils_a-system.o] Error 1
|
||||||
|
export CXXFLAGS="-g -O2 -fpermissive"
|
||||||
|
install_from_github kyua 0.12
|
||||||
|
unset CXXFLAGS
|
||||||
|
|
||||||
|
install_from_github atf 0.21
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
Loading…
Reference in New Issue