components/fftw/Makefile
changeset 7333 85747fa32c93
child 7481 0bc6259c3cf8
equal deleted inserted replaced
7332:50a475baa0cd 7333:85747fa32c93
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 BUILD_BITS=		64_and_32
       
    27 include ../../make-rules/shared-macros.mk
       
    28 
       
    29 COMPONENT_NAME=		fftw
       
    30 COMPONENT_VERSION=	3.2.1
       
    31 COMPONENT_PROJECT_URL=	http://fftw.org
       
    32 COMPONENT_ARCHIVE_HASH= \
       
    33 	sha256:076a43a8000d331076181ea9e72a56a9cd050400535b7bb3fc2f53b707e712f5
       
    34 # 3.2.1 is no longer available on upstream website, so we use Fedora's archive
       
    35 # COMPONENT_ARCHIVE_URL=	ftp://ftp.fftw.org/pub/fftw/$(COMPONENT_ARCHIVE)
       
    36 COMPONENT_ARCHIVE_URL=	http://pkgs.fedoraproject.org/repo/pkgs/fftw/fftw-3.2.1.tar.gz/712d3f33625a0a76f5758648d4b925f7/fftw-3.2.1.tar.gz
       
    37 COMPONENT_BUGDB=	library/libfftw
       
    38 TPNO=			8418	
       
    39 
       
    40 # Need to build regular, float, and long-double variants
       
    41 VARIANTS =		f l
       
    42 VARIANT_DIRS_32 =	$(VARIANTS:%=$(BUILD_DIR)/$(MACH32)-%)
       
    43 VARIANT_DIRS_64 =	$(VARIANTS:%=$(BUILD_DIR)/$(MACH64)-%)
       
    44 
       
    45 CONFIGURE_32 +=		$(VARIANT_DIRS_32:%=%/.configured)
       
    46 CONFIGURE_64 +=		$(VARIANT_DIRS_64:%=%/.configured)
       
    47 BUILD_32 +=		$(VARIANT_DIRS_32:%=%/.built)
       
    48 BUILD_64 +=		$(VARIANT_DIRS_64:%=%/.built)
       
    49 INSTALL_32 +=		$(VARIANT_DIRS_32:%=%/.installed)
       
    50 INSTALL_64 +=		$(VARIANT_DIRS_64:%=%/.installed)
       
    51 TEST_32 +=		$(VARIANT_DIRS_32:%=%/.tested-and-compared)
       
    52 TEST_64 +=		$(VARIANT_DIRS_64:%=%/.tested-and-compared)
       
    53 SYSTEM_TEST_32 +=	$(VARIANT_DIRS_32:%=%/.system-tested-and-compared)
       
    54 SYSTEM_TEST_64 +=	$(VARIANT_DIRS_64:%=%/.system-tested-and-compared)
       
    55 
       
    56 include $(WS_MAKE_RULES)/common.mk
       
    57 
       
    58 CONFIGURE_OPTIONS +=	--disable-fortran
       
    59 CONFIGURE_OPTIONS +=	--enable-shared
       
    60 CONFIGURE_OPTIONS +=	--disable-static
       
    61 
       
    62 CONFIGURE_OPTIONS.f =	--enable-float
       
    63 CONFIGURE_OPTIONS.l =	--enable-long-double
       
    64 CONFIGURE_OPTIONS +=	$(CONFIGURE_OPTIONS.$(VARIANT))
       
    65 
       
    66 $(BUILD_DIR_32)-f/.%:	VARIANT=f
       
    67 $(BUILD_DIR_64)-f/.%:	VARIANT=f
       
    68 $(BUILD_DIR_32)-l/.%:	VARIANT=l
       
    69 $(BUILD_DIR_64)-l/.%:	VARIANT=l
       
    70 
       
    71 $(BUILD_DIR_32)-f/.%:	BITS=32
       
    72 $(BUILD_DIR_32)-l/.%:	BITS=32
       
    73 $(BUILD_DIR_64)-f/.%:	BITS=64
       
    74 $(BUILD_DIR_64)-l/.%:	BITS=64
       
    75 
       
    76 # FFTW selects random transforms for each test run, so just print results
       
    77 COMPONENT_TEST_TRANSFORMS += \
       
    78         '-n ' \
       
    79 	'-e "/         FFTW/p" '
       
    80 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
       
    81 COMPONENT_TEST_BUILD_DIR =      $(BUILD_DIR)/test/$(MACH$(BITS))$(VARIANT:%=-%)
       
    82 
       
    83 REQUIRED_PACKAGES += system/library/math