aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/nonworking/r/r_2.0.0.bb
blob: ce25c19fdc897b8422a015583b6ec102d7b33063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
DESCRIPTION = "R is GNU S, a freely available language and environment for statistical computing \
and graphics which provides a wide variety of statistical and graphical techniques: \
linear and nonlinear modelling, statistical tests, time series analysis, classification, clustering, etc."
SECTION = "console/scientific"
PRIORITY = "optional"
DEPENDS = "ncurses readline less perl-native r-native"
PR = "r1"

SRC_URI = "http://www.stats.bris.ac.uk/R/src/base/R-2/R-${PV}.tar.gz \
	file://configure.patch \
	file://src_library_Makefile.patch \
	file://src_library_Recommended_Makefile.patch \
	file://src_library_base_Makefile.patch \
	file://src_library_tools_Makefile.patch \
	file://src_library_utils_Makefile.patch \
	file://src_library_datasets_Makefile.patch \
	file://src_library_graphics_Makefile.patch \
	file://src_library_grid_Makefile.patch \
	file://src_library_methods_Makefile.patch \
	file://src_library_splines_Makefile.patch \
	file://src_library_stats4_Makefile.patch \
	file://src_library_stats_Makefile.patch \
	file://src_library_tcltk_Makefile.patch \
	file://src_library_grDevices_Makefile.patch"

S = "${WORKDIR}/R-${PV}"

inherit autotools

EXTRA_OECONF = "--without-x"

do_configure() {
	gnu-configize
	oe_runconf
}

do_compile_prepend () {
	${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} src/extra/pcre/dftables.c -o src/extra/pcre/dftables -Isrc/include
	touch src/extra/pcre/dftables.o
	src/extra/pcre/dftables src/extra/pcre/chartables.h
}

do_compile() {
	oe_runmake 'R_EXE_NATIVE = ${STAGING_BINDIR_NATIVE}/R'
}

SRC_URI[md5sum] = "3900bca37cabb4b76b8d736d51cc9251"
SRC_URI[sha256sum] = "a06c3546400503e6d4ca4505c3f838b9bbd03fab6a3cbab7993f6d9115b68b64"