Ticket #46317: Portfile.patch
File Portfile.patch, 4.3 KB (added by eborisch (Eric A. Borisch), 10 years ago) |
---|
-
Portfile
6 6 PortGroup compiler_blacklist_versions 1.0 7 7 8 8 name digikam 9 version 4. 0.09 version 4.6.0 10 10 categories kde kde4 11 11 license GPL-2+ 12 12 maintainers hyper-world.de:jan openmaintainer \ … … 14 14 platforms darwin 15 15 16 16 description Photo Management Program 17 long_description Digital photo management program to import, organize, enhance, search and export your digital images. 17 long_description Digital photo management program to import, organize, \ 18 enhance, search and export your digital images. 18 19 19 20 homepage http://www.digikam.org/ 20 21 master_sites kde:stable/digikam/ 21 22 22 checksums rmd160 1ffc3e164772d031ff4b017598265bcd1934b919 \ 23 sha256 984f7a47a3fdd5b5b30991b436848ed420fbcfffa01ffaa3abdf7202848b17ae 23 checksums \ 24 rmd160 f1c6a0108b7bdd3b3301bf96de48b66a89a7dc1d \ 25 sha256 b047a3172203e036c35f73dbb93cc7e71408c05bedaa8f7f1e0cc539a355a345 24 26 25 27 use_bzip2 yes 26 28 29 patchfiles find-ColorSync-profiles.patch \ 30 patch-dimg-rotate.diff 31 27 32 # List of whole dependencies ############################################### 28 33 29 34 # Dependencies of digiKam and Kipi-plugins … … 34 39 port:tiff \ 35 40 port:jpeg \ 36 41 port:libpng \ 37 port:opencv \ 38 port:marble 42 port:libpgf 39 43 40 44 # Dependencies of kipi-plugins 41 45 … … 47 51 port:qca \ 48 52 port:qjson \ 49 53 port:ImageMagick \ 50 path:include/eigen3/Eigen/Eigen:eigen3 54 path:include/eigen3/Eigen/Eigen:eigen3 \ 55 port:libkdcraw \ 56 port:libkexiv2 \ 57 port:libkipi \ 58 port:libksane 51 59 52 60 # Dependencies of digiKam 53 61 … … 82 90 compiler.blacklist gcc-4.0 83 91 compiler.blacklist-append {clang < 318} 84 92 93 post-patch { 94 reinplace "s|%%PREFIX%%|${prefix}|g" \ 95 core/libs/dimg/filters/icc/iccprofile.cpp 96 } 97 85 98 # Configurations rules to compile fine ##################################### 86 99 87 configure.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 \ 100 configure.args-append -DOpenCV_DIR=${prefix}/lib/cmake \ 101 -DENABLE_KDEPIMLIBSSUPPORT=ON \ 102 -DDIGIKAMSC_COMPILE_LIBKIPI=OFF \ 103 -DDIGIKAMSC_COMPILE_LIBKEXIV2=OFF \ 104 -DDIGIKAMSC_COMPILE_LIBKDCRAW=OFF \ 105 -DDIGIKAMSC_COMPILE_LIBKSANE=OFF \ 94 106 -Wno-dev \ 95 107 ../${distname} 96 108 … … 127 139 variant use_private_libs description {Build digiKam with internal KDEGraphics libs} {} 128 140 129 141 if {[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 142 configure.args-append \ 143 -DDIGIKAMSC_COMPILE_LIBKFACE=ON \ 144 -DDIGIKAMSC_COMPILE_LIBKGEOMAP=ON \ 145 -DDIGIKAMSC_COMPILE_LIBMEDIAWIKI=ON \ 146 -DDIGIKAMSC_COMPILE_LIBKVKONTAKTE=ON 147 148 depends_lib-append port:opencv \ 149 port:marble \ 150 port:qjson 151 } else { 152 configure.args-append \ 153 -DDIGIKAMSC_COMPILE_LIBKFACE=OFF \ 154 -DDIGIKAMSC_COMPILE_LIBKGEOMAP=OFF \ 155 -DDIGIKAMSC_COMPILE_LIBMEDIAWIKI=OFF \ 156 -DDIGIKAMSC_COMPILE_LIBKVKONTAKTE=OFF 138 157 } 139 158 140 159 # Option to compile target with LCMS shared lib version 2 instead of version 1