mirror of
https://github.com/scummvm/dockerized-bb.git
synced 2026-06-20 05:46:00 +00:00
MACOSX: Add missing libraries: GLEW, Sparkle and Discord-RPC
This commit is contained in:
+7
-2
@@ -356,10 +356,15 @@ def macosx():
|
||||
platform.env["CXX"] = "ccache x86_64-apple-darwin19-c++"
|
||||
# Put back worker CXXFLAGS
|
||||
platform.env["CXXFLAGS"] += "${CXXFLAGS}"
|
||||
# configure script doesn't compile discord check with proper flags
|
||||
platform.env["DISCORD_LIBS"] = "-framework AppKit"
|
||||
|
||||
platform.configureargs.append("--host=x86_64-apple-darwin19")
|
||||
platform.buildconfigureargs = {
|
||||
builds.ScummVMBuild: [ "--enable-static", "--with-staticlib-prefix=${DESTDIR}/${PREFIX}",
|
||||
"--disable-osx-dock-plugin"],
|
||||
builds.ScummVMBuild: [ "--enable-static",
|
||||
"--with-staticlib-prefix=${DESTDIR}/${PREFIX}",
|
||||
"--with-sparkle-prefix=${DESTDIR}/${PREFIX}/Library/Frameworks",
|
||||
"--disable-osx-dock-plugin", "--enable-updates"],
|
||||
}
|
||||
platform.packaging_cmd = {
|
||||
builds.ScummVMBuild: "bundle",
|
||||
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
#! /bin/sh
|
||||
|
||||
DISCORD_RPC_VERSION=3.4.0
|
||||
|
||||
PACKAGE_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
HELPERS_DIR=$PACKAGE_DIR/../..
|
||||
. $HELPERS_DIR/functions.sh
|
||||
|
||||
do_make_bdir
|
||||
|
||||
do_http_fetch discord-rpc \
|
||||
"https://github.com/discord/discord-rpc/archive/v${DISCORD_RPC_VERSION}.tar.gz" 'tar xzf'
|
||||
|
||||
# -DCMAKE_SYSTEM_NAME=Darwin for MacOS X
|
||||
|
||||
do_cmake "$@"
|
||||
do_make
|
||||
do_make install
|
||||
|
||||
do_clean_bdir
|
||||
@@ -130,9 +130,13 @@ helpers_package(freetype)
|
||||
|
||||
ports_package(fribidi)
|
||||
|
||||
ports_package(glew)
|
||||
|
||||
# This is a shim package which uses ports but fixes paths in sdl2-config
|
||||
common_package(libsdl2)
|
||||
|
||||
ports_package(libsdl2_net)
|
||||
|
||||
helpers_package(fluidsynth, -DCMAKE_SYSTEM_NAME=Darwin -DLIB_SUFFIX=)
|
||||
|
||||
# Toolchain specific packages will go in the dedicated file now
|
||||
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
#! /bin/sh
|
||||
|
||||
SPARKLE_VERSION=1.24.0
|
||||
|
||||
PACKAGE_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
|
||||
HELPERS_DIR=$PACKAGE_DIR/../..
|
||||
. $HELPERS_DIR/functions.sh
|
||||
|
||||
do_make_bdir
|
||||
|
||||
do_http_fetch Sparkle "https://github.com/sparkle-project/Sparkle/releases/download/${SPARKLE_VERSION}/Sparkle-${SPARKLE_VERSION}.tar.xz" 'tar --one-top-level -xJf'
|
||||
|
||||
mkdir -p "${DESTDIR}/${PREFIX}/Library/Frameworks"
|
||||
|
||||
mv Sparkle.framework "${DESTDIR}/${PREFIX}/Library/Frameworks"
|
||||
|
||||
# Don't copy bin dir as we won't be able to run it
|
||||
|
||||
do_clean_bdir
|
||||
@@ -6,3 +6,10 @@ m4_define(`MACOSX_DEPLOYMENT_TARGET',10.9)m4_dnl
|
||||
m4_define(`MACOSX_ARCHITECTURES',`x86_64')m4_dnl
|
||||
m4_define(`MACOSX_PORTS_ARCH_ARG',`')m4_dnl
|
||||
m4_include(`macosx.m4')m4_dnl
|
||||
|
||||
# This package isn't available on older MacOS X
|
||||
helpers_package(discord-rpc, -DCMAKE_SYSTEM_NAME=Darwin)
|
||||
|
||||
# This package isn't available for i386 so put it here
|
||||
# It's in macosx-common for any ARM toolchain
|
||||
common_package(sparkle)
|
||||
|
||||
Reference in New Issue
Block a user