git: 2d9c04a37181 - main - databases/mysql-connector-c: Mark DEPRECATED

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 02 Feb 2023 17:18:44 UTC
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2d9c04a371818adbbdf61b05b28a039e93d3fbf0

commit 2d9c04a371818adbbdf61b05b28a039e93d3fbf0
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-02-02 17:14:52 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-02-02 17:18:32 +0000

    databases/mysql-connector-c: Mark DEPRECATED
    
    Since mysql 5.6 the C Connector is distributed as part of the
    mysql-client packages and is no longer distributed as a different
    package. The requirement of this package is no longer valid as
    mysql55-{client|server} packages are in the tree.
    
    gcc 4.2 and related codes have been removed.
---
 databases/mysql-connector-c/Makefile | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/databases/mysql-connector-c/Makefile b/databases/mysql-connector-c/Makefile
index f6293ac9b59f..2d902aed6a4c 100644
--- a/databases/mysql-connector-c/Makefile
+++ b/databases/mysql-connector-c/Makefile
@@ -12,18 +12,18 @@ WWW=		https://dev.mysql.com/downloads/c-api/
 LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+DEPRECATED=	C Connector is included in mysql packages since 5.6
+EXPIRATION_DATE=	2023-03-31
+
 USES=		cmake compiler:features mysql ssl
-CMAKE_ARGS+=	-DOPENSSL_INCLUDE_DIR="${OPENSSLINC}"
 USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}
 
+CMAKE_ARGS+=	-DOPENSSL_INCLUDE_DIR="${OPENSSLINC}"
+
 PLIST_SUB+=	PORTVERSION=${PORTVERSION}
 
 .include <bsd.port.pre.mk>
 
-.if ${ARCH} == "i386" && ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
-CFLAGS+=	-march=i586
-.endif
-
 .if (${OPSYS} == FreeBSD && ${SSL_DEFAULT} == base) || ${SSL_DEFAULT} == openssl
 EXTRA_PATCHES+=	${FILESDIR}/extra-patch-vio_viosslfactories.c \
 		${FILESDIR}/extra-patch-mysys__ssl_my__aes__openssl.cc