@@ -144,9 +144,7 @@ command_exists() {
144
144
}
145
145
146
146
library_exists () {
147
- local result=0
148
- local output=$( pkg-config --exists --print-errors " $1 " 2>&1 > /dev/null) || result=$?
149
- if [ ! " $result " = " 0" ]; then
147
+ if ! [[ -x $( pkg-config --exists --print-errors " $1 " 2>&1 > /dev/null) ]]; then
150
148
return 1
151
149
fi
152
150
@@ -158,7 +156,7 @@ build_done() {
158
156
}
159
157
160
158
verify_binary_type () {
161
- BINARY_TYPE=$( file $WORKSPACE /bin/ffmpeg | sed -n ' s/^.*\:\ \(.*$\)/\1/p' )
159
+ BINARY_TYPE=$( file " $WORKSPACE /bin/ffmpeg" | sed -n ' s/^.*\:\ \(.*$\)/\1/p' )
162
160
echo " "
163
161
case $BINARY_TYPE in
164
162
" Mach-O 64-bit executable arm64" )
@@ -298,7 +296,7 @@ if command_exists "python"; then
298
296
299
297
if build " serd" ; then
300
298
download " https://gitlab.com/drobilla/serd/-/archive/v0.30.6/serd-v0.30.6.tar.gz" " serd-v0.30.6.tar.gz"
301
- execute cp -r ${PACKAGES} /autowaf/* " ${PACKAGES} /serd-v0.30.6/waflib/"
299
+ execute cp -r " ${PACKAGES} " /autowaf/* " ${PACKAGES} /serd-v0.30.6/waflib/"
302
300
execute ./waf configure --prefix=" ${WORKSPACE} " --static --no-shared --no-posix
303
301
execute ./waf
304
302
execute ./waf install
@@ -316,17 +314,17 @@ if command_exists "python"; then
316
314
317
315
if build " sord" ; then
318
316
download " https://gitlab.com/drobilla/sord/-/archive/v0.16.6/sord-v0.16.6.tar.gz" " sord-v0.16.6.tar.gz"
319
- execute cp -r ${PACKAGES} /autowaf/* " ${PACKAGES} /sord-v0.16.6/waflib/"
320
- execute ./waf configure --prefix=" ${WORKSPACE} " CFLAGS=${CFLAGS} --static --no-shared --no-utils
321
- execute ./waf CFLAGS=${CFLAGS}
317
+ execute cp -r " ${PACKAGES} " /autowaf/* " ${PACKAGES} /sord-v0.16.6/waflib/"
318
+ execute ./waf configure --prefix=" ${WORKSPACE} " CFLAGS=" ${CFLAGS} " --static --no-shared --no-utils
319
+ execute ./waf CFLAGS=" ${CFLAGS} "
322
320
execute ./waf install
323
321
324
322
build_done " sord"
325
323
fi
326
324
327
325
if build " sratom" ; then
328
326
download " https://gitlab.com/lv2/sratom/-/archive/v0.6.6/sratom-v0.6.6.tar.gz" " sratom-v0.6.6.tar.gz"
329
- execute cp -r ${PACKAGES} /autowaf/* " ${PACKAGES} /sratom-v0.6.6/waflib/"
327
+ execute cp -r " ${PACKAGES} " /autowaf/* " ${PACKAGES} /sratom-v0.6.6/waflib/"
330
328
execute ./waf configure --prefix=" ${WORKSPACE} " --static --no-shared
331
329
execute ./waf
332
330
execute ./waf install
@@ -336,7 +334,7 @@ if command_exists "python"; then
336
334
337
335
if build " lilv" ; then
338
336
download " https://gitlab.com/lv2/lilv/-/archive/v0.24.10/lilv-v0.24.10.tar.gz" " lilv-v0.24.10.tar.gz"
339
- execute cp -r ${PACKAGES} /autowaf/* " ${PACKAGES} /lilv-v0.24.10/waflib/"
337
+ execute cp -r " ${PACKAGES} " /autowaf/* " ${PACKAGES} /lilv-v0.24.10/waflib/"
340
338
execute ./waf configure --prefix=" ${WORKSPACE} " --static --no-shared --no-utils
341
339
execute ./waf
342
340
execute ./waf install
@@ -411,7 +409,7 @@ CONFIGURE_OPTIONS+=("--enable-libsvtav1")
411
409
412
410
if build " x264" ; then
413
411
download " https://code.videolan.org/videolan/x264/-/archive/0d754ec36013fee82978496cd56fbd48824910b3/x264-0d754ec36013fee82978496cd56fbd48824910b3.tar.gz" " x264-0d754ec.tar.gz"
414
- cd " ${PACKAGES} " /x264-0d754ec
412
+ cd " ${PACKAGES} " /x264-0d754ec || exit
415
413
416
414
if [[ " $OSTYPE " == " linux-gnu" ]]; then
417
415
execute ./configure --prefix=" ${WORKSPACE} " --enable-static --enable-pic CXXFLAGS=" -fPIC"
0 commit comments