Ticket #48081: digikam.diff
File digikam.diff, 7.3 KB (added by RJVB (René Bertin), 8 years ago) |
---|
-
Portfile
old new 1 1 # -*- 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 1 35782 2015-05-03 00:08:42Z larryv@macports.org $2 # $Id: Portfile 123279 2014-08-07 22:29:18Z ryandesign@macports.org $ 3 3 4 4 PortSystem 1.0 5 5 PortGroup kde4 1.1 6 6 PortGroup compiler_blacklist_versions 1.0 7 PortGroup active_variants 1.1 8 PortGroup locale_select 1.0 7 9 8 10 name digikam 9 version 4.9.0 11 version 4.14.0 12 revision 1 10 13 categories kde kde4 11 14 license GPL-2+ 12 15 maintainers hyper-world.de:jan openmaintainer \ … … 17 20 long_description Digital photo management programme to import, organise, enhance, search and export your digital images. 18 21 19 22 homepage http://www.digikam.org/ 20 master_sites kde:stable/digikam/21 23 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 29 set extradist ${name}-4.13.0 30 31 master_sites kde:stable/digikam/:source \ 32 kde:stable/digikam/${extradist}${extract.suffix}:extras 24 33 25 34 use_bzip2 yes 26 35 36 distfiles ${distname}${extract.suffix}:source \ 37 ${extradist}${extract.suffix}:extras 38 39 checksums ${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} 48 post-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 27 55 # List of whole dependencies ############################################### 28 56 29 57 # Dependencies of digiKam and Kipi-plugins 30 58 31 59 depends_lib-append port:kdelibs4 \ 32 port:kdepimlibs4 \ 33 port:qt4-mac \ 60 path:lib/libkpimutils.4.dylib:kdepimlibs4 \ 34 61 port:tiff \ 35 62 port:jpeg \ 36 63 port:libpng \ … … 38 65 port:marble 39 66 depends_lib-append port:libpgf 40 67 68 require_active_variants opencv qt4 69 require_active_variants opencv contrib 70 41 71 # Dependencies of kipi-plugins 42 72 43 73 depends_lib-append port:expat\ … … 45 75 port:libgpod \ 46 76 port:libxml2 \ 47 77 port:libxslt \ 48 port:qca \49 port:qjson \50 78 port:ImageMagick \ 51 79 path:include/eigen3/Eigen/Eigen:eigen3 52 80 … … 66 94 67 95 depends_run-append port:kde4-baseapps \ 68 96 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 71 102 # Following dependency is needed for the Panorama (and ExpoBlending?) tool, but 72 103 # cannot be installed on Intel Macs currently as far as I know. Also they need 73 104 # wxWidgets which currently cannot be installed with XCode of OS X 10.7 or … … 85 116 compiler.blacklist gcc-4.0 86 117 compiler.blacklist-append {clang < 318} 87 118 119 # patchfiles-append patch-no-vkontakte.diff 120 88 121 # Configurations rules to compile fine ##################################### 89 122 90 123 # 20140918: do we really need to specify the CMAKE_MODULE_PATH nowadays? … … 99 132 100 133 configure.args-append -DENABLE_KDEPIMLIBSSUPPORT:BOOL=ON \ 101 134 -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 \ 104 138 -Wno-dev \ 105 139 ../${distname} 106 140 141 # -DINCLUDE_INSTALL_DIR=${kde4.include_dirs} 142 configure.args-append \ 143 -DDIGIKAMSC_COMPILE_LIBKFACE:BOOL=OFF \ 144 -DDIGIKAMSC_COMPILE_LIBKVKONTAKTE:BOOL=ON 145 107 146 # Optional compilation options ############################################# 108 147 109 148 # Option to include debug symbols in compiled target … … 111 150 if {[variant_isset debug]} { 112 151 configure.args-append -DCMAKE_BUILD_TYPE=debugfull 113 152 } 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 117 154 } 118 155 119 156 # Option to compile handbook … … 165 202 166 203 # Option to check MySQL availability before compiling target 167 204 168 variant mysql_check description {Check MySQL availability before building digiKam} {} 205 set use_msql no 206 configure.args-append -DENABLE_INTERNALMYSQL=off -DENABLE_MYSQLSUPPORT=off 169 207 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 208 variant 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 } 214 variant 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 222 post-destroot { 223 if {${use_msql}} { 224 ln -s digikamdatabaseserver.app/Contents/MacOS/digikamdatabaseserver ${destroot}${prefix}/lib/kde4/libexec/digikamdatabaseserver 225 } 176 226 } 177 227 178 228 livecheck.type regex