28 lines
665 B
Plaintext
28 lines
665 B
Plaintext
# Description: SDL version 2, Simple DirectMedia Layer
|
|
# URL: https://www.libsdl.org/
|
|
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
|
|
# Depends on: alsa-lib-32 libsdl2 mesa3d-32
|
|
|
|
name=libsdl2-32
|
|
version=2.0.12
|
|
release=1
|
|
source=(https://www.libsdl.org/release/SDL2-$version.tar.gz
|
|
SDL2-2.0.10-opengl_include_fix-1.patch)
|
|
|
|
build() {
|
|
cd SDL2-$version
|
|
|
|
# https://www.mail-archive.com/blfs-book@lists.linuxfromscratch.org/msg40028.html
|
|
patch -p1 -i $SRC/SDL2-2.0.10-opengl_include_fix-1.patch
|
|
|
|
CONFIG_SHELL=/bin/bash \
|
|
./configure \
|
|
--prefix=/usr \
|
|
--libdir=/usr/lib32
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/{bin,include,share}
|
|
}
|