summaryrefslogtreecommitdiffstats
path: root/audio-drivers/alsa-lib/PRE_BUILD
blob: ee043f39c3fb21c4ae0585b9242ce96cfa86c2fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
default_pre_build &&
cd "$SOURCE_DIRECTORY" &&
apply_patch_dir patches &&

if spell_ok python; then
  sed -i "s:python/:python$(installed_version python | cut -c-3)/:" \
    modules/mixer/simple/python.c
fi &&

if [[ "${ALSA_LIB_BRANCH}" == "scm" ]]; then
  touch ltconfig &&
  libtoolize --force --copy --automake &&
  aclocal -I m4 &&
  autoheader &&
  automake --foreign --copy --add-missing &&
  touch depcomp &&
  autoconf
else
  sedit 's!maybe_os in$!& linux-musl*|\\!' config.sub
fi