recipes: Honor CPPFLAGS (through QICPPFLAGS) whenever is possible
[dragora.git] / recipes / x-libs / at-spi2-atk / recipe
blobf87687d4a00c548ad6d259fd8bf1dfa7b73e9832
1 # Build recipe for at-spi2-atk.
3 # Copyright (C) 2018, MMPG <mmpg@vp.pl>
4 # Copyright (C) 2018-2019, 2021 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=at-spi2-atk
22 version=2.38.0
23 release=1
25 # Define a category for the output of the package name
26 pkgcategory=x-libs
28 tarname=${program}-${version}.tar.xz
30 # Remote source(s)
31 fetch="http://ftp.gnome.org/pub/gnome/sources/at-spi2-atk/${version%.*}/$tarname"
33 description="
34 A GTK+ module that bridges ATK to the new D-Bus based AT-SPI.
36 This package includes libatk-bridge, a library that bridges ATK to the
37 new D-Bus based AT-SPI, as well as a corresponding module for gtk+ 2.x.
38 Gtk+ 3.x now links against libatk-bridge directly rather than requiring
39 it to be loaded as a module.
41 These libraries depend on the at-spi2-core code that contains the
42 daemon for registering applications, D-Bus helper libraries and the
43 AT-SPI D-Bus specifications.
46 homepage=http://wiki.gnome.org/Accessibility/
47 license=LGPLv2+
49 docs="AUTHORS COPYING NEWS README"
50 docsdir="${docdir}/${program}-${version}"
52 build()
54     unpack "${tardir}/$tarname"
56     cd "$srcdir"
58     # Set sane permissions
59     chmod -R u+w,go-w,a+rX-s .
61     mkdir BUILD
62     cd BUILD
64     CPPFLAGS="$QICPPFLAGS" CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
65     meson setup $configure_args \
66      --libdir /usr/lib${libSuffix} \
67      --buildtype=release \
68      --strip \
69      ..
71     ninja -j${jobs}
72     DESTDIR="$destdir" ninja -j${jobs} install
74     cd ..
76     # Copy documentation
77     mkdir -p "${destdir}${docsdir}"
78     cp -p $docs "${destdir}${docsdir}"