summaryrefslogtreecommitdiff
path: root/databases/redis-scripting/files/patch-deps::hiredis::Makefile
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2011-07-22 10:32:41 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2011-07-22 10:32:41 +0000
commit80f1925c9128d796fabd558ce39b4567275e23bc (patch)
tree7087ee08ccb35b8b30002a7d4705222aeab113d0 /databases/redis-scripting/files/patch-deps::hiredis::Makefile
parentAdd one more third-party module nginx-gridfs 0.8 - module to serve content (diff)
Add redis-scripting, version 2.2.111, an experimental version of
Redis 2.2.11 with support for Lua scripting, backported from the scripting branch. Instructions about how to use it are contained in following blog post: http://antirez.com/post/scripting-branch-released.html Connect to build. Add CONFLICTS and bump PORTREVISION for databases/redis.
Notes
Notes: svn path=/head/; revision=278151
Diffstat (limited to 'databases/redis-scripting/files/patch-deps::hiredis::Makefile')
-rw-r--r--databases/redis-scripting/files/patch-deps::hiredis::Makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/databases/redis-scripting/files/patch-deps::hiredis::Makefile b/databases/redis-scripting/files/patch-deps::hiredis::Makefile
new file mode 100644
index 000000000000..f6d34bd3a9de
--- /dev/null
+++ b/databases/redis-scripting/files/patch-deps::hiredis::Makefile
@@ -0,0 +1,29 @@
+--- deps/hiredis/Makefile.orig 2010-12-23 15:17:54.000000000 +0300
++++ deps/hiredis/Makefile 2010-12-24 09:24:45.000000000 +0300
+@@ -24,6 +24,14 @@
+ DYLIB_MAKE_CMD?=libtool -dynamic -o ${DYLIBNAME} -lm ${DEBUG} - ${OBJ}
+ STLIBNAME?=libhiredis.a
+ STLIB_MAKE_CMD?=libtool -static -o ${STLIBNAME} - ${OBJ}
++else ifeq ($(uname_S),FreeBSD)
++ CFLAGS?=$(CFLAGS)
++ CCLINK?=-pthread
++ LDFLAGS?=-L. -Wl,-rpath,.
++ DYLIBNAME?=libhiredis.so
++ DYLIB_MAKE_CMD?=$(CC) -o ${DYLIBNAME} ${OBJ}
++ STLIBNAME?=libhiredis.a
++ STLIB_MAKE_CMD?=ar rcs ${STLIBNAME} ${OBJ}
+ else
+ CFLAGS?=-std=c99 -pedantic $(OPTIMIZATION) -fPIC -Wall -W -Wwrite-strings $(ARCH) $(PROF)
+ CCLINK?=-lm -pthread
+@@ -34,9 +42,9 @@
+ STLIB_MAKE_CMD?=ar rcs ${STLIBNAME} ${OBJ}
+ endif
+ CCOPT= $(CFLAGS) $(CCLINK)
+-DEBUG?= -g -ggdb
++#DEBUG?= -g -ggdb
+
+-PREFIX?= /usr/local
++PREFIX?= ${PREFIX}
+ INSTALL_INC= $(PREFIX)/include/hiredis
+ INSTALL_LIB= $(PREFIX)/lib
+ INSTALL= cp -a