blob: b624e368c909808b7825dbf237a3dbbb175b05f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# -*- 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'
btype = BuildType.MESON
meson_options = {'host_tool': 'disabled', 'internal_glib': 'enabled'}
# We want to link these statically into pkg-config, so for proxy-libintl
# don't use the existing recipe which will build only a shared version
# but just download a separate copy for static linking. It's just two
# source files. For GLib we need to patch the GLib after the subproject
# download in order to disable gobject, gio, GRegexp and other external
# dependencies, and this will be done by meson as part of the subproject
# download and the diff_files in the glib.wrap.
meson_subprojects = ['glib', 'proxy-libintl']
patches = [
'pkg-config/0001-Automatically-detect-prefix-on-macOS-too.patch',
'pkg-config/0001-Add-Meson-build-optionally-with-internal-glib-subpro.patch',
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3237
# backported into 2.74.6
'pkg-config/0001-Fix-glib-build-on-Windows.patch',
]
files_bins = ['pkg-config']
files_share = ['share/aclocal/pkg.m4']
def prepare(self):
if not self.using_msvc():
self.append_env('CFLAGS', '-Wno-error=format-nonliteral')
|