comparison x11/bitmap/bitmap.sh @ 318:921f75e90a92

x11/bitmap: initial import, closes #1404
author David Demelier <markand@malikania.fr>
date Tue, 26 Mar 2019 20:24:00 +0100
parents
children 2416430cff0b
comparison
equal deleted inserted replaced
317:f337f9d04c69 318:921f75e90a92
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=bitmap
19 PKGVERSION=1.0.9
20 PKGREVISION=1
21 PKGLICENSE="X.Org bitmap editor and converter"
22 PKGSUMMARY="CUSTOM"
23 PKGDOWNLOAD="https://www.x.org/releases/individual/app/$PKGNAME-$PKGVERSION.tar.gz"
24 PKGDEPENDS="x11/libx11
25 x11/libxaw
26 x11/libxmu
27 x11/util-macros:build
28 x11/xbitmaps
29 x11/xorgproto:build"
30
31 : ${CHOST:=$(uname -m)-linux-musl}
32 : ${CBUILD:=$(uname -m)-linux-musl}
33 : ${CC:=gcc}
34 : ${CFLAGS:=-O2}
35 : ${LDFLAGS:=}
36 : ${LIBS:=}
37
38 build()
39 {
40 rm -rf $PKGNAME-$PKGVERSION
41 tar xvaf $PKGNAME-$PKGVERSION.tar.gz
42 pushd $PKGNAME-$PKGVERSION
43
44 CC="$CC" \
45 CFLAGS="$CFLAGS" \
46 LDFLAGS="$LDFLAGS" \
47 LIBS="$LIBS" \
48 ./configure \
49 --build=$CBUILD \
50 --host=$CHOST \
51 --prefix=/usr
52 make
53 make install DESTDIR=$DESTDIR
54
55 popd
56 rm -rf $PKGNAME-$PKGVERSION
57 }