Ticket #48081: digikam.diff

File digikam.diff, 7.3 KB (added by RJVB (René Bertin), 8 years ago)

diff against current digiKam portfile

  • Portfile

    old new  
    11# -*- 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
    2 # $Id: Portfile 135782 2015-05-03 00:08:42Z larryv@macports.org $
     2# $Id: Portfile 123279 2014-08-07 22:29:18Z ryandesign@macports.org $
    33
    44PortSystem          1.0
    55PortGroup           kde4 1.1
    66PortGroup           compiler_blacklist_versions 1.0
     7PortGroup           active_variants 1.1
     8PortGroup           locale_select 1.0
    79
    810name                digikam
    9 version             4.9.0
     11version             4.14.0
     12revision            1
    1013categories          kde kde4
    1114license             GPL-2+
    1215maintainers         hyper-world.de:jan openmaintainer \
     
    1720long_description    Digital photo management programme to import, organise, enhance, search and export your digital images.
    1821
    1922homepage            http://www.digikam.org/
    20 master_sites        kde:stable/digikam/
    2123
    22 checksums           rmd160  72e680f932aca65fe0d59a5c313b1d7950ec29ef \
    23                     sha256  fa24591d183e1a782e053bfca43bb91149465d0f5e49926c7d6dd16f6321f07f
     24# 4.14.0 exists but is missing a number of external libraries that don't exist as ports.
     25# we get those from the 4.13.0 tarball. Those libraries do exist as standalone projects
     26# nowadays, but as long as they're only used by digikam it makes little sense to provide
     27# them through their own ports.
     28
     29set extradist       ${name}-4.13.0
     30
     31master_sites        kde:stable/digikam/:source \
     32                    kde:stable/digikam/${extradist}${extract.suffix}:extras
    2433
    2534use_bzip2           yes
    2635
     36distfiles           ${distname}${extract.suffix}:source \
     37                    ${extradist}${extract.suffix}:extras
     38
     39checksums           ${distname}${extract.suffix} \
     40                    rmd160  7ce933565fd1790bee26b9636476da528511c8a2 \
     41                    sha256  9d7bcb689d8c29be2e81976f0a043220f442a24f2071284044e7f1a799a7fdad \
     42                    ${extradist}${extract.suffix} \
     43                    rmd160  11d6aa15a94cd38acca79f2a31f65393a01a2b0b \
     44                    sha256  a37554cabe75b0dbdde79f12ea37f93ea4ec9b6d624a4bb15ffabaf81cd801e8 \
     45
     46# move the missing extras from ${extradist} into ${worksrcpath}/extra
     47# and then delete ${extradist}
     48post-extract {
     49    foreach l [glob -nocomplain ${workpath}/${extradist}/extra/lib*] {
     50        file rename ${l} ${worksrcpath}/extra/[file tail ${l}]
     51    }
     52    delete -force ${workpath}/${extradist}
     53}
     54
    2755# List of whole dependencies ###############################################
    2856
    2957# Dependencies of digiKam and Kipi-plugins
    3058
    3159depends_lib-append  port:kdelibs4 \
    32                     port:kdepimlibs4 \
    33                     port:qt4-mac \
     60                    path:lib/libkpimutils.4.dylib:kdepimlibs4 \
    3461                    port:tiff \
    3562                    port:jpeg \
    3663                    port:libpng \
     
    3865                    port:marble
    3966depends_lib-append  port:libpgf
    4067
     68require_active_variants opencv qt4
     69require_active_variants opencv contrib
     70
    4171# Dependencies of kipi-plugins
    4272
    4373depends_lib-append  port:expat\
     
    4575                    port:libgpod \
    4676                    port:libxml2 \
    4777                    port:libxslt \
    48                     port:qca \
    49                     port:qjson \
    5078                    port:ImageMagick \
    5179                    path:include/eigen3/Eigen/Eigen:eigen3
    5280
     
    6694
    6795depends_run-append  port:kde4-baseapps \
    6896                    port:kde4-runtime \
    69                     port:oxygen-icons \
    70                     port:qt4-mac-sqlite3-plugin
     97                    path:share/icons/oxygen/index.theme:oxygen-icons \
     98                    path:${qt_plugins_dir}/sqldrivers/libqsqlite.dylib:qt4-mac-sqlite3-plugin \
     99                    port:gstreamer1-gst-libav \
     100                    port:gstreamer1-gst-plugins-good
     101
    71102# Following dependency is needed for the Panorama (and ExpoBlending?) tool, but
    72103# cannot be installed on Intel Macs currently as far as I know. Also they need
    73104# wxWidgets which currently cannot be installed with XCode of OS X 10.7 or
     
    85116compiler.blacklist  gcc-4.0
    86117compiler.blacklist-append   {clang < 318}
    87118
     119# patchfiles-append   patch-no-vkontakte.diff
     120
    88121# Configurations rules to compile fine #####################################
    89122
    90123# 20140918: do we really need to specify the CMAKE_MODULE_PATH nowadays?
     
    99132
    100133configure.args-append -DENABLE_KDEPIMLIBSSUPPORT:BOOL=ON \
    101134                      -DOpenCV_DIR=${prefix}/lib/cmake \
    102                       -DDIGIKAMSC_COMPILE_LIBKGEOMAP:BOOL=ON -DDIGIKAMSC_COMPILE_LIBKVKONTAKTE:BOOL=ON \
    103                       -DDIGIKAMSC_COMPILE_LIBMEDIAWIKI:BOOL=ON -DDIGIKAMSC_COMPILE_LIBKFACE:BOOL=ON \
     135                      -DENABLE_OPENCV3:BOOL=ON \
     136                      -DDIGIKAMSC_COMPILE_LIBKGEOMAP:BOOL=ON \
     137                      -DDIGIKAMSC_COMPILE_LIBMEDIAWIKI:BOOL=ON \
    104138                      -Wno-dev \
    105139                      ../${distname}
    106140
     141# -DINCLUDE_INSTALL_DIR=${kde4.include_dirs}
     142configure.args-append \
     143                      -DDIGIKAMSC_COMPILE_LIBKFACE:BOOL=OFF \
     144                      -DDIGIKAMSC_COMPILE_LIBKVKONTAKTE:BOOL=ON
     145
    107146# Optional compilation options #############################################
    108147
    109148# Option to include debug symbols in compiled target
     
    111150if {[variant_isset debug]} {
    112151    configure.args-append -DCMAKE_BUILD_TYPE=debugfull
    113152} else {
    114     # RJVB: use RelWithDebInfo instead of releasewithdebug, and prevent stripping
    115     #configure.args-append -DCMAKE_BUILD_TYPE=releasewithdebug
    116     configure.args-append -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_STRIP:FILEPATH=/bin/echo
     153    # configure.args-append -DCMAKE_STRIP:FILEPATH=/bin/echo
    117154}
    118155
    119156# Option to compile handbook
     
    165202
    166203# Option to check MySQL availability before compiling target
    167204
    168 variant mysql_check description {Check MySQL availability before building digiKam} {}
     205set use_msql                no
     206configure.args-append       -DENABLE_INTERNALMYSQL=off -DENABLE_MYSQLSUPPORT=off
    169207
    170 if {[variant_isset mysql_check]} {
    171     configure.args-append -DENABLE_INTERNALMYSQL=on
    172 
    173     depends_lib-append    path:bin/mysql_config5:mysql5 \
    174 } else {
    175     configure.args-append -DENABLE_INTERNALMYSQL=off
     208variant mysql_check description {Check MySQL availability before building digiKam} {
     209    configure.args-delete  -DENABLE_INTERNALMYSQL=off -DENABLE_MYSQLSUPPORT=off
     210    configure.args-append  -DENABLE_INTERNALMYSQL=on -DENABLE_MYSQLSUPPORT=on
     211    depends_lib-append      path:bin/mysql_config5:mysql5 \
     212    set use_msql            yes
     213}
     214variant mariadb description {Use MariaDB instead of MySQL} {
     215    configure.args-delete   -DENABLE_INTERNALMYSQL=off -DENABLE_MYSQLSUPPORT=off
     216    configure.args-append   -DENABLE_INTERNALMYSQL=on -DENABLE_MYSQLSUPPORT=on
     217    depends_lib-append      port:mariadb
     218    configure.env-append    MYSQLD_PATH=${prefix}/lib/mariadb/bin MYSQL_TOOLS_PATH=${prefix}/lib/mariadb/bin
     219    set use_msql            yes
     220}
     221
     222post-destroot {
     223    if {${use_msql}} {
     224        ln -s digikamdatabaseserver.app/Contents/MacOS/digikamdatabaseserver ${destroot}${prefix}/lib/kde4/libexec/digikamdatabaseserver
     225    }
    176226}
    177227
    178228livecheck.type      regex