# Maintainer: Mitch Tishmack setglobal pkgname = 'tiptop' setglobal pkgver = '2.3' setglobal pkgrel = '0' setglobal pkgdesc = '"Tiptop: Hardware Performance Counters for the Masses'" setglobal url = '"http://tiptop.gforge.inria.fr'" # Note: This tool requires two things to work: # 1: hardware counters in the cpu itself # 2: support in the kernel perf framework to use them # # Right now this applies to x86 only. Note this tool will compile # elsewhere but without the aforementioned hardware support and kernel # support, nothing of use will happen when run. setglobal arch = '"x86 x86_64'" setglobal license = '"GPL2'" setglobal makedepends = '"byacc flex linux-headers ncurses-dev libxml2-dev'" setglobal subpackages = ""$pkgname-doc"" setglobal source = ""http://$pkgname.gforge.inria.fr/releases/$pkgname-$pkgver.tar.gz"" setglobal builddir = ""$srcdir/$pkgname-$pkgver"" # Note, arg parsing appears to happen after attempting a perf syscall # so while it would be nice to run tiptop -h to validate the compile worked # there is a chance it might error out for no reason than the system building # not having support for the syscall or hardware. setglobal options = '"!check'" proc build { cd $builddir ./configure --prefix=/usr make } proc package { cd $builddir make install DESTDIR="$pkgdir" } setglobal sha512sums = '"e09ad1fd7063c9b8b7351b5c114cfa1f8e1737b1cfb73c4c869612c3887b060a838c33bdee330349225b48cd73d295fef24cd36c6eb36b566d20adff2dae53d5 tiptop-2.3.tar.gz'"