1SUMMARY="Photo processor for RAW and Bitmap images" 2DESCRIPTION="Photivo is a free and open source (GPL3) photo processor. 3It handles your RAW files as well as your bitmap files (TIFF, JPEG, BMP, PNG and many more) \ 4in a non-destructive 16 bit processing pipe with gimp workflow integration and batch mode. 5 6Photivo tries to provide the best algorithms available; even if this implies some redundancy. \ 7So, to my knowledge, it offers the most flexible and powerful denoise, sharpen and local contrast \ 8(fake HDR) algorithms in the open source world. (If not, let's port them ;-)) Although, to get \ 9the desired results, there may be a quite steep learning curve ;-). 10 11Photivo is just a developer, no manager and no ���Gimp���. \ 12It is intended to be used in a workflow together with digiKam/F-Spot/Shotwell and Gimp. \ 13It needs a quite strong computer and is not aimed at beginners." 14HOMEPAGE="http://www.photivo.org" 15COPYRIGHT="2004-2007 Jeremy Ruston, 16 2007-2020, UnaMesa Association" 17LICENSE="GNU GPL v3" 18REVISION="4" 19srcGitRevision="b8210572f022" 20SOURCE_URI="https://bitbucket.org/Photivo/photivo/get/$srcGitRevision.tar.bz2" 21CHECKSUM_SHA256="0086c2b4f57bf58295812385edb5f9299c21266fd71c1ba8bd482da7a28e400b" 22SOURCE_DIR="Photivo-photivo-$srcGitRevision" 23 24PATCHES="photivo-$portVersion.patchset" 25ADDITIONAL_FILES=" 26 photivo.rdef.in 27 haikuicons.zip 28 " 29 30ARCHITECTURES="all !x86_gcc2" 31SECONDARY_ARCHITECTURES="x86" 32 33PROVIDES=" 34 photivo$secondaryArchSuffix = $portVersion 35 app:Photivo$secondaryArchSuffix = $portVersion 36 " 37REQUIRES=" 38 haiku$secondaryArchSuffix 39 lib:libexiv2$secondaryArchSuffix 40 lib:libfftw3$secondaryArchSuffix 41 lib:libGL$secondaryArchSuffix 42 lib:libglib_2.0$secondaryArchSuffix 43 lib:libgomp$secondaryArchSuffix 44 lib:libGraphicsMagick$secondaryArchSuffix 45 lib:libGraphicsMagickWand$secondaryArchSuffix 46 lib:libiconv$secondaryArchSuffix 47 lib:libintl$secondaryArchSuffix 48 lib:libjpeg$secondaryArchSuffix 49 lib:liblensfun$secondaryArchSuffix 50 lib:liblcms2$secondaryArchSuffix 51 lib:liblqr_1$secondaryArchSuffix 52 lib:libpugixml$secondaryArchSuffix 53 lib:libQt5Core$secondaryArchSuffix 54 lib:libQt5Gui$secondaryArchSuffix 55 lib:libQt5Network$secondaryArchSuffix 56 lib:libQt5Widgets$secondaryArchSuffix 57 lib:libraw$secondaryArchSuffix 58 lib:libtiff$secondaryArchSuffix 59 lib:libxml2$secondaryArchSuffix 60 lib:libz$secondaryArchSuffix 61 " 62 63BUILD_REQUIRES=" 64 haiku${secondaryArchSuffix}_devel 65 devel:libexiv2$secondaryArchSuffix 66 devel:libfftw3$secondaryArchSuffix 67 devel:libGL$secondaryArchSuffix 68 devel:libglib_2.0$secondaryArchSuffix 69 devel:libGraphicsMagick$secondaryArchSuffix 70 devel:libGraphicsMagickWand$secondaryArchSuffix 71 devel:libiconv$secondaryArchSuffix 72 devel:libjpeg$secondaryArchSuffix 73 devel:liblensfun$secondaryArchSuffix 74 devel:liblcms2$secondaryArchSuffix 75 devel:liblqr_1$secondaryArchSuffix 76 devel:libopencv_core$secondaryArchSuffix 77 devel:libpugixml$secondaryArchSuffix 78 devel:libQt5Core$secondaryArchSuffix 79 devel:libQt5Gui$secondaryArchSuffix 80 devel:libQt5Network$secondaryArchSuffix 81 devel:libQt5Widgets$secondaryArchSuffix 82 devel:libraw$secondaryArchSuffix 83 devel:libtiff$secondaryArchSuffix 84 devel:libxml2$secondaryArchSuffix 85 devel:libz$secondaryArchSuffix 86 " 87 88BUILD_PREREQUIRES=" 89 cmd:cmake 90 cmd:g++$secondaryArchSuffix 91 cmd:gm$secondaryArchSuffix 92 cmd:lrelease$secondaryArchSuffix >= 5 93 cmd:make 94 cmd:pkg_config$secondaryArchSuffix 95 cmd:which 96 cmd:unzip 97 " 98 99PATCH() 100{ 101 unzip -o $sourceDir/../../additional-files/haikuicons.zip -d $sourceDir/qrc/dark/icons 102} 103 104BUILD() 105{ 106 mkdir -p build 107 cd build 108 cmake .. \ 109 -DCMAKE_BUILD_TYPE=Release \ 110 -DWITH_X3F=OFF \ 111 -DWITH_GIMP=OFF \ 112 -DCMAKE_INSTALL_PREFIX=$appsDir/Photivo 113 114 export DISABLE_ASLR=1 115 # multi-job takes too much memory 116 make 117} 118 119INSTALL() 120{ 121 cd build 122 make install 123 124 mv $appsDir/Photivo/bin/photivo $appsDir/Photivo/Photivo 125 mv $appsDir/Photivo/share/photivo/* $appsDir/Photivo 126 rm -rf $appsDir/Photivo/{bin,share,pixmaps,applications} 127 128 local APP_SIGNATURE="application/x-vnd.photivo" 129 local LONG_INFO="$SUMMARY" 130 sed \ 131 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 132 -e "s|@LONG_INFO@|$LONG_INFO|" \ 133 $portDir/additional-files/photivo.rdef.in > photivo.rdef 134 135 addResourcesToBinaries photivo.rdef $appsDir/Photivo/Photivo 136 137 addAppDeskbarSymlink $appsDir/Photivo/Photivo 138} 139