summaryrefslogtreecommitdiff
path: root/databases/redis4/files/patch-src-Makefile
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2019-11-21 19:27:39 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2019-11-21 19:27:39 +0000
commit89e0b04783bb6f6a0dde7811bb8af7da69eeac17 (patch)
treef097f4a4a9b81f0cf39752ffc85ef362a0176797 /databases/redis4/files/patch-src-Makefile
parentcad/openvsp: update to 3.19.1 (diff)
Repocopy the databases/redis to the databases/redis4 to update
the databases/redis port to the latest stable version, 5.0.6. PR: 241526 Reviewed by: portmgr (adamw) Approved by: portmgr (adamw) Differential Revision: https://reviews.freebsd.org/D22336
Notes
Notes: svn path=/head/; revision=518107
Diffstat (limited to 'databases/redis4/files/patch-src-Makefile')
-rw-r--r--databases/redis4/files/patch-src-Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/databases/redis4/files/patch-src-Makefile b/databases/redis4/files/patch-src-Makefile
new file mode 100644
index 000000000000..bfbe89b2d241
--- /dev/null
+++ b/databases/redis4/files/patch-src-Makefile
@@ -0,0 +1,39 @@
+--- src/Makefile.orig 2015-04-01 17:01:44.000000000 +0300
++++ src/Makefile 2015-04-07 21:30:22.464962000 +0300
+@@ -22,7 +22,7 @@
+ WARN=-Wall -W
+ OPT=$(OPTIMIZATION)
+
+-PREFIX?=/usr/local
++PREFIX:=$(PREFIX)
+ INSTALL_BIN=$(PREFIX)/bin
+ INSTALL=install
+
+@@ -52,7 +52,6 @@
+ FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
+ FINAL_LDFLAGS=$(LDFLAGS) $(REDIS_LDFLAGS) $(DEBUG)
+ FINAL_LIBS=-lm
+-DEBUG=-g -ggdb
+
+ ifeq ($(uname_S),SunOS)
+ # SunOS
+@@ -63,6 +62,11 @@
+ ifeq ($(uname_S),Darwin)
+ # Darwin (nothing to do)
+ else
++ifeq ($(uname_S),FreeBSD)
++ # FreeBSD
++ FINAL_CFLAGS?= $(CFLAGS) $(REDIS_CFLAGS) -I${PREFIX}/include
++ FINAL_LDFLAGS= $(LDFLAGS) -pthread
++else
+ ifeq ($(uname_S),AIX)
+ # AIX
+ FINAL_LDFLAGS+= -Wl,-bexpall
+@@ -75,6 +79,7 @@
+ endif
+ endif
+ endif
++endif
+ # Include paths to dependencies
+ FINAL_CFLAGS+= -I../deps/hiredis -I../deps/linenoise -I../deps/lua/src
+