blob: d2c488848886b2df58ab0e4958a1fcca9339f85b (
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: sqlcached
# Date created: 3 January 2007
# Whom: ivoras
#
# $FreeBSD$
#
PORTNAME= sqlcached
PORTVERSION= r4
CATEGORIES= databases net
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= ivoras@FreeBSD.org
COMMENT= A cache daemon using SQL for data manipulation
LIB_DEPENDS= sqlite.2:${PORTSDIR}/databases/sqlite2
LDFLAGS+= -L${LOCALBASE}/lib
CFLAGS= -O2 -Wall -I${LOCALBASE}/include
WRKSRC= ${WRKDIR}/${PORTNAME}
MAN1= ${PORTNAME}.1
PORTDOCS= ${PORTNAME}.html ${PORTNAME}.txt
PLIST_FILES= bin/${PORTNAME} etc/rc.d/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -E -e 's|^(.*FLAGS)=|\1?=|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' \
${WRKSRC}/FreeBSD/${PORTNAME}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MANPREFIX}/man/man1
${INSTALL_SCRIPT} ${WRKSRC}/FreeBSD/${PORTNAME} ${PREFIX}/etc/rc.d
.if !defined(NOPORTDOCS)
${INSTALL} -d -o ${DOCOWN} -g ${DOCGRP} -m 555 ${DOCSDIR}
for doc in ${PORTDOCS}; do \
${INSTALL_DATA} ${WRKSRC}/doc/$${doc} ${DOCSDIR}; \
done
.endif
.include <bsd.port.mk>
|