1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/databases/sqlcached/Makefile
Dmitry Marakasov 6f6fbe4bdf - Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead

PR:		157936
Submitted by:	myself
Exp-runs by:	pav
Approved by:	pav
2011-09-23 22:26:39 +00:00

48 lines
1.2 KiB
Makefile

# 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>