summaryrefslogtreecommitdiff
path: root/databases/redis/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/redis/Makefile')
-rw-r--r--databases/redis/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/databases/redis/Makefile b/databases/redis/Makefile
index 19536142d04c..9e0f39488ec7 100644
--- a/databases/redis/Makefile
+++ b/databases/redis/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= redis
-DISTVERSION= 3.2.11
+DISTVERSION= 4.0.9
CATEGORIES= databases
MASTER_SITES= http://download.redis.io/releases/
@@ -22,6 +22,12 @@ TRIB_DESC= Install redis-trib.rb (lang/ruby req.)
.include <bsd.port.options.mk>
+.if ${ARCH} == i386 && ! ${CFLAGS:M-march=*}
+# Needed for __atomic_fetch_add_8
+USE_GCC= yes
+CFLAGS+= -march=i586
+.endif
+
.if ${PORT_OPTIONS:MTRIB}
CATEGORIES+= ruby
USE_RUBY= yes
@@ -49,7 +55,7 @@ USES+= tcl:build
LDFLAGS+= -lpthread -lm -lexecinfo
-CONFLICTS?= redis-devel-3.*
+CONFLICTS?= redis-devel-4.*
USES+= gmake
MAKE_ENV= "V=yo"