ports/databases/redis/files/patch-deps::hiredis::Makefile
Sergey A. Osokin 69f903759a Update from 2.0.4 (after repocopy to databases/redis2) to latest
release candidate 2.2.rc4.

Add CONFLICTS with redis-2.0.
Add NO_LATEST_LINK, should be removed after 2.2 release.
2011-02-13 12:25:02 +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