mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 12:56:28 -04:00
release candidate 2.2.rc4. Add CONFLICTS with redis-2.0. Add NO_LATEST_LINK, should be removed after 2.2 release.
29 lines
946 B
Text
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
|