1SUMMARY="An image viewer and organizer built with Qt and Exiv2" 2DESCRIPTION="Phototonic features: 3* Support for common image formats and GIF animation 4* Supports tagging images, and filtering images by tags (IPTC) 5* Browse thumbnails recursively down a folder tree 6* Dynamic thumbnails loading 7* Image transformation and color manipulation 8* Display image information and metadata 9* Does not depend on any desktop environment." 10HOMEPAGE="https://github.com/oferkv/phototonic" 11COPYRIGHT="2015-2018 Ofer Kashayov 12 2015-2018 Christopher Roy Bratusek 13 2015-2018 Krzysztof Pyrkosz 14 2015-2018 Roman Chistokhodov 15 2015-2018 Thomas L��bking 16 2015-2018 Tung Le 17 2015-2018 Peter Mattern" 18LICENSE="GNU GPL v3" 19REVISION="1" 20SOURCE_URI="https://github.com/oferkv/phototonic/archive/v$portVersion.tar.gz" 21CHECKSUM_SHA256="a8b2dbc81750efabb65a4732b1704641afd4a4f772ef9c90817871ca2a52f5ef" 22SOURCE_FILENAME="phototonic-$portVersion.tar.gz" 23PATCHES="phototonic-$portVersion.patchset" 24ADDITIONAL_FILES="phototonic.rdef.in" 25 26ARCHITECTURES="all !x86_gcc2" 27if [ "$targetArchitecture" = x86_gcc2 ]; then 28SECONDARY_ARCHITECTURES="x86" 29fi 30 31USER_SETTINGS_FILES=" 32 settings/Phototonic directory 33 " 34 35PROVIDES=" 36 phototonic$secondaryArchSuffix = $portVersion 37 app:Phototonic = $portVersion 38 " 39REQUIRES=" 40 haiku$secondaryArchSuffix 41 lib:libexiv2$secondaryArchSuffix 42 lib:libexpat$secondaryArchSuffix 43 lib:libGL$secondaryArchSuffix 44 lib:libiconv$secondaryArchSuffix 45 lib:libintl$secondaryArchSuffix 46 lib:libQt5Core$secondaryArchSuffix 47 lib:libQt5Gui$secondaryArchSuffix 48 lib:libQt5Widgets$secondaryArchSuffix 49 lib:libz$secondaryArchSuffix 50 " 51 52BUILD_REQUIRES=" 53 haiku${secondaryArchSuffix}_devel 54 devel:libexiv2$secondaryArchSuffix 55 devel:libexpat$secondaryArchSuffix 56 devel:libGL$secondaryArchSuffix 57 devel:libiconv$secondaryArchSuffix 58 devel:libintl$secondaryArchSuffix 59 devel:libQt5Core$secondaryArchSuffix 60 devel:libQt5Gui$secondaryArchSuffix 61 devel:libQt5Widgets$secondaryArchSuffix 62 devel:libz$secondaryArchSuffix 63 " 64BUILD_PREREQUIRES=" 65 cmd:gcc$secondaryArchSuffix 66 cmd:make 67 cmd:qmake$secondaryArchSuffix >= 5 68 " 69 70BUILD() 71{ 72 qmake 73 make $jobArgs 74} 75 76INSTALL() 77{ 78 mkdir -p $appsDir 79 cp Phototonic $appsDir 80 local APP_SIGNATURE="application/x-vnd.Phototonic" 81 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 82 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 83 local MINOR="`echo "$portVersion" | cut -d. -f3`" 84 local LONG_INFO="$SUMMARY" 85 sed \ 86 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 87 -e "s|@MAJOR@|$MAJOR|" \ 88 -e "s|@MIDDLE@|$MIDDLE|" \ 89 -e "s|@MINOR@|${MINOR:-0}|" \ 90 -e "s|@LONG_INFO@|$LONG_INFO|" \ 91 $portDir/additional-files/phototonic.rdef.in > phototonic.rdef 92 addResourcesToBinaries phototonic.rdef $appsDir/Phototonic 93 addAppDeskbarSymlink $appsDir/Phototonic 94} 95