Ticket #47290: digikam-mysql.diff

File digikam-mysql.diff, 1.0 KB (added by sk-public@…, 10 years ago)

Patch to digikam 4.8.0 for external mysql variant, rename current mysql_check

  • Portfile

    old new  
    163163    depends_lib-append port:lcms
    164164}
    165165
     166# Option to build external MySQL database support
     167
     168variant mysql_external description {Enable external MySQL database support} {}
     169
     170if {[variant_isset mysql_external]} {
     171    configure.args-append -DENABLE_MYSQLSUPPORT=ON
     172    depends_lib-append    path:bin/mysql_config:mysql56 \
     173} else {
     174    configure.args-append -DENABLE_MYSQLSUPPORT=OFF
     175}
     176
    166177# Option to check MySQL availability before compiling target
    167178
    168 variant mysql_check description {Check MySQL availability before building digiKam} {}
     179variant mysql_internal description {Enable support for internal MySQL database} {}
    169180
    170 if {[variant_isset mysql_check]} {
     181if {[variant_isset mysql_internal]} {
    171182    configure.args-append -DENABLE_INTERNALMYSQL=on
    172 
    173     depends_lib-append    path:bin/mysql_config5:mysql5 \
     183    depends_lib-append    path:bin/mysql_config:mysql56 \
    174184} else {
    175185    configure.args-append -DENABLE_INTERNALMYSQL=off
    176186}