ports/databases/memcachedb/files/patch-Makefile
Cheng-Lung Sung 5101442b7d Memcachedb is a distributed storage system designed for persistent. We
simplely hacked from memcached and tugela. But neither of them.
Memcachedb is not a cache solution, it is a persistent solution for
high-frequency writing and reading. It conforms to memcache protocol
(not completed, see below), so any memcached client can have
connectivity with memcachedb. Memcachedb uses Berkeley DB as a storing
backend, so lots of features including transaction and replication are
supported.

WWW:	http://code.google.com/p/memcachedb/

PR:		ports/116548
Submitted by:	Gea-Suan Lin <gslin at gslin.org>
2007-09-27 03:02:34 +00:00

23 lines
736 B
Text

--- Makefile.orig 2007-09-22 03:51:05.000000000 +0800
+++ Makefile 2007-09-22 03:56:02.000000000 +0800
@@ -1,15 +1,15 @@
# $Id: Makefile 11833 2005-11-28 00:22:02Z midom $
# $Id: Makefile 11833 2007-09-06 10:56:02Z steve $
-LIBS=-ldb -levent
-DBLIBPATH=/usr/local/BerkeleyDB.4.5/lib
-DBINCPATH=/usr/local/BerkeleyDB.4.5/include
+LIBS=-l%%BDB_LIB_NAME%% -levent
+DBLIBPATH=%%BDB_LIB_DIR%%
+DBINCPATH=%%BDB_INCLUDE_DIR%%
LDFLAGS= -L/usr/local/lib/ -L${DBLIBPATH}
-CFLAGS = -O2 -I/usr/local/include -I${DBINCPATH}
+CFLAGS+= -I/usr/local/include -I${DBINCPATH}
all:
- cc -o memcachedb memcachedb.c ${LDFLAGS} ${CFLAGS} ${LIBS}
+ ${CC} -o memcachedb memcachedb.c ${LDFLAGS} ${CFLAGS} ${LIBS}
clean:
rm -f -- *.o memcachedb