ports/databases/redis-scripting/files/patch-deps::hiredis::Makefile
Sergey A. Osokin 80f1925c91 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.
2011-07-22 10:32:41 +00:00

29 lines
946 B
Text

--- 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