# -*- 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 meson 1.0 PortGroup compiler_blacklist_versions 1.0 PortGroup legacysupport 1.1 # needed for clock_gettime and static_assert to work on older OS X versions legacysupport.newest_darwin_requires_legacy 15 github.setup Genymobile scrcpy 2.7 v revision 0 github.tarball_from archive categories multimedia platforms darwin license Apache-2 maintainers {bochtler.io:macports @MarcelBochtler} \ openmaintainer description Display and control your Android device long_description This application provides display and control of Android \ devices connected on USB (or over TCP/IP). It does not \ require any root access. # scrcpy-server is downloaded from github releases while the client is downloaded from the Github archive. master_sites-append https://github.com/Genymobile/${name}/releases/download/v${version}/:bootstrap extract.only ${distfiles} distfiles-append ${name}-server-v${version}:bootstrap checksums ${distname}${extract.suffix} \ rmd160 8aa27b49abd3aee9137b3654e6806ee9bf354b12 \ sha256 3ceea215f6eccb59535f68a16db6db2b05a8a1c91bdcb4a6e222d3093a9daf8c \ size 430160 \ ${name}-server-v${version} \ rmd160 097b583da3c286b3f39af0abd424b3dbc850becc \ sha256 a23c5659f36c260f105c022d27bcb3eafffa26070e7baa9eda66d01377a1adba \ size 71200 depends_build-append \ port:pkgconfig depends_lib-append path:lib/libavcodec.dylib:ffmpeg \ port:libsdl2 \ port:libusb depends_run-append port:android-platform-tools configure.args-append \ --buildtype release \ --strip \ -Db_lto=true \ -Dprebuilt_server=${distpath}/${name}-server-v${version} compiler.c_standard 2011 # Work around cfm: fatal error: 'stdatomic.h' file not found # https://trac.macports.org/ticket/60429 compiler.blacklist-append {clang < 701}