From a0a34bf27dfe83e2d9692da0a98620dadab1e91c Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Sat, 7 Dec 2024 20:41:01 +0800 Subject: [PATCH] barrier: non-functional: minor improvement to portfile --- aqua/barrier/Portfile | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/aqua/barrier/Portfile b/aqua/barrier/Portfile index 247f5ccf46e6a..aef3194df72ca 100644 --- a/aqua/barrier/Portfile +++ b/aqua/barrier/Portfile @@ -8,14 +8,12 @@ PortGroup legacysupport 1.1 github.setup debauchee barrier 2.4.0 v revision 0 categories aqua net sysutils -platforms darwin license GPL-2 maintainers {@ryanakca debian.org:rak} description share a keyboard and mouse over the network long_description ${name} shares a keyboard, mouse, and clipboard over the network.\ It supports multiple operating systems, including macOS,\ - Linux, FreeBSD, OpenBSD, and Windows. It is a fork of\ - synergy. + Linux, FreeBSD, OpenBSD, and Windows. It is a fork of synergy. github.tarball_from archive @@ -26,9 +24,9 @@ checksums rmd160 25982044cb4088ad8ccb76e336b40e493f7c8e55 \ compiler.cxx_standard 2014 depends_build-append \ - port:pkgconfig \ + port:ghc-filesystem \ port:gtest \ - port:ghc-filesystem + path:bin/pkg-config:pkgconfig depends_lib-append \ path:lib/libssl.dylib:openssl @@ -42,19 +40,16 @@ configure.args-append \ -DBARRIER_USE_EXTERNAL_GTEST=ON # the gui requires metal -if { ${os.major} < 16 } { +if { ${os.platform} eq "darwin" && ${os.major} < 16 } { configure.args-append \ -DBARRIER_BUILD_GUI=OFF } else { - PortGroup qt5 1.0 - PortGroup app 1.0 + PortGroup qt5 1.0 + PortGroup app 1.0 - qt5.depends_component \ - qtbase - - app.create yes - app.icon dist/macos/bundle/Barrier.app/Contents/Resources/Barrier.icns - app.retina yes + app.create yes + app.icon dist/macos/bundle/Barrier.app/Contents/Resources/Barrier.icns + app.retina yes } if {[string match *gcc* ${configure.compiler}]} {