7321N/A#
7321N/A# CDDL HEADER START
7321N/A#
7321N/A# The contents of this file are subject to the terms of the
7321N/A# Common Development and Distribution License (the "License").
7321N/A# You may not use this file except in compliance with the License.
7321N/A#
7321N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7321N/A# or http://www.opensolaris.org/os/licensing.
7321N/A# See the License for the specific language governing permissions
7321N/A# and limitations under the License.
7321N/A#
7321N/A# When distributing Covered Code, include this CDDL HEADER in each
7321N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7321N/A# If applicable, add the following below this CDDL HEADER, with the
7321N/A# fields enclosed by brackets "[]" replaced with your own identifying
7321N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7321N/A#
7321N/A# CDDL HEADER END
7321N/A#
7321N/A
7321N/A#
7321N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
7321N/A#
7321N/A
7321N/ABUILD_BITS= 64
7321N/A# brltty-5.4/Headers/bitfield.h has a field with a zero-sized array that
7321N/A# Studio 12.4 refuses to deal with.
7321N/ACOMPILER= gcc
7321N/Ainclude ../../../make-rules/shared-macros.mk
7321N/A
7321N/ACOMPONENT_NAME= brltty
7321N/ACOMPONENT_VERSION= 5.4
7321N/ACOMPONENT_PROJECT_URL= http://mielke.cc/brltty/
7321N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
7321N/ACOMPONENT_ARCHIVE_HASH= \
7321N/A sha256:5d071bd6be9e7f3f85745088e00471c8dec6ebb77fd5b5c89e8f4cbc2d2c5d4f
7321N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/archive/$(COMPONENT_ARCHIVE)
7321N/ACOMPONENT_BUGDB= utility/brltty
7321N/A
7321N/ATPNO= 30456
7321N/A
7321N/ATEST_TARGET= $(NO_TESTS)
7321N/A
7321N/Ainclude $(WS_MAKE_RULES)/common.mk
7321N/A
7321N/ACOMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D)) ;
7321N/A
7321N/A# Needed because we patch configure.ac
7321N/ACOMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D) ; ./autogen) ;
7321N/A
7321N/ACC += $(CC_BITS)
7321N/ACFLAGS += $(CC_PIC)
7321N/ACPPFLAGS += -D_SYS_UCONTEXT_H # Workaround Bug Id 15558893
7321N/A
7321N/A# Orca uses python 3.5, so we need to match
7321N/APYTHON_VERSION = 3.5
7321N/ACONFIGURE_ENV += PYTHON="$(PYTHON)"
7321N/APKG_MACROS += PYVER="$(PYTHON_VERSION)"
7321N/A
7321N/A# Assumes GNU gettext & msgfmt are first in PATH.
7321N/ACONFIGURE_ENV += PATH="$(GNUBIN):$(PATH)"
7321N/ACOMPONENT_BUILD_ENV += PATH="$(GNUBIN):$(PATH)"
7321N/A
7321N/A# Needed by call to setup.py for python module in build phase
7321N/A# (copied from make-rules/setup.py.mk)
7321N/APYTHON_ENV += CC="$(CC)"
7321N/APYTHON_ENV += CFLAGS="$(CFLAGS)"
7321N/APYTHON_ENV += LDSHARED="$(CC) -shared"
7321N/ACOMPONENT_BUILD_ENV += $(PYTHON_ENV)
7321N/ACOMPONENT_INSTALL_ENV += $(PYTHON_ENV)
7321N/ACOMPONENT_TEST_ENV += $(PYTHON_ENV)
7321N/ACOMPONENT_SYSTEM_TEST_ENV += $(PYTHON_ENV)
7321N/A
7321N/A# brltty's Makefile doesn't let us pass --install-lib to setup.py so we
7321N/A# fake it with a symlink in the proto area
7321N/ACOMPONENT_POST_INSTALL_ACTION += \
7321N/A $(SYMLINK) site-packages $(PROTO_DIR)$(PYTHON_LIB)
7321N/A
7321N/ACONFIGURE_OPTIONS += --enable-python-bindings
7321N/ACONFIGURE_OPTIONS += --disable-java-bindings
7321N/ACONFIGURE_OPTIONS += --disable-lisp-bindings
7321N/ACONFIGURE_OPTIONS += --disable-ocaml-bindings
7321N/ACONFIGURE_OPTIONS += --disable-tcl-bindings
7321N/ACONFIGURE_OPTIONS += --disable-speech-support
7321N/ACONFIGURE_OPTIONS += --disable-stripping
7321N/ACONFIGURE_OPTIONS += --disable-polkit # requires SO_PEERCRED support
7321N/ACONFIGURE_OPTIONS += --without-midi-package
7321N/ACONFIGURE_OPTIONS += --without-writable-directory
7321N/ACONFIGURE_OPTIONS += --with-gui-toolkit=Xaw
7321N/ACONFIGURE_OPTIONS += --localstatedir="$(VARDIR)"
7321N/ACONFIGURE_OPTIONS += --sysconfdir="$(ETCDIR)"
7321N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
7321N/ACONFIGURE_OPTIONS += LD="/usr/bin/ld"
7321N/A
7321N/ACOMPONENT_INSTALL_ARGS += INSTALL_ROOT=$(PROTO_DIR)
7321N/A
7321N/AREQUIRED_PACKAGES += library/desktop/at-spi2-core
7321N/AREQUIRED_PACKAGES += library/icu
7321N/AREQUIRED_PACKAGES += library/python/cython-35
7321N/AREQUIRED_PACKAGES += runtime/python-35
7321N/AREQUIRED_PACKAGES += shell/ksh93
7321N/AREQUIRED_PACKAGES += system/library
7321N/AREQUIRED_PACKAGES += system/library/libdbus
7321N/AREQUIRED_PACKAGES += x11/library/libx11
7321N/AREQUIRED_PACKAGES += x11/library/libxtst
7321N/AREQUIRED_PACKAGES += x11/library/toolkit/libxaw7
7321N/AREQUIRED_PACKAGES += x11/library/toolkit/libxt