source: trunk/dports/kde/digikam/Portfile @ 123279

Last change on this file since 123279 was 123279, checked in by ryandesign@…, 5 years ago

digikam: update to 4.0.0 (maintainer; #44104)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.5 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 123279 2014-08-07 22:29:18Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           kde4 1.1
6PortGroup           compiler_blacklist_versions 1.0
7
8name                digikam
9version             4.0.0
10categories          kde kde4
11license             GPL-2+
12maintainers         hyper-world.de:jan openmaintainer \
13                    gmail.com:caulier.gilles
14platforms           darwin
15
16description         Photo Management Program
17long_description    Digital photo management program to import, organize, enhance, search and export your digital images.
18
19homepage            http://www.digikam.org/
20master_sites        kde:stable/digikam/
21
22checksums           rmd160 1ffc3e164772d031ff4b017598265bcd1934b919 \
23                    sha256 984f7a47a3fdd5b5b30991b436848ed420fbcfffa01ffaa3abdf7202848b17ae
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
39
40# Dependencies of kipi-plugins
41
42depends_lib-append  port:expat\
43                    port:gdk-pixbuf2 \
44                    port:libgpod \
45                    port:libxml2 \
46                    port:libxslt \
47                    port:qca \
48                    port:qjson \
49                    port:ImageMagick \
50                    path:include/eigen3/Eigen/Eigen:eigen3
51
52# Dependencies of digiKam
53
54depends_lib-append  port:boost \
55                    port:gettext \
56                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
57                    port:lensfun \
58                    port:libgphoto2 \
59                    port:liblqr \
60                    port:libusb \
61                    port:jasper \
62                    port:shared-desktop-ontologies
63
64# RunTime dependencies
65
66depends_run-append  port:kde4-baseapps \
67                    port:kde4-runtime \
68                    port:oxygen-icons \
69                    port:qt4-mac-sqlite3-plugin
70# Following dependencies are needed for Panorama and ExpoBlending tools, but
71# cannot be installed on Intel Macs currently as far as I know. Also they need
72# wxWidgets which currently cannot be installed with XCode of OS X 10.7 or
73# newer.
74#                   port:hugin-app \
75#                   port:enblend
76
77# kde4-baseapps is not universal
78universal_variant   no
79
80# gcc-4.0 is also blacklisted for opencv
81# clang stumbles over CV_XADD macro, see #37184
82compiler.blacklist  gcc-4.0
83compiler.blacklist-append   {clang < 318}
84
85# Configurations rules to compile fine #####################################
86
87configure.args-append -DCMAKE_C_FLAGS='-D__KDE_HAVE_GCC_VISIBILITY' \
88                      -DCMAKE_CXX_FLAGS='-D__KDE_HAVE_GCC_VISIBILITY' \
89                      -DCMAKE_SYSTEM_PREFIX_PATH=\"${prefix}\;/usr\" \
90                      -DCMAKE_MODULE_PATH=\"${prefix}/share/cmake-2.8/Modules\;${prefix}/share/cmake/modules\" \
91                      -DCMAKE_PREFIX_PATH=\"${prefix}/lib/cmake\" \
92                      -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
93                      -DOpenCV_DIR=${prefix}/lib/cmake \
94                      -Wno-dev \
95                      ../${distname}
96
97# Optional compilation options #############################################
98
99# Option to include debug symbols in compiled target
100
101if {[variant_isset debug]} {
102    configure.args-append -DCMAKE_BUILD_TYPE=debugfull
103} else {
104    configure.args-append -DCMAKE_BUILD_TYPE=releasewithdebug
105}
106
107# Option to compile handbook
108
109if {[variant_isset docs]} {
110    configure.args-append -DDIGIKAMSC_COMPILE_DOC=on
111} else {
112    configure.args-append -DDIGIKAMSC_COMPILE_DOC=off
113}
114
115# Option to compile GUI translations
116
117variant translations description {Build digiKam GUI translations} {}
118
119if {[variant_isset translations]} {
120    configure.args-append -DDIGIKAMSC_COMPILE_PO=on
121} else {
122    configure.args-append -DDIGIKAMSC_COMPILE_PO=off
123}
124
125# Option to compile target using internal implementation of KdeGraphics shared libs maintained by digiKam team
126
127variant use_private_libs description {Build digiKam with internal KDEGraphics libs} {}
128
129if {[variant_isset use_private_libs]} {
130    configure.args-append -DDIGIKAMSC_USE_PRIVATE_KDEGRAPHICS=on
131} else {
132    configure.args-append -DDIGIKAMSC_USE_PRIVATE_KDEGRAPHICS=off
133
134    depends_lib-append port:libkdcraw \
135                       port:libkexiv2 \
136                       port:libkipi \
137                       port:libksane
138}
139
140# Option to compile target with LCMS shared lib version 2 instead of version 1
141
142variant lcms2 description {Build digiKam with LCMS2 shared libs instead of LCMS1} {}
143
144if {[variant_isset lcms2]} {
145    configure.args-append -DENABLE_LCMS2=on
146
147    depends_lib-append port:lcms2
148} else {
149    configure.args-append -DENABLE_LCMS2=off
150
151    depends_lib-append port:lcms
152}
153
154# Option to check MySQL availability before compiling target
155
156variant mysql_check description {Check MySQL availability before building digiKam} {}
157
158if {[variant_isset mysql_check]} {
159    configure.args-append -DENABLE_INTERNALMYSQL=on
160
161    depends_lib-append    path:bin/mysql_config5:mysql5 \
162} else {
163    configure.args-append -DENABLE_INTERNALMYSQL=off
164}
165
166livecheck.type      regex
167livecheck.url       http://kde-apps.org/content/show.php/digiKam+Software+Collection?content=137059
168livecheck.regex     "digiKam Software Collection.*(4\\.\\d+?(\\.\\d+))"
169
Note: See TracBrowser for help on using the repository browser.