# pango/cfg - "Build" settings for package

#---------------------------------------------------------------------

[technotes]

1. "pango" 1.44.X and up broke compatibility with some older packages.
If you encounter this issue, you may be able to work  around the issue
by  patching  the packages to  build against this distro's  "pango142"
and/or "libpangox" packages.

#---------------------------------------------------------------------

[buildtimes]

00.01 hours (or 000.55 minutes) - ThinkPad E540 i7 4x2 16GB RAM
00.01 hours (or 000.77 minutes) - HP EliteBook 8560w 32GB RAM
00.01 hours (or 000.78 minutes) - HP Pavilion dv8 8GB RAM
00.02 hours (or 001.13 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo
                                  7200 2GB RAM
00.02 hours (or 001.45 minutes) - 2021 dedi
00.03 hours (or 001.88 minutes) - Toshiba Satellite C655 E-300 CPU 4GB
                                  RAM

#---------------------------------------------------------------------

[settings]
compiler   = clang
fortran    = disabled
license    = See "license*.txt" in installed tree
licfile    = COPYING
nls        = disabled
nosyslinks = etc
proddir    = $PRODTREE/gtkcore
purge      = no
shareddir  = yes
tmpsize    = 28M

setpaths   = cairo gtkcore

#---------------------------------------------------------------------

[depends]
actools
atkbridge
cairo
fontconfig
freetype2
gawk
glib20:strict
gobject-intro:strict
grep
gtkdoc
harfbuzz
perl
pkgconf
sed
xorg                            # For "libXft" and/or other libraries

#---------------------------------------------------------------------

[configure]
rm -fr subprojects/*

for base in $PKGDIR_PROD /usr/local
do
    rm -fr $base/etc/pango
    rm -fr $base/include/pango-*
    rm -fr $base/lib/{libpango*,pango}
    rm -fr $base/lib/pkgconfig/pango*.pc
done

ETCDIR=$PKGDIR_PROD/etc
MANBASE=$PKGDIR_PROD/man
mkdir -p $ETCDIR $MANBASE

# Warning: "Builds" may fail unless "--keeptimes" is used here.
#
treetextsub --keeptimes \
    --pattern=PANGO_DISABLE_DEPRECATED \
    --newtext=PANGO_DISABLE_MASTICATED

#---------------------------------------------------------------------

PATH=$PRODTREE/python3/bin:$PATH
PP=$PKGDIR_PROD

rm -fr obj && mkdir obj && cd obj
#
meson setup \
    -D prefix=$PP              \
    -D bindir=$PP/bin          \
    -D buildtype=release       \
    -D includedir=$PP/include  \
    -D libdir=$PP/lib          \
    -D mandir=$PP/man

#---------------------------------------------------------------------

[build]
cd obj
ninja_simple_build

#---------------------------------------------------------------------

[postbuild]
PCFDIR=$PKGDIR_PROD/lib/pkgconfig
cd $PKGDIR_PROD/include

sed -e \
's/\(-lpangoft2-1.0\)/\1 -lharfbuzz -lfreetype -lfontconfig/' \
    -i $PCFDIR/pangoft2.pc

#---------------------------------------------------------------------

# Original URLs. These URLs were valid at one point, but may have died
# since then. If you download newer versions of tarballs [etc.], don't
# delete  the  original versions,  as you may not  be able  to replace
# them.

[urls]
url_debian  = tbd
url_home    = http://www.pango.org/

url_lfs     = http://www.linuxfromscratch.org/blfs/view/stable/\
x/pango.html

url_tarball = https://ftp.gnome.org/pub/gnome/sources/pango/1.52/\
pango-1.52.2.tar.xz

#---------------------------------------------------------------------

[history]
170505 Updated from 1.39.0 to 1.40.0
170603 Updated to 1.40.6
170720 Updated to 1.40.7
170809 Updated to 1.40.9
170816 Updated to 1.40.10
170819 Updated to 1.40.11
170910 Updated to 1.40.12
171028 Updated to 1.40.13
171116 Updated to 1.40.14
180305 Updated to 1.41.1
180322 Updated to 1.42.0
180408 Updated to 1.42.1
180802 Updated to 1.42.3
180821 Updated to 1.42.4
220802 Updated to 1.48.11
241116 Updated to 1.52.2