# -*- 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
# use the qt4 group (indirectly via the qmake PortGroup); set
# 'building_qt4' so that the portgroup does not include certain parts
PortGroup xcodeversion 1.0
name qt4-mac-sqlite2-plugin
set branch [join [lrange [split ${version} .] 0 1] .]
categories aqua databases
maintainers {michaelld @michaelld} openmaintainer
homepage http://www.qt.io/
master_sites http://download.qt.io/official_releases/qt/${branch}/${version}/
distname qt-everywhere-opensource-src-${version}
checksums rmd160 afb5e5a99388e6429faca59cb5000054feffd166 \
sha256 e2882295097e47fe089f8ac741a95fef47e0a73a3f3cdf21b56990638f626ea0
# when using 'building_qt4' and qmake, have to include dependency on qt4-mac
depends_lib-append port:qt4-mac
if {${name} == ${subport}} {
description Qt sqlite database plugin for sqlite2
long_description ${description}
conflicts-append qt4-mac-sqlite3-plugin
depends_lib-append port:sqlite2
INCLUDEPATH+=${worksrcpath}/include \
LIBS+="-L${prefix}/lib -lsqlite"
configure.post_args sqlite2.pro
variant debug description {Build both release and debug plugin} {}
configure.args-append CONFIG+=\"${qt_arch_types}\"
if {![variant_isset debug]} {
reinplace "s@debug_and_release@release@" \
${worksrcpath}/src/plugins/qpluginbase.pri