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

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

revbump ports depending on libpng following libpng 1.6.x update (#41842)

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