-
-
Notifications
You must be signed in to change notification settings - Fork 944
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
65c4f01
commit cc7fc62
Showing
4 changed files
with
175 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,75 @@ | ||
# -*- 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 cmake 1.1 | ||
PortGroup github 1.0 | ||
PortGroup boost 1.0 | ||
PortSystem 1.0 | ||
PortGroup cmake 1.1 | ||
PortGroup github 1.0 | ||
PortGroup boost 1.0 | ||
|
||
github.setup sunshinestream sunshine master | ||
version @PROJECT_VERSION@ | ||
revision 1 | ||
# bump revision when changes are made to this file | ||
revision 1 | ||
|
||
categories multimedia | ||
license GPL-3 | ||
maintainers {sunshinestream @SunshineStream} {outlook.com:anselm.busse} | ||
platforms darwin | ||
github.setup @GITHUB_OWNER@ @GITHUB_REPO@ @GITHUB_BRANCH@ | ||
name @PROJECT_NAME@ | ||
version @PROJECT_VERSION@ | ||
categories multimedia emulators games | ||
platforms darwin | ||
license GPL-3 | ||
maintainers {@SunshineStream sunshinestream} | ||
description @PROJECT_DESCRIPTION@ | ||
long_description {*}${description} | ||
homepage @PROJECT_HOMEPAGE_URL@ | ||
master_sites https://github.com/@GITHUB_OWNER@/@GITHUB_REPO@/releases | ||
|
||
fetch.type git | ||
fetch.type git | ||
post-fetch { | ||
system -W ${worksrcpath} "${git.cmd} submodule update --init --recursive" | ||
} | ||
|
||
description @PROJECT_DESCRIPTION@ | ||
long_description {*}${description} | ||
homepage @PROJECT_HOMEPAGE_URL@ | ||
depends_lib port:avahi \ | ||
port:ffmpeg \ | ||
port:libopus | ||
|
||
depends_lib port:avahi \ | ||
port:ffmpeg \ | ||
port:libopus | ||
boost.version 1.76 | ||
|
||
configure.args -DBOOST_ROOT=[boost::install_area] \ | ||
-DSUNSHINE_ASSETS_DIR=${prefix}/etc/sunshine/assets \ | ||
-DSUNSHINE_CONFIG_DIR=${prefix}/etc/sunshine/config | ||
|
||
boost.version 1.76 | ||
cmake.out_of_source yes | ||
|
||
configure.args -DBOOST_ROOT=[boost::install_area] \ | ||
-DSUNSHINE_ASSETS_DIR=${prefix}/etc/sunshine/assets | ||
-DSUNSHINE_CONFIG_DIR=${prefix}/etc/sunshine/config | ||
|
||
cmake.out_of_source yes | ||
startupitem.create yes | ||
startupitem.executable "${prefix}/bin/{$name}" | ||
startupitem.location LaunchDaemons | ||
startupitem.name ${name} | ||
startupitem.netchange yes | ||
|
||
# is this actually necessary? this should all be handled by CMakeLists | ||
destroot { | ||
xinstall -d -m 755 ${destroot}${prefix}/usr/local/${name}/.assets | ||
xinstall {*}[glob ${worksrcpath}/src_assets/common/assets/*] ${destroot}${prefix}/usr/local/${name}/.assets | ||
xinstall {*}[glob ${worksrcpath}/src_assets/macos/assets/*] ${destroot}${prefix}/usr/local/${name}/.assets | ||
# install assets | ||
xinstall -d -m 755 ${destroot}${prefix}/etc/${name}/assets | ||
xinstall {*}[glob ${worksrcpath}/src_assets/common/assets/*.*] ${destroot}${prefix}/etc/${name}/assets | ||
xinstall {*}[glob ${worksrcpath}/src_assets/macos/assets/*.*] ${destroot}${prefix}/etc/${name}/assets | ||
|
||
# install web assets | ||
xinstall -d -m 755 ${destroot}${prefix}/etc/${name}/assets/web/fonts/fontawesome-free-web/css | ||
xinstall -d -m 755 ${destroot}${prefix}/etc/${name}/assets/web/fonts/fontawesome-free-web/webfonts | ||
xinstall {*}[glob ${worksrcpath}/src_assets/common/assets/web/*.*] ${destroot}${prefix}/etc/${name}/assets/web | ||
xinstall {*}[glob ${worksrcpath}/src_assets/common/assets/web/fonts/fontawesome-free-web/*.*] ${destroot}${prefix}/etc/${name}/assets/web/fonts/fontawesome-free-web | ||
xinstall {*}[glob ${worksrcpath}/src_assets/common/assets/web/fonts/fontawesome-free-web/css/*.*] ${destroot}${prefix}/etc/${name}/assets/web/fonts/fontawesome-free-web/css | ||
xinstall {*}[glob ${worksrcpath}/src_assets/common/assets/web/fonts/fontawesome-free-web/webfonts/*.*] ${destroot}${prefix}/etc/${name}/assets/web/fonts/fontawesome-free-web/webfonts | ||
xinstall -d -m 755 ${destroot}${prefix}/etc/${name}/assets/web/images | ||
xinstall -d -m 755 ${destroot}${prefix}/etc/${name}/assets/web/third_party | ||
xinstall {*}[glob ${worksrcpath}/src_assets/common/assets/web/images/*.*] ${destroot}${prefix}/etc/${name}/assets/web/images | ||
xinstall {*}[glob ${worksrcpath}/src_assets/common/assets/web/third_party/*.*] ${destroot}${prefix}/etc/${name}/assets/web/third_party | ||
|
||
xinstall -d -m 755 ${destroot}${prefix}/etc/${name}/config | ||
|
||
# install sunshine.conf | ||
xinstall {*}[glob ${worksrcpath}/src_assets/common/config/*.*] ${destroot}${prefix}/etc/${name}/config | ||
|
||
xinstall -d -m 755 ${destroot}${prefix}/usr/local/${name}/config | ||
xinstall {*}[glob ${worksrcpath}/src_assets/common/config/*] ${destroot}${prefix}/usr/local/${name}/config | ||
xinstall {*}[glob ${worksrcpath}/src_assets/macos/config/*] ${destroot}${prefix}/usr/local/${name}/config | ||
# install apps.json | ||
xinstall {*}[glob ${worksrcpath}/src_assets/macos/config/*.*] ${destroot}${prefix}/etc/${name}/config | ||
|
||
# install the binary | ||
xinstall ${workpath}/build/${name} ${destroot}${prefix}/bin | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters