# -*- 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 github 1.0 PortGroup cmake 1.1 PortGroup legacysupport 1.1 PortGroup openssl 1.0 github.setup input-leap input-leap edaa634551eb530a4ae6eaf1d31d62a72d70c961 version 2.4.0-20231009 revision 0 categories aqua net sysutils license {GPL-2 OpenSSLException} maintainers {iki.fi:koston @Koston-0xDEADBEEF} openmaintainer 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 barrier,\ which in turn is a fork of synergy. checksums rmd160 4577bf1dcfb3ecdb100a1d9a3a324acbc3b13ce7 \ sha256 f7d086295f35c652cc454a8a2965cca6ad2e428ba84e4ce3260db0da343b1bd7 \ size 5127716 patchfiles set-cmake-revision.patch \ remove-gtest.patch \ fix-macos-scroll.patch patch.pre_args-replace -p0 -p1 compiler.cxx_standard 2014 depends_build-append \ port:pkgconfig \ port:gtest \ port:ghc-filesystem # ghc-filesystem uses utimensat in its headers legacysupport.newest_darwin_requires_legacy 16 configure.args-append \ -DINPUTLEAP_BUILD_INSTALLER=OFF \ -DINPUTLEAP_BUILD_TESTS=OFF if {[variant_isset debug]} { cmake.build_type Debug configure.optflags -O0 } else { cmake.build_type RelWithDebInfo # Clear optflags for non-debug build; controlled by project configure.optflags } # the gui requires metal if {${os.platform} eq "darwin" && ${os.major} < 16} { configure.args-append \ -DINPUTLEAP_BUILD_GUI=OFF } else { PortGroup qt5 1.0 PortGroup app 1.0 qt5.depends_component \ qttools app.create yes app.icon dist/macos/bundle/InputLeap.app/Contents/Resources/InputLeap.icns app.retina yes } post-destroot { if {[variant_isset debug]} { # Save debug symbols for a debug build system -W ${destroot}${prefix} "find ./bin -type f -perm -111 -exec dsymutil {} +" } xinstall -m 0644 -W ${worksrcpath}/doc input-leapc.1 input-leaps.1 ${destroot}${prefix}/share/man/man1 xinstall -d ${destroot}${prefix}/share/doc/${name} xinstall -m 0644 -W ${worksrcpath}/doc/ \ input-leap.conf.example \ input-leap.conf.example-advanced \ input-leap.conf.example-barebones \ input-leap.conf.example-basic \ ${destroot}${prefix}/share/doc/${name} } notes " Input Leap requires \"Accessibility\" permissions. If you're upgrading from a previous version, to get prompted for permissions, first *delete* existing input-leap permissions under Privacy and Security in System Settings. "