MACOSX: Add missing libraries: GLEW, Sparkle and Discord-RPC

This commit is contained in:
Le Philousophe
2020-11-21 11:54:40 +00:00
parent f3f1b0e826
commit 391e628654
5 changed files with 57 additions and 2 deletions
+7 -2
View File
@@ -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
View File
@@ -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
+4
View File
@@ -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
View File
@@ -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
+7
View File
@@ -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)