2015-06-27 03:42:00 +00:00
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
|
|
|
pkgname=xf86-video-armsoc-rockchip
|
2015-08-06 00:01:32 +00:00
|
|
|
pkgver=261.67d4cff
|
2022-01-01 03:22:11 +00:00
|
|
|
pkgrel=7
|
2015-06-27 03:42:00 +00:00
|
|
|
pkgdesc='X.org graphics driver for ARM graphics - Rockchip'
|
|
|
|
arch=('armv7h')
|
|
|
|
url="https://github.com/mmind/xf86-video-armsoc"
|
|
|
|
license=('GPL2')
|
2022-01-01 03:22:11 +00:00
|
|
|
makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'git')
|
|
|
|
conflicts=('xorg-server<1.21.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26' 'xf86-video-armsoc')
|
2015-06-27 03:42:00 +00:00
|
|
|
provides=(xf86-video-armsoc)
|
2018-05-17 13:59:16 +00:00
|
|
|
options=('!libtool')
|
2017-01-13 03:19:27 +00:00
|
|
|
source=("$pkgname::git+https://github.com/mmind/xf86-video-armsoc.git#branch=devel/rockchip"
|
|
|
|
'0001-Adapt-Block-WakeupHandler-signature-for-ABI-23.patch'
|
|
|
|
'0002-Use-NotifyFd-for-drm-fd.patch'
|
2018-06-14 18:03:21 +00:00
|
|
|
'0003-Initialize-XRandR-before-EnterVT.patch'
|
2015-07-19 02:22:02 +00:00
|
|
|
'20-armsoc.conf')
|
|
|
|
md5sums=('SKIP'
|
2018-06-14 18:03:21 +00:00
|
|
|
'5d4f9626343030e6fb2583601c89335f'
|
|
|
|
'cf88a8f072f6505e8feb0418d1d66f81'
|
|
|
|
'7f42ada17f6ca9bd045d2dfef399692e'
|
2015-07-19 02:22:02 +00:00
|
|
|
'ca34299695813b200f0d6054c45d1f94')
|
2015-06-27 03:42:00 +00:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
2017-01-13 03:19:27 +00:00
|
|
|
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname
|
|
|
|
git apply ../0001-Adapt-Block-WakeupHandler-signature-for-ABI-23.patch
|
|
|
|
git apply ../0002-Use-NotifyFd-for-drm-fd.patch
|
2018-06-14 18:03:21 +00:00
|
|
|
git apply ../0003-Initialize-XRandR-before-EnterVT.patch
|
2015-06-27 03:42:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname
|
|
|
|
|
2018-05-27 14:33:59 +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}
|
|
|
|
|
2015-06-27 03:42:00 +00:00
|
|
|
CFLAGS=`echo $CFLAGS | sed -e 's/vfpv3-d16/neon/'` && CXXFLAGS="$CFLAGS"
|
|
|
|
./autogen.sh --prefix=/usr --with-drmmode=rockchip
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
2015-07-19 02:22:02 +00:00
|
|
|
mkdir -p "${pkgdir}"/etc/X11/xorg.conf.d/
|
|
|
|
cp ../20-armsoc.conf "${pkgdir}"/etc/X11/xorg.conf.d/
|
2015-06-27 03:42:00 +00:00
|
|
|
}
|