# gtkatk/cfg - "Build" settings for package

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

[technotes]

1. This package  requires, at "build" time, a copy of "meson" that has
been patched so as not to mess with "rpath".

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

[buildtimes]

00.00 hours (or 000.25 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM
00.01 hours (or 000.32 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo
                                  7200 2GB RAM
00.01 hours (or 000.33 minutes) - ThinkPad E540 i7 4x2 16GB RAM
00.01 hours (or 000.35 minutes) - HP Pavilion dv8 8GB RAM
00.01 hours (or 000.38 minutes) - HP EliteBook 8560w 32GB RAM
00.01 hours (or 000.83 minutes) - Toshiba Satellite C655 E-300 CPU 4GB
                                  RAM

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

[settings]
fortran   = disabled
license   = See "license*.txt" in installed tree
licfile   = COPYING
nls       = disabled
proddir   = $PRODTREE/gtkcore
purge     = no
setpaths  = gtkcore
shareddir = yes
tmpsize   = 9M
unpack    = relaxed

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

[depends]
actools
gawk
glib20:strict
gobject-intro:strict
grep
gtkdoc
meson
perl
pkgconf
python
sed

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

[configure]
MANBASE=$PKGDIR_PROD/man
mkdir -p $MANBASE

for base in $PKGDIR_PROD /usr/local
do
    rm -fr $base/include/atk-1.*
    rm -fr $base/lib/libatk-1.*
    rm -fr $base/lib/pkgconfig/atk.pc
done

# Warning: "Builds" may fail unless "--keeptimes" is used here.

treetextsub --keeptimes \
    --pattern="ATK_DISABLE_DEPRECATED" \
    --newtext="ATK_DISABLE_MASTICATED"

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

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

rm -fr build
mkdir  build
meson  build -D prefix=$PP

cd build
if [ \! -f build.ninja ]; then exit 1; fi
meson configure

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

[build]
cd build
ninja_simple_build

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

# 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  = http://packages.debian.org/unstable/source/atk1.0
url_home    = http://developer.gnome.org/projects/gap/

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

url_tarball = https://ftp.gnome.org/pub/gnome/sources/atk/2.38/\
atk-2.38.0.tar.xz

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

[history]
170505 Updated from 2.18.0 to 2.24.0
170603 Updated to 2.25.2
170912 Updated to 2.26.0
171020 Updated to 2.26.1
180306 Updated to 2.27.1
180317 Updated to 2.28.1
180908 Updated to 2.30.0
190314 Updated to 2.32.0
210125 Updated to 2.36.0
220802 Updated to 2.38.0