2022-02-24 20:09:00 +00:00
|
|
|
# -*- 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
|
|
|
|
|
2022-06-21 02:53:40 +00:00
|
|
|
# initial PR into macports: https://github.com/macports/macports-ports/pull/15143
|
|
|
|
|
2022-06-11 03:20:24 +00:00
|
|
|
PortSystem 1.0
|
|
|
|
PortGroup cmake 1.1
|
|
|
|
PortGroup github 1.0
|
2022-02-24 20:09:00 +00:00
|
|
|
|
2022-06-11 03:20:24 +00:00
|
|
|
name @PROJECT_NAME@
|
|
|
|
version @PROJECT_VERSION@
|
2022-06-21 02:53:40 +00:00
|
|
|
revision 0
|
2022-06-11 03:20:24 +00:00
|
|
|
categories multimedia emulators games
|
|
|
|
platforms darwin
|
|
|
|
license GPL-3
|
2022-07-29 13:45:26 +00:00
|
|
|
maintainers @LizardByte
|
2022-06-11 03:20:24 +00:00
|
|
|
description @PROJECT_DESCRIPTION@
|
2022-06-21 02:53:40 +00:00
|
|
|
|
|
|
|
# long_description will not be split into multiple lines as it's configured by CMakeLists
|
|
|
|
long_description @PROJECT_LONG_DESCRIPTION@
|
2022-06-11 03:20:24 +00:00
|
|
|
homepage @PROJECT_HOMEPAGE_URL@
|
2022-07-29 13:45:26 +00:00
|
|
|
master_sites https://github.com/lizardbyte/sunshine/releases
|
2022-02-24 20:09:00 +00:00
|
|
|
|
2022-06-21 02:53:40 +00:00
|
|
|
compiler.cxx_standard 2017
|
2022-06-11 03:20:24 +00:00
|
|
|
fetch.type git
|
2022-06-21 02:53:40 +00:00
|
|
|
|
|
|
|
git.url @GITHUB_CLONE_URL@
|
|
|
|
git.branch @GITHUB_COMMIT@
|
|
|
|
|
2022-02-24 20:09:00 +00:00
|
|
|
post-fetch {
|
|
|
|
system -W ${worksrcpath} "${git.cmd} submodule update --init --recursive"
|
|
|
|
}
|
|
|
|
|
2024-03-24 23:52:24 +00:00
|
|
|
# https://guide.macports.org/chunked/reference.dependencies.html
|
2024-06-24 16:12:31 +00:00
|
|
|
depends_build-append port:doxygen \
|
|
|
|
port:graphviz \
|
|
|
|
port:npm9 \
|
2024-08-05 18:44:17 +00:00
|
|
|
port:pkgconfig
|
2024-02-26 23:53:56 +00:00
|
|
|
|
2024-07-07 15:19:51 +00:00
|
|
|
depends_lib port:curl \
|
2022-11-18 20:44:06 +00:00
|
|
|
port:libopus \
|
2024-06-24 16:12:31 +00:00
|
|
|
port:miniupnpc
|
2022-02-24 20:09:00 +00:00
|
|
|
|
2024-06-21 19:38:52 +00:00
|
|
|
configure.args -DBOOST_USE_STATIC=ON \
|
|
|
|
-DBUILD_WERROR=ON \
|
2024-02-25 03:34:53 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=${prefix} \
|
2024-08-25 00:14:45 +00:00
|
|
|
-DSUNSHINE_ASSETS_DIR=etc/sunshine/assets \
|
2024-09-09 23:44:46 +00:00
|
|
|
-DSUNSHINE_PUBLISHER_NAME='LizardByte' \
|
2024-08-25 00:14:45 +00:00
|
|
|
-DSUNSHINE_PUBLISHER_WEBSITE='https://app.lizardbyte.dev' \
|
|
|
|
-DSUNSHINE_PUBLISHER_ISSUE_URL='https://app.lizardbyte.dev/support'
|
2022-02-24 20:09:00 +00:00
|
|
|
|
2024-04-18 19:35:49 +00:00
|
|
|
configure.env-append BRANCH=@GITHUB_BRANCH@
|
|
|
|
configure.env-append BUILD_VERSION=@BUILD_VERSION@
|
|
|
|
configure.env-append COMMIT=@GITHUB_COMMIT@
|
|
|
|
|
2022-06-11 03:20:24 +00:00
|
|
|
startupitem.create yes
|
2024-09-14 22:19:09 +00:00
|
|
|
startupitem.executable "${prefix}/bin/sunshine"
|
2022-06-11 03:20:24 +00:00
|
|
|
startupitem.location LaunchDaemons
|
|
|
|
startupitem.name ${name}
|
|
|
|
startupitem.netchange yes
|
2022-02-24 20:09:00 +00:00
|
|
|
|
2022-06-16 20:18:59 +00:00
|
|
|
platform darwin {
|
|
|
|
if { ${os.major} < 20 } {
|
2022-07-29 13:45:26 +00:00
|
|
|
# See: https://github.com/LizardByte/Sunshine/discussions/117#discussioncomment-2513494
|
2022-06-16 20:18:59 +00:00
|
|
|
notes-append "Port is limited to software encoding, when used with macOS releases prior to Big Sur."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-28 23:26:34 +00:00
|
|
|
notes-append "Run @PROJECT_NAME@ by executing 'sunshine <path to user config>', e.g. 'sunshine ~/sunshine.conf' "
|
|
|
|
notes-append "The config file will be created if it doesn't exist."
|
|
|
|
notes-append "It is recommended to set a location for the apps file in the config."
|
2022-07-29 13:45:26 +00:00
|
|
|
notes-append "See our documentation at 'https://docs.lizardbyte.dev/projects/sunshine/en/v@PROJECT_VERSION@/' for further info."
|
2024-03-24 23:52:24 +00:00
|
|
|
|
|
|
|
test.run yes
|
|
|
|
test.dir ${build.dir}/tests
|
|
|
|
test.target ""
|
|
|
|
test.cmd ./test_sunshine
|
2024-06-12 21:26:02 +00:00
|
|
|
test.args --gtest_color=yes --gtest_filter=-*HIDTest.*:-*DeathTest.*
|