# -*- 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
name mysql55-connector-cpp
set name_package mysql-connector-c++
set branch [join [lrange [split ${version} .] 0 1] .]
maintainers {pixilla @pixilla} openmaintainer
set mirror_dir Downloads/Connector-C++
homepage http://www.mysql.com/products/connector/
master_sites http://mysql.mirrors.pair.com/${mirror_dir} \
http://mysql.he.net/${mirror_dir} \
http://mirrors.sunsite.dk/mysql/${mirror_dir} \
http://sunsite.informatik.rwth-aachen.de/mysql/${mirror_dir} \
http://ftp.plusline.de/mysql/${mirror_dir}
distname ${name_package}-${version}
checksums rmd160 2445b7c3aab96e459bf8726963fbc7e203af7e6e \
sha256 3e31847a69a4e5c113b7c483731317ec4533858e3195d3a85026a0e2f509d2e4
patchfiles patch-CMakeLists.txt.diff \
patch-cppconn-CMakeLists.txt.diff \
patch-driver-CMakeLists.txt.diff \
patch-examples-examples.h.diff \
patch-examples-pthreads.cpp.diff \
patch-examples-standalone_example.cpp.diff \
patch-examples-standalone_example_docs1.cpp.diff \
patch-examples-standalone_example_docs2.cpp.diff
file copy -force ${filespath}/examples-CMakeLists.txt \
${worksrcpath}/examples/CMakeLists.txt
reinplace "s,@NAME@,/${subport},g" \
${worksrcpath}/CMakeLists.txt \
${worksrcpath}/cppconn/CMakeLists.txt \
${worksrcpath}/driver/CMakeLists.txt \
${worksrcpath}/examples/CMakeLists.txt
reinplace "s,@DBPORT@,/${mp.port},g" \
${worksrcpath}/examples/CMakeLists.txt \
${worksrcpath}/examples/examples.h
reinplace "s,@PREFIX@,/${prefix},g" \
${worksrcpath}/examples/CMakeLists.txt
-DCMAKE_INSTALL_NAME_DIR:STRING=${prefix}/lib/${subport}