Ticket #38706: Portfile-digikam.diff
File Portfile-digikam.diff, 6.5 KB (added by jgosmann (Jan Gosmann), 11 years ago) |
---|
-
Portfile
old new 6 6 PortGroup compiler_blacklist_versions 1.0 7 7 8 8 name digikam 9 version 3. 1.09 version 3.2.0 10 10 revision 0 11 11 categories kde kde4 12 12 license GPL-2+ 13 maintainers hyper-world.de:jan openmaintainer 13 maintainers hyper-world.de:jan openmaintainer \ 14 gmail.com:caulier.gilles 14 15 platforms darwin 15 16 16 17 description Photo Management Program 17 18 long_description Digital photo management program to import, organize, enhance, search and export your digital images. 18 19 19 20 homepage http://www.digikam.org/ 20 master_sites http://download.kde.org/stable/digikam21 master_sites kde:stable/digikam/ 21 22 22 checksums \ 23 rmd160 511550a7ee37aac958a0d2e5afaa0a07aa1eab0e \ 24 sha256 f70fc84f3a680a855642fcc4664710116406bbe4068b0ad4d2cfb4127684c2aa 23 checksums rmd160 9bec9eff889a9bf90e898ad52dfb1cfd50d1d548 \ 24 sha256 bd7204d42c4ef73f22e757ba5daa334073bd02ccc054c31780786d2b1a2a481a 25 25 26 26 use_bzip2 yes 27 27 28 patchfiles extra_kipi-plugins_CMakeLists.txt.patch 28 # List of whole dependencies ############################################### 29 30 # Dependencies of digiKam and Kipi-plugins 29 31 30 # Dependencies of Digikam and kipi-plugins.31 32 depends_lib-append port:kdelibs4 \ 32 port:libkdcraw \33 port:libkexiv2 \34 port:libkipi \35 port:libpng \36 port:qt4-mac \37 33 port:kdepimlibs4 \ 38 port:tiff 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 39 42 40 # Dependencies of kipi-plugins.41 43 depends_lib-append port:expat\ 42 44 port:gdk-pixbuf2 \ 43 port:jpeg \44 45 port:libgpod \ 45 port:libksane \46 46 port:libxml2 \ 47 47 port:libxslt \ 48 port:marble \49 port:opencv \50 48 port:qca \ 51 port:qjson 49 port:qjson \ 50 port:ImageMagick \ 51 port:eigen3 52 52 53 53 # opencv is not universal 54 54 55 universal_variant no 55 56 56 # Dependencies of Digikam. 57 # Dependencies of digiKam 58 57 59 depends_lib-append port:boost \ 58 60 port:gettext \ 59 61 path:lib/pkgconfig/glib-2.0.pc:glib2 \ 60 port:lcms \61 62 port:lensfun \ 62 63 port:libgphoto2 \ 63 64 port:liblqr \ 64 65 port:libusb \ 65 66 port:jasper \ 66 path:bin/mysql_config5:mysql5 \67 67 port:shared-desktop-ontologies 68 68 69 depends_run-append port:oxygen-icons port:qt4-mac-sqlite3-plugin 69 # RunTime dependencies 70 71 depends_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 70 81 71 82 # gcc-4.0 is also blacklisted for opencv 83 # clang stumbles over CV_XADD macro, see #37184 72 84 compiler.blacklist gcc-4.0 73 85 compiler.blacklist-append {clang < 318} 74 86 75 configure.args-append \ 76 -DOpenCV_DIR=${prefix}/lib/cmake \ 77 -DDIGIKAMSC_USE_PRIVATE_KDEGRAPHICS=off \ 78 -DCMAKE_BUILD_TYPE=release \ 79 ../${distname} 87 # Configurations rules to compile fine ##################################### 88 89 configure.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 103 if {[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 111 if {[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 119 variant translations description {Build digiKam GUI translations} {} 120 121 if {[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 129 variant use_private_libs description {Build digiKam with internal KDEGraphics libs} {} 130 131 if {[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 144 variant lcms2 description {Build digiKam with LCMS2 shared libs instead LCMS1} {} 145 146 if {[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 158 variant mysql_check description {Check MySql availability before to build digiKam} {} 159 160 if {[variant_isset mysql_check]} { 161 configure.args-append -DENABLE_INTERNALMYSQL=on 80 162 163 depends_lib-append path:bin/mysql_config5:mysql5 \ 164 } else { 165 configure.args-append -DENABLE_INTERNALMYSQL=off 166 }