PKGBUILDs/extra/xf86-video-msm/PKGBUILD

62 lines
1.5 KiB
Bash
Raw Normal View History

plugrel=1
noautobuild=1
pkgname=xf86-video-msm
pkgver=20111218
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')
2011-12-18 16:50:53 +00:00
source=('makefile-am.patch' 'makefile.patch' 'no-neon-aligncopy.patch')
md5sums=(8b80c9611272070f20573dbceaeb3a9d
36b8108d24eb8bf1e3cb865c1d9c278a
2011-12-18 16:50:53 +00:00
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
2011-12-18 16:50:53 +00:00
./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/linux/ linux
ln -s /usr/src/linux-2.6.35/drm/ drm
# 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 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
cd ..
patch -p1 < $srcdir/no-neon-aligncopy.patch
2011-12-18 16:50:53 +00:00
make
make install
}
package() {
cd $srcdir/${_gitname}/output/
# create directory structure
2011-12-18 16:50:53 +00:00
install -d $pkgdir/usr/lib/xorg/modules
# copy everything
2011-12-18 16:50:53 +00:00
cp -a * $pkgdir/usr/lib/xorg/modules/
}