diff --git a/dev-util/qcachegrind/additional-files/qcachegrind.rdef.in b/dev-util/qcachegrind/additional-files/qcachegrind.rdef.in new file mode 100644 index 000000000..ed890109d --- /dev/null +++ b/dev-util/qcachegrind/additional-files/qcachegrind.rdef.in @@ -0,0 +1,72 @@ + +resource app_flags B_MULTIPLE_LAUNCH; + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + + variety = B_APPV_FINAL, + internal = 0, + + short_info = "QCachegrind", + long_info = "@LONG_INFO@" +}; + +resource app_signature "@APP_SIGNATURE@"; + +resource("QT:QPA_FLAGS") "Q_KILL_ON_EXIT|Q_REF_TO_ARGV"; + +resource vector_icon { + $"6E63696607020006023C6E2D389AD9B89AD93C6E2D4838CE4C6CB600B0B8B8FF" + $"EFF1F102000602BC847DBC847C3C847CBC847D4B4EE8476EA600B0B8B8FFEFF1" + $"F1020002023AAF293AAF29BAAF293AAF29499C114B846E00292C2FFFFF000000" + $"0002000602000000BC2F233C2F22000000D03F31487B1200197CF1FF21C9FB03" + $"31343702000202382F23382F23B82F23382F234B520B487B1200292C2FFFFF00" + $"00000002000602000000BB00003B00000000004906C14A1CEA007CBAF8FFF4FC" + $"FF090606FF07C640C37AC640C37AC51BC7C1BC6EC926C0B5CA4BB826C800B6C2" + $"BF53B59CC39AB7E7BB0BC094B9A7BC4DB881C4DCBACCC640C37AC766BF32C640" + $"C37AC37A0009BC91C8A2BC91C8A2BAA655B805C525B903C6DDB707C36CB746BF" + $"76B6C2C161B7C9BD8BBAC3BAEBB90BBBE9BC7BB9ECC071BA2BBE86B9A8C25CBA" + $"AFC4FDBDA8C3FFBBF0C5FBBF60C5BC49C640C16BC539C541C23FC7E2C3F7C6E4" + $"C087C8E0BC91C8A2BE7CC925BC91C8A20235BD69CC08BD69CC08BE23CC1CBF99" + $"CC09BEDFCC1CBFAFCB7CBFDACA61BFC5CAEEC087CA47C1D3C9DAC131CA1AC22D" + $"CA49C2DFCB28C286CAB9C38ACADBC4C5CA0FC42DCA7DC491C98AC429C880C45D" + $"C905C4B3C814C59CC70FC52FC79850C743C728C7AAC6A4C776C796C712C841C5" + $"C3C7F5C66FC7D3C56BC6F6C4BAC764C512C716C468C749C3C1C732C415C75FC3" + $"6CC77BC2C0C76FC316C809C2AAC923C27FC896C294C936C1C4C924C04EC937C1" + $"08C896C038C77BC00DC809C022C762BF60C6F5BE14C734BEB7C764BDBBC843BD" + $"08C7D3BD61C7F6BC5DC72ABB22C798BBBAC6A5BB56C59BBBBE50BB8AC52EBB35" + $"C42ABA4BC4B3BAB8C45EB9C7C4C4B8BFC491B943C42CB851C2DEB7A6C389B7F3" + $"C285B815C1D4B8F2C22DB883C183B8D1C0DBB89EC130B8B5C087B889BFDAB86C" + $"C031B878BFC5B7DFBF9AB6C4BFAFB751BEDFB6B1BD69B6C3BE23B6B1BD53B751" + $"BD27B86CBD3DB7DEBC7BB886BB2FB8F3BBD1B8B3BAD5B883BA23B7A5BA7CB814" + $"B978B7F1B83DB8BEB8D5B850B871B943B8D8BA4CB8A5B9C7B84FBAB9B766BBBD" + $"B7D3BB35B6E2BB8AB5D9BB23B65DBB56B56BBBBBB4C1BD09B50DBC5EB52FBD62" + $"B60CBE13B59EBDBAB5ECBE64B5B9BF0CB5D0BEB7B5A3BF61B586C00DB593BFB6" + $"B4F9C023B3DFC04EB46CC038B3CBC108B3DEC27FB3CBC1C4B46CC294B587C2C0" + $"B4F9C2AAB5A0C36DB60DC4B9B5CEC416B59EC512B4BFC5C4B52FC56BB50CC66F" + $"B5D8C7AAB56AC712B65DC776B767C70FB6E2C743B7D4C798B8D8C882B84FC814" + $"B8A4C906B83ECA0EB871C98AB8D6CA7CBA24CB26B979CADABA7DCAB8BB2EC9DB" + $"BAD5CA49BB7FC9FBBC27CA2EBBD2CA17BC7BCA44BD28CA61BCD1CA55BD3DCAEE" + $"BD69CC08BD53CB7BBD69CC080212C36BBC7CC36BBC7CC024BFC3B996C651BCDD" + $"C30ABB80C83BBF54CC0EBD6ACA25BF6BCC0DBF99CC09BF82CC0CBFAFCB7CBFDA" + $"CA61BFC4CAEEC087CA47C1D3C9DAC130CA1AC22CCA49C2DFCB28C285CAB9C38A" + $"CADBC4C5CA0FC42DCA7DC491C98AC429C880C45DC905C4B2C814C59CC710C52F" + $"C79850C743C728C7AAC6A4C776C796C712C841C5C3C7F4C66FC7D2C56BC6F5C4" + $"BAC764C512C716C468C748C3C1C731C415C75EC36CC77BC2C0C76FC316C808C2" + $"AAC922C27FC895C295C925C268C928C239C926C250C73EC04FC36BBC7CC555BE" + $"66C36BBC7C0206C0B5B3F2C0B5B3F2C0B5B896C0B5C1DEC0B5BD3AC45BC1DECB" + $"A6C1DEC800C1DECBA6BE63CBA6B76DCBA6BAE8CA7DB644C82BB3F2C954B51BC5" + $"AEB3F2C0B5B3F2C331B3F2C0B5B3F20204CBA6B76DCBA6B76DCA7DB644C82BB3" + $"F2C954B51BC82BB51BC82BB76DC82BB644C954B76DCBA6B76DCA7DB76DCBA6B7" + $"6D0204C82BB76DC82BB76DC954B896CBA6BAE8CA7DB9BFCBA6B9BFCBA6B76DCB" + $"A6B896CA7DB76DC82BB76DC954B76DC82BB76D0606FF07C36BBC7CC36BBC7CC4" + $"F7BC7CC635BF46C635BDBAC635C0D1C36BC210C4F7C210C1DFC210C0A1BF46C0" + $"A1C0D1C0A1BDBAC36BBC7CC1DFBC7CC36BBC7CBC7C020AC36BBBB0C36BBBB0C1" + $"6EBBB0BFD5BF46BFD5BD49BFD5C142C36BC2DCC16EC2DCC444C2DCC5A6C211C5" + $"09C28EC6B6C321C8D5C540C7C5C430C905C510C965C4B0C935C4E0C855C3A0C6" + $"36C181C746C290C6B4C0E4C701BF46C701C01FC701BD49C36BBBB0C568BBB0C3" + $"6BBBB0C36BBBB0C36BBBB0C36BBBB0070A000100000A01020102000A02010300" + $"0A030104000A040105000A050106000A0602070800" +}; diff --git a/dev-util/qcachegrind/qcachegrind-21.08.2.recipe b/dev-util/qcachegrind/qcachegrind-21.08.2.recipe new file mode 100644 index 000000000..42efa21c4 --- /dev/null +++ b/dev-util/qcachegrind/qcachegrind-21.08.2.recipe @@ -0,0 +1,94 @@ +SUMMARY="GUI to profilers such as Valgrind" +DESCRIPTION="QCachegrind is a Qt GUI to visualize profiling data. +It's mainly used as visualization frontend for data measured +by Cachegrind/Callgrind tools from the Valgrind package, but +there are converters for other measurement tools available. + +Features + +* direct support for profiles generated by Cachegrind/Callgrind +* support for arbitrary event types and derived event types +* sorted function list, with grouping according to ELF object/source + file/symbol namespace (such as C++ classes) +* correct handling of recursive cycles (similar to GProf) +* various visualization views for a selected function, such as + - treemap in caller/callee direction + - call graph around function + - source & assembly annotation" +HOMEPAGE="https://github.com/KDE/kcachegrind" +COPYRIGHT="2010-2020 KDE Organisation" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://github.com/KDE/kcachegrind/archive/refs/tags/v$portVersion.tar.gz" +CHECKSUM_SHA256="f5696891680058229351a721c06cfec4d4417a2293e90133bb8ce3652db85ab0" +SOURCE_DIR="kcachegrind-$portVersion" +ADDITIONAL_FILES="qcachegrind.rdef.in" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + qcachegrind$secondaryArchSuffix = $portVersion + app:QCachegrind$secondaryArchSuffix = $portVersion + cmd:cgview + " +REQUIRES=" + haiku$secondaryArchSuffix + cmd:dbus_launch + lib:libGL$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5DBus$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Widgets$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libQt5Core$secondaryArchSuffix + devel:libQt5DBus$secondaryArchSuffix + devel:libQt5Gui$secondaryArchSuffix + devel:libQt5Widgets$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:qmake + cmd:g++$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +defineDebugInfoPackage qcachegrind$secondaryArchSuffix \ + "$binDir"/cgview \ + "$appsDir"/QCachegrind + +BUILD() +{ + mkdir -p build + cd build + + qmake .. + make $jobArgs +} + +INSTALL() +{ + cd build + mkdir $appsDir $binDir + cp -R cgview/cgview $binDir + cp -R qcachegrind/qcachegrind $appsDir/QCachegrind + + local APP_SIGNATURE="application/x-vnd.kde-qcachegrind" + local MAJOR="`echo "$portVersion" | cut -d. -f1`" + local MIDDLE="`echo "$portVersion" | cut -d. -f2`" + local MINOR="`echo "$portVersion" | cut -d. -f3`" + local LONG_INFO="$SUMMARY" + sed \ + -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ + -e "s|@MAJOR@|$MAJOR|" \ + -e "s|@MIDDLE@|$MIDDLE|" \ + -e "s|@MINOR@|$MINOR|" \ + -e "s|@LONG_INFO@|$LONG_INFO|" \ + $portDir/additional-files/qcachegrind.rdef.in > qcachegrind.rdef + + addResourcesToBinaries qcachegrind.rdef $appsDir/QCachegrind + addAppDeskbarSymlink $appsDir/QCachegrind +}