source: trunk/dports/kde/digikam/Portfile

Last change on this file was 135782, checked in by larryv@…, 2 years ago

digikam: Update to 4.9.0 (#47623)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.3 KB
Line 
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 135782 2015-05-03 00:08:42Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           kde4 1.1
6PortGroup           compiler_blacklist_versions 1.0
7
8name                digikam
9version             4.9.0
10categories          kde kde4
11license             GPL-2+
12maintainers         hyper-world.de:jan openmaintainer \
13                    gmail.com:caulier.gilles
14platforms           darwin
15
16description         Photo Management Programme
17long_description    Digital photo management programme to import, organise, enhance, search and export your digital images.
18
19homepage            http://www.digikam.org/
20master_sites        kde:stable/digikam/
21
22checksums           rmd160  72e680f932aca65fe0d59a5c313b1d7950ec29ef \
23                    sha256  fa24591d183e1a782e053bfca43bb91149465d0f5e49926c7d6dd16f6321f07f
24
25use_bzip2           yes
26
27# List of whole dependencies ###############################################
28
29# Dependencies of digiKam and Kipi-plugins
30
31depends_lib-append  port:kdelibs4 \
32                    port:kdepimlibs4 \
33                    port:qt4-mac \
34                    port:tiff \
35                    port:jpeg \
36                    port:libpng \
37                    port:opencv \
38                    port:marble
39depends_lib-append  port:libpgf
40
41# Dependencies of kipi-plugins
42
43depends_lib-append  port:expat\
44                    port:gdk-pixbuf2 \
45                    port:libgpod \
46                    port:libxml2 \
47                    port:libxslt \
48                    port:qca \
49                    port:qjson \
50                    port:ImageMagick \
51                    path:include/eigen3/Eigen/Eigen:eigen3
52
53# Dependencies of digiKam
54
55depends_lib-append  port:boost \
56                    port:gettext \
57                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
58                    port:lensfun \
59                    port:libgphoto2 \
60                    port:liblqr \
61                    port:libusb \
62                    port:jasper \
63                    port:shared-desktop-ontologies
64
65# RunTime dependencies
66
67depends_run-append  port:kde4-baseapps \
68                    port:kde4-runtime \
69                    port:oxygen-icons \
70                    port:qt4-mac-sqlite3-plugin
71# Following dependency is needed for the Panorama (and ExpoBlending?) tool, but
72# cannot be installed on Intel Macs currently as far as I know. Also they need
73# wxWidgets which currently cannot be installed with XCode of OS X 10.7 or
74# newer.
75# RJVB 20140918: hugin needs wxWidgets 3 nowadays, which introduces a dependency to another GUI framework. Users who
76# want the Panorama tool can install hugin-app manually and then build digikam from source
77# (or we could add yet another variant)
78#                   port:hugin-app \
79
80# kde4-baseapps is not universal
81universal_variant   no
82
83# gcc-4.0 is also blacklisted for opencv
84# clang stumbles over CV_XADD macro, see #37184
85compiler.blacklist  gcc-4.0
86compiler.blacklist-append   {clang < 318}
87
88# Configurations rules to compile fine #####################################
89
90# 20140918: do we really need to specify the CMAKE_MODULE_PATH nowadays?
91# -DCMAKE_MODULE_PATH=\"${prefix}/share/cmake-2.8/Modules\;${prefix}/share/cmake/modules\" \
92# We do need to add ENABLE_KDEPIMLIBSSUPPORT though, otherwise the dependency on kdepimlibs4 is
93# there for nothing!
94# There also appears to be no (more) need to force-defined __KDE_HAVE_GCC_VISIBILITY
95# -DCMAKE_CXX_FLAGS='-D__KDE_HAVE_GCC_VISIBILITY'
96#-DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\"
97#-DCMAKE_PREFIX_PATH=\"${prefix}/lib/cmake\"
98#-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
99
100configure.args-append -DENABLE_KDEPIMLIBSSUPPORT:BOOL=ON \
101                      -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 \
104                      -Wno-dev \
105                      ../${distname}
106
107# Optional compilation options #############################################
108
109# Option to include debug symbols in compiled target
110
111if {[variant_isset debug]} {
112    configure.args-append -DCMAKE_BUILD_TYPE=debugfull
113} 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
117}
118
119# Option to compile handbook
120
121if {[variant_isset docs]} {
122    configure.args-append -DDIGIKAMSC_COMPILE_DOC=on
123} else {
124    configure.args-append -DDIGIKAMSC_COMPILE_DOC=off
125}
126
127# Option to compile GUI translations
128
129variant translations description {Build digiKam GUI translations} {}
130
131if {[variant_isset translations]} {
132    configure.args-append -DDIGIKAMSC_COMPILE_PO=ON
133} else {
134    configure.args-append -DDIGIKAMSC_CHECKOUT_PO:BOOL=OFF -DDIGIKAMSC_COMPILE_PO=off
135}
136
137# Option to compile target using internal implementation of KdeGraphics shared libs maintained by digiKam team
138
139variant use_private_libs description {Build digiKam with internal KDEGraphics libs} {}
140
141if {[variant_isset use_private_libs]} {
142    configure.args-append -DDIGIKAMSC_USE_PRIVATE_KDEGRAPHICS=on
143} else {
144    configure.args-append -DDIGIKAMSC_USE_PRIVATE_KDEGRAPHICS=off
145
146    depends_lib-append port:libkdcraw \
147                       port:libkexiv2 \
148                       port:libkipi \
149                       port:libksane
150}
151
152# Option to compile target with LCMS shared lib version 2 instead of version 1
153
154variant lcms2 description {Build digiKam with LCMS2 shared libs instead of LCMS1} {}
155
156if {[variant_isset lcms2]} {
157    configure.args-append -DENABLE_LCMS2=on
158
159    depends_lib-append port:lcms2
160} else {
161    configure.args-append -DENABLE_LCMS2=off
162
163    depends_lib-append port:lcms
164}
165
166# Option to check MySQL availability before compiling target
167
168variant mysql_check description {Check MySQL availability before building digiKam} {}
169
170if {[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
176}
177
178livecheck.type      regex
179livecheck.url       http://kde-apps.org/content/show.php/digiKam+Software+Collection?content=137059
180livecheck.regex     "digiKam Software Collection.*(4\\.\\d+?(\\.\\d+))"
181
Note: See TracBrowser for help on using the repository browser.