gstreamer/subprojects/macos-bison-binary/README.md
Nirbheek Chauhan afd11f3383 New subproject macos-bison-binary to provide bison on macOS
The version of bison that ships with macOS is too old, so we need to
provide our own version of it.

Fixes https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/174

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-build/-/merge_requests/257>
2021-08-28 23:44:52 +05:30

14 lines
677 B
Markdown

## How to generate binaries and update build files
1. Download the latest bison source tarball
1. Extract, then build it with --prefix=/
1. Install into some dir using `DESTDIR`
1. Delete all files except the following subdirs: `bin` `lib` `share/bison` `share/aclocal`
1. Rename installdir to `bison-$version-macos-$arch` where `$arch` follows Meson's CPU families list:
https://mesonbuild.com/Reference-tables.html#cpu-families
1. `tar -cvjf bison-$version-macos-$arch.tar.bz2 bison-$version-macos-$arch/`
1. Fetch sha256sum: `shasum -256 bison-$version-macos-$arch.tar.bz2`
1. Update sha256sum in `meson.build`
1. Update `project()` version in `meson.build`
That's it!