1SUMMARY="A rapid prototyping application for image processing" 2DESCRIPTION="ImagePlay is a rapid prototyping tool for building and testing \ 3image processing algorithms. It comes with a variety of over 70 individual \ 4image processors which can be combined into complex process chains." 5HOMEPAGE="http://cpvrlab.github.io/ImagePlay/" 6COPYRIGHT="2015-2017 Bern University of Applied Sciences, Engineering and \ 7 Information Technology, HuCE, cpvrLab " 8LICENSE="GNU GPL v3" 9REVISION="3" 10srcGitRev_1="3cccd1e7dc15f6da848d51c483671092e3904db8" 11SOURCE_URI_1="https://github.com/cpvrlab/ImagePlay/archive/$srcGitRev_1.tar.gz" 12CHECKSUM_SHA256_1="7242ce7134ee4dfd6da48151a168b68f2ff9053af83dec923a8b8efe233eb817" 13SOURCE_FILENAME_1="imageplay-$portVersion.tar.gz" 14SOURCE_DIR_1="ImagePlay-$srcGitRev_1" 15srcGitRev_2="78194e92d7bc845888377b980fc8393637cbd481" 16SOURCE_URI_2="https://github.com/cpvrlab/ImagePlay_lib/archive/$srcGitRev_2.tar.gz" 17CHECKSUM_SHA256_2="937397586b1089749d723c0e2639a6e44717001bdb519050930002266f7dd043" 18SOURCE_FILENAME_2="imageplay_lib-$portVersion.tar.gz" 19SOURCE_DIR_2="ImagePlay_lib-$srcGitRev_2" 20PATCHES="imageplay-$portVersion.patchset" 21 22ADDITIONAL_FILES="imageplay.rdef.in" 23 24ARCHITECTURES="all !x86_gcc2" 25SECONDARY_ARCHITECTURES="x86" 26 27PROVIDES=" 28 imageplay$secondaryArchSuffix = $portVersion 29 app:imageplay$secondaryArchSuffix = $portVersion 30 " 31REQUIRES=" 32 haiku$secondaryArchSuffix 33 lib:libfreeimage$secondaryArchSuffix 34 lib:libGL$secondaryArchSuffix 35 lib:libgomp$secondaryArchSuffix 36 lib:libopencv_alphamat$secondaryArchSuffix 37 lib:libopencv_aruco$secondaryArchSuffix 38 lib:libopencv_bgsegm$secondaryArchSuffix 39 lib:libopencv_bioinspired$secondaryArchSuffix 40 lib:libopencv_calib3d$secondaryArchSuffix 41 lib:libopencv_ccalib$secondaryArchSuffix 42 lib:libopencv_core$secondaryArchSuffix 43 lib:libopencv_cvv$secondaryArchSuffix 44 lib:libopencv_datasets$secondaryArchSuffix 45 lib:libopencv_dnn_objdetect$secondaryArchSuffix 46 lib:libopencv_dnn_superres$secondaryArchSuffix 47 lib:libopencv_dnn$secondaryArchSuffix 48 lib:libopencv_dpm$secondaryArchSuffix 49 lib:libopencv_face$secondaryArchSuffix 50 lib:libopencv_features2d$secondaryArchSuffix 51 lib:libopencv_flann$secondaryArchSuffix 52 lib:libopencv_freetype$secondaryArchSuffix 53 lib:libopencv_fuzzy$secondaryArchSuffix 54 lib:libopencv_gapi$secondaryArchSuffix 55 lib:libopencv_hdf$secondaryArchSuffix 56 lib:libopencv_hfs$secondaryArchSuffix 57 lib:libopencv_highgui$secondaryArchSuffix 58 lib:libopencv_img_hash$secondaryArchSuffix 59 lib:libopencv_imgcodecs$secondaryArchSuffix 60 lib:libopencv_imgproc$secondaryArchSuffix 61 lib:libopencv_intensity_transform$secondaryArchSuffix 62 lib:libopencv_line_descriptor$secondaryArchSuffix 63 lib:libopencv_mcc$secondaryArchSuffix 64 lib:libopencv_ml$secondaryArchSuffix 65 lib:libopencv_objdetect$secondaryArchSuffix 66 lib:libopencv_optflow$secondaryArchSuffix 67 lib:libopencv_phase_unwrapping$secondaryArchSuffix 68 lib:libopencv_photo$secondaryArchSuffix 69 lib:libopencv_plot$secondaryArchSuffix 70 lib:libopencv_quality$secondaryArchSuffix 71 lib:libopencv_rapid$secondaryArchSuffix 72 lib:libopencv_reg$secondaryArchSuffix 73 lib:libopencv_rgbd$secondaryArchSuffix 74 lib:libopencv_saliency$secondaryArchSuffix 75 lib:libopencv_shape$secondaryArchSuffix 76 lib:libopencv_stereo$secondaryArchSuffix 77 lib:libopencv_stitching$secondaryArchSuffix 78 lib:libopencv_structured_light$secondaryArchSuffix 79 lib:libopencv_superres$secondaryArchSuffix 80 lib:libopencv_surface_matching$secondaryArchSuffix 81 lib:libopencv_text$secondaryArchSuffix 82 lib:libopencv_tracking$secondaryArchSuffix 83 lib:libopencv_video$secondaryArchSuffix 84 lib:libopencv_videoio$secondaryArchSuffix 85 lib:libopencv_videostab$secondaryArchSuffix 86 lib:libopencv_xfeatures2d$secondaryArchSuffix 87 lib:libopencv_ximgproc$secondaryArchSuffix 88 lib:libopencv_xobjdetect$secondaryArchSuffix 89 lib:libopencv_xphoto$secondaryArchSuffix 90 lib:libQt5Core$secondaryArchSuffix 91 " 92 93BUILD_REQUIRES=" 94 haiku${secondaryArchSuffix}_devel 95 devel:libfreeimage$secondaryArchSuffix 96 devel:libGL$secondaryArchSuffix 97 devel:libjpeg$secondaryArchSuffix 98 devel:libopencv_alphamat$secondaryArchSuffix 99 devel:libopencv_aruco$secondaryArchSuffix 100 devel:libopencv_bgsegm$secondaryArchSuffix 101 devel:libopencv_bioinspired$secondaryArchSuffix 102 devel:libopencv_calib3d$secondaryArchSuffix 103 devel:libopencv_ccalib$secondaryArchSuffix 104 devel:libopencv_core$secondaryArchSuffix 105 devel:libopencv_cvv$secondaryArchSuffix 106 devel:libopencv_datasets$secondaryArchSuffix 107 devel:libopencv_dnn_objdetect$secondaryArchSuffix 108 devel:libopencv_dnn_superres$secondaryArchSuffix 109 devel:libopencv_dnn$secondaryArchSuffix 110 devel:libopencv_dpm$secondaryArchSuffix 111 devel:libopencv_face$secondaryArchSuffix 112 devel:libopencv_features2d$secondaryArchSuffix 113 devel:libopencv_flann$secondaryArchSuffix 114 devel:libopencv_freetype$secondaryArchSuffix 115 devel:libopencv_fuzzy$secondaryArchSuffix 116 devel:libopencv_gapi$secondaryArchSuffix 117 devel:libopencv_hdf$secondaryArchSuffix 118 devel:libopencv_hfs$secondaryArchSuffix 119 devel:libopencv_highgui$secondaryArchSuffix 120 devel:libopencv_img_hash$secondaryArchSuffix 121 devel:libopencv_imgcodecs$secondaryArchSuffix 122 devel:libopencv_imgproc$secondaryArchSuffix 123 devel:libopencv_intensity_transform$secondaryArchSuffix 124 devel:libopencv_line_descriptor$secondaryArchSuffix 125 devel:libopencv_mcc$secondaryArchSuffix 126 devel:libopencv_ml$secondaryArchSuffix 127 devel:libopencv_objdetect$secondaryArchSuffix 128 devel:libopencv_optflow$secondaryArchSuffix 129 devel:libopencv_phase_unwrapping$secondaryArchSuffix 130 devel:libopencv_photo$secondaryArchSuffix 131 devel:libopencv_plot$secondaryArchSuffix 132 devel:libopencv_quality$secondaryArchSuffix 133 devel:libopencv_rapid$secondaryArchSuffix 134 devel:libopencv_reg$secondaryArchSuffix 135 devel:libopencv_rgbd$secondaryArchSuffix 136 devel:libopencv_saliency$secondaryArchSuffix 137 devel:libopencv_shape$secondaryArchSuffix 138 devel:libopencv_stereo$secondaryArchSuffix 139 devel:libopencv_stitching$secondaryArchSuffix 140 devel:libopencv_structured_light$secondaryArchSuffix 141 devel:libopencv_superres$secondaryArchSuffix 142 devel:libopencv_surface_matching$secondaryArchSuffix 143 devel:libopencv_text$secondaryArchSuffix 144 devel:libopencv_tracking$secondaryArchSuffix 145 devel:libopencv_video$secondaryArchSuffix 146 devel:libopencv_videoio$secondaryArchSuffix 147 devel:libopencv_videostab$secondaryArchSuffix 148 devel:libopencv_xfeatures2d$secondaryArchSuffix 149 devel:libopencv_ximgproc$secondaryArchSuffix 150 devel:libopencv_xobjdetect$secondaryArchSuffix 151 devel:libopencv_xphoto$secondaryArchSuffix 152 devel:libQt5Core$secondaryArchSuffix 153 " 154BUILD_PREREQUIRES=" 155 cmd:g++$secondaryArchSuffix 156 cmd:lrelease$secondaryArchSuffix >= 5 157 cmd:make 158 cmd:pkg_config$secondaryArchSuffix 159 cmd:qmake$secondaryArchSuffix >= 5 160 " 161 162BUILD() 163{ 164 #Preparation 165 rm -rf "$sourceDir/_lib" 166 ln -sfn "$sourceDir2" "$sourceDir/_lib" 167 168 qmake PREFIX="$appsDir/ImagePlay" 169 make $jobArgs 170} 171 172INSTALL() 173{ 174# make install #broken 175 mkdir -p $appsDir/ImagePlay 176 cp -R $sourceDir/_bin/Release/haiku/* $appsDir/ImagePlay 177 mv $appsDir/ImagePlay/imageplay $appsDir/ImagePlay/ImagePlay 178 rm -rf $appsDir/ImagePlay/libIPL.a 179 180 local APP_SIGNATURE="application/x-vnd.imageplay" 181 local MAJOR="`echo "$portVersion" | cut -d. -f1`" 182 local MIDDLE="`echo "$portVersion" | cut -d. -f2`" 183 local MINOR="`echo "$portVersion" | cut -d. -f3 | cut -d~ -f1`" 184 local LONG_INFO="$SUMMARY" 185 sed \ 186 -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ 187 -e "s|@MAJOR@|$MAJOR|" \ 188 -e "s|@MIDDLE@|$MIDDLE|" \ 189 -e "s|@MINOR@|$MINOR|" \ 190 -e "s|@LONG_INFO@|$LONG_INFO|" \ 191 $portDir/additional-files/imageplay.rdef.in > imageplay.rdef 192 193 addResourcesToBinaries imageplay.rdef $appsDir/ImagePlay/ImagePlay 194 195 addAppDeskbarSymlink $appsDir/ImagePlay/ImagePlay 196} 197