2011-12-18 05:40:02 +00:00
|
|
|
plugrel=1
|
|
|
|
noautobuild=1
|
|
|
|
|
|
|
|
pkgname=xf86-video-msm
|
2012-03-25 16:40:49 +00:00
|
|
|
pkgver=20120325
|
2011-12-18 05:40:02 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="XF86 Video Drivers for MSM"
|
2011-12-18 09:01:49 +00:00
|
|
|
arch=('armv7h')
|
2011-12-18 05:40:02 +00:00
|
|
|
url="http://www.quicinc.com/"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('xorg-server')
|
|
|
|
makedepends=('git' 'xorg-server-devel' 'xproto' 'glproto' 'xf86driproto')
|
2011-12-18 16:50:53 +00:00
|
|
|
source=('makefile-am.patch' 'makefile.patch' 'no-neon-aligncopy.patch')
|
2011-12-18 09:01:49 +00:00
|
|
|
md5sums=(8b80c9611272070f20573dbceaeb3a9d
|
|
|
|
36b8108d24eb8bf1e3cb865c1d9c278a
|
2011-12-18 16:50:53 +00:00
|
|
|
bbb4c8bc9d0af6d5c7823634eee5272c)
|
2011-12-18 05:40:02 +00:00
|
|
|
_gitroot="git://codeaurora.org/quic/xwin/xf86-video-msm.git"
|
|
|
|
_gitname="xf86-video-msm"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir
|
|
|
|
|
|
|
|
## Git checkout
|
2011-12-18 09:01:49 +00:00
|
|
|
msg "Git checkout: Retrieving sources"
|
|
|
|
rm -rf ${_gitname}
|
|
|
|
git clone ${_gitroot}
|
|
|
|
cd ${_gitname} && git checkout remotes/origin/chromium
|
2011-12-18 05:40:02 +00:00
|
|
|
msg "Checkout completed"
|
|
|
|
|
|
|
|
cd $srcdir/${_gitname}
|
|
|
|
mkdir output
|
2011-12-18 16:50:53 +00:00
|
|
|
./autogen.sh --with-xorg-module-dir=$PWD/output
|
2011-12-18 05:40:02 +00:00
|
|
|
|
2011-12-18 09:01:49 +00:00
|
|
|
# Symlink to the kernel headers from 2.6.35-palm-tenderloin
|
2011-12-24 06:24:07 +00:00
|
|
|
ln -s /usr/src/linux-2.6.35/include/linux/ linux
|
|
|
|
ln -s /usr/src/linux-2.6.35/include/drm/ drm
|
2011-12-18 09:01:49 +00:00
|
|
|
|
2011-12-18 05:40:02 +00:00
|
|
|
# PATCH: Turn off neon optimizations
|
2011-12-18 16:50:53 +00:00
|
|
|
cp $srcdir/makefile-am.patch $srcdir/xf86-video-msm/
|
|
|
|
patch -p1 < makefile-am.patch
|
2011-12-18 05:40:02 +00:00
|
|
|
|
2011-12-18 16:50:53 +00:00
|
|
|
./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
|
2011-12-18 09:01:49 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
patch -p1 < $srcdir/no-neon-aligncopy.patch
|
2011-12-18 05:40:02 +00:00
|
|
|
|
2011-12-18 16:50:53 +00:00
|
|
|
make
|
|
|
|
make install
|
2011-12-18 05:40:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/${_gitname}/output/
|
|
|
|
|
|
|
|
# create directory structure
|
2011-12-18 16:50:53 +00:00
|
|
|
install -d $pkgdir/usr/lib/xorg/modules
|
2011-12-18 05:40:02 +00:00
|
|
|
|
|
|
|
# copy everything
|
2011-12-18 16:50:53 +00:00
|
|
|
cp -a * $pkgdir/usr/lib/xorg/modules/
|
2011-12-18 05:40:02 +00:00
|
|
|
}
|