Update databases/postgresql12-server to version 12.2_2
[dports.git] / databases / mysql-connector-c / Makefile
1 # Created by: gahr
2 # $FreeBSD$
3
4 PORTNAME=       mysql-connector-c
5 PORTVERSION=    6.1.11
6 CATEGORIES=     databases
7 MASTER_SITES=   MYSQL/Connector-C
8 DISTNAME=       ${PORTNAME}-${PORTVERSION}-src
9
10 MAINTAINER=     bofh@FreeBSD.org
11 COMMENT=        MySQL database connector for C
12
13 LICENSE=        GPLv2
14 LICENSE_FILE=   ${WRKSRC}/COPYING
15
16 BROKEN_SSL=     openssl111
17 BROKEN_SSL_REASON_openssl111=   variable has incomplete type 'EVP_CIPHER_CTX' (aka 'evp_cipher_ctx_st')
18
19 USES=           cmake compiler:features mysql ssl
20 CMAKE_ARGS+=    -DOPENSSL_INCLUDE_DIR="${OPENSSLINC}"
21 USE_LDCONFIG=   ${PREFIX}/lib/${PORTNAME}
22
23 PLIST_SUB+=     PORTVERSION=${PORTVERSION}
24
25 .include <bsd.port.pre.mk>
26
27 .if ${ARCH} == "i386" && ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
28 CFLAGS+=        -march=i586
29 .endif
30
31 .if ${SSL_DEFAULT} == base
32 BROKEN_FreeBSD_12=      incomplete definition of type 'struct dh_st'
33 BROKEN_FreeBSD_13=      incomplete definition of type 'struct dh_st'
34 CMAKE_ARGS+=    -DWITH_SSL="system"
35 .else
36 CMAKE_ARGS+=    -DWITH_SSL="${OPENSSLBASE}"
37 .endif
38
39 .include <bsd.port.post.mk>