qi: Bump to release 2.12
[dragora.git] / recipes / xorg / driver / xf86-video-intel / recipe
blob85c62610bc82fa61b97f7d1b8ab40115d8cf09e4
1 # Build recipe for xf86-video-intel.
3 # Copyright (c) 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
4 # Copyright (c) 2017-2019, 2021-2022 Matias Fonzo, <selk@dragora.org>.
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 #    http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
18 # Exit immediately on any error
19 set -e
21 program=xf86-video-intel
22 version=20210115_31486f40
23 release=2
25 # Define a category for the output of the package name
26 pkgcategory=xorg_driver
28 tarname=${program}-${version}.tar.lz
30 # Remote source(s)
31 #fetch=https://anduin.linuxfromscratch.org/BLFS/xf86-video-intel/$tarname
32 fetch="
33   https://dragora.mirror.garr.it/current/sources/$tarname
34   rsync://rsync.dragora.org/current/sources/$tarname
37 description="
38 Video driver for the Xorg X server supporting Intel chipsets.
40 This package is part of X11.
43 homepage=https://cgit.freedesktop.org/xorg/driver/xf86-video-intel
44 license="MIT X Consortium"
46 # Source documentation
47 docs="AUTHORS COPYING NEWS README"
48 docsdir="${docdir}/${program}-${version}"
50 build()
52     unpack "${tardir}/$tarname"
54     cd "$srcdir"
56     # Set sane permissions
57     chmod -R u+w,go-w,a+rX-s .
59     ./autogen.sh \
60     CPPFLAGS="$QICPPFLAGS" \
61     CFLAGS="$QICFLAGS " LDFLAGS="$QILDFLAGS -Wl,-z,lazy" \
62      $configure_args \
63      --libdir=/usr/lib${libSuffix} \
64      --mandir=$mandir \
65      --docdir=$docsdir \
66      --enable-static=no \
67      --enable-shared=yes \
68      --enable-kms-only \
69      --enable-uxa \
70      --build="$(gcc -dumpmachine)"
72     make -j${jobs} V=1
73     make -j${jobs} DESTDIR="$destdir" install
75     # Compress and link man pages (if needed)
76     (
77         cd "${destdir}/$mandir"
78         find . -type f -exec lzip -9 {} +
79         find . -type l | while read -r file
80         do
81             ln -sf "$(readlink -- "$file").lz" "${file}.lz"
82             rm -- "$file"
83         done
84     )
86     # Copy documentation
87     mkdir -p "${destdir}/$docsdir"
88     cp -p $docs "${destdir}/$docsdir"