Skip to content
Snippets Groups Projects
Commit 76a3487e authored by Ondřej Surý's avatar Ondřej Surý
Browse files

First try autotools then cmake

parent 24705086
No related merge requests found
......@@ -46,18 +46,18 @@ function fetch_pkg {
}
function build_pkg {
if [ -f CMakeLists.txt ]; then
[ -e cmake-build ] && rm -rf cmake-build; mkdir cmake-build; cd cmake-build
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} ..
make ${MAKEOPTS}
make install
elif [ -f configure.ac ]; then
if [ -f configure.ac ]; then
if [ ! -e ./configure ]; then
[ -e autogen.sh ] && sh autogen.sh || autoreconf -if
fi
./configure --prefix=${PREFIX} --enable-shared $*
make ${MAKEOPTS}
make install
elif [ -f CMakeLists.txt ]; then
[ -e cmake-build ] && rm -rf cmake-build; mkdir cmake-build; cd cmake-build
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} ..
make ${MAKEOPTS}
make install
else
make $*
fi
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment