diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/apitrace | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/apitrace')
-rw-r--r-- | community/apitrace/PKGBUILD | 33 | ||||
-rw-r--r-- | community/apitrace/gcc-4.7-fix.patch | 39 |
2 files changed, 72 insertions, 0 deletions
diff --git a/community/apitrace/PKGBUILD b/community/apitrace/PKGBUILD new file mode 100644 index 000000000..43622bdca --- /dev/null +++ b/community/apitrace/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 89930 2013-05-05 19:53:46Z lcarlier $ +# Maintainer: Laurent Carlier <lordheavym@gmail.com> +# Contributor: Luca Bennati <lucak3 AT gmail DOT com> +# Contributor: Glaucous <glakke1 at gmail dot com> + +pkgname=apitrace +pkgver=4.0 +pkgrel=1 +pkgdesc="Graphics API Tracing" +arch=('i686' 'x86_64') +url="https://github.com/apitrace/apitrace" +license=('custom') +makedepends=('cmake' 'mesa' 'libgl' 'python2' 'qtwebkit' 'qjson') +optdepends=('qtwebkit: GUI support' 'qjson: GUI support') +source=("https://github.com/apitrace/apitrace/archive/${pkgver}.zip") +md5sums=('5b2e212d91d2f184d8608c712eab69a0') + +build() { + cd ${srcdir}/apitrace-* + + cmake . -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_EXECUTABLE='/usr/bin/python2' + make -C build +} + +package() { + depends=('python2' 'libgl') + cd ${srcdir}/apitrace-* + + make -C build DESTDIR="${pkgdir}/" install + + install -m755 -d "${pkgdir}/usr/share/licenses/apitrace" + install -m644 LICENSE "${pkgdir}/usr/share/licenses/apitrace/" +} diff --git a/community/apitrace/gcc-4.7-fix.patch b/community/apitrace/gcc-4.7-fix.patch new file mode 100644 index 000000000..20cc71a3a --- /dev/null +++ b/community/apitrace/gcc-4.7-fix.patch @@ -0,0 +1,39 @@ +From 8159d6c1295da8c1b342bc77686e7ecfed1e5c01 Mon Sep 17 00:00:00 2001 +From: Martin Olsson <martin@minimum.se> +Date: Mon, 26 Mar 2012 10:40:45 +0200 +Subject: [PATCH] Fix compile error "isatty was not declared"; missing + unistd.h include +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +When I built apitrace on Fedora 16, using the usual: + + cmake -H. -Bbuild + make -C build + +...then I got this compile error: + + apitrace/cli/cli_dump.cpp: In function ‘int command(int, char**)’: + apitrace/cli/cli_dump.cpp:176:25: error: ‘isatty’ was not declared in this scope +--- + cli/cli_dump.cpp | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/cli/cli_dump.cpp b/cli/cli_dump.cpp +index 28c91af..f52b83c 100644 +--- a/cli/cli_dump.cpp ++++ b/cli/cli_dump.cpp +@@ -28,6 +28,9 @@ + #include <string.h> + #include <limits.h> // for CHAR_MAX + #include <getopt.h> ++#ifndef _WIN32 ++#include <unistd.h> // for isatty() ++#endif + + #include "cli.hpp" + #include "cli_pager.hpp" +-- +1.7.10 + |