Zrythm installer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.3 KiB

#!@BASH@
#
# Copyright (C) 2020-2021 Alexandros Theodotou <alex at zrythm dot org>
#
# This file is part of Zrythm
#
# Zrythm is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Zrythm is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Zrythm. If not, see <https://www.gnu.org/licenses/>.
set -ex
out_dir="`pwd`/$1"
carla_source_zip="$2"
private_dir="$3"
prefix="$4"
3 years ago
carla_git_ver="@CARLA_GIT_VER@"
export CC=@CC@
export PKG_CONFIG_PATH=$prefix/lib/pkgconfig
if pkg-config --atleast-version=2.1 carla-native-plugin ; then
echo "latest carla installed" ;
fi
pwd
rm -rf $private_dir
mkdir -p $private_dir
unzip -o "$carla_source_zip" -d "$private_dir"
cd "$private_dir/Carla-$carla_git_ver"
make features
make -j4
make install DESTDIR="$out_dir" PREFIX="$prefix" LIBDIR=$prefix
sudo mkdir -p "$prefix"
sudo cp -Rv "$out_dir/$prefix"/* "$prefix"/
ls -l "$out_dir"