diff options
author | Matthew Waters <matthew@centricular.com> | 2021-05-14 23:08:57 +1000 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2021-05-14 23:08:57 +1000 |
commit | 8445166561d5e9f849314adf80913a058b20abe0 (patch) | |
tree | 48f57980cb0959b25e74c092ed42a4592cb2782b /recipes/pkg-config.recipe | |
parent | 5ad371ab5e7c6473b8738c3172b44dca9312c63a (diff) |
macos/universal: fix pkg-config packaging
When building for universal, the build-tools pkg-config is not
sufficient as it is not built for the universal archs. We need to build
our own version to distribute.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/701>
Diffstat (limited to 'recipes/pkg-config.recipe')
-rw-r--r-- | recipes/pkg-config.recipe | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/pkg-config.recipe b/recipes/pkg-config.recipe new file mode 100644 index 00000000..5b72d92b --- /dev/null +++ b/recipes/pkg-config.recipe @@ -0,0 +1,22 @@ +# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python + + +class Recipe(recipe.Recipe): + name = 'pkg-config' + version = '0.29.2' + licenses = [License.GPLv2Plus] + stype = SourceType.TARBALL + url = 'https://pkgconfig.freedesktop.org/releases/pkg-config-%(version)s.tar.gz' + tarball_checksum = '6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591' + configure_options = '--with-internal-glib --disable-host-tool ' + override_libtool = False + + files_bins = ['pkg-config'] + files_share = ['share/aclocal/pkg.m4'] + + def prepare(self): + # --define-prefix is too unreliable on Debian-like distros that have + # pkgconfig in /usr/lib/x86_64-linux-gnu etc. instead of in /usr/lib + if self.config.platform != Platform.LINUX: + self.configure_options += '--enable-define-prefix ' + self.append_env('CFLAGS', '-Wno-error=format-nonliteral') |