mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
61 lines
1.5 KiB
Bash
61 lines
1.5 KiB
Bash
plugrel=1
|
|
noautobuild=1
|
|
|
|
pkgname=xf86-video-msm
|
|
pkgver=20120325
|
|
pkgrel=1
|
|
pkgdesc="XF86 Video Drivers for MSM"
|
|
arch=('armv7h')
|
|
url="http://www.quicinc.com/"
|
|
license=('GPL')
|
|
depends=('xorg-server')
|
|
makedepends=('git' 'xorg-server-devel' 'xproto' 'glproto' 'xf86driproto')
|
|
source=('makefile-am.patch' 'makefile.patch' 'no-neon-aligncopy.patch')
|
|
md5sums=(8b80c9611272070f20573dbceaeb3a9d
|
|
36b8108d24eb8bf1e3cb865c1d9c278a
|
|
bbb4c8bc9d0af6d5c7823634eee5272c)
|
|
_gitroot="git://codeaurora.org/quic/xwin/xf86-video-msm.git"
|
|
_gitname="xf86-video-msm"
|
|
|
|
build() {
|
|
cd $srcdir
|
|
|
|
## Git checkout
|
|
msg "Git checkout: Retrieving sources"
|
|
rm -rf ${_gitname}
|
|
git clone ${_gitroot}
|
|
cd ${_gitname} && git checkout remotes/origin/chromium
|
|
msg "Checkout completed"
|
|
|
|
cd $srcdir/${_gitname}
|
|
mkdir output
|
|
./autogen.sh --with-xorg-module-dir=$PWD/output
|
|
|
|
# Symlink to the kernel headers from 2.6.35-palm-tenderloin
|
|
ln -s /usr/src/linux-2.6.35/include/linux/ linux
|
|
ln -s /usr/src/linux-2.6.35/include/drm/ drm
|
|
|
|
# PATCH: Turn off neon optimizations
|
|
cp $srcdir/makefile-am.patch $srcdir/xf86-video-msm/
|
|
patch -p1 < makefile-am.patch
|
|
|
|
./autogen.sh --with-xorg-module-dir=$PWD/output
|
|
cp $srcdir/makefile.patch $srcdir/xf86-video-msm/src/
|
|
cd $srcdir/xf86-video-msm/src/ && patch -p1 < makefile.patch
|
|
cd ..
|
|
|
|
patch -p1 < $srcdir/no-neon-aligncopy.patch
|
|
|
|
make
|
|
make install
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/${_gitname}/output/
|
|
|
|
# create directory structure
|
|
install -d $pkgdir/usr/lib/xorg/modules
|
|
|
|
# copy everything
|
|
cp -a * $pkgdir/usr/lib/xorg/modules/
|
|
}
|