| 1 | # Description: SDL, Simple DirectMedia Layer |
| 2 | # URL: https://www.libsdl.org/ |
| 3 | # Maintainer: Danny Rawlins, crux at romster dot me |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: alsa-lib glu |
| 6 | |
| 7 | name=libsdl |
| 8 | version=1.2.15 |
| 9 | release=5 |
| 10 | source=(https://www.libsdl.org/release/SDL-$version.tar.gz |
| 11 | $name-1.2.x-libx11.patch $name-$version-bs.patch) |
| 12 | |
| 13 | build() { |
| 14 | cd SDL-$version |
| 15 | |
| 16 | patch -p1 -i $SRC/$name-1.2.x-libx11.patch |
| 17 | patch -p1 -i $SRC/$name-$version-bs.patch |
| 18 | |
| 19 | ./configure \ |
| 20 | --prefix=/usr \ |
| 21 | --build=aarch64-unknown-linux-gnueabi \ |
| 22 | --enable-alsa \ |
| 23 | --disable-rpath |
| 24 | |
| 25 | make |
| 26 | make DESTDIR=$PKG install |
| 27 | } |