6952N/A#
6952N/A# CDDL HEADER START
6952N/A#
6952N/A# The contents of this file are subject to the terms of the
6952N/A# Common Development and Distribution License (the "License").
6952N/A# You may not use this file except in compliance with the License.
6952N/A#
6952N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6952N/A# or http://www.opensolaris.org/os/licensing.
6952N/A# See the License for the specific language governing permissions
6952N/A# and limitations under the License.
6952N/A#
6952N/A# When distributing Covered Code, include this CDDL HEADER in each
6952N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6952N/A# If applicable, add the following below this CDDL HEADER, with the
6952N/A# fields enclosed by brackets "[]" replaced with your own identifying
6952N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6952N/A#
6952N/A# CDDL HEADER END
6952N/A#
6952N/A
6952N/A#
6952N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
6952N/A#
6952N/ABUILD_BITS = 32_and_64
6952N/Ainclude ../../../make-rules/shared-macros.mk
6952N/A
6952N/ACOMPONENT_NAME= numpy
6952N/ACOMPONENT_VERSION= 1.9.0
6952N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
6952N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
6952N/ACOMPONENT_ARCHIVE_HASH= \
6952N/A sha256:f7e6cede959ec7d26dc242150839f3193b4ec16d733f1a4bff623c4ed0d27ff5
6952N/ACOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/numpy/$(COMPONENT_ARCHIVE)
6952N/ACOMPONENT_PROJECT_URL= http://www.numpy.org/
6952N/ACOMPONENT_BUGDB= python-mod/numpy
6952N/A
6952N/ATPNO= 19933
6952N/A
6952N/ABUILD_STYLE= setup.py
6952N/A
6952N/A# Have not been able to get consistent test results yet, needs more work
6952N/ATEST_TARGET = $(SKIP_TEST)
6952N/A
6952N/Ainclude $(WS_MAKE_RULES)/common.mk
6952N/A
6952N/ACOMPONENT_BUILD_ARGS.studio += --compiler=sun$(BITS) --fcompiler=sun$(BITS)
6952N/ACOMPONENT_BUILD_ARGS.gcc += --compiler=gnu --fcompiler=gnu95
6952N/ACOMPONENT_BUILD_ARGS += $(COMPONENT_BUILD_ARGS.$(COMPILER))
6952N/A
6952N/Astudio_XBITS.i386.32 += -xarch=sse2
6952N/A
6952N/APYTHON_ENV += CC="$(CC) $(CC_BITS)"
6952N/APYTHON_ENV += PATH="$(SPRO_VROOT)/bin:$(PATH)"
6952N/A
6952N/APYTHON_SCRIPTS += $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES.32)/numpy/*.py
6952N/APYTHON_SCRIPTS += $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES.32)/numpy/*/*.py
6952N/APYTHON_SCRIPTS += $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES.32)/numpy/*/*/*.py
6952N/APYTHON_SCRIPTS += $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES.32)/numpy/*/*/*/*.py
6952N/A
6952N/A# Merge 32-bit & 64-bit versions of header with different SIZEOF values
6952N/Ainstall: $(BUILD_DIR)/.merged-header
6952N/A$(BUILD_DIR)/.merged-header: PYTHON_VERSION=2.7
6952N/A
6952N/ANUMPYCONFIG_H = $(PYTHON_VENDOR_PACKAGES.32)/numpy/core/include/numpy/_numpyconfig.h
6952N/A$(BUILD_DIR)/.merged-header: $(BUILD_DIR)/$(MACH32)-2.7/.installed $(BUILD_DIR)/$(MACH64)-2.7/.installed
6952N/A -$(RM) $(PROTO_DIR)/$(NUMPYCONFIG_H)
6952N/A print '#include <sys/isa_defs.h>' > $(PROTO_DIR)/$(NUMPYCONFIG_H)
6952N/A $(GDIFF) -D _LP64 \
6952N/A $(BUILD_DIR)/$(MACH32)-2.7/src.solaris-*.32bit-2.7/numpy/core/include/numpy/_numpyconfig.h \
6952N/A $(BUILD_DIR)/$(MACH64)-2.7/src.solaris-*.64bit-2.7/numpy/core/include/numpy/_numpyconfig.h \
6952N/A >> $(PROTO_DIR)/$(NUMPYCONFIG_H) ; \
6952N/A diffstatus=$$? ; \
6952N/A if (( $$diffstatus != 1 )) ; then exit $$diffstatus ; fi
6952N/A touch $@
6952N/A
6952N/A
6952N/ACOMPONENT_TEST_DIR = $(COMPONENT_DIR)
6952N/ACOMPONENT_TEST_ARGS = -c 'import numpy; numpy.test()'
6952N/ACOMPONENT_TEST_ENV += PYTHONPATH="$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)"
6952N/ACOMPONENT_TEST_ENV += F77="$(SPRO_VROOT)/bin/f77 -m$(BITS)"
6952N/ACOMPONENT_TEST_ENV += F90="$(SPRO_VROOT)/bin/f90 -m$(BITS)"
6952N/ACOMPONENT_TEST_TRANSFORMS += '-e "s|^\\(Ran [0-9]* tests\\) in .*s|\1|"'
6952N/ACOMPONENT_TEST_TRANSFORMS += '-e "s|$(PROTO_DIR)|\\$$(PROTO_DIR)|g"'
6952N/A
6952N/AREQUIRED_PACKAGES += library/python/nose
6952N/AREQUIRED_PACKAGES += system/library
6952N/AREQUIRED_PACKAGES += system/library/math