mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
6f6fbe4bdf
- 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
48 lines
1.2 KiB
Makefile
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>
|