Mercurial > vanilla
annotate audio/jack2/jack2.sh @ 1216:6710613b88b9
misc: remove build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 29 Sep 2021 13:49:32 +0200 |
parents | 7791d3dbfecf |
children | 27d1a83dc8d6 |
rev | line source |
---|---|
1019
ddab65a5b3f5
vanilla: use /bin/busybox sh as default shell
David Demelier <markand@malikania.fr>
parents:
902
diff
changeset
|
1 #!/bin/busybox sh |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
2 # |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr> |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
4 # |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
5 # Permission to use, copy, modify, and/or distribute this software for any |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
6 # purpose with or without fee is hereby granted, provided that the above |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
7 # copyright notice and this permission notice appear in all copies. |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
8 # |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
16 # |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
17 |
1094
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
18 # TODO: add CELT, PORTAUDIO options |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
19 |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
20 PKGNAME=jack2 |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
21 PKGVERSION=1.9.12 |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
22 PKGREVISION=1 |
1107
7791d3dbfecf
vanilla: consolidate licenses and many options
David Demelier <markand@malikania.fr>
parents:
1094
diff
changeset
|
23 PKGLICENSE="GPLv30" |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
24 PKGSUMMARY="JACK Audio Connection Kit version 2" |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
25 PKGDOWNLOAD="https://github.com/jackaudio/jack2/releases/download/v$PKGVERSION/$PKGNAME-$PKGVERSION.tar.gz" |
1094
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
26 PKGDEPENDS="python2:build" |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
27 PKGOPTIONS="ALSA DBUS DOXYGEN OPUS COMPLETION SAMPLERATE SNDFILE" |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
28 |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
29 : ${CC:=clang} |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
30 : ${CFLAGS:=-O2} |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
31 : ${CXX:=clang++} |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
32 : ${CXXFLAGS:=-O2} |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
33 : ${LDFLAGS:=} |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
34 : ${ALSA:=yes} |
1094
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
35 : ${COMPLETION:=yes} |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
36 : ${DBUS:=yes} |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
37 : ${DOXYGEN:=yes} |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
38 : ${OPUS:=yes} |
1094
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
39 : ${SAMPLERATE:=yes} |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
40 : ${SNDFILE:=yes} |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
41 |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
42 if [ "$ALSA" = "yes" ]; then |
902
a133976e0783
vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents:
735
diff
changeset
|
43 PKGDEPENDS="alsa-lib $PKGDEPENDS" |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
44 with_alsa="--alsa=yes" |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
45 else |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
46 with_alsa="--alsa=no" |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
47 fi |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
48 |
1094
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
49 if [ "$COMPLETION" = "yes" ]; then |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
50 PKGDEPENDS="readline $PKGDEPENDS" |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
51 with_completion="--readline=yes" |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
52 else |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
53 with_completion="--readline=no" |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
54 fi |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
55 |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
56 if [ "$DBUS" = "yes" ]; then |
1094
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
57 PKGDEPENDS="dbus expat $PKGDEPENDS" |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
58 with_dbus="--dbus" |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
59 else |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
60 with_dbus="--dbus" |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
61 fi |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
62 |
1094
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
63 if [ "$DOXYGEN" = "yes" ]; then |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
64 PKGDEPENDS="doxygen:build $PKGDEPENDS" |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
65 with_doxygen="--doxygen=yes" |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
66 else |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
67 with_doxygen="--doxygen=no" |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
68 fi |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
69 |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
70 if [ "$OPUS" = "yes" ]; then |
902
a133976e0783
vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents:
735
diff
changeset
|
71 PKGDEPENDS="opus $PKGDEPENDS" |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
72 with_opus="--opus=yes" |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
73 else |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
74 with_opus="--opus=no" |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
75 fi |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
76 |
1094
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
77 if [ "$SAMPLERATE" = "yes" ]; then |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
78 PKGDEPENDS="libsamplerate $PKGDEPENDS" |
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
79 with_samplerate="--samplerate=yes" |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
80 else |
1094
3dece1f7570b
vanilla: add many ghost dependencies
David Demelier <markand@malikania.fr>
parents:
1019
diff
changeset
|
81 with_samplerate="--samplerate=no" |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
82 fi |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
83 |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
84 if [ "$SNDFILE" = "yes" ]; then |
902
a133976e0783
vanilla: remove all origins, closes #2203
David Demelier <markand@malikania.fr>
parents:
735
diff
changeset
|
85 PKGDEPENDS="libsndfile $PKGDEPENDS" |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
86 with_sndfile="--sndfile=yes" |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
87 else |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
88 with_sndfile="--sndfile=no" |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
89 fi |
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
90 |
1216
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
91 rm -rf $PKGNAME-$PKGVERSION |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
92 tar xvf $PKGNAME-$PKGVERSION.tar.gz |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
93 cd $PKGNAME-$PKGVERSION |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
94 |
1216
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
95 patch -p0 < ../patch-clang.patch |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
96 CC="$CC" \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
97 CFLAGS="$CFLAGS" \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
98 CXX="$CXX" \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
99 CXXFLAGS="$CXXFLAGS" \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
100 LDFLAGS="$LDFLAGS" \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
101 python2 waf configure \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
102 --prefix= \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
103 $with_alsa \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
104 $with_completion \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
105 $with_dbus \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
106 $with_doxygen \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
107 $with_opus \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
108 $with_samplerate \ |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
109 $with_sndfile |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
110 python2 waf build |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
111 python2 waf install --destdir=$DESTDIR |
735
0d9490a65130
audio/jack2: initial import, closes #1750
David Demelier <markand@malikania.fr>
parents:
diff
changeset
|
112 |
1216
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
113 cd .. |
6710613b88b9
misc: remove build function
David Demelier <markand@malikania.fr>
parents:
1107
diff
changeset
|
114 rm -rf $PKGNAME-$PKGVERSION |