CATEGORIES= devel
GIT_REPO= https://git.sr.ht/~lattis/muon
GIT_BRANCH= master
-GIT_REVISION= 944dd7e2f91a83fd39f50aa49b30a19c2fcb02ce
+GIT_REVISION= 6b8073be2501abf34f488c46f9eca9958d702f8a
MAINTAINER= micha@NetBSD.org
HOMEPAGE= https://git.sr.ht/~lattis/muon
SUBST_CLASSES+= flags1
SUBST_STAGE.flags1= pre-configure
-SUBST_MESSAGE.flags1= Honor CFLAGS and LDFLAGS in bootstrap.sh ...
+SUBST_MESSAGE.flags1= Honor LDFLAGS in bootstrap.sh ...
SUBST_FILES.flags1= bootstrap.sh
-SUBST_SED.flags1= -e 's,$${CC:-c99} -o "$$dir/muon",$${CC} -std=c99 $$LDFLAGS -o "$$dir/muon",'
-SUBST_SED.flags1+= -e 's,$${CC:-c99} -g,$${CC} -std=c99 $$CFLAGS -g,'
+SUBST_SED.flags1= -e 's, -o ,$$LDFLAGS -o,'
SUBST_CLASSES+= flags2
SUBST_STAGE.flags2= pre-configure
Honor CFLAGS and LDFLAGS.
---- meson.build.orig 2022-05-25 11:33:02.000000000 +0000
+--- meson.build.orig 2022-07-11 08:37:18.000000000 +0000
+++ meson.build
-@@ -58,6 +58,7 @@ add_project_arguments(
+@@ -43,7 +43,9 @@ endif
+ # compiler setup
- deps = []
- c_args = []
+ c_args = ['-DMUON_PLATFORM_' + platform]
+@CFLAGS@
-
- include_dir = include_directories('include')
-
-@@ -65,6 +66,7 @@ subdir('tools')
- subdir('src')
-
link_args = []
+@LDFLAGS@
+
if get_option('static')
- link_args += '-static'
- endif
+ c_args += '-DMUON_STATIC'