1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

- Change the way OPTIONS is checked as suggested by Porters Handbook

PR:		ports/100158
Submitted by:	Boris Kovalenko <boris tagnet.ru> (maintainer)
This commit is contained in:
Rong-En Fan 2006-07-12 15:02:53 +00:00
parent d60890de97
commit 52ff2674db
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=167582

View File

@ -33,8 +33,8 @@ OPTIONS= MYSQL "Use MySQL authentication" off \
.include <bsd.port.pre.mk>
# MySQL authentication
.if defined(WITH_MYSQL) && !defined(WITHOUT_MYSQL)
.if defined(WITH_PGSQL) && !defined(WITHOUT_PGSQL)
.if defined(WITH_MYSQL)
.if defined(WITH_PGSQL)
BROKEN= MySQL and PgSQL authentication can not be build together
.endif
USE_MYSQL= yes
@ -43,7 +43,7 @@ CONFIGURE_ARGS+= --enable-auth-mysql \
--with-mysql-include-dir=${LOCALBASE}/include/mysql
.endif
.if defined(WITH_PGSQL) && !defined(WITHOUT_PGSQL)
.if defined(WITH_PGSQL)
USE_PGSQL= yes
DEFAULT_PGSQL_VER= 80
CONFIGURE_ARGS+= --enable-auth-pgsql \
@ -51,26 +51,26 @@ CONFIGURE_ARGS+= --enable-auth-pgsql \
--with-pgsql-include-dir=${LOCALBASE}/include
.endif
.if defined(WITH_LDAP) && !defined(WITHOUT_LDAP)
.if defined(WITH_LDAP)
USE_OPENLDAP= yes
CONFIGURE_ARGS+= --enable-auth-ldap --with-openldap-root=${LOCALBASE}
.endif
# Perl authentication
.if defined(WITH_PERLAUTH) && !defined(WITHOUT_PERLAUTH)
.if defined(WITH_PERLAUTH)
USE_PERL5= yes
CONFIGURE_ARGS+= --enable-auth-perl
.endif
.if defined(WITH_FLATAUTH) && !defined(WITHOUT_FLATAUTH)
.if defined(WITH_FLATAUTH)
CONFIGURE_ARGS+= --enable-auth-flatfile
.endif
.if defined(WITH_MAILDIR) && !defined(WITHOUT_MAILDIR)
.if !defined(WITHOUT_MAILDIR)
CONFIGURE_ARGS+= --enable-mbox-maildir
.endif
.if defined(WITH_DRAC) && !defined(WITHOUT_DRAC)
.if defined(WITH_DRAC)
CONFIGURE_ARGS+= --enable-drac
BUILD_DEPENDS+= ${LOCALBASE}/lib/libdrac.a:${PORTSDIR}/mail/drac
LDFLAGS+= -L${LOCALBASE}/lib