mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
e0b379fa6f
Approved by: portmgr (blanket)
36 lines
770 B
Makefile
36 lines
770 B
Makefile
# Created by: gahr
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mysql-connector-c
|
|
PORTVERSION= 6.1.6
|
|
PORTREVISION= 1
|
|
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>
|