[98336] trunk/dports/aqua
michaelld at macports.org
michaelld at macports.org
Tue Oct 2 18:53:59 PDT 2012
Revision: 98336
http://trac.macports.org//changeset/98336
Author: michaelld at macports.org
Date: 2012-10-02 18:53:59 -0700 (Tue, 02 Oct 2012)
Log Message:
-----------
qt4-mac-sqlite2-plugin : new port for the qt4-mac sqlite2 plugin.
Added Paths:
-----------
trunk/dports/aqua/qt4-mac-sqlite2-plugin/
trunk/dports/aqua/qt4-mac-sqlite2-plugin/Portfile
Added: trunk/dports/aqua/qt4-mac-sqlite2-plugin/Portfile
===================================================================
--- trunk/dports/aqua/qt4-mac-sqlite2-plugin/Portfile (rev 0)
+++ trunk/dports/aqua/qt4-mac-sqlite2-plugin/Portfile 2012-10-03 01:53:59 UTC (rev 98336)
@@ -0,0 +1,122 @@
+# -*- 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
+# $Id: Portfile 97961 2012-09-21 01:16:18Z michaelld at macports.org $
+
+PortSystem 1.0
+
+# use the qt4 group; set 'building_qt4' so that the portgroup
+# does not include certain parts
+set building_qt4 1
+PortGroup qt4 1.0
+PortGroup xcodeversion 1.0
+
+name qt4-mac-sqlite2-plugin
+version 4.8.3
+categories aqua databases
+platforms macosx
+maintainers michaelld pixilla openmaintainer
+license {LGPL-2.1 GPL-3}
+
+homepage http://qt.nokia.com/
+
+master_sites trolltech
+distname qt-everywhere-opensource-src-${version}
+
+checksums sha1 bc352a283610e0cd2fe0dbedbc45613844090fcb \
+ rmd160 fe56e5da874503a79d6f84a1e15460eba5a6feae
+
+dist_subdir qt4-mac
+depends_lib-append port:qt4-mac
+
+set DB sqlite2
+set DRIVER src/sql/drivers/${DB}
+set PLUGIN src/plugins/sqldrivers/${DB}
+
+extract.post_args | tar -xf - \
+ ${distname}/${DRIVER} \
+ ${distname}/${PLUGIN} \
+ ${distname}/src/plugins/sqldrivers/qsqldriverbase.pri \
+ ${distname}/src/plugins/qpluginbase.pri \
+ ${distname}/src/qt_targets.pri \
+ ${distname}/include/QtSql/private \
+ ${distname}/src/sql/kernel
+
+configure.dir ${worksrcpath}/${PLUGIN}
+configure.env-append \
+ QMAKESPEC=${qt_mkspecs_dir}/macx-g++
+configure.cmd ${qt_qmake_cmd}
+configure.pre_args PREFIX=${prefix}
+
+if {[variant_isset universal]} {
+
+ configure.universal_args-delete --disable-dependency-tracking
+}
+
+set mp.ports {sqlite2}
+foreach mp.port ${mp.ports} {
+
+ lappend mp.names "qt4-mac-${mp.port}-plugin"
+}
+foreach mp.name ${mp.names} {
+
+ set idx [lsearch ${mp.names} ${mp.name}]
+ set mp.port [lindex ${mp.ports} $idx]
+ set mp.conflicts [lreplace ${mp.names} $idx $idx]
+
+ if {[string compare ${mp.name} ${name}] == 0 && [string compare ${mp.name} ${subport}] == 0} {
+
+ description Qt sqlite database plugin for ${mp.port}
+ long_description ${description}
+ conflicts-append ${mp.conflicts}
+ depends_lib-append port:${mp.port}
+ configure.args INCLUDEPATH+=${worksrcpath}/include \
+ LIBS+="-L${prefix}/lib -lsqlite"
+ configure.post_args sqlite2.pro
+
+ variant debug description {Build both release and debug plugin} {}
+
+ pre-configure {
+ configure.args-append CONFIG+=\"${qt_arch_types}\"
+ }
+
+ post-patch {
+ if {![variant_isset debug]} {
+ reinplace "s at debug_and_release@release@" \
+ ${worksrcpath}/src/plugins/qpluginbase.pri
+ }
+ }
+
+ } else {
+
+ subport ${mp.name} {
+
+ description Qt sqlite database plugin for ${mp.port}
+ long_description ${description}
+ conflicts-append ${mp.conflicts}
+ depends_lib-append port:${mp.port}
+ configure.args INCLUDEPATH+=${worksrcpath}/include \
+ LIBS+="-L${prefix}/lib -lsqlite"
+ configure.post_args sqlite2.pro
+
+ variant debug description \
+ {Build both release and debug plugin} {}
+
+ pre-configure {
+ configure.args-append CONFIG+=\"${qt_arch_types}\"
+ }
+
+ post-patch {
+ if {![variant_isset debug]} {
+ reinplace "s at debug_and_release@release@" \
+ ${worksrcpath}/src/plugins/qpluginbase.pri
+ }
+ }
+ }
+ }
+}
+
+build.dir ${worksrcpath}/${PLUGIN}
+build.target {}
+
+livecheck.type regex
+livecheck.url http://get.qt.nokia.com/qt/source/
+livecheck.regex "qt-everywhere-opensource-src-(\[0-9a-z.-\]+)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121002/5199144a/attachment.html>
More information about the macports-changes
mailing list