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 2017 Alexander Pyhalov
14 # Copyright 2019 Michal Nowak
15 # Copyright 2020 Marco van Wieringen
19 USE_DEFAULT_TEST_TRANSFORMS
= yes
20 include ..
/..
/..
/make-rules
/shared-macros.mk
23 HUMAN_VERSION
= 3.24.43
25 COMPONENT_SUMMARY
= GTK
+ - GIMP Toolkit Library for creation of graphical user interfaces
26 COMPONENT_ARCHIVE_HASH
= sha256
:7e04f0648515034b806b74ae5d774d87cffb1a2a96c468cb5be476d51bf2f3c7
27 COMPONENT_PROJECT_URL
= https
://www.gtk.org
/
28 COMPONENT_CLASSIFICATION
=Desktop
(GNOME
)/Libraries
29 COMPONENT_FMRI
= library
/desktop
/gtk3
30 COMPONENT_LICENSE
= LGPL-2.0
-only
31 COMPONENT_LICENSE_FILE
= COPYING
33 include $(WS_MAKE_RULES
)/gnome.mk
34 include $(WS_MAKE_RULES
)/common.mk
38 CFLAGS
+= -I
/usr
/X11
/include
40 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
41 CONFIGURE_OPTIONS
+= -Dwayland_backend
=false
42 CONFIGURE_OPTIONS
+= -Dprint_backends
=cups
,file
43 CONFIGURE_OPTIONS
+= -Dman
=true
44 CONFIGURE_OPTIONS
+= -Dgtk_doc
=true
46 # CFLAGS are not passed to compiler when g-ir-scanner is used
47 COMPONENT_BUILD_ENV
+= CFLAGS
="$(CFLAGS)"
48 COMPONENT_BUILD_ENV
+= CC
="$(CC)"
50 # Testing needs an X server
51 TEST_REQUIRED_PACKAGES
+= x11
/server
/xvfb
52 COMPONENT_PRE_TEST_ACTION
+= /usr
/bin
/Xvfb
:0 >/dev
/null
2>&1 &
53 COMPONENT_TEST_ENV
+= DISPLAY
=:0
54 COMPONENT_POST_TEST_ACTION
+= /usr
/bin
/pkill
-x Xvfb
;
57 TEST_REQUIRED_PACKAGES
+= gnome
/theme
/hicolor-icon-theme
60 REQUIRED_PACKAGES
+= developer
/documentation-tool
/gtk-doc
62 # Auto-generated dependencies
63 REQUIRED_PACKAGES
+= gnome
/accessibility
/at-spi2-core
64 REQUIRED_PACKAGES
+= library
/c
++/harfbuzz
65 REQUIRED_PACKAGES
+= library
/desktop
/cairo
66 REQUIRED_PACKAGES
+= library
/desktop
/gdk-pixbuf
67 REQUIRED_PACKAGES
+= library
/desktop
/pango
68 REQUIRED_PACKAGES
+= library
/fribidi
69 REQUIRED_PACKAGES
+= library
/glib2
70 REQUIRED_PACKAGES
+= library
/print/cups-libs
71 REQUIRED_PACKAGES
+= system
/library
72 REQUIRED_PACKAGES
+= system
/library
/fontconfig
73 REQUIRED_PACKAGES
+= system
/library
/math
74 REQUIRED_PACKAGES
+= x11
/library
/libepoxy
75 REQUIRED_PACKAGES
+= x11
/library
/libx11
76 REQUIRED_PACKAGES
+= x11
/library
/libxcomposite
77 REQUIRED_PACKAGES
+= x11
/library
/libxcursor
78 REQUIRED_PACKAGES
+= x11
/library
/libxdamage
79 REQUIRED_PACKAGES
+= x11
/library
/libxext
80 REQUIRED_PACKAGES
+= x11
/library
/libxfixes
81 REQUIRED_PACKAGES
+= x11
/library
/libxi
82 REQUIRED_PACKAGES
+= x11
/library
/libxinerama
83 REQUIRED_PACKAGES
+= x11
/library
/libxrandr