summaryrefslogtreecommitdiff
path: root/databases/redis-devel/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/redis-devel/Makefile')
-rw-r--r--databases/redis-devel/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/databases/redis-devel/Makefile b/databases/redis-devel/Makefile
index 3d0f18a82900..849fc7075d2c 100644
--- a/databases/redis-devel/Makefile
+++ b/databases/redis-devel/Makefile
@@ -6,19 +6,18 @@
#
PORTNAME= redis
-PORTVERSION= 1.02
+PORTVERSION= 1.2.0
CATEGORIES= databases
MASTER_SITES= GOOGLE_CODE
-MAINTAINER= skv@FreeBSD.org
+MAINTAINER= osa@FreeBSD.org
COMMENT= A persistent key-value database with built-in net interface
LIB_DEPENDS= execinfo.1:${PORTSDIR}/devel/libexecinfo
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
CFLAGS+= -I${LOCALBASE}/include
+USE_GMAKE= yes
USE_RC_SUBR= redis.sh
BIN_FILES= redis-server redis-benchmark redis-cli
@@ -45,6 +44,14 @@ SUB_LIST+= PORTNAME="${PORTNAME}" \
REDIS_DBDIR="${REDIS_DBDIR}" \
REDIS_RUNDIR="${REDIS_RUNDIR}"
+PATTERN= '10d;13s|$$$$(ARCH) ||'
+.if !defined(WITH_DEBUG)
+PATTERN:= ${PATTERN:S/'$/;14s|^|\#|'/}
+.endif
+
+post-patch:
+ ${REINPLACE_CMD} ${PATTERN} ${WRKSRC}/Makefile
+
post-build:
${SED} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${WRKSRC}/redis.conf > ${WRKDIR}/redis.conf