File: build_libqavif_dynamic.sh

package info (click to toggle)
qt-avif-image-plugin 0.8.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 212 kB
  • sloc: cpp: 1,075; sh: 66; xml: 18; makefile: 5
file content (39 lines) | stat: -rwxr-xr-x 683 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash

if ! [ -x "$(command -v qmake)" ]; then
  if ! [ -x "$(command -v qmake5)" ]; then
    echo 'Error: qmake or qmake5 is not installed.' >&2
    exit 1
  else
    QMAKE_EXE=qmake5
  fi
else
  QMAKE_EXE=qmake
fi

if ! [ -x "$(command -v make)" ]; then
  echo 'Error: make is not installed.' >&2
  exit 1
fi

RELATIVE_PATH=`dirname "$BASH_SOURCE"`
cd "$RELATIVE_PATH"


$QMAKE_EXE qt-avif-image-plugin.pro

if ! [ -f Makefile ]; then
  echo 'qmake failed to produce Makefile' >&2
  exit 1
fi

make

if [ $? -eq 0 ]; then
  echo "SUCCESS! in order to install libqavif.so type as root:"
  echo "make install"
  exit 0
else
  echo 'Failed to build libqavif.so' >&2
  exit 1
fi