recipes: libs/alsa-lib: upgraded to version 1.1.8
[dragora.git] / recipes / x-libs / fontconfig_pass1 / recipe
blob038857a71dd099f443eb28d505a85263f64afdb6
1 # Build recipe for fontconfig (pass1).
3 # Copyright (c) 2018 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=fontconfig
18 version=2.13.1
19 release=1
21 # Set 'outdir' for a nice and well-organized output directory
22 outdir="${outdir}/${arch}/x-libs"
24 pkgname=fontconfig_pass1
26 description="
27 Temporary installation of fontconfig.
29 This is a temporary installation to satisfy the requirements of Xorg.
30 Later, this will be replaced with the fully \"fontconfig\" package.
33 homepage=http://www.freedesktop.org/wiki/Software/fontconfig/
34 license=Custom
36 tarname=${program}-${version}.tar.bz2
38 # Remote source(s)
39 fetch=http://www.freedesktop.org/software/fontconfig/release/$tarname
41 # Source documentation
42 docsdir="${docdir}/${pkgname}-${version}"
44 build() {
45     set -e
47     unpack "${tardir}/$tarname"
49     cd "$srcdir"
51     # Set sane permissions
52     chmod -R u+w,go-w,a+rX-s .
54     # Make sure the system regenerates src/fcobjshash.h (Thanks to BLFS!)
55     rm -f src/fcobjshash.h
57     ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
58      $configure_args \
59      --libdir=/usr/lib${libSuffix} \
60      --mandir=$mandir \
61      --docdir=$docsdir \
62      --disable-static \
63      --enable-shared \
64      --disable-docs \
65      --build="$(cc -dumpmachine)"
67     make -j${jobs} V=1
68     make -j${jobs} DESTDIR="$destdir" install-strip
70     # Compress manual pages
71     if [ -d "${destdir}/$mandir" ] ; then
72         (
73             cd "${destdir}/$mandir"
74             find . -type f -exec lzip -9 '{}' +
75             find . -type l | while read -r file
76             do
77                 ln -sf "$(readlink -- "$file").lz" "${file}.lz"
78                 rm -- "$file"
79             done
80         )
81     fi