summaryrefslogtreecommitdiff
path: root/user/sdl/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-09 22:43:31 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-09 22:43:31 -0500
commit1260f86b565660da72dc1519a8e559bf6698ec2f (patch)
treec3d99a3ca0ec0419d9122f08d8339ed462b89867 /user/sdl/APKBUILD
parent8e4a0999462da95f45199a637dd461d04154e590 (diff)
downloadpackages-1260f86b565660da72dc1519a8e559bf6698ec2f.tar.gz
packages-1260f86b565660da72dc1519a8e559bf6698ec2f.tar.bz2
packages-1260f86b565660da72dc1519a8e559bf6698ec2f.tar.xz
packages-1260f86b565660da72dc1519a8e559bf6698ec2f.zip
user/sdl: pull in, take, fix a bit
Diffstat (limited to 'user/sdl/APKBUILD')
-rw-r--r--user/sdl/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/user/sdl/APKBUILD b/user/sdl/APKBUILD
new file mode 100644
index 000000000..176ac36b9
--- /dev/null
+++ b/user/sdl/APKBUILD
@@ -0,0 +1,51 @@
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=sdl
+pkgver=1.2.15
+pkgrel=9
+pkgdesc="Library for low-level graphics, audio, and input access"
+url="http://www.libsdl.org"
+arch="all"
+options="!check" # Tests are all interactive.
+license="LGPL-2.1+"
+subpackages="$pkgname-dev $pkgname-doc"
+depends=
+depends_dev="libx11-dev"
+makedepends="$depends_dev libxext-dev libxrender-dev libx11-dev libice-dev
+ libsm-dev libxrandr-dev mesa-dev alsa-lib-dev glu-dev"
+source="http://www.libsdl.org/release/SDL-$pkgver.tar.gz
+ SDL-1.2.10-GrabNotViewable.patch
+ SDL-1.2.15-const_XData32.patch
+ "
+builddir="$srcdir"/SDL-$pkgver
+
+prepare() {
+ cd "$builddir"
+ update_config_sub
+ default_prepare
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --disable-nasm \
+ --disable-esd \
+ --disable-video-svga \
+ --disable-video-ggi \
+ --disable-video-aalib \
+ --enable-alsa \
+ --with-x \
+ --disable-rpath
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="ac392d916e6953b0925a7cbb0f232affea33339ef69b47a0a7898492afb9784b93138986df53d6da6d3e2ad79af1e9482df565ecca30f89428be0ae6851b1adc SDL-1.2.15.tar.gz
+20049408d4c00d895c39a7901d889d1874ebcd382e93b2e8df38bd3726e2236f4e9a980720724cf176a35d05fb0db5dbcabd42089423adeb404f2dba16d52b7b SDL-1.2.10-GrabNotViewable.patch
+ae7cdb61930199a7989e1690be37133eddeb8d446fef3fb5bbe0008d5e3b30abb28f4cc8ffea5d7a186ec242f158ed06dbd2b9ea98ca3e3caeed5ab12bac6875 SDL-1.2.15-const_XData32.patch"