From 7a24a4e7f1df3910e04e8852418da0630b67d493 Mon Sep 17 00:00:00 2001 From: Alexandros Theodotou Date: Sat, 8 Jan 2022 19:48:51 +0000 Subject: [PATCH] windows-msys: add dpf-plugins recipe --- windows-msys/PKGBUILD-carla-mingw.in | 2 +- windows-msys/PKGBUILD-dpf-plugins.in | 53 ++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 windows-msys/PKGBUILD-dpf-plugins.in diff --git a/windows-msys/PKGBUILD-carla-mingw.in b/windows-msys/PKGBUILD-carla-mingw.in index 2730698..af4e56a 100644 --- a/windows-msys/PKGBUILD-carla-mingw.in +++ b/windows-msys/PKGBUILD-carla-mingw.in @@ -1,4 +1,4 @@ -# Copyright (C) 2021 Alexandros Theodotou +# Copyright (C) 2021-2022 Alexandros Theodotou # # This file is part of Zrythm # diff --git a/windows-msys/PKGBUILD-dpf-plugins.in b/windows-msys/PKGBUILD-dpf-plugins.in new file mode 100644 index 0000000..ba9332e --- /dev/null +++ b/windows-msys/PKGBUILD-dpf-plugins.in @@ -0,0 +1,53 @@ +# Copyright (C) 2022 Alexandros Theodotou +# +# 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 . +# +# Maintainer: Alexandros Theodotou +_realname=dpf-plugins +pkgbase=mingw-w64-${_realname} +pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" +pkgver=1.4 +pkgrel=1 +arch=('any') +pkgdesc='DPF plugins' +makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" + "${MINGW_PACKAGE_PREFIX}-pkg-config") +options=('!strip') +license=("GPL2") +url="https://github.com/falktx/carla" +source=("https://github.com/DISTRHO/DPF-Plugins/archive/refs/tags/v${pkgver}.tar.gz") +sha256sums=('SKIP') + +prepare() { + ls + rm -rf ${_realname}-${pkgver} + mv "DPF-Plugins-${pkgver}" ${_realname}-${pkgver} +} + +build() { + cd "${srcdir}/${_realname}-${pkgver}" + + export CFLAGS="$CFLAGS -static-libgcc -static-libstdc++ -g -ggdb3" + export CXXFLAGS="$CXXFLAGS -static-libgcc -static-libstdc++ -g -ggdb3" + + make PREFIX=${MINGW_PREFIX} DEBUG=true HAVE_OPENGL=false +} + +package() { + cd "${srcdir}/${_realname}-${pkgver}" + + make DESTDIR=${pkgdir} PREFIX="${MINGW_PREFIX}" install +}