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.
21 # Set 'outdir' for a nice and well-organized output directory
22 outdir="${outdir}/${arch}/x-libs"
24 pkgname=fontconfig_pass1
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/
36 tarname=${program}-${version}.tar.bz2
39 fetch=http://www.freedesktop.org/software/fontconfig/release/$tarname
41 # Source documentation
42 docsdir="${docdir}/${pkgname}-${version}"
47 unpack "${tardir}/$tarname"
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" \
59 --libdir=/usr/lib${libSuffix} \
65 --build="$(cc -dumpmachine)"
68 make -j${jobs} DESTDIR="$destdir" install-strip
70 # Compress manual pages
71 if [ -d "${destdir}/$mandir" ] ; then
73 cd "${destdir}/$mandir"
74 find . -type f -exec lzip -9 '{}' +
75 find . -type l | while read -r file
77 ln -sf "$(readlink -- "$file").lz" "${file}.lz"