build: optionally static link boost (#2628)

This commit is contained in:
ReenigneArcher
2024-06-14 17:37:46 -04:00
committed by GitHub
parent 5f6fe3319c
commit ebc41acf98
30 changed files with 194 additions and 134 deletions
+1 -3
View File
@@ -13,7 +13,6 @@ install=sunshine.install
_gcc_version=13
depends=('avahi'
'boost-libs'
'curl'
'libayatana-appindicator'
'libcap'
@@ -37,8 +36,7 @@ depends=('avahi'
'udev')
checkdepends=('doxygen'
'graphviz')
makedepends=('boost'
'cmake'
makedepends=('cmake'
"gcc${_gcc_version}"
'git'
'make'
@@ -36,25 +36,6 @@ build-options:
modules:
- "org.flatpak.Builder.BaseApp/xvfb.json"
- name: boost
disabled: false
buildsystem: simple
build-commands:
- cd tools/build && bison -y -d -o src/engine/jamgram.cpp src/engine/jamgram.y
- ./bootstrap.sh --prefix=$FLATPAK_DEST --with-libraries=locale,log,program_options,system,thread
- ./b2 install variant=release link=shared runtime-link=shared cxxflags="$CXXFLAGS" linkflags="$LDFLAGS"
-j $FLATPAK_BUILDER_N_JOBS
sources:
- type: archive
url: http://archive.ubuntu.com/ubuntu/pool/main/b/boost1.74/boost1.74_1.74.0.orig.tar.xz
sha256: 2467be4af625b5ae4b3c93fc7af196a09eba39c11a7338cd9e8b356fa44d2f45
- type: archive
url: http://archive.ubuntu.com/ubuntu/pool/main/b/boost1.74/boost1.74_1.74.0-18.1ubuntu3.debian.tar.xz
sha256: d5660bdce3ea4ac66194b0c4bc6dc3b9d43d41cc16af8bc6024980d965e40ae2
- type: shell
commands:
- for n in $(cat patches/series); do if [[ $n != "#"* ]]; then patch -Np1 -i "patches/$n" -d .; fi; done
- name: avahi
disabled: false
cleanup:
-3
View File
@@ -5,7 +5,6 @@
PortSystem 1.0
PortGroup cmake 1.1
PortGroup github 1.0
PortGroup boost 1.0
name @PROJECT_NAME@
version @PROJECT_VERSION@
@@ -45,8 +44,6 @@ depends_lib port:avahi \
depends_test port:doxygen \
port:graphviz
boost.version 1.81
configure.args -DBUILD_WERROR=ON \
-DCMAKE_INSTALL_PREFIX=${prefix} \
-DSUNSHINE_ASSETS_DIR=etc/sunshine/assets
-1
View File
@@ -21,7 +21,6 @@ class @PROJECT_NAME@ < Formula
end
end
depends_on "boost" => :build
depends_on "cmake" => :build
depends_on "node" => :build
depends_on "pkg-config" => :build