2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2024 Geoff Weiss
17 USE_DEFAULT_TEST_TRANSFORMS
= yes
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= libadwaita
23 COMPONENT_SUMMARY
= Building blocks for modern GNOME applications.
24 COMPONENT_ARCHIVE_HASH
= sha256
:7542f8354e6808dd4e9a31551bbdfc0170735e4af4d1b3e69186500ccb9c01eb
25 COMPONENT_PROJECT_URL
= https
://gnome.pages.gitlab.gnome.org
/libadwaita
/doc
/
26 COMPONENT_LICENSE
= LGPL-2.1
-only
27 COMPONENT_LICENSE_FILE
= COPYING
28 COMPONENT_CLASSIFICATION
= Desktop
(GNOME
)/Libraries
29 COMPONENT_FMRI
= library
/desktop
/libadwaita
31 include $(WS_MAKE_RULES
)/gnome.mk
32 include $(WS_MAKE_RULES
)/common.mk
34 # GNU msgfmt is needed
37 # Some warnings are treated as errors by default but we do not want that
38 CFLAGS
+= -Wno-error
=format-nonliteral
40 # Testing needs an X server
41 TEST_REQUIRED_PACKAGES
+= x11
/server
/xvfb
42 COMPONENT_PRE_TEST_ACTION
+= /usr
/bin
/Xvfb
:0 >/dev
/null
2>&1 &
43 COMPONENT_TEST_ENV
+= DISPLAY
=:0
44 COMPONENT_POST_TEST_ACTION
+= /usr
/bin
/pkill
-x Xvfb
;
46 # Auto-generated dependencies
47 REQUIRED_PACKAGES
+= desktop
/appstream
48 REQUIRED_PACKAGES
+= library
/desktop
/graphene
49 REQUIRED_PACKAGES
+= library
/desktop
/gtk4
50 REQUIRED_PACKAGES
+= library
/desktop
/pango
51 REQUIRED_PACKAGES
+= library
/fribidi
52 REQUIRED_PACKAGES
+= library
/glib2
53 REQUIRED_PACKAGES
+= system
/library
54 REQUIRED_PACKAGES
+= system
/library
/math