Browse Source

add arch mingw pkgbuild

copy-dylibs-in-bottle
Alexandros Theodotou 2 years ago
parent
commit
b274e23855
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 1
      .gitignore
  2. 67
      arch-mingw/PKGBUILD
  3. 90
      arch-mingw/diff.patch

1
.gitignore vendored

@ -11,3 +11,4 @@ zrythm_installer @@ -11,3 +11,4 @@ zrythm_installer
*.md5
tools/osx/zrythm.bundle
tools/osx/Info.plist
*.tar.xz

67
arch-mingw/PKGBUILD

@ -0,0 +1,67 @@ @@ -0,0 +1,67 @@
# Maintainer: Alexandros Theodotou <alex at zrythm dot org>
_pkgbase=zrythm
MINGW_PACKAGE_PREFIX=mingw-w64
pkgname=$MINGW_PACKAGE_PREFIX-$_pkgbase
pkgver=0.8.459
pkgrel=2
arch=('any')
pkgdesc='a highly automated and intuitive digital audio workstation (mingw-w64)'
depends=("${MINGW_PACKAGE_PREFIX}-gtk3"
"${MINGW_PACKAGE_PREFIX}-rubberband"
"${MINGW_PACKAGE_PREFIX}-libsndfile"
"${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=(https://www.zrythm.org/releases/zrythm-${pkgver}.tar.xz
"diff.patch")
sha256sums=('SKIP' 'SKIP')
_architectures=('x86_64-w64-mingw32')
prepare() {
cd "${srcdir}/${_pkgbase}-${pkgver}"
pwd
patch -Np1 -i ../diff.patch
}
build() {
cd "${srcdir}/${_pkgbase}-${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 \
-Dwith-manpage=false \
-Dwindows-release=true -Dcarla=disabled \
--buildtype=release \
--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}/${_pkgbase}-${pkgver}/build-${_arch}
done
}

90
arch-mingw/diff.patch

@ -0,0 +1,90 @@ @@ -0,0 +1,90 @@
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(
Loading…
Cancel
Save