15 changed files with 251 additions and 244 deletions
@ -1,16 +0,0 @@
@@ -1,16 +0,0 @@
|
||||
Thank you for trying out Zrythm! |
||||
|
||||
This is Zrythm v@VERSION@ (trial). |
||||
|
||||
To install Zrythm, open a terminal and |
||||
navigate to this directory, then run |
||||
the following command and follow the |
||||
instructions: |
||||
|
||||
./installer.sh |
||||
|
||||
If you experience any problems, please |
||||
email alex@_AT_@zrythm.org |
||||
|
||||
This installer is offered as-is, without |
||||
any warranty. |
@ -1,68 +0,0 @@
@@ -1,68 +0,0 @@
|
||||
# Maintainer: Alexandros Theodotou <alex at zrythm dot org> |
||||
_pkgbase=zrythm |
||||
MINGW_PACKAGE_PREFIX=mingw-w64 |
||||
pkgname=$MINGW_PACKAGE_PREFIX-$_pkgbase |
||||
pkgver=@VERSION@ |
||||
pkgrel=@REVISION@ |
||||
arch=('any') |
||||
pkgdesc='a highly automated and intuitive digital audio workstation (mingw-w64)' |
||||
depends=("${MINGW_PACKAGE_PREFIX}-gtk3" |
||||
"${MINGW_PACKAGE_PREFIX}-carla" |
||||
"${MINGW_PACKAGE_PREFIX}-rubberband" |
||||
"${MINGW_PACKAGE_PREFIX}-libsndfile" |
||||
"${MINGW_PACKAGE_PREFIX}-librsvg" |
||||
"${MINGW_PACKAGE_PREFIX}-libsamplerate" |
||||
"${MINGW_PACKAGE_PREFIX}-gtksourceview4" |
||||
"${MINGW_PACKAGE_PREFIX}-dlfcn" |
||||
"${MINGW_PACKAGE_PREFIX}-fftw" |
||||
"${MINGW_PACKAGE_PREFIX}-zstd" |
||||
"${MINGW_PACKAGE_PREFIX}-libyaml") |
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" |
||||
"${MINGW_PACKAGE_PREFIX}-gettext" |
||||
"guile" |
||||
"${MINGW_PACKAGE_PREFIX}-meson" |
||||
"${MINGW_PACKAGE_PREFIX}-pkg-config") |
||||
options=('!strip' 'staticlibs') |
||||
license=("AGPL3") |
||||
url="https://www.zrythm.org" |
||||
source=(zrythm-${pkgver}.tar.xz) |
||||
sha256sums=('SKIP') |
||||
_architectures=('x86_64-w64-mingw32') |
||||
|
||||
prepare() { |
||||
cd "${srcdir}/zrythm-${pkgver}" |
||||
#patch -Np1 -i ../diff.patch |
||||
} |
||||
|
||||
build() { |
||||
cd "${srcdir}/zrythm-${pkgver}" |
||||
|
||||
export NEED_WINE=1 |
||||
for _arch in "${_architectures[@]}"; do |
||||
mkdir -p build-${_arch} && pushd build-${_arch} |
||||
#sed -i -e "s/'-lws2_32',/'-lws2_32', '-lssp',/" ../meson.build |
||||
$_arch-meson \ |
||||
-Dsdl=disabled \ |
||||
-Drtaudio=auto \ |
||||
-Drtmidi=auto \ |
||||
-Djack=disabled \ |
||||
-Dguile=disabled \ |
||||
-Dmanpage=false \ |
||||
-Dwindows_release=true -Dcarla=enabled \ |
||||
-Dtrial_ver=false \ |
||||
--buildtype=debug \ |
||||
--wrap-mode=forcefallback \ |
||||
.. |
||||
sed -i -e '45s|#|//#|' ../subprojects/lilv/lilv-0.24.6/src/util.c |
||||
sed -i -e '55s|#|//#|' ../subprojects/lilv/lilv-0.24.6/src/util.c |
||||
ninja |
||||
popd |
||||
done |
||||
} |
||||
|
||||
package() { |
||||
export NEED_WINE=1 |
||||
for _arch in "${_architectures[@]}"; do |
||||
DESTDIR="${pkgdir}" meson install -C ${srcdir}/zrythm-${pkgver}/build-${_arch} |
||||
done |
||||
} |
@ -1,90 +0,0 @@
@@ -1,90 +0,0 @@
|
||||
diff --git a/doc/user/meson.build b/doc/user/meson.build
|
||||
index 39cc0d6e..f02d1b96 100644
|
||||
--- a/doc/user/meson.build
|
||||
+++ b/doc/user/meson.build
|
||||
@@ -19,7 +19,7 @@ if (sphinx_build.found())
|
||||
|
||||
foreach lang : locales |
||||
foreach format : [ |
||||
- 'html', 'singlehtml', 'latexpdf', 'epub' ]
|
||||
+ 'html', 'singlehtml', 'latex', 'epub' ]
|
||||
|
||||
name = format + '-manual-' + lang |
||||
output = meson.current_build_dir () / lang / format |
||||
diff --git a/inc/audio/engine_windows_mme.h b/inc/audio/engine_windows_mme.h
|
||||
index 7a00c872..2df5b0da 100644
|
||||
--- a/inc/audio/engine_windows_mme.h
|
||||
+++ b/inc/audio/engine_windows_mme.h
|
||||
@@ -24,7 +24,7 @@
|
||||
#ifndef __AUDIO_ENGINE_WINDOWS_MME_H__ |
||||
#define __AUDIO_ENGINE_WINDOWS_MME_H__ |
||||
|
||||
-#include <Windows.h>
|
||||
+#include <windows.h>
|
||||
|
||||
#include <gtk/gtk.h> |
||||
|
||||
diff --git a/inc/audio/windows_mmcss.h b/inc/audio/windows_mmcss.h
|
||||
index 18477fbc..11483c36 100644
|
||||
--- a/inc/audio/windows_mmcss.h
|
||||
+++ b/inc/audio/windows_mmcss.h
|
||||
@@ -42,7 +42,7 @@
|
||||
#ifndef __AUDIO_WINDOWS_MMCSS_H__ |
||||
#define __AUDIO_WINDOWS_MMCSS_H__ |
||||
|
||||
-#include <Windows.h>
|
||||
+#include <windows.h>
|
||||
|
||||
typedef enum AVRT_PRIORITY |
||||
{ |
||||
diff --git a/inc/audio/windows_mme_device.h b/inc/audio/windows_mme_device.h
|
||||
index 86655cb9..baeee19e 100644
|
||||
--- a/inc/audio/windows_mme_device.h
|
||||
+++ b/inc/audio/windows_mme_device.h
|
||||
@@ -44,7 +44,7 @@
|
||||
|
||||
#include <stdint.h> |
||||
|
||||
-#include <Windows.h>
|
||||
+#include <windows.h>
|
||||
|
||||
#include "zix/ring.h" |
||||
|
||||
diff --git a/inc/utils/windows_errors.h b/inc/utils/windows_errors.h
|
||||
index d36ec9db..d0d66935 100644
|
||||
--- a/inc/utils/windows_errors.h
|
||||
+++ b/inc/utils/windows_errors.h
|
||||
@@ -22,7 +22,7 @@
|
||||
#ifndef __UTILS_WINDOWS_ERRORS_H__ |
||||
#define __UTILS_WINDOWS_ERRORS_H__ |
||||
|
||||
-#include <Windows.h>
|
||||
+#include <windows.h>
|
||||
|
||||
void |
||||
windows_errors_get_last_error_str ( |
||||
diff --git a/meson.build b/meson.build
|
||||
index 0514ab8f..1fef90c6 100644
|
||||
--- a/meson.build
|
||||
+++ b/meson.build
|
||||
@@ -580,6 +580,11 @@ if sdl_dep.found ()
|
||||
cdata.set('HAVE_SDL', 1) |
||||
endif |
||||
|
||||
+zstd_dep = dependency ('libzstd', required: false)
|
||||
+if not zstd_dep.found ()
|
||||
+ zstd_dep = cc.find_library ('zstd')
|
||||
+endif
|
||||
+
|
||||
# TODO add Cantarell font as dependency |
||||
|
||||
zrythm_deps = [ |
||||
@@ -603,7 +608,7 @@ zrythm_deps = [
|
||||
rtaudio_dep, |
||||
rtmidi_dep, |
||||
sdl_dep, |
||||
- dependency('libzstd'),
|
||||
+ zstd_dep,
|
||||
dependency('threads'), |
||||
lilv_dep, |
||||
dependency( |
@ -1,48 +0,0 @@
@@ -1,48 +0,0 @@
|
||||
# Maintainer: Alexandros Theodotou <alex at zrythm dot org> |
||||
_pkgbase=zplugins |
||||
MINGW_PACKAGE_PREFIX=mingw-w64 |
||||
pkgname=$MINGW_PACKAGE_PREFIX-$_pkgbase |
||||
pkgver=@VERSION@ |
||||
pkgrel=1 |
||||
arch=('any') |
||||
pkgdesc='a highly automated and intuitive digital audio workstation (mingw-w64)' |
||||
depends=("${MINGW_PACKAGE_PREFIX}-librsvg" |
||||
"${MINGW_PACKAGE_PREFIX}-cairo") |
||||
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc" |
||||
"${MINGW_PACKAGE_PREFIX}-meson" |
||||
"${MINGW_PACKAGE_PREFIX}-pkg-config") |
||||
options=('!strip' 'staticlibs') |
||||
license=("AGPL3") |
||||
url="https://www.zrythm.org" |
||||
source=("zplugins-${pkgver}.tar.gz") |
||||
sha256sums=('SKIP') |
||||
_architectures=('x86_64-w64-mingw32') |
||||
|
||||
prepare() { |
||||
rm -rf "$srcdir/zplugins-$pkgver" |
||||
mv "${srcdir}/zplugins-v$pkgver" "$srcdir/zplugins-$pkgver" |
||||
} |
||||
|
||||
build() { |
||||
cd "${srcdir}/zplugins-${pkgver}" |
||||
|
||||
export NEED_WINE=1 |
||||
for _arch in "${_architectures[@]}"; do |
||||
cd ext/Soundpipe && make CC=$_arch-gcc && cd ../.. |
||||
mkdir -p build-${_arch} && pushd build-${_arch} |
||||
$_arch-meson \ |
||||
-Dtrial_ver=false \ |
||||
--buildtype=debugoptimized \ |
||||
--wrap-mode=forcefallback \ |
||||
.. |
||||
ninja |
||||
popd |
||||
done |
||||
} |
||||
|
||||
package() { |
||||
export NEED_WINE=1 |
||||
for _arch in "${_architectures[@]}"; do |
||||
DESTDIR="${pkgdir}" meson install -C ${srcdir}/zplugins-${pkgver}/build-${_arch} |
||||
done |
||||
} |
@ -1,10 +1,10 @@
@@ -1,10 +1,10 @@
|
||||
class CarlaGit < Formula |
||||
desc "Audio plugin host supporting LADSPA, LV2, VST2/3, SF2 and more" |
||||
homepage "https://kxstudio.linuxaudio.org/Applications:Carla" |
||||
url "https://github.com/falkTX/Carla/archive/@VERSION@.zip" |
||||
sha256 "adee1ef3faff692d9feaa1a2fbf99b15c6d3918da0c0abf2c5f5bb6617d87f13" |
||||
url "https://github.com/falkTX/Carla/archive/@CARLA_GIT_VER@.zip" |
||||
sha256 "@CARLA_BREW_SHA256@" |
||||
head "https://github.com/falkTX/Carla.git" |
||||
version "@BOTTLE_VERSION@" |
||||
version "@CARLA_BOTTLE_VER@" |
||||
|
||||
bottle do |
||||
cellar :any |
@ -0,0 +1,35 @@
@@ -0,0 +1,35 @@
|
||||
#!@BASH@ |
||||
|
||||
set -ex |
||||
|
||||
out_file="$1" |
||||
formula_file="$2" |
||||
private_dir="$3" |
||||
src_tarball="$4" |
||||
|
||||
dash_trial="@DASH_TRIAL@" |
||||
formula_dir=/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula |
||||
cache_dir="`brew --cache`" |
||||
|
||||
rm -rf $private_dir |
||||
mkdir -p $private_dir |
||||
|
||||
bottle_filename="`basename $out_file`" |
||||
formula_filename="`basename $formula_file`" |
||||
formula_name="${formula_filename%.*}" |
||||
|
||||
# copy formula file to where it needs to be |
||||
cp $formula_file "$formula_dir/$formula_filename" |
||||
|
||||
# copy the source tarball to the cache |
||||
formula_cache_file="`brew --cache -s $formula_name`" |
||||
cp $src_tarball $formula_cache_file |
||||
|
||||
# build bottle |
||||
pushd $private_dir |
||||
brew unlink $formula_name || true |
||||
brew install --verbose --debug --build-bottle $formula_name |
||||
brew bottle $formula_name |
||||
ls -l |
||||
popd |
||||
cp $private_dir/*.catalina.bottle.tar.gz $out_file |
@ -0,0 +1,33 @@
@@ -0,0 +1,33 @@
|
||||
#!@BASH@ |
||||
|
||||
set -ex |
||||
|
||||
out_file="$1" |
||||
zrythm_formula_file=$2 |
||||
carla_bottle_file=$3 |
||||
installer_sh_file=$4 |
||||
readme_file=$5 |
||||
private_dir=$6 |
||||
|
||||
dash_trial="@DASH_TRIAL@" |
||||
|
||||
inner_dir_name="${out_file%.*}" |
||||
inner_dir_name="`basename $inner_dir_name`" |
||||
inner_dir=$private_dir/$inner_dir_name |
||||
|
||||
rm -rf $private_dir |
||||
mkdir -p $inner_dir/bin |
||||
mkdir -p $inner_dir/formulae |
||||
mkdir -p $inner_dir/icons |
||||
mkdir -p $inner_dir/src |
||||
|
||||
cp $installer_sh_file $inner_dir/installer.sh |
||||
cp $readme_file $inner_dir/README |
||||
cp $carla_bottle_file $inner_dir/bin/carla-git.catalina.bottle.tar.gz |
||||
cp $zrythm_formula_file $inner_dir/formulae/ |
||||
cp -r /tmp/breeze-dark $inner_dir/icons/ |
||||
pushd $private_dir |
||||
zip -r $inner_dir_name.zip $inner_dir_name |
||||
popd |
||||
|
||||
cp $inner_dir.zip $out_file |
@ -0,0 +1,143 @@
@@ -0,0 +1,143 @@
|
||||
# Copyright (C) 2020 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/>. |
||||
|
||||
osx_brew_conf = configuration_data () |
||||
osx_brew_conf.merge_from (global_conf) |
||||
carla_bottle_ver = '0.1.2' |
||||
carla_bottle_filename = 'carla-git--' + carla_bottle_ver + '.catalina.bottle.tar.gz' |
||||
zrythm_bottle_filename = 'zrythm' + dash_trial + '--' + zrythm_pkg_ver + '.catalina.bottle.tar.gz' |
||||
osx_brew_conf.set ( |
||||
'ZRYTHM_BOTTLE_FILENAME', zrythm_bottle_filename) |
||||
osx_brew_conf.set ( |
||||
'CARLA_BOTTLE_VER', carla_bottle_ver) |
||||
osx_brew_conf.set ( |
||||
'CARLA_BOTTLE_FILENAME', carla_bottle_filename) |
||||
carla_brew_src_sum = run_command ( |
||||
bash, '-c', 'openssl sha256 -r ' + |
||||
carla_src_zip.full_path () + |
||||
' | awk \'{print $1;}\'').stdout (). strip () |
||||
osx_brew_conf.set ( |
||||
'CARLA_BREW_SHA256', carla_brew_src_sum) |
||||
zrythm_brew_src_sum = run_command ( |
||||
bash, '-c', 'openssl sha256 -r ' + |
||||
orig_zrythm_src_tarball.full_path () + |
||||
' | awk \'{print $1;}\'').stdout (). strip () |
||||
osx_brew_conf.set ( |
||||
'ZRYTHM_BREW_SHA256', zrythm_brew_src_sum) |
||||
installer_zip_filename = 'zrythm' + dash_trial + '-' + zrythm_pkg_ver + '-osx-installer.zip' |
||||
osx_brew_conf.set ( |
||||
'OSX_INSTALLER_ZIP_FILENAME', installer_zip_filename) |
||||
|
||||
make_breeze_icons = custom_target ( |
||||
'osx-breeze-icons', |
||||
output: 'breeze-dark', |
||||
input: breeze_dark_path, |
||||
command: [ |
||||
'rm', '-rf', '@OUTPUT@', '&&', |
||||
'cp', '-R', '@INPUT@', '@OUTPUT@', '&&', |
||||
'cp', '-R', '@INPUT@', '/tmp/breeze-dark', |
||||
], |
||||
install: false, |
||||
) |
||||
|
||||
# configure scripts |
||||
make_bottle_sh = configure_file ( |
||||
output: 'make_bottle.sh', |
||||
input: 'make_bottle.sh.in', |
||||
configuration: osx_brew_conf, |
||||
) |
||||
make_zip_sh = configure_file ( |
||||
output: 'make_zip.sh', |
||||
input: 'make_zip.sh.in', |
||||
configuration: osx_brew_conf, |
||||
) |
||||
|
||||
# configure installer script and README |
||||
installer_sh = configure_file ( |
||||
output: 'installer.sh', |
||||
input: 'installer.sh.in', |
||||
configuration: osx_brew_conf, |
||||
) |
||||
readme = configure_file ( |
||||
output: 'README', |
||||
input: 'README-osx.in', |
||||
configuration: osx_brew_conf, |
||||
) |
||||
|
||||
# prepare formulas |
||||
carla_formula = configure_file ( |
||||
output: 'carla-git.rb', |
||||
input: 'carla-git.rb.in', |
||||
configuration: osx_brew_conf, |
||||
) |
||||
zrythm_formula = configure_file ( |
||||
output: 'zrythm' + dash_trial + '.rb', |
||||
input: 'zrythm.rb.in', |
||||
configuration: osx_brew_conf, |
||||
) |
||||
|
||||
carla_bottle = custom_target ( |
||||
'osx-carla-bottle', |
||||
output: carla_bottle_filename, |
||||
input: [ |
||||
make_bottle_sh, carla_formula, |
||||
carla_src_zip, |
||||
], |
||||
command: [ |
||||
make_bottle_sh, '@OUTPUT@', |
||||
'@INPUT1@', '@PRIVATE_DIR@', |
||||
'@INPUT2@', |
||||
], |
||||
install: false, |
||||
) |
||||
zrythm_bottle = custom_target ( |
||||
'osx-zrythm-bottle', |
||||
output: zrythm_bottle_filename, |
||||
input: [ |
||||
make_bottle_sh, zrythm_formula, |
||||
carla_bottle, orig_zrythm_src_tarball, |
||||
], |
||||
command: [ |
||||
make_bottle_sh, '@OUTPUT@', |
||||
'@INPUT1@', '@PRIVATE_DIR@', |
||||
'@INPUT3@', |
||||
], |
||||
depends: make_breeze_icons, |
||||
install: false, |
||||
) |
||||
|
||||
installer_zip = custom_target ( |
||||
'osx-installer-zip', |
||||
output: installer_zip_filename, |
||||
input: [ |
||||
make_zip_sh, zrythm_formula, |
||||
carla_bottle, installer_sh, |
||||
readme, |
||||
], |
||||
command: [ |
||||
make_zip_sh, '@OUTPUT@', |
||||
'@INPUT1@', '@INPUT2@', '@INPUT3@', '@INPUT4@', |
||||
'@PRIVATE_DIR@', |
||||
], |
||||
install: true, |
||||
install_dir: get_option ('prefix'), |
||||
) |
||||
|
||||
run_target ( |
||||
'osx-brew', |
||||
command: [ 'echo', 'done' ], |
||||
depends: installer_zip) |
Loading…
Reference in new issue