aboutsummaryrefslogtreecommitdiffstats
path: root/main/sdl2
diff options
context:
space:
mode:
authorClayton Craft <clayton@craftyguy.net>2017-11-05 09:43:29 -0800
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-07 09:54:11 +0000
commit31aa045234cf8e4fbfce80df8cc3e33d850cd9a0 (patch)
treeab3979debf394e836c09862636cd6d72c545e00b /main/sdl2
parentf0ed0d2b021c9d6a3d006e7a856aec4e8cc68ded (diff)
downloadaports-31aa045234cf8e4fbfce80df8cc3e33d850cd9a0.tar.bz2
aports-31aa045234cf8e4fbfce80df8cc3e33d850cd9a0.tar.xz
main/sdl2: re-add directfb support
This re-adds directfb support, which is required by a program we use in pmOS for unlocking rootfs/LUKS on boot. This also adds a simple check, since no testsuite exists for this application
Diffstat (limited to 'main/sdl2')
-rw-r--r--main/sdl2/APKBUILD13
1 files changed, 10 insertions, 3 deletions
diff --git a/main/sdl2/APKBUILD b/main/sdl2/APKBUILD
index cfca5c9d30..1232d4aae1 100644
--- a/main/sdl2/APKBUILD
+++ b/main/sdl2/APKBUILD
@@ -2,13 +2,13 @@
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=sdl2
pkgver=2.0.7
-pkgrel=0
+pkgrel=1
pkgdesc="A development library designed to provide low level access to audio, keyboard, mouse, joystick and graphics"
url="http://www.libsdl.org"
arch="all"
license="zlib"
depends=""
-makedepends="alsa-lib-dev libxcursor-dev libxrandr-dev libxrender-dev mesa-dev
+makedepends="alsa-lib-dev directfb-dev libxcursor-dev libxrandr-dev libxrender-dev mesa-dev
libxscrnsaver-dev libxi-dev libx11-dev libxext-dev libusb-dev libxkbcommon-dev"
subpackages="$pkgname-dev"
source="https://www.libsdl.org/release/SDL2-$pkgver.tar.gz"
@@ -16,6 +16,8 @@ builddir="$srcdir/SDL2-$pkgver"
build() {
cd "$builddir"
+ # NOTE: Please do not remove the --enable-video-directfb flag.
+ # Some apps, used for booting Alpine derivatives, require this to function!
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -26,10 +28,15 @@ build() {
--disable-esd \
--disable-nas \
--disable-rpath \
- --with-x
+ --with-x \
+ --enable-video-directfb
make
}
+check() {
+ [ "$($builddir/sdl2-config --version)" == "$pkgver" ]
+}
+
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install