Browse Source

add jack support

copy-dylibs-in-bottle
Alexandros Theodotou 3 years ago
parent
commit
1cca3f1928
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 7
      Makefile
  2. 50
      PKGBUILD-jack2-mingw
  3. 3
      PKGBUILD-w10.in
  4. 2
      tools/osx/zrythm.rb

7
Makefile

@ -519,12 +519,16 @@ define install_lilv_dep @@ -519,12 +519,16 @@ define install_lilv_dep
cd $(BUILD_WINDOWS_MSYS_DIR) && MINGW_INSTALLS=mingw64 makepkg-mingw -fsi --noconfirm
endef
/mingw64/include/lilv-0/lilv/lilv.h: PKGBUILD-lilv-mingw PKGBUILD-lv2-mingw PKGBUILD-serd-mingw PKGBUILD-sord-mingw PKGBUILD-sratom-mingw
install-lilv-dep-%:
$(call install_lilv_dep,$*)
/mingw64/include/lilv-0/lilv/lilv.h: PKGBUILD-lilv-mingw PKGBUILD-lv2-mingw PKGBUILD-serd-mingw PKGBUILD-sord-mingw PKGBUILD-sratom-mingw PKGBUILD-jack2-mingw
$(call install_lilv_dep,lv2)
$(call install_lilv_dep,serd)
$(call install_lilv_dep,sord)
$(call install_lilv_dep,sratom)
$(call install_lilv_dep,lilv)
$(call install_lilv_dep,jack2)
# arg 1: .pkg.tar filename
# arg 2: '-trial' if trial
@ -570,6 +574,7 @@ define make_windows_chroot @@ -570,6 +574,7 @@ define make_windows_chroot
pacman -U "$(BUILD_WINDOWS_MSYS_DIR)/mingw-w64-x86_64-sord-0.16.4-1-any.pkg.tar.zst" --noconfirm --needed --root $(1) && \
pacman -U "$(BUILD_WINDOWS_MSYS_DIR)/mingw-w64-x86_64-sratom-0.6.4-1-any.pkg.tar.zst" --noconfirm --needed --root $(1) && \
pacman -U "$(BUILD_WINDOWS_MSYS_DIR)/mingw-w64-x86_64-lilv-0.24.8-1-any.pkg.tar.zst" --noconfirm --needed --root $(1) && \
pacman -U "$(BUILD_WINDOWS_MSYS_DIR)/mingw-w64-x86_64-jack2-1.9.14.r1-1-any.pkg.tar.zst" --noconfirm --needed --root $(1) && \
pacman -U $(2) --noconfirm --needed --root $(1) && \
cp -R /mingw64/lib/carla $(1)/mingw64/lib/ && \
glib-compile-schemas.exe $(1)/mingw64/share/glib-2.0/schemas

50
PKGBUILD-jack2-mingw

@ -0,0 +1,50 @@ @@ -0,0 +1,50 @@
# Maintainer: Alexandros Theodotou <alex at zrythm dot org>
_realname=jack2
_commit=5f1b2be0dc509469a072041643c3e45bfa406b9a
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=1.9.14.r1
pkgrel=1
arch=('any')
pkgdesc='jack2'
depends=("$MINGW_PACKAGE_PREFIX-portaudio")
makedepends=("${MINGW_PACKAGE_PREFIX}-gcc"
"${MINGW_PACKAGE_PREFIX}-pkg-config"
"${MINGW_PACKAGE_PREFIX}-python3")
options=('strip' 'staticlibs')
license=("GPL2")
url="https://www.zrythm.org"
source=("https://github.com/jackaudio/$_realname/archive/$_commit.zip")
sha256sums=('SKIP')
prepare() {
rm -rf ${_realname}-${pkgver}
mv ${_realname}-${_commit} ${_realname}-${pkgver}
cd ${_realname}-${pkgver}
[[ -x ./waf ]] || /usr/bin/python ./bootstrap.py
sed -i 's:bin/env python$:bin/env python:' waf
}
build() {
cd "${srcdir}/${_realname}-${pkgver}"
DEST_OS=win32 \
TARGET=${MINGW_CHOST} \
PKG_CONFIG=${MINGW_PREFIX}/bin/pkg-config \
CC=gcc CXX=g++ PERL=/usr/bin/perl \
AR=${MINGW_PREFIX}/bin/ar \
WINDRES=${MINGW_PREFIX}/bin/windres \
RST2MAN=${MINGW_PREFIX}/bin/rst2man3 \
/usr/bin/python3 ./waf configure \
--prefix=${MINGW_PREFIX} \
--check-c-compiler=gcc \
--check-cxx-compiler=g++
/usr/bin/python ./waf build
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
export PYTHON=${MINGW_PREFIX}/bin/python
/usr/bin/python ./waf install --destdir="${pkgdir}"
}

3
PKGBUILD-w10.in

@ -15,6 +15,7 @@ depends=("${MINGW_PACKAGE_PREFIX}-gtk3" @@ -15,6 +15,7 @@ depends=("${MINGW_PACKAGE_PREFIX}-gtk3"
"${MINGW_PACKAGE_PREFIX}-libsndfile"
"${MINGW_PACKAGE_PREFIX}-libsamplerate"
"${MINGW_PACKAGE_PREFIX}-lilv"
"${MINGW_PACKAGE_PREFIX}-jack2"
"${MINGW_PACKAGE_PREFIX}-gtksourceview4"
"${MINGW_PACKAGE_PREFIX}-graphviz"
"${MINGW_PACKAGE_PREFIX}-dlfcn"
@ -52,7 +53,7 @@ build() { @@ -52,7 +53,7 @@ build() {
-Dsdl=enabled \
-Drtaudio=auto \
-Drtmidi=auto \
-Djack=disabled \
-Djack=enabled \
-Dguile=disabled \
-Dfallback_version=@VERSION@ \
-Dmanpage=false \

2
tools/osx/zrythm.rb

@ -25,6 +25,8 @@ class Zrythm < Formula @@ -25,6 +25,8 @@ class Zrythm < Formula
depends_on "rtmidi"
depends_on "zstd"
depends_on "carla-git"
depends_on "jack"
depends_on "qjackctl"
def install
mkdir "build" do

Loading…
Cancel
Save