File tree Expand file tree Collapse file tree 4 files changed +24
-10
lines changed Expand file tree Collapse file tree 4 files changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ elif [ `uname` = "Darwin" ]; then
38
38
PKG_LIBS=" -L$BREWDIR /opt/$PKG_BREW_NAME /lib $PKG_LIBS "
39
39
else
40
40
curl -sfL " https://autobrew.github.io/scripts/$PKG_BREW_NAME " > autobrew
41
- . autobrew
41
+ . ./ autobrew
42
42
fi
43
43
fi
44
44
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
# -*- makefile -*-
2
- PKG_CPPFLAGS =-I../windows/hiredis-1.0.0/include/hiredis -DSTRICT_R_HEADERS
3
- PKG_LIBS =-L../windows/hiredis-1.0.0/lib${R_ARCH}${CRT} -lhiredis -lws2_32
2
+ PKG_CPPFLAGS =-I../windows/hiredis/include/hiredis -DSTRICT_R_HEADERS
3
+
4
+ ifeq ($(R_COMPILED_BY ) ,gcc 8.3.0)
5
+ LEGACY_ARCH =$(R_ARCH ) # Enables 32-bit support in R 4.1
6
+ endif
7
+
8
+ PKG_LIBS =-L../windows/hiredis/lib$(LEGACY_ARCH ) -lhiredis -lws2_32
4
9
5
10
all : clean winlibs
6
11
Original file line number Diff line number Diff line change 1
- if (! file.exists(" ../windows/hiredis-1.0.0/include/hiredis/hiredis.h" )) {
2
- if (getRversion() < " 3.3.0" ) setInternet2()
3
- download.file(" https://github.com/rwinlib/hiredis/archive/v1.0.0.zip" , " lib.zip" , quiet = TRUE )
1
+ if (! file.exists(" ../windows/hiredis/include/hiredis/hiredis.h" )){
2
+ unlink(" ../windows" , recursive = TRUE )
3
+ url <- if (grepl(" aarch" , R.version $ platform )){
4
+ " https://github.com/r-windows/bundles/releases/download/hiredis-1.2.0/hiredis-1.2.0-clang-aarch64.tar.xz"
5
+ } else if (grepl(" clang" , Sys.getenv(' R_COMPILED_BY' ))){
6
+ " https://github.com/r-windows/bundles/releases/download/hiredis-1.2.0/hiredis-1.2.0-clang-x86_64.tar.xz"
7
+ } else if (getRversion() > = " 4.2" ) {
8
+ " https://github.com/r-windows/bundles/releases/download/hiredis-1.2.0/hiredis-1.2.0-ucrt-x86_64.tar.xz"
9
+ } else {
10
+ " https://github.com/rwinlib/hiredis/archive/v1.0.0.tar.gz"
11
+ }
12
+ download.file(url , basename(url ), quiet = TRUE )
4
13
dir.create(" ../windows" , showWarnings = FALSE )
5
- unzip(" lib.zip" , exdir = " ../windows" )
6
- unlink(" lib.zip" )
14
+ untar(basename(url ), exdir = " ../windows" , tar = ' internal' )
15
+ unlink(basename(url ))
16
+ setwd(" ../windows" )
17
+ file.rename(list.files(), ' hiredis' )
7
18
}
You can’t perform that action at this time.
0 commit comments