ports/databases/redis80/files/patch-src_Makefile
Muhammad Moinur Rahman 3e5466ca5f
databases/redis80: New port
This is the 8.0.X series of redis

Redis is an open source, advanced key-value store.  It is often referred
to as a data structure server since keys can contain strings, hashes,
lists, sets and sorted sets.

You can run atomic operations on these types, like appending to a
string; incrementing the value in a hash; pushing to a list; computing
set intersection, union and difference; or getting the member with
highest ranking in a sorted set.

In order to achieve its outstanding performance, Redis works with an
in-memory dataset.  Depending on your use case, you can persist it
either by dumping the dataset to disk every once in a while, or by
appending each command to a log.

Redis also supports trivial-to-setup master-slave replication, with very
fast non-blocking first synchronization, auto-reconnection on net split
and so forth.

WWW:		https://redis.io/
2025-08-09 11:09:58 +02:00

40 lines
997 B
Plaintext

--- src/Makefile.orig 2025-05-02 11:15:06 UTC
+++ src/Makefile
@@ -67,7 +67,7 @@ endif
STD+=-std=c99
endif
-PREFIX?=/usr/local
+PREFIX:=$(PREFIX)
INSTALL_BIN=$(PREFIX)/bin
INSTALL=install
PKG_CONFIG?=pkg-config
@@ -131,7 +131,6 @@ FINAL_LIBS=-lm -lstdc++
FINAL_CFLAGS=$(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(REDIS_CFLAGS)
FINAL_LDFLAGS=$(LDFLAGS) $(OPT) $(REDIS_LDFLAGS) $(DEBUG)
FINAL_LIBS=-lm -lstdc++
-DEBUG=-g -ggdb
# Linux ARM32 needs -latomic at linking time
ifneq (,$(findstring armv,$(uname_M)))
@@ -170,6 +169,11 @@ else
OPENSSL_PREFIX?=/usr/local/opt/openssl
endif
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
@@ -219,6 +223,7 @@ else
# All the other OSes (notably Linux)
FINAL_LDFLAGS+= -rdynamic
FINAL_LIBS+=-ldl -pthread -lrt
+endif
endif
endif
endif