2014-05-24 02:47:08 +00:00
|
|
|
# ARMSoC Mali FrameBuffer driver for ODROID
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
|
|
|
pkgname=xf86-video-armsoc-odroid
|
2017-01-13 03:36:22 +00:00
|
|
|
pkgver=240.78c3cda
|
2018-05-27 14:33:31 +00:00
|
|
|
pkgrel=3
|
2017-01-13 03:36:22 +00:00
|
|
|
pkgdesc='X.org graphics driver for ARM graphics - Exynos ODROID'
|
2014-05-24 02:47:08 +00:00
|
|
|
arch=('armv7h')
|
|
|
|
url="https://github.com/mdrjr/xf86-video-armsoc/tree/r4p0"
|
|
|
|
license=('GPL2')
|
2018-05-17 13:56:58 +00:00
|
|
|
makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=24.0' 'git')
|
|
|
|
conflicts=('xorg-server<1.20' 'X-ABI-VIDEODRV_VERSION<24' 'X-ABI-VIDEODRV_VERSION>=25' 'xf86-video-armsoc')
|
2014-05-24 02:47:08 +00:00
|
|
|
provides=(xf86-video-armsoc)
|
2017-01-13 03:36:22 +00:00
|
|
|
source=("$pkgname::git+https://github.com/mdrjr/xf86-video-armsoc.git#branch=r4p0"
|
|
|
|
'0001-Adapt-Block-WakeupHandler-signature-for-ABI-23.patch'
|
|
|
|
'0002-Use-NotifyFd-for-drm-fd.patch')
|
2015-02-15 18:20:36 +00:00
|
|
|
md5sums=('SKIP'
|
2017-01-13 03:36:22 +00:00
|
|
|
'9d06b5add32485a340c771bb87f3c81c'
|
|
|
|
'742f19941f6ef38a344c26c5785b8b79')
|
2014-05-24 02:47:08 +00:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
2017-01-13 03:36:22 +00:00
|
|
|
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
2014-05-24 02:47:08 +00:00
|
|
|
}
|
|
|
|
|
2015-02-15 18:20:36 +00:00
|
|
|
prepare() {
|
|
|
|
cd $pkgname
|
2017-01-13 03:36:22 +00:00
|
|
|
git apply ../0001-Adapt-Block-WakeupHandler-signature-for-ABI-23.patch
|
|
|
|
git apply ../0002-Use-NotifyFd-for-drm-fd.patch
|
2015-02-15 18:20:36 +00:00
|
|
|
}
|
|
|
|
|
2014-05-24 02:47:08 +00:00
|
|
|
build() {
|
|
|
|
cd $pkgname
|
|
|
|
|
2018-05-27 14:33:31 +00:00
|
|
|
# Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
|
|
|
|
# With them, module fail to load with undefined symbol.
|
|
|
|
# See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
|
|
|
|
export CFLAGS=${CFLAGS/-fno-plt}
|
|
|
|
export CXXFLAGS=${CXXFLAGS/-fno-plt}
|
|
|
|
export LDFLAGS=${LDFLAGS/,-z,now}
|
|
|
|
|
2014-05-24 02:47:08 +00:00
|
|
|
CFLAGS=`echo $CFLAGS | sed -e 's/vfpv3-d16/neon/'` && CXXFLAGS="$CFLAGS"
|
|
|
|
./autogen.sh --prefix=/usr --with-drmmode=exynos
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|