# --- ROCK-COPYRIGHT-NOTE-BEGIN ---# # This copyright note is auto-generated by ./scripts/Create-CopyPatch.# Please add additional copyright information _after_ the line containing# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!# # ROCK Linux: rock-src/package/kasc/openal/openal.conf# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf# # 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; either version 2 of the License, or# (at your option) any later version. A copy of the GNU General Public# License can be found at Documentation/COPYING.# # Many people helped and are helping developing ROCK Linux. Please# have a look at http://www.rocklinux.org/ and the Documentation/TEAM# file for details.# # --- ROCK-COPYRIGHT-NOTE-END --- autogen=1hook_add preconf 3 "cd linux; touch configure; chmod +x configure " var_append extraconfopt " " "--enable-optimization --enable-arch-asm" if [ "$ROCKCFG_PKG_OPENAL_ALSA" == "1" ] ; then var_append extraconfopt " " "--enable-alsa"fiif [ "$ROCKCFG_PKG_OPENAL_ARTS" == "1" ] ; then var_append extraconfopt " " "--enable-arts"fiif [ "$ROCKCFG_PKG_OPENAL_ESD" == "1" ] ; then var_append extraconfopt " " "--enable-esd"fiif [ "$ROCKCFG_PKG_OPENAL_SDL" == "1" ] ; then var_append extraconfopt " " "--enable-sdl"fiif [ "$ROCKCFG_PKG_OPENAL_VORBIS" == "1" ] ; then var_append extraconfopt " " "--enable-vorbis"fiif [ "$ROCKCFG_PKG_OPENAL_SMPEG" == "1" ] ; then var_append extraconfopt " " "--enable-smpeg"fiif [ "$ROCKCFG_PKG_OPENAL_CAPTURE" == "1" ] ; then var_append extraconfopt " " "--enable-capture"fi # known bugs:# --enable-smpeg could be useful but are untested yet. # ALSA 1.0 API change workaround ... :-(var_append GCC_WRAPPER_APPEND " " \ "-DALSA_PCM_OLD_HW_PARAMS_API -DALSA_PCM_OLD_SW_PARAMS_API"var_append GCC_WRAPPER_REMOVE " " "-ansi"
# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
# ROCK Linux: rock-src/package/kasc/openal/openal.conf
# ROCK Linux is Copyright (C) 1998 - 2004 Clifford Wolf
# 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; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
# --- ROCK-COPYRIGHT-NOTE-END ---
autogen=1
hook_add preconf 3 "cd linux; touch configure; chmod +x configure "
var_append extraconfopt " " "--enable-optimization --enable-arch-asm"
if [ "$ROCKCFG_PKG_OPENAL_ALSA" == "1" ] ; then
var_append extraconfopt " " "--enable-alsa"
fi
if [ "$ROCKCFG_PKG_OPENAL_ARTS" == "1" ] ; then
var_append extraconfopt " " "--enable-arts"
if [ "$ROCKCFG_PKG_OPENAL_ESD" == "1" ] ; then
var_append extraconfopt " " "--enable-esd"
if [ "$ROCKCFG_PKG_OPENAL_SDL" == "1" ] ; then
var_append extraconfopt " " "--enable-sdl"
if [ "$ROCKCFG_PKG_OPENAL_VORBIS" == "1" ] ; then
var_append extraconfopt " " "--enable-vorbis"
if [ "$ROCKCFG_PKG_OPENAL_SMPEG" == "1" ] ; then
var_append extraconfopt " " "--enable-smpeg"
if [ "$ROCKCFG_PKG_OPENAL_CAPTURE" == "1" ] ; then
var_append extraconfopt " " "--enable-capture"
# known bugs:
# --enable-smpeg could be useful but are untested yet.
# ALSA 1.0 API change workaround ... :-(
var_append GCC_WRAPPER_APPEND " " \
"-DALSA_PCM_OLD_HW_PARAMS_API -DALSA_PCM_OLD_SW_PARAMS_API"
var_append GCC_WRAPPER_REMOVE " " "-ansi"