blob: d903ea4ddc15e2500056a674331f435d9f742666 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Created by: gahr
# $FreeBSD$
PORTNAME= mysql-connector-c
PORTVERSION= 6.1.9
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
USES= cmake:outsource compiler:features mysql ssl
CMAKE_ARGS+= -DOPENSSL_INCLUDE_DIR="${OPENSSLINC}"
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386" && ${COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
CFLAGS+= -march=i586
.endif
.if ${SSL_DEFAULT} == base
CMAKE_ARGS+= -DWITH_SSL="system"
.else
CMAKE_ARGS+= -DWITH_SSL="${OPENSSLBASE}"
.endif
.include <bsd.port.post.mk>
|