You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
57 lines
2.2 KiB
Tcl
57 lines
2.2 KiB
Tcl
# -*- 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 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 4.0 v
|
|
revision 0
|
|
github.tarball_from archive
|
|
|
|
categories multimedia
|
|
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 3a227f53f47a2b797223bb5daee5d819a44a3d78 \
|
|
sha256 a62bc2639e1d56b3e7ebaa20d8deb4947dd02954b3362bdebe2ef9f7eae41b00 \
|
|
size 489017 \
|
|
${name}-server-v${version} \
|
|
rmd160 1e267755ab553eb2c17a89e566429a0cf8b06251 \
|
|
sha256 84924bd564a1eb6089c872c7521f968058977f91f5ff02514a8c74aff3210f3a \
|
|
size 732226
|
|
|
|
depends_build-append \
|
|
port:pkgconfig
|
|
|
|
depends_lib-append path:lib/libavcodec.dylib:ffmpeg \
|
|
port:SDL3 \
|
|
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}
|