json-glib: update to 1.10.6
[oi-userland.git] / components / library / json-glib / Makefile
blob770e9f78e92d6adc02cc053730de715c583fa3bd
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2014 Alexander Pyhalov
13 # Copyright (c) 2022 Niklas Poslovski
16 BUILD_BITS= 64_and_32
17 BUILD_STYLE= meson
18 USE_DEFAULT_TEST_TRANSFORMS = yes
19 USE_COMMON_TEST_MASTER = no
21 include ../../../make-rules/shared-macros.mk
23 COMPONENT_NAME= json-glib
24 HUMAN_VERSION= 1.10.6
25 COMPONENT_SUMMARY= JSON parser library for GLib
26 COMPONENT_ARCHIVE_HASH= sha256:77f4bcbf9339528f166b8073458693f0a20b77b7059dbc2db61746a1928b0293
27 COMPONENT_FMRI= library/desktop/json-glib
28 COMPONENT_CLASSIFICATION= Desktop (GNOME)/Libraries
29 COMPONENT_LICENSE= LGPL-2.1-only
30 COMPONENT_LICENSE_FILE= COPYING
32 COMPONENT_FMRI.json-glib-32 = $(COMPONENT_FMRI)/32
33 COMPONENT_SUMMARY.json-glib-32 = $(COMPONENT_SUMMARY) (32-bit)
35 include $(WS_MAKE_RULES)/gnome.mk
36 include $(WS_MAKE_RULES)/common.mk
38 # There is no 32-bit introspection
39 CONFIGURE_OPTIONS.32 += -Dintrospection=disabled
40 # We do not need message catalogs built for 32-bit.
41 # Catalogs built during the 64-bit build will be used.
42 CONFIGURE_OPTIONS.32 += -Dnls=disabled
43 # For now we are not interested in installed tests
44 CONFIGURE_OPTIONS += -Dinstalled_tests=false
46 # Drop 32-bit binaries
47 COMPONENT_POST_INSTALL_ACTION.32 += $(RM) -r $(PROTOUSRBINDIR32) ;
48 # Drop include files installed for 32-bit build
49 COMPONENT_POST_INSTALL_ACTION.32 += $(RM) -r $(PROTOUSRINCDIR) ;
51 # Dynamic library version number
52 SOVER := $(shell printf '%s00.%s' $(wordlist 2,3,$(subst ., ,$(COMPONENT_VERSION))))
53 SOVER_RE = $(subst .,\.,$(SOVER))
55 # Replace library version number by SOVER
56 GENERATE_EXTRA_CMD += | $(GSED) -e 's/$(SOVER_RE)/$$(SOVER)/'
58 # SOVER is needed for manifest processing
59 PKG_MACROS += SOVER=$(SOVER)
61 # Build dependencies
62 PYTHON_REQUIRED_PACKAGES += library/python/gi-docgen
63 REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
65 # Auto-generated dependencies
66 REQUIRED_PACKAGES += library/glib2
67 REQUIRED_PACKAGES += library/glib2/32
68 REQUIRED_PACKAGES += system/library