1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/databases/mysql-connector-c++/Makefile
Muhammad Moinur Rahman ee6c86aea5 */*: Refactor with IGNORE_WITH_MYSQL
- There are multiple ports which has MYSQL options and are non-DEFAULT.
  Most of the time committers actually forget to check with the OPTION
  enabled and in some cases they are BROKEN with newr versions of mysql.
  So test with different versions of mysql and mark IGNOPRE_WITH_MYSQL
  appropriately. Due to the EOL of 5.7 this has not been checked.
- Unbreak sysutils/cfengine* with MySQL 8.0 and later
- The primary purpose of running this check is having statistics of the
  MySQL usability over MariaDB to explore the future possibility of
  shifting to MariaDB as the default as major ports upstream have moved
  their codebase to support MariaDB over MySQL.
- The following actions will also be taken after the sunset of MySQL 5.7
  If a port is broken on all instances of MySQL/MariaDB:
  - If a port has the option of multiple DB backends and MySQL is the
    default then the DEFAULT will be changed to PGSQL/SQLITE before
    2024Q1. And the OPTION will be removed before 2024Q2. If a
    MAINTAINER is aware about such cases and want to prefer PGSQL over
    SQLITE or vice versa please do so at your own accord. Otherwise
    PGSQL will be preferred over SQLITE.
  - If a port has the option of multiple DB backends and MySQL is not
    the default then the the OPTION will be removed before 2024Q1.

Approved by:	portmgr (blanket)
2023-12-29 19:24:39 +01:00

60 lines
1.4 KiB
Makefile

PORTNAME= mysql-connector-c++
PORTVERSION= 8.0.33
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= MYSQL/Connector-C++
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= bofh@FreeBSD.org
COMMENT= MySQL database connector for C++
WWW= https://dev.mysql.com/doc/relnotes/connector-cpp/en/index.html
LICENSE= GPLv2 # only
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libboost_regex.so:devel/boost-libs \
liblz4.so:archivers/liblz4 \
libprotobuf.so:devel/protobuf \
libzstd.so:archivers/zstd
USES= cmake:noninja compiler:c++17-lang cpe gmake mysql ssl
IGNORE_WITH_MYSQL= 105m 106m 1011m
CPE_VENDOR= oracle
USE_CXXSTD= c++17
USE_LDCONFIG= yes
CMAKE_ARGS= -DCMAKE_ENABLE_C++17=ON \
-DWITH_LZ4=system \
-DWITH_PROTOBUF=system \
-DWITH_SYSTEM_LIBS=1 \
-DWITH_ZLIB=system \
-DWITH_ZSTD=system
PLIST_SUB= PORTVERSION=${PORTVERSION}
PORTDOCS= *
OPTIONS_DEFINE= DOCS JDBC
OPTIONS_DEFAULT= JDBC
OPTIONS_SUB= yes
JDBC_DESC= Build JDBC Interface
DOCS_BUILD_DEPENDS= doxygen:devel/doxygen
DOCS_CMAKE_ON= -DDOC_DESTINATION="${DOCSDIR}" \
-DWITH_DOC=ON
JDBC_LIB_DEPENDS= libunwind.so:devel/libunwind
JDBC_CMAKE_ON= -DWITH_JDBC=ON
post-install:
@${RM} ${STAGEDIR}${PREFIX}/INFO_BIN
@${RM} ${STAGEDIR}${PREFIX}/INFO_SRC
post-install-DOCS-on:
@${RM} ${STAGEDIR}${DOCSDIR}/INSTALL \
${STAGEDIR}${DOCSDIR}/LICENSE.txt
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${BUILD_WRKSRC}/doc && \
${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>