[MacPorts] #63561: dav1d +universal: meson: error: unrecognized arguments: --host=aarch64-apple-darwin20.6.0

MacPorts noreply at macports.org
Mon Oct 24 17:32:07 UTC 2022


#63561: dav1d +universal: meson: error: unrecognized arguments: --host=aarch64
-apple-darwin20.6.0
-----------------------------+------------------------
  Reporter:  johanmattssonm  |      Owner:  ctreleaven
      Type:  defect          |     Status:  assigned
  Priority:  Normal          |  Milestone:
 Component:  ports           |    Version:  2.7.1
Resolution:                  |   Keywords:
      Port:  dav1d           |
-----------------------------+------------------------

Comment (by tomio-arisaka):

 Replying to [comment:11 kencu]:
 > Replying to [comment:10 potterpg]:
 > > Is there a way to compile as a static lib?
 >
 > not automatically. Upstream would have to add that as an option to their
 meson.build infrastructure.

 I think that meson supports both dynamic and static libraries.\\

 See
 https://mesonbuild.com/Configuring-a-build-directory.html#configuring-a
 -build-directory

 So you can try to build both libraries.

 For example:

 {{{
 $ diff -u Portfile.orig Portfile
 --- Portfile.orig       2022-06-03 19:55:44.000000000 +0900
 +++ Portfile    2022-08-12 04:44:12.000000000 +0900
 @@ -50,6 +50,7 @@
  compiler.blacklist-append { clang < 700 } macports-clang-3.3 macports-
 clang-3.4

  configure.args-append \
 +                    --default-library=both \
                      -Denable_tests=false

  variant test description {enable tests} {
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63561#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list