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.
67 lines
1.9 KiB
67 lines
1.9 KiB
# Copyright (C) 2021-2022 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/>. |
|
# |
|
# Maintainer: Alexandros Theodotou <alex at zrythm dot org> |
|
_realname=carla |
|
pkgbase=mingw-w64-${_realname} |
|
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" |
|
pkgver=2.3.0 |
|
pkgrel=1 |
|
arch=('any') |
|
pkgdesc='carla' |
|
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" |
|
"${MINGW_PACKAGE_PREFIX}-pkg-config") |
|
options=('!strip') |
|
license=("GPL2") |
|
url="https://github.com/falktx/carla" |
|
source=("Carla-@CARLA_GIT_VER@.tar.gz") |
|
sha256sums=('SKIP') |
|
|
|
prepare() { |
|
ls |
|
rm -rf ${_realname}-${pkgver} |
|
mv "Carla-@CARLA_GIT_VER@" ${_realname}-${pkgver} |
|
cd ${_realname}-${pkgver} |
|
|
|
make msys2fix |
|
make features |
|
} |
|
|
|
build() { |
|
cd "${srcdir}/${_realname}-${pkgver}" |
|
|
|
export CFLAGS="$CFLAGS -static-libgcc -static-libstdc++ -g -ggdb3" |
|
export CXXFLAGS="$CXXFLAGS -static-libgcc -static-libstdc++ -g -ggdb3" |
|
|
|
if [ "$MINGW_ARCH" = "mingw32" ]; then |
|
make win32r HAVE_X11=false PREFIX=${MINGW_PREFIX} |
|
else |
|
make HAVE_X11=false PREFIX=${MINGW_PREFIX} |
|
fi |
|
} |
|
|
|
package() { |
|
cd "${srcdir}/${_realname}-${pkgver}" |
|
|
|
mkdir -p "${pkgdir}/${MINGW_PREFIX}"/lib/carla |
|
ls -l bin |
|
install -D -m755 bin/*.exe "${pkgdir}/${MINGW_PREFIX}"/lib/carla/ |
|
|
|
if [ "$MINGW_ARCH" != "mingw32" ]; then |
|
make DESTDIR=${pkgdir} PREFIX="${MINGW_PREFIX}" install |
|
fi |
|
}
|
|
|