components/gnome/orca/Makefile
author John Beck <John.Beck@Oracle.COM>
Sat, 19 Nov 2016 09:06:15 -0800
changeset 7361 c994b30ccafd
parent 7325 0b231164d7ff
child 7624 50e5cc11a34e
permissions -rw-r--r--
25123025 do not publish orca when BUILD_TYPE=evaluation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7325
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     1
#
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     3
#
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     7
#
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    12
#
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    18
#
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    20
#
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    21
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    22
#
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    23
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    24
#
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    25
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    26
BUILD_BITS=		64
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    27
include ../../../make-rules/shared-macros.mk
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    28
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_NAME=		orca
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	https://wiki.gnome.org/Projects/Orca
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_VERSION=	3.18.2
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH= \
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    33
	sha256:986244af7a0891b758eb8e772bc61d72483808e7e9c790360f9f389045d7262a
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_BUGDB= 	gnome/accessibility
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    35
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    36
TPNO=			25851
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    37
7361
c994b30ccafd 25123025 do not publish orca when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 7325
diff changeset
    38
# Depends on newer intltool than is available in 11.3.
c994b30ccafd 25123025 do not publish orca when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 7325
diff changeset
    39
include $(WS_MAKE_RULES)/no-evaluation.mk
c994b30ccafd 25123025 do not publish orca when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 7325
diff changeset
    40
7325
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    41
include $(WS_MAKE_RULES)/gnome-component.mk
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    42
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    43
# Assumes GNU gettext & msgfmt are first in PATH.
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    44
CONFIGURE_ENV += PATH="$(GNUBIN):$(PATH)"
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    45
COMPONENT_BUILD_ENV += PATH="$(GNUBIN):$(PATH)"
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    46
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    47
# Orca requires python >= 3.3
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    48
PYTHON_VERSION = 3.5
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    49
CONFIGURE_ENV += PYTHON="$(PYTHON)"
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    50
PKG_MACROS += PYVER="$(PYTHON_VERSION)" PYV="$(PYTHON_VERSION:3.%=3%)"
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    51
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    52
# Ensure Python modules are installed into vendor package directories.
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    53
CONFIGURE_ENV += am_cv_python_pythondir=$(PYTHON_VENDOR_PACKAGES:/64=)
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    54
CONFIGURE_ENV += am_cv_python_pyexecdir=$(PYTHON_VENDOR_PACKAGES:/64=)
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    55
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    56
# intltool may or may not be run depending on previous state of build dir
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    57
COMPONENT_TEST_TRANSFORMS += "-e '/\/usr\/bin\/intltool-update/d'"
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    58
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    59
# Delete once build servers have new versions of brltty & liblouis installed
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    60
UNINSTALLED_DEPS = desktop/brltty desktop/liblouis
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    61
DEPEND_BASES =	$(UNINSTALLED_DEPS:%=$(WS_COMPONENTS)/%/build/prototype/$(MACH))
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    62
PYTHON_PATHS =	$(DEPEND_BASES:%=%/usr/lib/python$(PYTHON_VERSION)/vendor-packages)
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    63
LIBRARY_PATHS = $(DEPEND_BASES:%=%$(USRLIBDIR64))
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    64
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    65
CONFIGURE_ENV += \
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    66
    PYTHONPATH=$(subst $(space),:,$(strip $(PYTHON_PATHS))) \
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    67
    LD_LIBRARY_PATH_64=$(subst $(space),:,$(strip $(LIBRARY_PATHS)))
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    68
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    69
DEPENDED += $(UNINSTALLED_DEPS:%=$(WS_COMPONENTS)/%/build/manifest-$(MACH)-*.depend)
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    70
REQUIRED_PACKAGES += $(shell $(GSED) -n -e '/GSED/d' -e 's/REQUIRED_PACKAGES += //p' $(UNINSTALLED_DEPS:%=$(WS_COMPONENTS)/%/Makefile))
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    71
#end Delete
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    72
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    73
REQUIRED_PACKAGES += gnome/gsettings-desktop-schemas
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    74
REQUIRED_PACKAGES += library/accessibility/brltty
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    75
REQUIRED_PACKAGES += library/desktop/at-spi2-core
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    76
REQUIRED_PACKAGES += library/desktop/atk
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    77
REQUIRED_PACKAGES += library/desktop/gobject/gobject-introspection
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    78
REQUIRED_PACKAGES += library/desktop/gtk3
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    79
REQUIRED_PACKAGES += library/desktop/libwnck3
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    80
REQUIRED_PACKAGES += library/liblouis
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    81
REQUIRED_PACKAGES += library/python/pyatspi2-35
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    82
REQUIRED_PACKAGES += library/python/pygobject-3-35
0b231164d7ff 23245348 Move orca to Userland and update to 3.18.2
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    83
REQUIRED_PACKAGES += runtime/python-35