aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mdcached/Makefile
blob: c62566760ac988ac78b0c9e2e3037834a4ce2f41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:    mdcached
# Date created:         3 February 2012
# Whom:             Ivan Voras <ivoras@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mdcached
PORTVERSION=    1.0.2
CATEGORIES= databases net
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= ivoras@FreeBSD.org
COMMENT=    A high performance cache server similar to memcached

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME}
MAKE_JOBS_SAFE= yes
USE_LDCONFIG=   yes
MAN1=       ${PORTNAME}.1

PORTDOCS=   UserGuide.txt mdcached.txt

post-patch:
    @${REINPLACE_CMD} 's|ADDCFLAGS = -Wall -g -O3 -march=native|ADDCFLAGS = ${CFLAGS}|' \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' \
        ${WRKSRC}/FreeBSD/${PORTNAME}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
    ${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.so.1 ${PREFIX}/lib
    ${LN} -s lib${PORTNAME}.so.1 ${PREFIX}/lib/lib${PORTNAME}.so
    ${INSTALL_LIB} ${WRKSRC}/lib${PORTNAME}.a ${PREFIX}/lib
    ${INSTALL_DATA} ${WRKSRC}/mc_protocol.h ${PREFIX}/include
    ${INSTALL_DATA} ${WRKSRC}/mc_client.h ${PREFIX}/include
    ${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MANPREFIX}/man/man1
    ${INSTALL_SCRIPT} ${WRKSRC}/FreeBSD/${PORTNAME} ${PREFIX}/etc/rc.d

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    for doc in ${PORTDOCS}; do \
        ${INSTALL_DATA} ${WRKSRC}/doc/$${doc} ${DOCSDIR}; \
    done
.endif

.include <bsd.port.mk>