# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
set package.name lib_mysqludf_json
name ${mysql.name}-${package.name}
set mysql.ports {mysql5 mysql51 mysql55 mariadb percona}
foreach mysql.port ${mysql.ports} {
lappend mysql.extension.ports "${mysql.port}-${package.name}"
foreach mysql.extension.port ${mysql.extension.ports} {
set idx [lsearch ${mysql.extension.ports} ${mysql.extension.port}]
set mysql.port [lindex ${mysql.ports} $idx]
if {${mysql.extension.port} == ${name} == ${subport}} {
depends_lib-append port:${mysql.port}
subport ${mysql.port}-${package.name} {
set mysql.name ${mysql.port}
depends_lib-append port:${mysql.port}
categories databases lang
description Map database data to the JSON.
long_description ${description}
homepage http://www.mysqludf.org/${package.name}/
distname ${package.name}_${version}
checksums rmd160 4c98739ed2753580195e11e602777188bc9a20ff \
sha256 bed11c73d1e5d23669051b8a430f5c17b961e462ee82612b7dcdbceba47052b5
configure.cflags-append \
-I${prefix}/include/${mysql.name} \
-I${prefix}/include/${mysql.name}/mysql \
-undefined dynamic_lookup
move ${worksrcpath}/${package.name}.so \
${worksrcpath}/${package.name}.so.orig