2017-04-02 18:57:55 +00:00
|
|
|
# Xorg video driver for Marvell Armada DRM and Freescale i.MX
|
|
|
|
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
|
|
|
|
buildarch=4
|
|
|
|
|
|
|
|
pkgname=xf86-video-armada
|
2022-01-01 03:03:55 +00:00
|
|
|
pkgver=436.34a7272
|
2018-08-17 14:08:47 +00:00
|
|
|
pkgrel=1
|
2017-04-02 18:57:55 +00:00
|
|
|
pkgdesc='X.org graphics driver for Marvell Armada DRM and Freescale i.MX'
|
|
|
|
arch=('armv7h')
|
|
|
|
url="http://git.arm.linux.org.uk/cgit/xf86-video-armada.git/"
|
|
|
|
license=('GPL2')
|
|
|
|
depends=('libdrm-armada')
|
2022-01-01 03:03:55 +00:00
|
|
|
makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'git' 'libdrm')
|
|
|
|
conflicts=('xorg-server<1.21.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26')
|
2017-04-02 18:57:55 +00:00
|
|
|
options=('!libtool')
|
|
|
|
backup=('etc/X11/xorg.conf.d/99-armada.conf')
|
2022-01-01 03:03:55 +00:00
|
|
|
source=("$pkgname::git://git.armlinux.org.uk/~rmk/xf86-video-armada.git#branch=unstable-devel"
|
2018-08-31 00:30:54 +00:00
|
|
|
'git+https://github.com/laanwj/etna_viv.git')
|
2017-04-02 18:57:55 +00:00
|
|
|
md5sums=('SKIP'
|
2018-08-31 00:30:54 +00:00
|
|
|
'SKIP')
|
2017-04-02 18:57:55 +00:00
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd $pkgname
|
|
|
|
echo $(git rev-list --count makepkg).$(git rev-parse --short makepkg)
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname
|
2018-05-27 14:31:54 +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}
|
|
|
|
|
2017-04-02 18:57:55 +00:00
|
|
|
./autogen.sh --prefix=/usr --disable-vivante --disable-etnaviv --with-etnaviv-source="${srcdir}/etna_viv"
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm644 conf/xorg-sample.conf "${pkgdir}/etc/X11/xorg.conf.d/99-armada.conf"
|
|
|
|
}
|