2022-02-05 14:23:32 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
# Copyright (C) 0riginally created by Escalade (https://github.com/escalade)
|
|
|
|
# Copyright (C) 2018-present 5schatten (https://github.com/5schatten)
|
|
|
|
|
|
|
|
PKG_NAME="SDL_sound"
|
|
|
|
PKG_VERSION="f0d57c9b72d8"
|
|
|
|
PKG_SHA256="f4848b27a79dd9bcf4720c1751730772472f501ddf5432be2e93a146fa7e57cb"
|
|
|
|
PKG_LICENSE="GPLv3"
|
|
|
|
PKG_SITE="https://www.icculus.org/SDL_sound/"
|
2023-02-24 13:53:43 +00:00
|
|
|
PKG_URL="http://hg.icculus.org/icculus/SDL_sound/archive/${PKG_VERSION}.tar.gz"
|
2022-02-05 14:23:32 +00:00
|
|
|
PKG_DEPENDS_TARGET="toolchain alsa-lib SDL2"
|
|
|
|
PKG_LONGDESC="SDL_sound library"
|
|
|
|
PKG_TOOLCHAIN="autotools"
|
|
|
|
|
|
|
|
PKG_CONFIGURE_OPTS_TARGET="--prefix=/usr \
|
|
|
|
--disable-speex \
|
2023-02-24 13:53:43 +00:00
|
|
|
ac_cv_path_SDL2_CONFIG=${SYSROOT_PREFIX}/usr/bin/sdl2-config"
|
2022-02-05 14:23:32 +00:00
|
|
|
|
|
|
|
post_unpack() {
|
2023-02-24 13:53:43 +00:00
|
|
|
touch ${PKG_BUILD}/README
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pre_configure_target() {
|
2023-02-24 13:53:43 +00:00
|
|
|
export LDFLAGS="${LDFLAGS} -lm"
|
2022-02-05 14:23:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
post_makeinstall_target() {
|
|
|
|
ln -sf ${PKG_ORIG_SYSROOT_PREFIX:-${SYSROOT_PREFIX}}/usr/include/SDL/SDL_sound.h ${PKG_ORIG_SYSROOT_PREFIX:-${SYSROOT_PREFIX}}/usr/include/SDL2/SDL_sound.h
|
|
|
|
}
|