Commit 57c95cde6e0b26003047494ad1e5e0f0ee3959e5

Thomas de Grivel 2023-12-06T09:59:06

compile on MacOS X Sonoma for x86_64

diff --git a/macos/Makefile b/macos/Makefile
index 844d4f9..6d3d05f 100644
--- a/macos/Makefile
+++ b/macos/Makefile
@@ -18,7 +18,7 @@ DMG_FILES = \
 	../libc3/window/sdl2/demo/macos/c3_window_sdl2_demo.app \
 	../libc3/window/sdl2/demo/macos/c3_window_sdl2_demo_debug.app \
 
-DESTDIR = c3-v${C3_VERSION}
+DESTDIR = c3-v${C3_VERSION}-${MACHINE}
 DMG = ${DESTDIR}.dmg
 
 CLEANFILES = ${DMG} ${DESTDIR} ${DESTDIR}.old
@@ -35,4 +35,4 @@ dmg:
 
 .PHONY: all clean dmg
 
-include ../config.mk
+include config.mk
diff --git a/macos/configure b/macos/configure
new file mode 100755
index 0000000..d6ac229
--- /dev/null
+++ b/macos/configure
@@ -0,0 +1,26 @@
+#!/bin/sh
+## c3
+## Copyright 2022,2023 kmx.io <contact@kmx.io>
+##
+## Permission is hereby granted to use this software granted the above
+## copyright notice and this permission paragraph are included in all
+## copies and substantial portions of this software.
+##
+## THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
+## PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
+## AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
+## THIS SOFTWARE.
+
+set -e
+
+export SRC_TOP="$(dirname "$PWD")"
+
+. ../config.subr
+
+C3_VERSION="$(cat ../c3.version)"
+echo "C3_VERSION = $C3_VERSION" >> ${CONFIG_MK}
+
+MACHINE=$(uname -m)
+echo "MACHINE = $MACHINE" >> ${CONFIG_MK}
+
+update_config_mk
diff --git a/release/c3-v0.1.9-x86_64.dmg b/release/c3-v0.1.9-x86_64.dmg
new file mode 100644
index 0000000..2ea3cdf
Binary files /dev/null and b/release/c3-v0.1.9-x86_64.dmg differ