1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- Add options for MySQL and LDAP

- Bump portrevision

Suggested by:	Marek Kubica <marek@xivilization.net>
This commit is contained in:
Beech Rintoul 2009-01-03 06:22:43 +00:00
parent 2c7e6cf00e
commit 4e01e22a78
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=225165

View File

@ -7,6 +7,7 @@
PORTNAME= cherokee
PORTVERSION= 0.11.6
PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.cherokee-project.com/download/0.11/${PORTVERSION}/ \
LOCAL/beech
@ -22,11 +23,9 @@ USE_GNOME= gnomehack gnometarget pkgconfig
USE_LDCONFIG= yes
USE_RC_SUBR= cherokee.sh
USE_BISON= build
USE_MYSQL= yes
USE_PYTHON= 2.4+
USE_OPENLDAP= yes
GNU_CONFIGURE= yes
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}Marek Kubica <marek@xivilization.net>
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-wwwroot=${PREFIX}/www/cherokee \
@ -41,7 +40,9 @@ PORTDOCS= *
OPTIONS= OPENSSL "TLS/SSL support via openssl" on \
GNUTLS "TLS/SSL support via gnutls" off \
IPV6 "IPv6 support" on
IPV6 "IPv6 support" on \
MYSQL "MySQL Database" off \
LDAP "LDAP Support" off
.include <bsd.port.pre.mk>
@ -58,6 +59,20 @@ CONFIGURE_ARGS+=--disable-tls
CONFIGURE_ARGS+=--disable-ipv6
.endif
.ifdef WITH_MYSQL
USE_MYSQL= yes
CONFIGURE_ARGS+=--with-mysql=yes
.else
CONFIGURE_ARGS+=--with-mysql=no
.endif
.ifdef WITH_LDAP
USE_OPENLDAP= yes
CONFIGURE_ARGS+=--with-ldap=yes
.else
CONFIGURE_ARGS+=--with-ldap=no
.endif
post-patch:
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
${REINPLACE_CMD} -e 's|@mkdir_p@|${MKDIR} --|g'