Ticket #47290: digikam-mysql-2015-04-14.diff

File digikam-mysql-2015-04-14.diff, 1.8 KB (added by sk-public@…, 10 years ago)

Includes variants for mysql51, 55, 56, and mariadb external databases, and renames mysql_check to mysql_internal.

  • Portfile

    old new  
    163163    depends_lib-append port:lcms
    164164}
    165165
    166 # Option to check MySQL availability before compiling target
     166# Option to enable internal MySQL server
    167167
    168 variant mysql_check description {Check MySQL availability before building digiKam} {}
     168variant mysql_internal description {Enable support for internal MySQL database} {}
    169169
    170 if {[variant_isset mysql_check]} {
     170if {[variant_isset mysql_internal]} {
    171171    configure.args-append -DENABLE_INTERNALMYSQL=on
    172 
    173     depends_lib-append    path:bin/mysql_config5:mysql5 \
     172    depends_lib-append    path:bin/mysql_config:mysql5 \
    174173} else {
    175174    configure.args-append -DENABLE_INTERNALMYSQL=off
    176175}
    177176
     177# Options to build external MySQL database support
     178
     179variant mysql51_external \
     180    description {Enable external MySQL 5.1 database support} {
     181    configure.args-append -DENABLE_MYSQLSUPPORT=ON
     182    depends_lib-append    port:qt4-mac-mysql51-plugin
     183}
     184
     185variant mysql55_external \
     186    description {Enable external MySQL 5.5 database support} {
     187    configure.args-append -DENABLE_MYSQLSUPPORT=ON
     188    depends_lib-append    port:qt4-mac-mysql55-plugin
     189}
     190
     191variant mysql56_external \
     192    description {Enable external MySQL 5.6 database support} {
     193    configure.args-append -DENABLE_MYSQLSUPPORT=ON
     194    depends_lib-append    port:qt4-mac-mysql56-plugin
     195}
     196
     197variant mariadb_external \
     198    description {Enable external MySQL database support using MariaDB 5.5} {
     199    configure.args-append -DENABLE_MYSQLSUPPORT=ON
     200    depends_lib-append    port:qt4-mac-mariadb-plugin
     201}
     202
    178203livecheck.type      regex
    179204livecheck.url       http://kde-apps.org/content/show.php/digiKam+Software+Collection?content=137059
    180205livecheck.regex     "digiKam Software Collection.*(4\\.\\d+?(\\.\\d+))"