Skip to content

Commit

Permalink
patch sent by Tomas Kalibera
Browse files Browse the repository at this point in the history
  • Loading branch information
edzer committed Feb 9, 2024
1 parent ff89074 commit 0d3c9b6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 19 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: s2
Title: Spherical Geometry Operators Using the S2 Geometry Library
Version: 1.1.6
Version: 1.1.7
Authors@R: c(
person(given = "Dewey",
family = "Dunnington",
Expand Down
3 changes: 0 additions & 3 deletions src/Makevars.ucrt

This file was deleted.

21 changes: 6 additions & 15 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
OPENSSL_LIBS = $(shell pkg-config --libs openssl)
PKG_CPPFLAGS = -DS2_USE_EXACTFLOAT -D_USE_MATH_DEFINES -DNDEBUG -DIS_LITTLE_ENDIAN -DOMIT_STRPTIME -I../src

# Config for legacy rtools without pkgconfig
ifeq (,$(OPENSSL_LIBS))
OPENSSL_LIBS=-L../windows/openssl-$(VERSION)/lib${R_ARCH}${CRT} -lssl -lcrypto -lws2_32 -lgdi32 -lcrypt32
OPENSSL_CFLAGS=-I../windows/openssl-$(VERSION)/include
ifeq (,$(shell pkg-config --version 2>/dev/null))
PKG_LIBS = -Ls2 -ls2static -lssl -lcrypto -lz -lws2_32 -lgdi32 -lcrypt32
else
PKG_LIBS = -Ls2 -ls2static $(shell pkg-config --libs openssl)
endif

VERSION = 1.1.1k
PKG_CPPFLAGS = -DS2_USE_EXACTFLOAT -D_USE_MATH_DEFINES -DNDEBUG -DIS_LITTLE_ENDIAN -DOMIT_STRPTIME $(OPENSSL_CFLAGS) -I../src
PKG_LIBS = -Ls2 -ls2static $(OPENSSL_LIBS)

CXX_STD = CXX11

Expand Down Expand Up @@ -218,15 +215,9 @@ $(SHLIB): $(STATLIB)

$(STATLIB): $(S2LIBS)

$(S2LIBS): winlibs

#all: clean

winlibs:
mkdir -p ../inst
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R" $(VERSION)

clean:
rm -f $(SHLIB) $(STATLIB) $(OBJECTS) $(S2LIBS)

.PHONY: all winlibs clean
.PHONY: all clean

0 comments on commit 0d3c9b6

Please sign in to comment.