2011-12-18 05:40:02 +00:00
|
|
|
plugrel=1
|
|
|
|
noautobuild=1
|
|
|
|
|
2011-12-18 09:01:49 +00:00
|
|
|
# Still doesn't build cleanly into a non /usr/local/...directory.
|
|
|
|
|
2011-12-18 05:40:02 +00:00
|
|
|
pkgname=xf86-video-msm
|
2011-12-18 09:01:49 +00:00
|
|
|
pkgver=20111218
|
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 09:01:49 +00:00
|
|
|
source=('am-patch.patch' 'try-me.patch' 'no-neon-aligncopy.patch'
|
|
|
|
'no-neon-mdp.patch')
|
|
|
|
md5sums=(8b80c9611272070f20573dbceaeb3a9d
|
|
|
|
36b8108d24eb8bf1e3cb865c1d9c278a
|
|
|
|
c24f5567e6d808b34e0ed721ab9018de
|
|
|
|
3b58e2f23e7576a511c4834b586e8f58)
|
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
|
|
|
|
./autogen.sh
|
|
|
|
|
2011-12-18 09:01:49 +00:00
|
|
|
# Symlink to the kernel headers from 2.6.35-palm-tenderloin
|
|
|
|
ln -s /usr/src/linux-2.6.35/linux/ linux
|
|
|
|
ln -s /usr/src/linux-2.6.35/drm/ drm
|
|
|
|
|
2011-12-18 05:40:02 +00:00
|
|
|
# PATCH: Turn off neon optimizations
|
2011-12-18 09:01:49 +00:00
|
|
|
cp $srcdir/am-patch.patch $srcdir/xf86-video-msm/
|
|
|
|
patch -p1 < am-patch.patch
|
2011-12-18 05:40:02 +00:00
|
|
|
|
2011-12-18 09:01:49 +00:00
|
|
|
./autogen.sh
|
|
|
|
cp $srcdir/try-me.patch $srcdir/xf86-video-msm/src/
|
|
|
|
cd $srcdir/xf86-video-msm/src/ && patch -p1 < try-me.patch
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
patch -p1 < $srcdir/no-neon-aligncopy.patch
|
|
|
|
patch -p1 < $srcdir/no-neon-mdp.patch
|
2011-12-18 05:40:02 +00:00
|
|
|
|
2011-12-18 09:01:49 +00:00
|
|
|
libdir=output make
|
2011-12-18 05:40:02 +00:00
|
|
|
prefix=output make install #FIXME: Find out how to install to $pkgdir
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/${_gitname}/output/
|
|
|
|
|
|
|
|
# create directory structure
|
|
|
|
install -d $pkgdir/usr/lib/xorg/modules/drivers
|
|
|
|
|
|
|
|
# copy everything
|
|
|
|
cp -a * $pkgdir/usr/lib/xorg/modules/drivers/
|
|
|
|
}
|