commit | author | age
|
751330
|
1 |
# |
AP |
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 |
|
5 |
# 1.0 of the CDDL. |
|
6 |
# |
|
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. |
|
10 |
# |
|
11 |
|
|
12 |
# |
|
13 |
# Copyright 2015 Alexander Pyhalov |
4fe972
|
14 |
# Copyright 2020 Andreas Wacknitz |
751330
|
15 |
# |
AP |
16 |
|
4fe972
|
17 |
BUILD_BITS= 32_and_64 |
AW |
18 |
BUILD_STYLE= meson |
e848d1
|
19 |
include ../../../../make-rules/shared-macros.mk |
751330
|
20 |
|
AP |
21 |
COMPONENT_NAME= atk |
4fe972
|
22 |
COMPONENT_MJR_VERSION=2.36 |
AW |
23 |
COMPONENT_MNR_VERSION=0 |
|
24 |
COMPONENT_VERSION= $(COMPONENT_MJR_VERSION).$(COMPONENT_MNR_VERSION) |
751330
|
25 |
COMPONENT_SUMMARY= GNOME accesibility toolkit libraries |
AP |
26 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
ced9f0
|
27 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz |
751330
|
28 |
COMPONENT_ARCHIVE_HASH= \ |
4fe972
|
29 |
sha256:fb76247e369402be23f1f5c65d38a9639c1164d934e40f6a9cf3c9e96b652788 |
751330
|
30 |
COMPONENT_ARCHIVE_URL= \ |
b7ef23
|
31 |
https://download.gnome.org/sources/$(COMPONENT_NAME)/$(COMPONENT_MJR_VERSION)/$(COMPONENT_ARCHIVE) |
4fe972
|
32 |
COMPONENT_PROJECT_URL = https://www.gnome.org |
751330
|
33 |
COMPONENT_FMRI= library/desktop/atk |
AP |
34 |
COMPONENT_CLASSIFICATION= Desktop (GNOME)/Libraries |
|
35 |
COMPONENT_LICENSE = LGPLv2 |
|
36 |
COMPONENT_LICENSE_FILE = COPYING |
|
37 |
|
4fe972
|
38 |
include $(WS_MAKE_RULES)/common.mk |
751330
|
39 |
|
4fe972
|
40 |
# gcc-7 fails to build atk: |
AW |
41 |
GCC_VERSION= 10 |
751330
|
42 |
|
4fe972
|
43 |
# gobject-introspection is 64-Bit-only |
AW |
44 |
CONFIGURE_OPTIONS.32 += -Dintrospection=false |
751330
|
45 |
|
4fe972
|
46 |
# Workaround for build failures due to atk Makefiles not passing CFLAGS or |
AW |
47 |
# LDFLAGS, especially the -m32/64 flag, to g-ir-scanner |
|
48 |
COMPONENT_BUILD_ENV += CFLAGS="$(strip $(CFLAGS))" |
|
49 |
COMPONENT_BUILD_ENV += LDFLAGS="$(strip $(LDFLAGS))" |
751330
|
50 |
COMPONENT_BUILD_ENV += CC="$(CC)" |
AP |
51 |
|
4fe972
|
52 |
COMPONENT_INSTALL_ENV += PATH="$(PATH.gnu)" |
751330
|
53 |
|
4fe972
|
54 |
# Upstream's "gmake test" target builds tests but does not run them, |
AW |
55 |
# so run them manually for now. |
|
56 |
COMPONENT_TEST_TARGETS += ; cd tests; ./testdocument; ./testrole ; \ |
|
57 |
./testrelation ; ./teststateset ; ./testvalue |
751330
|
58 |
|
4fe972
|
59 |
# get rid of the timestamps from the test results |
AW |
60 |
COMPONENT_TEST_TRANSFORMS += '-e "s/[0-9].[0-9][0-9]s//" ' |
e848d1
|
61 |
|
4fe972
|
62 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
AW |
63 |
|
|
64 |
# Manually added build dependencies |
e848d1
|
65 |
REQUIRED_PACKAGES+= library/desktop/gobject/gobject-introspection |
aedf25
|
66 |
REQUIRED_PACKAGES+= developer/gcc-10 |
e848d1
|
67 |
|
AL |
68 |
# Auto-generated dependencies |
|
69 |
REQUIRED_PACKAGES += library/glib2 |
|
70 |
REQUIRED_PACKAGES += system/library |