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