2756N/A#
2756N/A# CDDL HEADER START
2756N/A#
2756N/A# The contents of this file are subject to the terms of the
2756N/A# Common Development and Distribution License (the "License").
2756N/A# You may not use this file except in compliance with the License.
2756N/A#
2756N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2756N/A# or http://www.opensolaris.org/os/licensing.
2756N/A# See the License for the specific language governing permissions
2756N/A# and limitations under the License.
2756N/A#
2756N/A# When distributing Covered Code, include this CDDL HEADER in each
2756N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2756N/A# If applicable, add the following below this CDDL HEADER, with the
2756N/A# fields enclosed by brackets "[]" replaced with your own identifying
2756N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2756N/A#
2756N/A# CDDL HEADER END
2756N/A#
2756N/A
2756N/A#
7083N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
2756N/A#
2756N/A
2756N/Ainclude ../../../make-rules/shared-macros.mk
2756N/A
2756N/ACOMPONENT_NAME= cffi
7083N/ACOMPONENT_VERSION= 1.5.2
2756N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2756N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2756N/ACOMPONENT_ARCHIVE_HASH= \
7083N/A sha256:da9bde99872e46f7bb5cff40a9b1cc08406765efafb583c704de108b6cb821dd
2756N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
2756N/ACOMPONENT_PROJECT_URL= http://cffi.readthedocs.org/
2756N/ACOMPONENT_BUGDB= python-mod/cffi
2756N/A
7083N/ATPNO= 29371
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
2756N/A
7083N/A# SolarisStudio12.4 is needed for mbarrier.h
7083N/ASPRO_VROOT = $(SPRO_ROOT)/solarisstudio12.4
7083N/A
2756N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2756N/A
7083N/ALDSHARED= $(CC) -G
7083N/APYTHON_ENV += LDSHARED="$(LDSHARED)"
7083N/A
2756N/ACOMPONENT_TEST_DIR = $(@D)/tests
2756N/ACOMPONENT_TEST_ENV = $(PYTHON_ENV)
4070N/ACOMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB)
2756N/ACOMPONENT_TEST_ENV += TESTOWNLIB_CC="$(CC) %s $(CC_BITS) -G -KPIC -o %s"
2756N/ACOMPONENT_TEST_CMD = $(PYTHON.$(BITS)) /usr/bin/py.test-$(PYTHON_VERSION)
2756N/ACOMPONENT_TEST_ARGS = --resultlog $(@D)/testresults
2756N/ACOMPONENT_TEST_ARGS += -p no:codechecker
2756N/ACOMPONENT_TEST_ARGS += $(TEST_SKIPS)
2756N/ACOMPONENT_TEST_ARGS += c testing
2756N/A
2756N/A# Copy the tests and a few of the source files they read into a scratch
2756N/A# directory so running the tests don't leave turds in the source directory.
2756N/ACOMPONENT_PRE_TEST_ACTION = \
2756N/A $(MKDIR) $(@D)/tests/doc/source; \
7083N/A $(CP) -r $(SOURCE_DIR)/c $(SOURCE_DIR)/testing $(SOURCE_DIR)/cffi $(@D)/tests; \
2756N/A $(CP) $(SOURCE_DIR)/setup.py $(@D)/tests; \
4070N/A $(CP) \
4070N/A $(SOURCE_DIR)/doc/source/conf.py \
4070N/A $(SOURCE_DIR)/doc/source/index.rst \
7083N/A $(SOURCE_DIR)/doc/source/installation.rst \
4070N/A $(@D)/tests/doc/source
2756N/A
2756N/A# common targets
2756N/Abuild: $(BUILD_32_and_64)
2756N/A
2756N/Ainstall: $(INSTALL_32_and_64)
2756N/A
2756N/Atest: $(TEST_32_and_64)
2756N/A
7083N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
7083N/A
2756N/A
3996N/AREQUIRED_PACKAGES += library/libffi
7083N/AREQUIRED_PACKAGES += library/python/pycparser-27
7083N/AREQUIRED_PACKAGES += library/python/pycparser-34
7083N/AREQUIRED_PACKAGES += library/python/pycparser-35
3996N/AREQUIRED_PACKAGES += system/library