7331N/A#
7331N/A# CDDL HEADER START
7331N/A#
7331N/A# The contents of this file are subject to the terms of the
7331N/A# Common Development and Distribution License (the "License").
7331N/A# You may not use this file except in compliance with the License.
7331N/A#
7331N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7331N/A# or http://www.opensolaris.org/os/licensing.
7331N/A# See the License for the specific language governing permissions
7331N/A# and limitations under the License.
7331N/A#
7331N/A# When distributing Covered Code, include this CDDL HEADER in each
7331N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7331N/A# If applicable, add the following below this CDDL HEADER, with the
7331N/A# fields enclosed by brackets "[]" replaced with your own identifying
7331N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7331N/A#
7331N/A# CDDL HEADER END
7331N/A#
7331N/A
7331N/A#
7331N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
7331N/A#
7331N/A
7331N/ABUILD_BITS= 64_and_32
7331N/Ainclude ../../make-rules/shared-macros.mk
7331N/A
7331N/ACOMPONENT_NAME= fftw
7331N/ACOMPONENT_VERSION= 3.2.1
7331N/ACOMPONENT_PROJECT_URL= http://fftw.org
7331N/ACOMPONENT_ARCHIVE_HASH= \
7331N/A sha256:076a43a8000d331076181ea9e72a56a9cd050400535b7bb3fc2f53b707e712f5
7331N/A# 3.2.1 is no longer available on upstream website, so we use Fedora's archive
7331N/A# COMPONENT_ARCHIVE_URL= ftp://ftp.fftw.org/pub/fftw/$(COMPONENT_ARCHIVE)
7331N/ACOMPONENT_ARCHIVE_URL= http://pkgs.fedoraproject.org/repo/pkgs/fftw/fftw-3.2.1.tar.gz/712d3f33625a0a76f5758648d4b925f7/fftw-3.2.1.tar.gz
7331N/ACOMPONENT_BUGDB= library/libfftw
7331N/ATPNO= 8418
7331N/A
7331N/A# Need to build regular, float, and long-double variants
7331N/AVARIANTS = f l
7331N/AVARIANT_DIRS_32 = $(VARIANTS:%=$(BUILD_DIR)/$(MACH32)-%)
7331N/AVARIANT_DIRS_64 = $(VARIANTS:%=$(BUILD_DIR)/$(MACH64)-%)
7331N/A
7331N/ACONFIGURE_32 += $(VARIANT_DIRS_32:%=%/.configured)
7331N/ACONFIGURE_64 += $(VARIANT_DIRS_64:%=%/.configured)
7331N/ABUILD_32 += $(VARIANT_DIRS_32:%=%/.built)
7331N/ABUILD_64 += $(VARIANT_DIRS_64:%=%/.built)
7331N/AINSTALL_32 += $(VARIANT_DIRS_32:%=%/.installed)
7331N/AINSTALL_64 += $(VARIANT_DIRS_64:%=%/.installed)
7331N/ATEST_32 += $(VARIANT_DIRS_32:%=%/.tested-and-compared)
7331N/ATEST_64 += $(VARIANT_DIRS_64:%=%/.tested-and-compared)
7331N/ASYSTEM_TEST_32 += $(VARIANT_DIRS_32:%=%/.system-tested-and-compared)
7331N/ASYSTEM_TEST_64 += $(VARIANT_DIRS_64:%=%/.system-tested-and-compared)
7331N/A
7331N/Ainclude $(WS_MAKE_RULES)/common.mk
7331N/A
7331N/ACONFIGURE_OPTIONS += --disable-fortran
7331N/ACONFIGURE_OPTIONS += --enable-shared
7331N/ACONFIGURE_OPTIONS += --disable-static
7331N/A
7331N/ACONFIGURE_OPTIONS.f = --enable-float
7331N/ACONFIGURE_OPTIONS.l = --enable-long-double
7331N/ACONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(VARIANT))
7331N/A
7331N/A$(BUILD_DIR_32)-f/.%: VARIANT=f
7331N/A$(BUILD_DIR_64)-f/.%: VARIANT=f
7331N/A$(BUILD_DIR_32)-l/.%: VARIANT=l
7331N/A$(BUILD_DIR_64)-l/.%: VARIANT=l
7331N/A
7331N/A$(BUILD_DIR_32)-f/.%: BITS=32
7331N/A$(BUILD_DIR_32)-l/.%: BITS=32
7331N/A$(BUILD_DIR_64)-f/.%: BITS=64
7331N/A$(BUILD_DIR_64)-l/.%: BITS=64
7331N/A
7331N/A# FFTW selects random transforms for each test run, so just print results
7331N/ACOMPONENT_TEST_TRANSFORMS += \
7331N/A '-n ' \
7331N/A '-e "/ FFTW/p" '
7331N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
7331N/ACOMPONENT_TEST_BUILD_DIR = $(BUILD_DIR)/test/$(MACH$(BITS))$(VARIANT:%=-%)
7331N/A
7331N/AREQUIRED_PACKAGES += system/library/math