summaryrefslogtreecommitdiff
path: root/user/sdl2/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 23:07:24 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-18 23:07:39 -0500
commitc49fe977e8c43da67c7c2332bf5993a5e0a0d52b (patch)
treee3d2552c78ec321bc43851e1250af6c84878044e /user/sdl2/APKBUILD
parente2933e1d4ef8c64bed4bfc818e8aa997a49eba8c (diff)
downloadpackages-c49fe977e8c43da67c7c2332bf5993a5e0a0d52b.tar.gz
packages-c49fe977e8c43da67c7c2332bf5993a5e0a0d52b.tar.bz2
packages-c49fe977e8c43da67c7c2332bf5993a5e0a0d52b.tar.xz
packages-c49fe977e8c43da67c7c2332bf5993a5e0a0d52b.zip
user/sdl2: see entire commit message
- fix up metadata and stuff - bump to 2.0.8 - remove DirectFB since it is old and busted sorry pmOS, you really should port to fbdev - add PulseAudio support
Diffstat (limited to 'user/sdl2/APKBUILD')
-rw-r--r--user/sdl2/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/user/sdl2/APKBUILD b/user/sdl2/APKBUILD
new file mode 100644
index 000000000..75b6b276f
--- /dev/null
+++ b/user/sdl2/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: August Klein <amatcoder@gmail.com>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=sdl2
+pkgver=2.0.8
+pkgrel=0
+pkgdesc="Low level audio, keyboard, mouse, joystick and graphics library"
+url="https://www.libsdl.org/"
+arch="all"
+license="zlib"
+depends=""
+makedepends="alsa-lib-dev libx11-dev libxcursor-dev libxext-dev libxi-dev
+ libxkbcommon-dev libxrandr-dev libxrender-dev libusb-dev mesa-dev
+ libxscrnsaver-dev pulseaudio-dev"
+subpackages="$pkgname-dev"
+source="https://www.libsdl.org/release/SDL2-$pkgver.tar.gz"
+builddir="$srcdir/SDL2-$pkgver"
+
+build() {
+ cd "$builddir"
+ # pmOS needs DirectFB for battery animations and LUKS unlocking
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --enable-alsa \
+ --enable-clock_gettime \
+ --disable-arts \
+ --disable-esd \
+ --disable-nas \
+ --disable-rpath \
+ --with-x \
+ make
+}
+
+check() {
+ [ "$($builddir/sdl2-config --version)" = "$pkgver" ]
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="673c6058b8692a36b4a3594456b10ef6051efe79e4fb644421fc5c76b11fd68b895840a2c8b72413418c378733e2993d33f19767d0d7ed101eda6310bd70c869 SDL2-2.0.8.tar.gz"