Skip to content

Commit 93f75f1

Browse files
committed
MACOSXPPC: Add fluidlite from upstream dockerized-bb
Reworking the patch a bit, because the one in upstream dockerized-bb uses a Git syntax that older OSX patch(1) doesn't understand. Fluidlite is still in test for OSX PPC, because I can't get it to work with Blazing Dragons yet...
1 parent 9853363 commit 93f75f1

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#! /bin/sh
2+
3+
FLUIDLITE_VERSION=d59d2328818f913b7d1a6a59aed695c47a8ce388
4+
5+
PACKAGE_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
6+
HELPERS_DIR=$PACKAGE_DIR/../../../common
7+
. $HELPERS_DIR/functions.sh
8+
9+
do_make_bdir
10+
11+
do_http_fetch FluidLite \
12+
"https://github.com/divideconcept/FluidLite/archive/${FLUIDLITE_VERSION}.tar.gz" 'tar xzf'
13+
14+
# Not relying on the automated patches/ future here, because the original
15+
# patch relies on a Git format that older OSX patch(1) doesn't understand
16+
cp -p include/fluidlite.h include/fluidlite.h.in
17+
patch -N -t -p1 < $PACKAGE_DIR/manual-patches/0001-Fix-static-build.patch
18+
19+
do_cmake -DFLUIDLITE_BUILD_SHARED=OFF -DCMAKE_C_FLAGS="-O2 -mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -Wa,-force_cpusubtype_ALL -m32" -DCMAKE_C_COMPILER=/opt/macports-tff/bin/gcc-mp-7 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.4 -DCMAKE_OSX_SYSROOT=/Developer/SDKs/MacOSX10.4u.sdk
20+
21+
do_make VERBOSE=1
22+
23+
do_make install
24+
25+
do_clean_bdir
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
XXX: changed because older OSX patch(1) doesn't understand the Git
2+
file rename syntax of the original patch
3+
4+
--- a/CMakeLists.txt
5+
+++ b/CMakeLists.txt
6+
@@ -33,10 +33,11 @@ include(CheckIncludeFile)
7+
check_include_file(fcntl.h HAVE_FCNTL_H)
8+
9+
list(APPEND HEADERS
10+
- include/fluidlite.h
11+
+ ${PROJECT_BINARY_DIR}/fluidlite.h
12+
)
13+
14+
configure_file(src/version.cmake ${PROJECT_BINARY_DIR}/fluidlite/version.h @ONLY)
15+
+configure_file(include/fluidlite.h.in ${PROJECT_BINARY_DIR}/fluidlite.h)
16+
17+
list(APPEND SCOPED_HEADERS
18+
include/fluidlite/types.h
19+
--- a/include/fluidlite.h.in
20+
+++ b/include/fluidlite.h.in
21+
@@ -27,6 +27,12 @@
22+
extern "C" {
23+
#endif
24+
25+
+#cmakedefine01 FLUIDLITE_BUILD_SHARED
26+
+
27+
+#if (FLUIDLITE_BUILD_SHARED == 0) && !defined(FLUIDLITE_STATIC)
28+
+#define FLUIDLITE_STATIC
29+
+#endif
30+
+
31+
#if defined(_WIN32)
32+
#if defined(FLUIDLITE_STATIC)
33+
#define FLUIDSYNTH_API

0 commit comments

Comments
 (0)