annotate graphics/fltk/fltk.sh @ 1341:9f35c15329d1 default tip @

dev/meson: downgrade to 0.59.4 due to many regression
author David Demelier <markand@malikania.fr>
date Wed, 22 Dec 2021 21:52:57 +0100
parents 9867e578b1a9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1156
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
1 #!/bin/sh
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
2 #
1288
9867e578b1a9 misc: update copyright years
David Demelier <markand@malikania.fr>
parents: 1222
diff changeset
3 # Copyright (c) 2019-2021 David Demelier <markand@malikania.fr>
1156
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
4 #
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
5 # Permission to use, copy, modify, and/or distribute this software for any
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
6 # purpose with or without fee is hereby granted, provided that the above
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
7 # copyright notice and this permission notice appear in all copies.
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
8 #
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
16 #
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
17
1221
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
18 PKGNAME=fltk
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
19 PKGVERSION=1.3.5
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
20 PKGREVISION=1
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
21 PKGLICENSE="CUSTOM"
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
22 PKGSUMMARY="fast light toolkit"
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
23 PKGDOWNLOAD="http://fltk.org/pub/$PKGNAME/$PKGVERSION/$PKGNAME-$PKGVERSION-source.tar.gz"
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
24 PKGDEPENDS="libjpeg-turbo
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
25 libpng
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
26 libxcursor
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
27 libxfixes
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
28 libxft
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
29 libxinerama
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
30 libxrender
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
31 zlib"
a47aaf9743a0 misc: backed out changeset 4ccc42bf0284
David Demelier <markand@malikania.fr>
parents: 1220
diff changeset
32 PKGOPTIONS="OPENGL"
1156
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
33
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
34 : ${CHOST:=$(uname -m)-linux-musl}
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
35 : ${CBUILD:=$(uname -m)-linux-musl}
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
36 : ${CC:=clang}
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
37 : ${CFLAGS:=-O2}
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
38 : ${CXX:=clang++}
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
39 : ${CXXFLAGS:=-O2}
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
40 : ${LDFLAGS:=}
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
41 : ${LIBS:=}
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
42 : ${OPENGL:=yes}
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
43
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
44 if [ "$OPENGL" = "yes" ]; then
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
45 PKGDEPENDS="mesa $PKGDEPENDS"
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
46 with_opengl="--enable-gl"
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
47 else
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
48 with_opengl="--disable-gl"
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
49 fi
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
50
1222
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
51 build()
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
52 {
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
53 rm -rf $PKGNAME-$PKGVERSION
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
54 tar xvf $PKGNAME-$PKGVERSION-source.tar.gz
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
55 cd $PKGNAME-$PKGVERSION
1156
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
56
1222
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
57 CC="$CC" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
58 CFLAGS="$CFLAGS" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
59 CXX="$CXX" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
60 CXXFLAGS="$CXXFLAGS" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
61 LDFLAGS="$LDFLAGS" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
62 LIBS="$LIBS" \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
63 ./configure \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
64 --build=$CBUILD \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
65 --host=$CHOST \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
66 --prefix= \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
67 --disable-debug \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
68 --disable-localjpeg \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
69 --disable-localpng \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
70 --disable-localzlib \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
71 --enable-shared \
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
72 $with_gl
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
73 make
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
74 make install DESTDIR=$DESTDIR
1156
8df20ff190eb graphics/fltk: initial import, closes #2400
David Demelier <markand@malikania.fr>
parents:
diff changeset
75
1222
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
76 cd ..
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
77 rm -rf $PKGNAME-$PKGVERSION
325631424c65 misc: bring back build function
David Demelier <markand@malikania.fr>
parents: 1221
diff changeset
78 }