PKGBUILDs/alarm/xf86-video-imx/PKGBUILD

65 lines
2 KiB
Bash
Raw Normal View History

2012-08-02 21:07:13 +00:00
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
2011-11-28 02:19:22 +00:00
# i.MX driver for Xorg
2012-08-02 21:07:13 +00:00
buildarch=4
2011-11-28 02:19:22 +00:00
pkgname="xf86-video-imx"
2014-01-14 01:27:33 +00:00
srcname="xserver-xorg-video-imx"
pkgver=11.09.01
2018-05-27 14:35:25 +00:00
pkgrel=7
2011-11-28 02:19:22 +00:00
arch=('armv7h')
url="http://www.freescale.com"
license=('GPL2')
depends=('libz160')
2018-05-17 23:51:11 +00:00
makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=24.0' 'linux-headers-imx6-fsl')
conflicts=('xorg-server<1.20' 'X-ABI-VIDEODRV_VERSION<24' 'X-ABI-VIDEODRV_VERSION>=25')
2011-11-28 02:19:22 +00:00
options=('!libtool')
2014-01-14 01:27:33 +00:00
source=("http://archlinuxarm.org/builder/src/xserver-xorg-video-imx-${pkgver}.tar.gz"
'xserver-1.14-compat.patch'
'Fix-error-unknown-type-name-uint.patch'
'Make-video-API-forward-and-backward-compatible.patch'
'ext-Update-to-newer-swap-macros.patch'
2015-02-15 18:37:31 +00:00
'xf86-video-imxfb-fix-m4-hardcodded-paths.patch'
'xserver-1.17-compat.patch')
2014-01-14 01:27:33 +00:00
md5sums=('d19148399b5d1c4dab90d0cc6f2c4789'
'2599833ffb69482ed2fae1c6bbfe0b3e'
'02db4718380ed7073ea573725256b5d2'
'c4ddcff1f2d465eaccb64a14288510e2'
'f3ee43174a3a90e7a25dd5b9422caf34'
2015-02-15 18:37:31 +00:00
'aa92032c374f77845ad35f35db6dd231'
'b3ee8ded808cc16e9404ee45bba5438a')
2014-01-14 01:27:33 +00:00
prepare() {
cd "${srcdir}/${srcname}-${pkgver}"
patch -p1 -i ../xserver-1.14-compat.patch
patch -p1 -i ../Fix-error-unknown-type-name-uint.patch
patch -p1 -i ../Make-video-API-forward-and-backward-compatible.patch
patch -p1 -i ../ext-Update-to-newer-swap-macros.patch
patch -p1 -i ../xf86-video-imxfb-fix-m4-hardcodded-paths.patch
2015-02-15 18:37:31 +00:00
patch -p1 -i ../xserver-1.17-compat.patch
2014-01-14 01:27:33 +00:00
}
2011-11-28 02:19:22 +00:00
build() {
2014-01-14 01:27:33 +00:00
cd "${srcdir}/${srcname}-${pkgver}"
2018-05-27 14:35:25 +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}
2011-11-28 02:19:22 +00:00
./configure --prefix=/usr
make
}
package() {
pkgdesc="i.MX driver for Xorg"
2014-01-14 01:27:33 +00:00
cd "${srcdir}/${srcname}-${pkgver}"
2011-11-28 02:19:22 +00:00
make DESTDIR="${pkgdir}" install
}