1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

mail/exim: fix handling of WITH_MYSQL_VER

- fix introduction of bogus MYSQL_VER option that appeared after
   blind conversion to OPTIONSng in r320120;

 - drop support for WITH_MYSQL_VER="auto": this is an obsolete setting
   that currently has the same effect as not defining WITH_MYSQL_VER
   at all;

 - don't set WANT_MYSQL_VER based on WITH_MYSQL_VER: setting the
   latter is enough, since we don't insist on any particular MySQL
   version.

PR:		ports/179719
QA page:	http://codelabs.ru/fbsd/ports/qa/mail/exim/4.80.1_2-p1
This commit is contained in:
Eygene Ryabinkin 2013-06-22 20:00:56 +00:00
parent 7076c32310
commit ae35729648
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321586

View File

@ -286,14 +286,13 @@ SEDLIST+= -e 's,^(DBMLIB=),\# \1,'
SEDLIST+= -e 's,XX_DB_LIBS_XX,${DB_LIBS:S/,/\\,/g},' \
-e 's,XX_DB_INCLUDES_XX,${DB_INCLUDES:S/,/\\,/g},'
.if ${PORT_OPTIONS:MMYSQL_VER} && ${WITH_MYSQL_VER:L} != "auto"
WANT_MYSQL_VER= ${WITH_MYSQL_VER}
.else
.undef WITH_MYSQL_VER
.endif
.if ${PORT_OPTIONS:MMYSQL}
.if defined(WITH_MYSQL_VER) && ${WITH_MYSQL_VER:L} == "auto"
IGNORE= WITH_MYSQL_VER set to "${WITH_MYSQL_VER}" is no longer supported.
IGNORE+= Just don't set WITH_MYSQL_VER if you want to use system-default version
.else
USE_MYSQL= yes
.endif
SEDLIST+= -e 's,XX_MYSQL_LIBS_XX,-L${LOCALBASE:S/,/\\,/g}/lib/mysql -lmysqlclient,' \
-e 's,XX_MYSQL_INCLUDE_XX,-I${LOCALBASE:S/,/\\,/g}/include/mysql,' \
-e 's,^\# (LOOKUP_MYSQL=),\1,'