comparison x11/x11perf/x11perf.sh @ 311:22907b0e8bfe

x11/x11perf: initial import, closes #1343
author David Demelier <markand@malikania.fr>
date Tue, 26 Mar 2019 20:08:00 +0100
parents
children 2416430cff0b
comparison
equal deleted inserted replaced
310:a2f05e60be7b 311:22907b0e8bfe
1 #!/bin/sh
2 #
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr>
4 #
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
8 #
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 #
17
18 PKGNAME=x11perf
19 PKGVERSION=1.6.1
20 PKGREVISION=1
21 PKGLICENSE="CUSTOM"
22 PKGSUMMARY="X.Org server performance benchmarker"
23 PKGDOWNLOAD="https://www.x.org/releases/individual/app/$PKGNAME-$PKGVERSION.tar.gz"
24 PKGDEPENDS="x11/libx11
25 x11/libxext
26 x11/libxft
27 x11/libxmu
28 x11/libxrender
29 x11/util-macros:build
30 x11/xorgproto:build"
31
32 : ${CHOST:=$(uname -m)-linux-musl}
33 : ${CBUILD:=$(uname -m)-linux-musl}
34 : ${CC:=gcc}
35 : ${CFLAGS:=-O2}
36 : ${LDFLAGS:=}
37 : ${LIBS:=}
38
39 build()
40 {
41 rm -rf $PKGNAME-$PKGVERSION
42 tar xvaf $PKGNAME-$PKGVERSION.tar.gz
43 pushd $PKGNAME-$PKGVERSION
44
45 CC="$CC" \
46 CFLAGS="$CFLAGS" \
47 LDFLAGS="$LDFLAGS" \
48 LIBS="$LIBS" \
49 ./configure \
50 --build=$CBUILD \
51 --host=$CHOST \
52 --prefix=/usr
53 make
54 make install DESTDIR=$DESTDIR
55
56 popd
57 rm -rf $PKGNAME-$PKGVERSION
58 }