You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.5 KiB
55 lines
1.5 KiB
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
# |
|
# Filename: package/.../alsa-tools/alsa-tools.conf |
|
# Copyright (C) 2006 - 2007 The OpenSDE Project |
|
# Copyright (C) 2004 - 2006 The T2 SDE Project |
|
# Copyright (C) 1998 - 2004 Clifford Wolf |
|
# |
|
# More information can be found in the files COPYING and README. |
|
# |
|
# This program is free software; you can redistribute it and/or modify |
|
# it under the terms of the GNU General Public License as published by |
|
# the Free Software Foundation; version 2 of the License. A copy of the |
|
# GNU General Public License can be found in the file COPYING. |
|
# --- SDE-COPYRIGHT-NOTE-END --- |
|
|
|
|
|
# apply the patches defined in the alsa-tools.desc |
|
var_append patchfiles ' ' "`match_source_file -p patch`" |
|
|
|
# skip the auto build ... |
|
makeopt= |
|
makeinstopt= |
|
|
|
alsa_pc() { |
|
subdirs=" `echo */configure */*/configure` " |
|
subdirs=${subdirs//\/configure/} |
|
var_remove subdirs ' ' qlo10k1 |
|
|
|
if pkginstalled gtk+12; then |
|
var_append confopt ' ' "--with-gtk-prefix=$root/`pkgprefix gtk+12`" |
|
else |
|
var_remove subdirs ' ' envy24control |
|
fi |
|
if ! pkginstalled gtk+; then |
|
var_remove subdirs ' ' echomixer |
|
var_remove subdirs ' ' rmedigicontrol |
|
fi |
|
if ! pkginstalled fltk1; then |
|
var_remove subdirs ' ' hdspmixer |
|
var_remove subdirs ' ' hdspconf |
|
fi |
|
|
|
[[ "$arch" = powerpc* ]] && var_remove subdirs ' ' sb16_csp |
|
|
|
for x in $subdirs; do |
|
pushd $x |
|
eval_config_command $( echo $confopt ) |
|
eval $MAKE ; eval $MAKE install |
|
popd |
|
done |
|
} |
|
|
|
hook_add preconf 5 "alsa_pc" |
|
|
|
|