recipes: xorg/driver/xf86-video-intel: resolve build issues for newer version
[dragora.git] / recipes / xorg / proto / xorgproto / recipe
blobbac40732b080610e13f363a69035381922251a06
1 # Build recipe for xorgproto.
3 # Copyright (c) 2018-2019 Matias Fonzo, <selk@dragora.org>.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 #    http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
17 program=xorgproto
18 version=2019.1
19 release=2
21 # Set 'outdir' for a nice and well-organized output directory
22 outdir="${outdir}/${arch}/xorg/proto"
24 tarname=${program}-${version}.tar.bz2
26 # Remote source(s)
27 fetch=http://www.x.org/releases/individual/proto/$tarname
29 description="
30 X Window System Unified Protocol.
32 This package provides the headers and specification documents defining
33 the core protocol and (many) extensions for the X Window System.  The
34 extensions are those common among servers descended from X.Org 6.7.  It
35 also includes a number of headers that aren't purely protocol related,
36 but are depended upon by many other X Window System packages to provide
37 common definitions and porting layer.
40 homepage=http://www.x.org
41 license="MIT X Consortium"
43 # Source documentation
44 docs="AUTHORS COPYING* README.md"
45 docsdir="${docdir}/${program}-${version}"
47 build()
49     set -e
51     unpack "${tardir}/$tarname"
53     cd "$srcdir"
55     # Set sane permissions
56     chmod -R u+w,go-w,a+rX-s .
58     mkdir -p build
59     cd build
61     meson setup $configure_args \
62      --libdir /usr/lib${libSuffix} \
63      --mandir $mandir \
64      --buildtype=release \
65      -Dlegacy=true \
66      ..
68     ninja
69     DESTDIR="$destdir" ninja install
71     # This is provided by 'xorg/lib/libXvMC' currently
72     rm "${destdir}/usr/include/X11/extensions/vldXvMC.h"
74     cd ..
76     # Compress and link man pages (if needed)
77     if test -d "${destdir}/$mandir"
78     then
79         (
80             cd "${destdir}/$mandir"
81             find . -type f -exec lzip -9 '{}' +
82             find . -type l | while read -r file
83             do
84                 ln -sf "$(readlink -- "$file").lz" "${file}.lz"
85                 rm -- "$file"
86             done
87         )
88     fi
90     # Copy documentation
91     mkdir -p "${destdir}${docsdir}"
92     cp -p $docs "${destdir}${docsdir}"