7322N/A#
7322N/A# CDDL HEADER START
7322N/A#
7322N/A# The contents of this file are subject to the terms of the
7322N/A# Common Development and Distribution License (the "License").
7322N/A# You may not use this file except in compliance with the License.
7322N/A#
7322N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7322N/A# or http://www.opensolaris.org/os/licensing.
7322N/A# See the License for the specific language governing permissions
7322N/A# and limitations under the License.
7322N/A#
7322N/A# When distributing Covered Code, include this CDDL HEADER in each
7322N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7322N/A# If applicable, add the following below this CDDL HEADER, with the
7322N/A# fields enclosed by brackets "[]" replaced with your own identifying
7322N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7322N/A#
7322N/A# CDDL HEADER END
7322N/A#
7322N/A
7322N/A#
7322N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
7322N/A#
7322N/A
7322N/ABUILD_BITS= 64
7322N/Ainclude ../../../make-rules/shared-macros.mk
7322N/A
7322N/ACOMPONENT_NAME= liblouis
7322N/ACOMPONENT_VERSION= 2.1.1
7322N/ACOMPONENT_PROJECT_URL= http://liblouis.org/
7322N/ACOMPONENT_ARCHIVE_HASH= \
7322N/A sha256:e7b4f1aee9b1cd595b49a2fab1c545d1c7aad70dc427aa5c6d413a3dba17722c
7322N/A# liblouis upstream didn't migrate the 2.1.1 download from google code to
7322N/A# github, so we use a mirror site for now, until we upgrade to a current version
7322N/A# COMPONENT_ARCHIVE_URL= https://github.com/liblouis/liblouis/releases/download/v$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
7322N/ACOMPONENT_ARCHIVE_URL= https://distfiles.macports.org/liblouis/$(COMPONENT_ARCHIVE)
7322N/ACOMPONENT_BUGDB= gnome/accessibility
7322N/A
7322N/ATPNO= 4317
7322N/A
7322N/A# Orca uses python 3.5, so we need to match
7322N/APYTHON_VERSION= 3.5
7322N/A
7322N/Ainclude $(WS_MAKE_RULES)/common.mk
7322N/A
7322N/ACONFIGURE_OPTIONS += --enable-shared
7322N/ACONFIGURE_OPTIONS += --disable-static
7322N/A
7322N/A# While the main library is built with configure, the python module is
7322N/A# built & installed with separate invocations of setup.py
7322N/APYTHON_ENV += CC="$(CC)"
7322N/APYTHON_ENV += CFLAGS="$(CFLAGS)"
7322N/APYTHON_ENV += PYTHONPATH='$(@D)/python'
7322N/A
7322N/ACOMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D)) ;
7322N/ACOMPONENT_POST_BUILD_ACTION += \
7322N/A (cd $(@D)/python ; \
7322N/A $(ENV) $(COMPONENT_BUILD_ENV) $(PYTHON_ENV) \
7322N/A LD_LIBRARY_PATH_$(BITS)=$(@D)/liblouis/.libs/ \
7322N/A $(PYTHON) ./setup.py build );
7322N/ACOMPONENT_POST_INSTALL_ACTION += \
7322N/A (cd $(@D)/python ; \
7322N/A $(ENV) $(COMPONENT_INSTALL_ENV) $(PYTHON_ENV) \
7322N/A LD_LIBRARY_PATH_$(BITS)=$(PROTO_DIR)$(USRLIB.$(BITS)) \
7322N/A $(PYTHON) ./setup.py install --root $(PROTO_DIR) \
7322N/A --install-lib $(PYTHON_LIB) );
7322N/A
7322N/A# Needed for "gmake test" to work successfully.
7322N/Aunexport SHELLOPTS
7322N/A
7322N/A# Standard automake test framework results transform
7322N/ACOMPONENT_TEST_TRANSFORMS += \
7322N/A '-n ' \
7322N/A '-e "/TOTAL/p" ' \
7322N/A '-e "/SKIP/p" ' \
7322N/A '-e "/PASS/p" ' \
7322N/A '-e "/FAIL/p" ' \
7322N/A '-e "/ERROR/p" '
7322N/A
7322N/A# additional transforms for brltty
7322N/ACOMPONENT_TEST_TRANSFORMS += \
7322N/A '-e "/^==*$$/p" ' \
7322N/A '-e "/expected/p" '
7322N/A
7322N/AREQUIRED_PACKAGES += developer/documentation-tool/help2man
7322N/AREQUIRED_PACKAGES += library/python/setuptools-35
7322N/AREQUIRED_PACKAGES += runtime/python-35