blob: 052d08b62ed4582874494d785a988fdd621aad46 (
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
48
49
50
51
52
53
54
55
56
57
58
59
|
# New ports collection makefile for: apache mod_auth_mysql_another
# Date created: 2002/04/20
# Whom: mbr@freebsd.org
#
# $FreeBSD$
PORTNAME= mod_auth_mysql
PORTVERSION= 3.0.0
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME:S/_//g}
PKGNAMESUFFIX= _another
MAINTAINER= mbr@FreeBSD.org
COMMENT= Allows users to use MySQL databases for user authentication
USE_MYSQL= YES
USE_REINPLACE= YES
SHORTMODNAME= mysql_auth
AP_FAST_BUILD= YES
AP_GENPLIST= YES
AP_INC= ${LOCALBASE}/include/mysql
AP_LIB= ${LOCALBASE}/lib/mysql
.if defined(WITH_APACHE2)
AP_EXTRAS= -lmysqlclient -lz -lm
USE_APACHE= 20+
.else
USE_APACHE= 13+
AP_EXTRAS= -DAPACHE${AP_VER} -lmysqlclient -lz -lm
.endif
.include <bsd.port.pre.mk>
.if defined(WITH_APACHE2)
post-patch:
${REINPLACE_CMD} -e "s|APR_XtOffsetOf|APR_OFFSETOF|g" \
-e "s|APR_XtOffset|APR_OFFSET|g" ${WRKSRC}/mod_auth_mysql.c
.else
pre-build:
${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile
${REINPLACE_CMD} -e "s|%%APXS%%|${APXS}|g" \
-e "s|%%AP_INC%%|${AP_INC}|g" -e "s|%%AP_LIB%%|${AP_LIB}|g" ${WRKSRC}/Makefile
.endif
.if !defined(NOPORTDOCS)
post-build:
@${ECHO} "%%PORTDOCS%%%%DOCSDIR%%/CONFIGURE" >> ${PLIST}
@${ECHO} "%%PORTDOCS%%%%DOCSDIR%%/CHANGES" >> ${PLIST}
@${ECHO} "%%PORTDOCS%%@dirrm %%DOCSDIR%%" >> ${PLIST}
post-install:
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/CONFIGURE ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
.endif
.include <bsd.port.post.mk>
|