-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtemplate
More file actions
42 lines (38 loc) · 1.91 KB
/
Copy pathtemplate
File metadata and controls
42 lines (38 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Template file for 'xf86-video-armsoc-git'
pkgname=xf86-video-armsoc-git
version=1.4.1
revision=1
build_style=gnu-configure
short_desc="Xorg DDX driver for ARM devices (required a linux-firmware)"
maintainer="none"
license="GPL-2.0"
homepage="http://cgit.freedesktop.org/xorg/driver/xf86-video-armsoc"
distfiles="https://gitlab.freedesktop.org/xorg/driver/xf86-video-armsoc/-/archive/master/xf86-video-armsoc-master.tar.gz"
checksum=4d82b31f08216867582565c61aadc922efeacc6bf3ab2ddaa26b35b8b8c64c6d
wrksrc="xf86-video-armsoc-master"
export XBPS_MAKEJOBS=$(grep 'model name' /proc/cpuinfo --count)
export XBPS_TARGET_CFLAGS=" -O2 --param l1-cache-size=64 --param l2-cache-size=1024 -faggressive-loop-optimizations -fguess-branch-probability -floop-nest-optimize -fomit-frame-pointer -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fpredictive-commoning -ftree-loop-optimize "
export LDFLAGS="-Wl,-z,lazy"
hostmakedepends="git m4 which libXrandr-devel xorg-server-devel pkgconf pkg-config libtool automake autoconf xorg-util-macros"
makedepends="m4 which libXrandr-devel xorg-server-devel pkgconf pkg-config libtool automake autoconf xorg-util-macros git"
depends="virtual?xserver-abi-video-24_1"
do_configure() {
# apply patches in a specific way
cp $FILESDIR/0001-Initialize-XRandR-before-EnterVT.patch ../
cd $wrksrc
git apply ../0001-Initialize-XRandR-before-EnterVT.patch
rm -f ../0001-Initialize-XRandR-before-EnterVT.patch
}
do_build() {
cd $wrksrc
export CFLAGS=${CFLAGS/-fno-plt}
export CXXFLAGS=${CXXFLAGS/-fno-plt}
export LDFLAGS=${LDFLAGS/-Wl,-z,now}
CFLAGS=`echo $CFLAGS | sed -e 's/vfpv3-d16/neon/' | sed -e 's/vfpv3/neon/'` && CXXFLAGS="$CFLAGS"
if $(uname -m | grep -vq armv7l); then
./autogen.sh --prefix=/usr --host=armv7l-linux-gnueabihf --target=armv7l-linux-gnueabihf --build=$(uname -m | sed 's/ //g')-linux-gnu
else
./autogen.sh --prefix=/usr
fi
make ${makejobs}
}