components/r/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 28 Jan 2016 16:57:12 -0800
changeset 5365 447b67338e7f
parent 5338 8cb226fdeab6
child 5452 f31d1604634e
permissions -rw-r--r--
PSARC 2015/541 R 3.2.3 22344994 Update R to version 3.2.3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
5338
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
    23
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		R
5365
447b67338e7f PSARC 2015/541 R 3.2.3
Rich Burridge <rich.burridge@oracle.com>
parents: 5338
diff changeset
    29
COMPONENT_VERSION=	3.2.3
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.r-project.org/
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
5365
447b67338e7f PSARC 2015/541 R 3.2.3
Rich Burridge <rich.burridge@oracle.com>
parents: 5338
diff changeset
    34
    sha256:b93b7d878138279234160f007cb9b7f81b8a72c012a15566e9ec5395cfd9b6c1
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://cran.mtu.edu/src/base/R-3/$(COMPONENT_ARCHIVE)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	utility/r
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
5365
447b67338e7f PSARC 2015/541 R 3.2.3
Rich Burridge <rich.burridge@oracle.com>
parents: 5338
diff changeset
    38
TPNO=			26540
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
include $(WS_MAKE_RULES)/configure.mk
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
COMPONENT_PRE_CONFIGURE_ACTION = \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
	($(CLONEY) $(SOURCE_DIR) $(@D))
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
# Get rid of compiler path set in RUNPATH
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
LDFLAGS += $(studio_NORUNPATH)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
LDFLAGS += $(CC_BITS)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
LDFLAGS += $(studio_PIC)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
LDFLAGS += $(LD_Z_TEXT)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
LDFLAGS += $(LD_DEF_LIBS)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
STUDIO_LIBS_PATH =	/usr/lib/studio/64
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
R_LIBS_PATH =		/usr/lib/$(MACH64)/R/lib
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
JAVA_LIBS_PATH =	$(JAVA8_HOME)/jre/lib/$(MACH64)/server
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
LDFLAGS += -L$(STUDIO_LIBS_PATH) -R$(STUDIO_LIBS_PATH) \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
		-lsunperf -lfsu -lmtsk -lpicl -lkstat
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
F95 =			$(SPRO_VROOT)/bin/f95
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
CONFIGURE_ENV += F77="$(F95) $(CC_BITS)"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
CONFIGURE_ENV += FC="$(F95) $(CC_BITS)"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
CONFIGURE_ENV += CPICFLAGS="$(studio_PIC)"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
CONFIGURE_ENV += CFLAGS="-xO3 -xc99 -xlibmieee $(CC_BITS)"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
CONFIGURE_ENV += CXXFLAGS="-xO3 $(CC_BITS)"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
CONFIGURE_ENV += FPICFLAGS="$(studio_PIC)"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
CONFIGURE_ENV += FFLAGS="-xO3 $(CC_BITS)"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
CONFIGURE_ENV += FCFLAGS="-xO3 $(CC_BITS)"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
CONFIGURE_ENV += FCLIBS="-lsunperf -lfsu -lsunmath"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    75
CONFIGURE_ENV += FLIBS="-lsunperf -lfsu -lsunmath"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    76
CONFIGURE_ENV += LDFLAGS="$(LDFLAGS) -L$(R_LIBS_PATH) -R$(R_LIBS_PATH)"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    77
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
# Set the various Java variables otherwise it auto-detects the 32-bit ones.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
CONFIGURE_ENV += JAVA_CPPFLAGS="-I$(JAVA8_HOME)/jre/../include -I$(JAVA8_HOME)/jre/../include/solaris"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    80
CONFIGURE_ENV += JAVA_LIBS="-L$(JAVA_LIBS_PATH) -R$(JAVA_LIBS_PATH) -ljvm"
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    81
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    82
# From Brian Whitney:
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    83
# You need to define this option on SPARC, otherwise you will get quad
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
# arithmetic on SPARC but not on x86.  Really makes some R functions run
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    85
# very slow on SPARC (COR path).
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    86
CONFIGURE_OPTIONS.i386 =
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
CONFIGURE_OPTIONS.sparc =	--disable-long-double
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    88
CONFIGURE_OPTIONS +=		$(CONFIGURE_OPTIONS.$(MACH))
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    89
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    90
CONFIGURE_OPTIONS += --enable-R-shlib
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    91
CONFIGURE_OPTIONS += --with-blas='-lsunperf'
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    92
CONFIGURE_OPTIONS += --with-ICU
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    93
CONFIGURE_OPTIONS += --with-lapack
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    94
CONFIGURE_OPTIONS += --with-recommended-packages
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    95
CONFIGURE_OPTIONS += --with-tcltk
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    96
CONFIGURE_OPTIONS += --enable-prebuilt-html
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    97
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    98
COMPONENT_PRE_TEST_ACTION = \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    99
	$(RM) $(BUILD_DIR_64)/tests/Examples/*.prev
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   100
4899
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   101
COMPONENT_PRE_SYSTEM_TEST_ACTION = \
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   102
	$(RM) $(BUILD_DIR_64)/tests/Examples/*.prev
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   103
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   104
# Increase stack limit to allow the "infinite recursion" test to work.
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   105
COMPONENT_TEST_ENV_CMD =	ulimit -Ss 32768 ; $(ENV)
4899
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   106
COMPONENT_SYSTEM_TEST_ENV_CMD =	ulimit -Ss 32768 ; $(ENV)
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   107
5338
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
   108
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   109
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   110
COMPONENT_TEST_TRANSFORMS += \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   111
	'-n ' \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   112
	'-e "/^Testing examples for package /p" ' \
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   113
	'-e "/^running /p" ' \
5338
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
   114
	'-e "/^  expect some differences/p" ' \
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
   115
	'-e "/comparing.*datetime.Rout/d" ' \
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
   116
	'-e "/comparing.*reg-examples3.Rout/d" ' \
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
   117
	'-e "/^  comparing /p" '
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   118
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   119
ASLR_MODE = $(ASLR_ENABLE)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   120
4899
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   121
# Use the installed version of R, not the one in the build area.
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   122
# These definitions override those found in .../test/Makefile.
5338
8cb226fdeab6 21890546 R test results differ for "gmake test" and "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 5125
diff changeset
   123
COMPONENT_SYSTEM_TEST_ARGS += R="LANGUAGE=en LC_ALL=C SRCDIR=$(BUILD_DIR_64)/tests R_DEFAULT_PACKAGES= /usr/bin/R --vanilla"
4899
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   124
COMPONENT_SYSTEM_TEST_ARGS += R2="R_DEFAULT_PACKAGES= /usr/bin/R --vanilla"
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   125
COMPONENT_SYSTEM_TEST_ARGS += R3="/usr/bin/R CMD check"
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   126
COMPONENT_SYSTEM_TEST_ARGS += RDIFF="/usr/bin/R CMD Rdiff"
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   127
COMPONENT_SYSTEM_TEST_ARGS += RDCONV="LC_CTYPE=C /usr/bin/R CMD Rdconv"
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   128
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   129
COMPONENT_TEST_ARGS =		-k -i
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   130
COMPONENT_SYSTEM_TEST_ARGS +=	-k -i
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   131
4898
a26d3de1812a 21892085 R needs two additional REQUIRED_PACKAGES plus a configure Makefile target
Rich Burridge <rich.burridge@oracle.com>
parents: 4792
diff changeset
   132
configure:	$(CONFIGURE_64)
a26d3de1812a 21892085 R needs two additional REQUIRED_PACKAGES plus a configure Makefile target
Rich Burridge <rich.burridge@oracle.com>
parents: 4792
diff changeset
   133
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   134
build:		$(BUILD_64)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   135
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   136
install:	$(INSTALL_64)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   137
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   138
test:		$(TEST_64)
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   139
4899
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   140
# Need to build the tests before use them.
7dd77eb11d2a 21890486 Hookup system-tests for R
Rich Burridge <rich.burridge@oracle.com>
parents: 4898
diff changeset
   141
system-test:	build $(SYSTEM_TEST_64)
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   142
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   143
REQUIRED_PACKAGES += image/library/libjpeg
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   144
REQUIRED_PACKAGES += image/library/libpng
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   145
REQUIRED_PACKAGES += image/library/libtiff
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   146
REQUIRED_PACKAGES += library/desktop/cairo
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   147
REQUIRED_PACKAGES += library/desktop/pango
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   148
REQUIRED_PACKAGES += library/glib2
4898
a26d3de1812a 21892085 R needs two additional REQUIRED_PACKAGES plus a configure Makefile target
Rich Burridge <rich.burridge@oracle.com>
parents: 4792
diff changeset
   149
REQUIRED_PACKAGES += library/icu
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   150
REQUIRED_PACKAGES += library/pcre
4741
5ab3f0c9276b 15802265 SUNBT7182198 include r programming language in solaris (fix REQUIRED_PACKAGES)
Rich Burridge <rich.burridge@oracle.com>
parents: 4739
diff changeset
   151
REQUIRED_PACKAGES += library/readline
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   152
REQUIRED_PACKAGES += library/zlib
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   153
REQUIRED_PACKAGES += shell/bash
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   154
REQUIRED_PACKAGES += system/library
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   155
REQUIRED_PACKAGES += system/library/fortran-runtime
4900
75f0429dab65 21892085 R needs two additional REQUIRED_PACKAGES plus a configure Makefile target (adjust REQUIRED_PACKAGES)
Rich Burridge <rich.burridge@oracle.com>
parents: 4899
diff changeset
   156
REQUIRED_PACKAGES += system/library/iconv
4739
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   157
REQUIRED_PACKAGES += system/library/math
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   158
REQUIRED_PACKAGES += system/library/sunperf
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   159
REQUIRED_PACKAGES += web/curl
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   160
REQUIRED_PACKAGES += x11/library/libx11
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   161
REQUIRED_PACKAGES += x11/library/libxmu
fe9f7b631d54 PSARC 2015/216 The R Project for Statistical Computing
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
   162
REQUIRED_PACKAGES += x11/library/toolkit/libxt