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 2023 Niklas Poslovski
16 USE_DEFAULT_TEST_TRANSFORMS
= yes
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= libayatana-indicator
20 COMPONENT_VERSION
= 0.9.4
22 COMPONENT_SUMMARY
= Ayatana Indicators shared library
23 COMPONENT_PROJECT_URL
= https
://github.com
/AyatanaIndicators
/libayatana-indicator
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
26 COMPONENT_ARCHIVE_HASH
= sha256
:a18d3c682e29afd77db24366f8475b26bda22b0e16ff569a2ec71cd6eb4eac95
27 COMPONENT_ARCHIVE_URL
= https
://github.com
/AyatanaIndicators
/$(COMPONENT_NAME
)/archive
/refs
/tags/$(COMPONENT_VERSION
).
tar.gz
28 COMPONENT_FMRI
= desktop
/library
/libayatana-indicator
29 COMPONENT_CLASSIFICATION
= Desktop
(GNOME
)/Libraries
30 COMPONENT_LICENSE
= GPLv3
31 COMPONENT_LICENSE_FILE
= COPYING
33 include $(WS_MAKE_RULES
)/common.mk
35 # /usr/libexec needed to make dbus-daemon program available for tests
36 PATH
= $(PATH.illumos
):/usr
/libexec
38 CMAKE_OPTIONS
+= -DENABLE_TESTS
=On
40 # Testing needs an X server
41 COMPONENT_PRE_TEST_ACTION
+= /usr
/bin
/Xvfb
:1 >/dev
/null
2>&1 &
42 COMPONENT_TEST_ENV
+= DISPLAY
=:1
43 COMPONENT_POST_TEST_ACTION
+= /usr
/bin
/pkill
-x Xvfb
;
46 TEST_REQUIRED_PACKAGES
+= gnome
/theme
/hicolor-icon-theme
47 TEST_REQUIRED_PACKAGES
+= x11
/server
/xvfb
49 # Manually added test dependency
50 TEST_REQUIRED_PACKAGES
+= developer
/dbus-test-runner
52 # Auto-generated dependencies
53 REQUIRED_PACKAGES
+= desktop
/library
/ayatana-ido
54 REQUIRED_PACKAGES
+= library
/desktop
/gdk-pixbuf
55 REQUIRED_PACKAGES
+= library
/desktop
/gtk3
56 REQUIRED_PACKAGES
+= library
/glib2
57 REQUIRED_PACKAGES
+= system
/library
58 REQUIRED_PACKAGES
+= system
/library
/math