Lines 6-36
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= memcachedb |
8 |
PORTNAME= memcachedb |
9 |
PORTVERSION= 0.1.0 |
9 |
DISTVERSION= 1.0.0-beta |
10 |
CATEGORIES= databases |
10 |
CATEGORIES= databases |
11 |
MASTER_SITES= http://memcachedb.googlecode.com/files/ |
11 |
MASTER_SITES= http://memcachedb.googlecode.com/files/ \ |
|
|
12 |
http://freebsd.csie.nctu.edu.tw/~gslin/files/ |
12 |
|
13 |
|
13 |
MAINTAINER= gslin@gslin.org |
14 |
MAINTAINER= ports@FreeBSD.org |
14 |
COMMENT= Distributed storage system designed for persistent |
15 |
COMMENT= Distributed storage system designed for persistent |
15 |
|
16 |
|
16 |
LIB_DEPENDS= event-1.3e:${PORTSDIR}/devel/libevent |
17 |
LIB_DEPENDS= event-1.3e:${PORTSDIR}/devel/libevent |
17 |
|
18 |
|
|
|
19 |
CFLAGS= -I"${BDB_INCLUDE_DIR}" |
20 |
CONFIUGRE_ARGS= --enable-threads --with-bdb="${LOCALBASE}" \ |
21 |
--with-libevent="${LOCALBASE}" |
22 |
CONFIGURE_ENV= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" |
23 |
GNU_CONFIGURE= yes |
24 |
LDFLAGS= -l"${BDB_LIB_NAME}" -L"${LOCALBASE}/lib" |
25 |
MCDBDIR?= /var/db/memcachedb |
18 |
USE_BDB= 46+ |
26 |
USE_BDB= 46+ |
19 |
USE_DOS2UNIX= YES |
|
|
20 |
USE_RC_SUBR= ${PORTNAME} |
27 |
USE_RC_SUBR= ${PORTNAME} |
21 |
|
28 |
|
22 |
.include <bsd.port.pre.mk> |
|
|
23 |
|
24 |
post-patch: |
29 |
post-patch: |
25 |
${REINPLACE_CMD} \ |
30 |
${CHMOD} a+x ${WRKSRC}/install-sh |
26 |
-e "s,%%BDB_LIB_NAME%%,${BDB_LIB_NAME}," \ |
31 |
|
27 |
-e "s,%%BDB_LIB_DIR%%,${BDB_LIB_DIR}," \ |
32 |
post-install: |
28 |
-e "s,%%BDB_INCLUDE_DIR%%,${BDB_INCLUDE_DIR}," \ |
33 |
${MKDIR} ${MCDBDIR} || ${TRUE} |
29 |
${WRKSRC}/Makefile |
34 |
${CHOWN} nobody:nobody ${MCDBDIR} |
30 |
|
|
|
31 |
do-install: |
32 |
${INSTALL_PROGRAM} ${WRKSRC}/memcachedb ${PREFIX}/sbin |
33 |
${MKDIR} /var/db/memcachedb || ${TRUE} |
34 |
${CHOWN} nobody:nobody /var/db/memcachedb |
35 |
|
35 |
|
36 |
.include <bsd.port.post.mk> |
36 |
.include <bsd.port.mk> |