b4f2244de5
PR: 32192 Submitted by: Lev Serebryakov <lev@serebryakov.spb.ru>
36 lines
993 B
Makefile
36 lines
993 B
Makefile
# New ports collection makefile for: apache mod_log_mysql
|
|
# Date created: 2001/11/22
|
|
# Whom: lev@serebryakov.spb.ru
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mod_log_mysql
|
|
PORTVERSION= 1.09
|
|
CATEGORIES= www databases
|
|
MASTER_SITES= http://www.grubbybaby.com/mod_log_mysql/
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
MAINTAINER= lev@serebryakov.spb.ru
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/${AP_PORT}
|
|
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|
RUN_DEPENDS= ${LOCALBASE}/sbin/httpd:${PORTSDIR}/${AP_PORT}
|
|
|
|
AP_PORT?= www/apache13
|
|
APXS?= ${LOCALBASE}/sbin/apxs
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && ${APXS} -c -o ${PORTNAME}.so -I${LOCALBASE}/include \
|
|
-L${LOCALBASE}/lib/mysql -lmysqlclient ${PORTNAME}.c
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${APXS} -i -n ${PORTNAME:S/^mod_//} -A ${PORTNAME}.so
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in CONFIGURATION INSTALL README access_log.sql make_combined_log.pl
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|