2001-11-12 03:09:15 +01:00
|
|
|
# New ports collection makefile for: mod_sqlinclude
|
|
|
|
# Date created: October 25 2001
|
|
|
|
# Whom: Anders Nordby <anders@fix.no>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mod_sqlinclude
|
2004-06-03 14:39:56 +02:00
|
|
|
PORTVERSION= 1.4
|
2001-11-12 03:09:15 +01:00
|
|
|
CATEGORIES= www
|
2002-12-15 23:55:10 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/}
|
2001-11-12 03:09:15 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2002-03-14 01:11:40 +01:00
|
|
|
MAINTAINER= anders@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= An Apache module implementing config inclusion from MySQL databases
|
2001-11-12 03:09:15 +01:00
|
|
|
|
2004-06-03 14:39:56 +02:00
|
|
|
USE_MYSQL= yes
|
2004-07-28 09:23:16 +02:00
|
|
|
DOCS= CHANGES.txt README.txt test.sql
|
2004-06-03 14:39:56 +02:00
|
|
|
|
|
|
|
.if defined(WITH_APACHE2) || exists(${LOCALBASE}/include/apache2/apr.h)
|
|
|
|
IGNORE= Sorry, mod_sqlinclude only works with Apache 1.x
|
|
|
|
.else
|
2003-11-07 10:12:58 +01:00
|
|
|
USE_APACHE= yes
|
2004-06-03 14:39:56 +02:00
|
|
|
.endif
|
2001-11-12 03:09:15 +01:00
|
|
|
|
|
|
|
do-build:
|
|
|
|
(cd ${WRKSRC} && ${APXS} -c -I${LOCALBASE}/include \
|
|
|
|
-L${LOCALBASE}/lib/mysql -lmysqlclient mod_sqlinclude.c)
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
(cd ${WRKSRC} && ${APXS} -i -A -n 'sqlinclude' mod_sqlinclude.so)
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${INSTALL} -d -m 0755 ${DOCSDIR}
|
|
|
|
.for f in ${DOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2004-07-28 09:23:16 +02:00
|
|
|
.include <bsd.port.mk>
|