# Created by: gahr # $FreeBSD: head/databases/mysql-connector-c/Makefile 521748 2020-01-01 17:27:54Z brnrd $ PORTNAME= mysql-connector-c PORTVERSION= 6.1.11 CATEGORIES= databases MASTER_SITES= MYSQL/Connector-C DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= bofh@FreeBSD.org COMMENT= MySQL database connector for C LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING BROKEN_SSL= openssl BROKEN_SSL_REASON_openssl= variable has incomplete type 'EVP_CIPHER_CTX' (aka 'evp_cipher_ctx_st') USES= cmake compiler:features mysql ssl CMAKE_ARGS+= -DOPENSSL_INCLUDE_DIR="${OPENSSLINC}" USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME} PLIST_SUB+= PORTVERSION=${PORTVERSION} .include .if ${ARCH} == "i386" && ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42 CFLAGS+= -march=i586 .endif .if ${SSL_DEFAULT} == base BROKEN_FreeBSD_12= incomplete definition of type 'struct dh_st' BROKEN_FreeBSD_13= incomplete definition of type 'struct dh_st' CMAKE_ARGS+= -DWITH_SSL="system" .else CMAKE_ARGS+= -DWITH_SSL="${OPENSSLBASE}" .endif .include