Skip to content

Commit

Permalink
qjackctl: update to 0.6.3, fix for old systems
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Dec 31, 2024
1 parent b8ed030 commit 959bb0d
Show file tree
Hide file tree
Showing 3 changed files with 628 additions and 10 deletions.
38 changes: 28 additions & 10 deletions audio/qjackctl/Portfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup qt5 1.0

name qjackctl
version 0.6.2
version 0.6.3
license GPL-2+
categories audio
maintainers nomaintainer
Expand All @@ -20,17 +19,20 @@ long_description \

master_sites http://downloads.sourceforge.net/qjackctl

checksums rmd160 b6349402c406b3d5a2eb6694c3528ef0b25350d6 \
sha256 1ec77d0e8edac1b4d60a32a08d2f4329f90571801920cb48c6147e0eae6f50e6 \
size 1027742
checksums rmd160 8ad5bd27fff8b615df194b415ff385019f88ace9 \
sha256 9db46376cfacb2e2ee051312245f5f7c383c9f5a958c0e3d661b9bd2a9246b7d \
size 1033664

universal_variant no

depends_lib-append port:jack
patchfiles-append 0001-fix-compiler-choice.patch

qt5.depends_component \
qtbase \
qttools
post-patch {
reinplace "s|__CXX__|${configure.cxx}|" ${worksrcpath}/src/src.pri.in
reinplace "s|__CXXFLAGS__|${configure.cxxflags}|" ${worksrcpath}/src/src.pri.in
}

depends_lib-append port:jack

compiler.cxx_standard 2011
configure.cxxflags-append \
Expand All @@ -44,12 +46,28 @@ post-patch {
configure.args-append \
--with-jack=${prefix} \
--disable-alsa-seq \
--with-qt=${qt_dir} \
--disable-debug

configure.args-delete \
--disable-dependency-tracking

if {${os.platform} ne "darwin" || ${os.major} > 10} {
PortGroup qt5 1.0

qt5.depends_component qttools

configure.args-append --with-qt=${qt_dir}
} else {
PortGroup qt4 1.0

patchfiles-append 0002-Restore-Qt4-support.patch

use_autoreconf yes

configure.args-append --enable-qt4 \
--with-qt4=${qt_dir}
}

variant debug description "Enable debugging" {}

if {[variant_isset debug]} {
Expand Down
15 changes: 15 additions & 0 deletions audio/qjackctl/files/0001-fix-compiler-choice.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- src/src.pri.in 2020-07-31 15:41:14.000000000 +0800
+++ src/src.pri.in 2024-12-03 13:50:30.000000000 +0800
@@ -12,8 +12,12 @@
INCLUDEPATH += @ac_incpath@
LIBS += @ac_libs@

+QMAKE_CXX = __CXX__
+QMAKE_LINK = __CXX__
+
# Extra optimization flags
QMAKE_CXXFLAGS += @ac_cflags@
+QMAKE_CXXFLAGS += __CXXFLAGS__
QMAKE_LFLAGS += @ac_ldflags@

# D-BUS support
Loading

0 comments on commit 959bb0d

Please sign in to comment.