diff options
| author | Sergey A. Osokin <osa@FreeBSD.org> | 2011-07-22 10:32:41 +0000 |
|---|---|---|
| committer | Sergey A. Osokin <osa@FreeBSD.org> | 2011-07-22 10:32:41 +0000 |
| commit | 80f1925c9128d796fabd558ce39b4567275e23bc (patch) | |
| tree | 7087ee08ccb35b8b30002a7d4705222aeab113d0 /databases/redis-scripting/files/patch-src::Makefile | |
| parent | Add 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.
Diffstat (limited to 'databases/redis-scripting/files/patch-src::Makefile')
| -rw-r--r-- | databases/redis-scripting/files/patch-src::Makefile | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/databases/redis-scripting/files/patch-src::Makefile b/databases/redis-scripting/files/patch-src::Makefile new file mode 100644 index 000000000000..a1f837d04d3a --- /dev/null +++ b/databases/redis-scripting/files/patch-src::Makefile @@ -0,0 +1,37 @@ +--- src/Makefile.orig 2011-06-23 00:40:21.000000000 +0400 ++++ src/Makefile 2011-06-29 16:27:24.000000000 +0400 +@@ -9,6 +9,9 @@ + CFLAGS?= -std=c99 -pedantic $(OPTIMIZATION) -Wall -W -D__EXTENSIONS__ -D_XPG6 + CCLINK?= -ldl -lnsl -lsocket -lm -lpthread + DEBUG?= -g -ggdb ++else ifeq ($(uname_S),FreeBSD) ++ CFLAGS?= $(CFLAGS) ++ CCLINK?= -pthread -lm -L${PREFIX}/lib -llua-5.1 + else + CFLAGS?= -std=c99 -pedantic $(OPTIMIZATION) -Wall -W $(ARCH) $(PROF) + CCLINK?= -lm -pthread +@@ -19,9 +22,9 @@ + CCLINK+= -ltcmalloc + CFLAGS+= -DUSE_TCMALLOC + endif +-CCOPT= $(CFLAGS) $(CCLINK) $(ARCH) $(PROF) ++CCOPT= $(CFLAGS) $(CCLINK) $(PROF) + +-PREFIX= /usr/local ++PREFIX?= $(PREFIX) + INSTALL_BIN= $(PREFIX)/bin + INSTALL= cp -p + +@@ -109,10 +112,10 @@ + dependencies: + cd ../deps/hiredis && $(MAKE) static ARCH="$(ARCH)" + cd ../deps/linenoise && $(MAKE) ARCH="$(ARCH)" +- cd ../deps/lua && $(MAKE) ARCH="$(ARCH)" ansi ++# cd ../deps/lua && $(MAKE) ARCH="$(ARCH)" ansi + + redis-server: $(OBJ) +- $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ) ../deps/lua/src/liblua.a ++ $(CC) -o $(PRGNAME) $(CCOPT) $(DEBUG) $(OBJ) + + redis-benchmark: dependencies $(BENCHOBJ) + cd ../deps/hiredis && $(MAKE) static |
