# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
deprecated.upstream_support no
# Set revision_client and revision_server to 0 if you bump version.
set version_branch [join [lrange [split ${version} .] 0 1] .]
homepage https://www.mysql.com/
if {"darwin" eq ${os.platform} && ${os.major} > 8} {
if {${subport} eq ${name}} {
# http://bugs.mysql.com/bug.php?id=47360
revision ${revision_client}
description Multithreaded SQL database server
long_description MySQL is an open-source, multi-threaded SQL database.
master_sites mysql:MySQL-${version_branch}
distname mysql-${version}
patchfiles patch-Makefile.in.diff \
patch-scripts-mysql_secure_installation.sh.diff
checksums rmd160 ceee36663abbf135d3ddbebe52ebc537ecba25a6 \
sha256 05ebe21305408b24407d14b77607a3e5ffa3c300e03f1359d3066f301989dcb5
depends_lib port:zlib port:tcp_wrappers
depends_run port:mysql_select
select.file ${filespath}/${name_mysql}
file mkdir ${worksrcpath}/build_macports/macports
copy ${filespath}/macports-default.cnf \
${worksrcpath}/build_macports/macports/