| @@ -1,31 +1,31 @@ | | | @@ -1,31 +1,31 @@ |
1 | $NetBSD: patch-src_Makevars,v 1.1 2019/12/18 12:44:39 joerg Exp $ | | 1 | $NetBSD: patch-src_Makevars,v 1.2 2019/12/19 22:25:27 joerg Exp $ |
2 | | | 2 | |
3 | --- src/Makevars.orig 2019-04-05 20:06:25.000000000 +0000 | | 3 | --- src/Makevars.orig 2019-04-05 20:06:25.000000000 +0000 |
4 | +++ src/Makevars | | 4 | +++ src/Makevars |
5 | @@ -9,7 +9,7 @@ ifeq ($(UNAME), Darwin) | | 5 | @@ -9,7 +9,7 @@ ifeq ($(UNAME), Darwin) |
6 | FRAMEWORK = -framework CoreServices | | 6 | FRAMEWORK = -framework CoreServices |
7 | endif | | 7 | endif |
8 | | | 8 | |
9 | -PKG_LIBS = ./libuv/.libs/libuv.a ./http-parser/http_parser.o ./sha1/sha1.o ./base64/base64.o $(FRAMEWORK) -pthread | | 9 | -PKG_LIBS = ./libuv/.libs/libuv.a ./http-parser/http_parser.o ./sha1/sha1.o ./base64/base64.o $(FRAMEWORK) -pthread |
10 | +PKG_LIBS = -luv ./http-parser/http_parser.o ./sha1/sha1.o ./base64/base64.o $(FRAMEWORK) -pthread | | 10 | +PKG_LIBS = -luv ./http-parser/http_parser.o ./sha1/sha1.o ./base64/base64.o $(FRAMEWORK) -pthread |
11 | ifeq ($(UNAME), SunOS) | | 11 | ifeq ($(UNAME), SunOS) |
12 | PKG_LIBS += -lkstat -lsendfile -lsocket -lxnet | | 12 | PKG_LIBS += -lkstat -lsendfile -lsocket -lxnet |
13 | endif | | 13 | endif |
14 | @@ -22,7 +22,7 @@ endif | | 14 | @@ -22,7 +22,7 @@ endif |
15 | | | 15 | |
16 | PKG_CFLAGS = $(C_VISIBILITY) -DSTRICT_R_HEADERS | | 16 | PKG_CFLAGS = $(C_VISIBILITY) -DSTRICT_R_HEADERS |
17 | PKG_CXXFLAGS = $(CXX_VISIBILITY) -DSTRICT_R_HEADERS | | 17 | PKG_CXXFLAGS = $(CXX_VISIBILITY) -DSTRICT_R_HEADERS |
18 | -PKG_CPPFLAGS = -Ilibuv/include -pthread | | 18 | -PKG_CPPFLAGS = -Ilibuv/include -pthread |
19 | +PKG_CPPFLAGS = -I${PREFIX} -pthread | | 19 | +PKG_CPPFLAGS = -I${PREFIX}/include -pthread |
20 | | | 20 | |
21 | # To avoid spurious warnings from `R CMD check --as-cran`, about compiler | | 21 | # To avoid spurious warnings from `R CMD check --as-cran`, about compiler |
22 | # warning flags like -Werror. | | 22 | # warning flags like -Werror. |
23 | @@ -44,7 +44,7 @@ CONFIGURE_FLAGS="--quiet" | | 23 | @@ -44,7 +44,7 @@ CONFIGURE_FLAGS="--quiet" |
24 | # PKG_CPPFLAGS += -D_GLIBCXX_ASSERTIONS | | 24 | # PKG_CPPFLAGS += -D_GLIBCXX_ASSERTIONS |
25 | | | 25 | |
26 | | | 26 | |
27 | -$(SHLIB): libuv/.libs/libuv.a http-parser/http_parser.o sha1/sha1.o base64/base64.o | | 27 | -$(SHLIB): libuv/.libs/libuv.a http-parser/http_parser.o sha1/sha1.o base64/base64.o |
28 | +$(SHLIB): http-parser/http_parser.o sha1/sha1.o base64/base64.o | | 28 | +$(SHLIB): http-parser/http_parser.o sha1/sha1.o base64/base64.o |
29 | | | 29 | |
30 | # We needed to rename lt~obsolete.m4 because the name causes problems with R | | 30 | # We needed to rename lt~obsolete.m4 because the name causes problems with R |
31 | # CMD check. Here we rename it back. | | 31 | # CMD check. Here we rename it back. |