mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
support for $HOMEBREW_PREFIX (macOS)
This commit is contained in:
@@ -729,13 +729,15 @@ href="https://formulae.brew.sh/formula/gstreamer#default">Homebrew
|
||||
gstreamer installation</a> has recently been reworked into a single
|
||||
“formula” named <code>gstreamer</code>, which now works without needing
|
||||
GST_PLUGIN_PATH to be set in the enviroment. Homebrew installs gstreamer
|
||||
to <code>(HOMEBREW)/lib/gstreamer-1.0</code> where
|
||||
<code>(HOMEBREW)/*</code> is <code>/opt/homebrew/*</code> on Apple
|
||||
to <code>HOMEBREW_PREFIX/lib/gstreamer-1.0</code> where by default
|
||||
<code>HOMEBREW_PREFIX/*</code> is <code>/opt/homebrew/*</code> on Apple
|
||||
Silicon Macs, and <code>/usr/local/*</code> on Intel Macs; do not put
|
||||
any extra non-Homebrew plugins (that you build yourself) there, and
|
||||
instead set GST_PLUGIN_PATH to point to their location (Homebrew does
|
||||
not supply a complete GStreamer, but seems to have everything needed for
|
||||
UxPlay).</p>
|
||||
UxPlay). <strong>New: the UxPlay build script will now also detect
|
||||
Homebrew installations in non-standard locations indicated by the
|
||||
environment variable <code>$HOMEBREW_PREFIX</code>.</strong></p>
|
||||
<p><strong>Using GStreamer installed from MacPorts</strong>: this is
|
||||
<strong>not</strong> recommended, as currently the MacPorts GStreamer is
|
||||
old (v1.16.2), unmaintained, and built to use X11:</p>
|
||||
|
||||
@@ -576,10 +576,12 @@ binaries, which work without the wrapper.)
|
||||
This causes a large number of extra packages to be installed by Homebrew as dependencies.
|
||||
The [Homebrew gstreamer installation](https://formulae.brew.sh/formula/gstreamer#default) has recently been
|
||||
reworked into a single "formula" named `gstreamer`, which now works without needing GST_PLUGIN_PATH to be
|
||||
set in the enviroment. Homebrew installs gstreamer to `(HOMEBREW)/lib/gstreamer-1.0` where ``(HOMEBREW)/*`` is
|
||||
set in the enviroment. Homebrew installs gstreamer to `HOMEBREW_PREFIX/lib/gstreamer-1.0` where by default ``HOMEBREW_PREFIX/*`` is
|
||||
`/opt/homebrew/*` on Apple Silicon Macs, and ``/usr/local/*`` on Intel Macs; do not put any
|
||||
extra non-Homebrew plugins (that you build yourself) there, and instead set GST_PLUGIN_PATH to point to
|
||||
their location (Homebrew does not supply a complete GStreamer, but seems to have everything needed for UxPlay).
|
||||
**New: the UxPlay build script will now also detect Homebrew installations in non-standard locations indicated by
|
||||
the environment variable `$HOMEBREW_PREFIX`.**
|
||||
|
||||
|
||||
**Using GStreamer installed from MacPorts**: this is **not** recommended, as currently the MacPorts GStreamer
|
||||
|
||||
15
README.txt
15
README.txt
@@ -726,12 +726,15 @@ be installed by Homebrew as dependencies. The [Homebrew gstreamer
|
||||
installation](https://formulae.brew.sh/formula/gstreamer#default) has
|
||||
recently been reworked into a single "formula" named `gstreamer`, which
|
||||
now works without needing GST_PLUGIN_PATH to be set in the enviroment.
|
||||
Homebrew installs gstreamer to `(HOMEBREW)/lib/gstreamer-1.0` where
|
||||
`(HOMEBREW)/*` is `/opt/homebrew/*` on Apple Silicon Macs, and
|
||||
`/usr/local/*` on Intel Macs; do not put any extra non-Homebrew plugins
|
||||
(that you build yourself) there, and instead set GST_PLUGIN_PATH to
|
||||
point to their location (Homebrew does not supply a complete GStreamer,
|
||||
but seems to have everything needed for UxPlay).
|
||||
Homebrew installs gstreamer to `HOMEBREW_PREFIX/lib/gstreamer-1.0` where
|
||||
by default `HOMEBREW_PREFIX/*` is `/opt/homebrew/*` on Apple Silicon
|
||||
Macs, and `/usr/local/*` on Intel Macs; do not put any extra
|
||||
non-Homebrew plugins (that you build yourself) there, and instead set
|
||||
GST_PLUGIN_PATH to point to their location (Homebrew does not supply a
|
||||
complete GStreamer, but seems to have everything needed for UxPlay).
|
||||
**New: the UxPlay build script will now also detect Homebrew
|
||||
installations in non-standard locations indicated by the environment
|
||||
variable `$HOMEBREW_PREFIX`.**
|
||||
|
||||
**Using GStreamer installed from MacPorts**: this is **not**
|
||||
recommended, as currently the MacPorts GStreamer is old (v1.16.2),
|
||||
|
||||
@@ -43,9 +43,11 @@ endif()
|
||||
if( APPLE )
|
||||
set( ENV{PKG_CONFIG_PATH} "/usr/local/lib/pkgconfig" ) # standard location, and Brew
|
||||
set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/opt/homebrew/lib/pkgconfig" ) # Brew for M1 macs
|
||||
set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:$ENV{HOMEBREW_PREFIX}/lib/pkgconfig" ) # Brew using prefix
|
||||
set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/opt/local/lib/pkgconfig/" ) # MacPorts
|
||||
set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/openssl@3/lib/pkgconfig" ) # Brew openssl
|
||||
set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/opt/homebrew/opt/openssl@3/lib/pkgconfig" ) # Brew M1 openssl
|
||||
set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:$ENV{HOMEBREW_PREFIX}/opt/openssl@3/lib/pkgconfig" ) # Brew using prefix openssl
|
||||
message( "PKG_CONFIG_PATH (Apple, lib) = " $ENV{PKG_CONFIG_PATH} )
|
||||
find_program( PKG_CONFIG_EXECUTABLE pkg-config PATHS /Library/FrameWorks/GStreamer.framework/Commands )
|
||||
message( "PKG_CONFIG_EXECUTABLE " ${PKG_CONFIG_EXECUTABLE} )
|
||||
|
||||
@@ -4,6 +4,7 @@ if (APPLE )
|
||||
set( ENV{PKG_CONFIG_PATH} "/Library/FrameWorks/GStreamer.framework/Libraries/pkgconfig" ) # GStreamer.framework, preferred
|
||||
set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig" ) # Brew or self-installed gstreamer
|
||||
set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/opt/homebrew/lib/pkgconfig" ) # Brew, M1/M2 macs
|
||||
set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:$ENV{HOMEBREW_PREFIX}/lib/pkgconfig" ) # Brew, using prefix
|
||||
set( ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/opt/local/lib/pkgconfig/" ) # MacPorts
|
||||
message( "PKG_CONFIG_PATH (Apple, renderers) = " $ENV{PKG_CONFIG_PATH} )
|
||||
find_program( PKG_CONFIG_EXECUTABLE pkg-config PATHS /Library/FrameWorks/GStreamer.framework/Commands )
|
||||
|
||||
Reference in New Issue
Block a user