#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
#
# All components using gobject-introspection must be built with gcc as
# gobject-introspection does not produce correct results when using Studio.
COMPILER = gcc
BUILD_BITS = 32_and_64
include ../../../make-rules/shared-macros.mk
COMPONENT_NAME= atk
COMPONENT_VERSION= 2.18.0
COMPONENT_PROJECT_URL= https://wiki.gnome.org/Accessibility
COMPONENT_ARCHIVE_HASH= \
sha256:ce6c48d77bf951083029d5a396dd552d836fff3c1715d3a7022e917e46d0c92b
COMPONENT_BUGDB= gnome/a11y-libs-core
TPNO= 24624
# Requires newer version of library/glib2, not buildable on 11.3, so do not
# publish.
ifeq ($(BUILD_TYPE), evaluation)
BUILD_32_and_64=
INSTALL_32_and_64=
PUBLISH_STAMP=
endif
include $(WS_MAKE_RULES)/gnome-component.mk
# Workaround for build failures due to atk Makefiles not passing CFLAGS or
# LDFLAGS, especially the -m32/64 flag, to g-ir-scanner
COMPONENT_BUILD_ENV += CFLAGS="$(strip $(CFLAGS))"
COMPONENT_BUILD_ENV += LDFLAGS="$(strip $(LDFLAGS))"
# Upstream's "gmake test" target builds tests but does not run them,
# so run them manually for now.
COMPONENT_TEST_TARGETS += ; cd tests; ./testdocument; ./testrole ; \
./testrelation ; ./teststateset ; ./testvalue
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
CONFIGURE_OPTIONS += --enable-introspection
CONFIGURE_OPTIONS += --disable-silent-rules
REQUIRED_PACKAGES += developer/documentation-tool/gtk-doc
REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
REQUIRED_PACKAGES += library/glib2