Mercurial > vanilla
comparison graphics/pixman/pixman.sh @ 394:d7016722ea6d
graphics/pixman: rename from x11/pixman
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 02 Apr 2019 20:07:00 +0200 |
parents | x11/pixman/pixman.sh@18a3a8db4361 |
children | b1690d766bdb |
comparison
equal
deleted
inserted
replaced
393:23cfe919307f | 394:d7016722ea6d |
---|---|
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=pixman | |
19 PKGVERSION=0.38.0 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="MIT" | |
22 PKGSUMMARY="pixel manipulation library" | |
23 PKGDOWNLOAD="https://www.cairographics.org/releases/$PKGNAME-$PKGVERSION.tar.gz" | |
24 PKGOPTIONS="OPENMP PNG" | |
25 | |
26 : ${CHOST:=$(uname -m)-linux-musl} | |
27 : ${CBUILD:=$(uname -m)-linux-musl} | |
28 : ${CC:=clang} | |
29 : ${CFLAGS:=-O2} | |
30 : ${LDFLAGS:=} | |
31 : ${LIBS:=} | |
32 : ${OPENMP:=yes} | |
33 : ${PNG:=no} | |
34 | |
35 if [ "$OPENMP" = "yes" ]; then | |
36 PKGDEPENDS="lib/openmp $PKGDEPENDS" | |
37 with_openmp="--enable-openmp" | |
38 else | |
39 with_openmp="--disable-openmp" | |
40 fi | |
41 | |
42 if [ "$PNG" = "yes" ]; then | |
43 PKGDEPENDS="graphics/libpng $PKGDEPENDS" | |
44 with_png="--enable-libpng" | |
45 else | |
46 with_png="--disable-libpng" | |
47 fi | |
48 | |
49 build() | |
50 { | |
51 rm -rf $PKGNAME-$PKGVERSION | |
52 tar xvaf $PKGNAME-$PKGVERSION.tar.gz | |
53 pushd $PKGNAME-$PKGVERSION | |
54 | |
55 CC="$CC" \ | |
56 CFLAGS="$CFLAGS" \ | |
57 LDFLAGS="$LDFLAGS" \ | |
58 LIBS="$LIBS" \ | |
59 ./configure \ | |
60 --build=$CBUILD \ | |
61 --host=$CHOST \ | |
62 --prefix=/usr \ | |
63 --disable-gnuplot \ | |
64 --disable-gtk \ | |
65 --disable-static \ | |
66 --enable-shared \ | |
67 $with_openmp \ | |
68 $with_png | |
69 make | |
70 make install DESTDIR=$DESTDIR | |
71 rm -f $DESTDIR/usr/lib/libpixman-1.la | |
72 | |
73 popd | |
74 rm -rf $PKGNAME-$PKGVERSION | |
75 } |