# graphviz/cfg - "Build" settings for package

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

[technotes]

1. The source tarball used by this package was created  based on "git"
upstream sources. The sources were obtained as follows:

      ocgitfetch --run \
--checkout=12.2.1 \
--deletegit \
--notar \
https://gitlab.com/graphviz/graphviz

cd gitdir
settreedate .
BASE=`ls -1 | grep 'graphviz-git-[a-z0-9]*$'`
rm -fr $BASE/windows
tar jcf ../$BASE.tar.bz2 $BASE
tardate ../$BASE.tar.bz2
cd ..
rm -fr gitdir

Warning: "graphviz" has a large amount of ".git" data. The D/L may not
be  possible on a  cable modem [or slower]  residential connection.  A
higher-grade connection may be required.

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

2. If  this package is updated,  rebuild "libgvc" and then  its strict
dependers, including this package.

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

[buildtimes]

00.07 hours (or 004.28 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo
                                  7200 2GB RAM
00.11 hours (or 006.88 minutes) - ThinkPad E540 i7 4x2 16GB RAM
00.27 hours (or 016.22 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB
                                  RAM

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

[settings]
altpkg    = yes
build     = default
compiler  = clang               # Must apparently follow "qt6" setting
                                # if "qt6" is used
exepack   = yes
ldbefore  = -lgobject-2.0 -lc
license   = See "license*.txt" in installed tree
licfile   = COPYING
ltkludge  = yes
purge     = no
shareddir = yes
slowdown  = yes

dontfind  = lua51 qt4 qt5
setpaths  = devil gtkcore lua52 qt6 xorg
tmpsize   = 506M

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

[depends]
actools
bison3
devil
expat
flex
fontconfig
freetype2
gawk
ghostfonts
ghostscript
grep
gtkcore
jpeg
libgd                           # May not be needed any longer
libglade2
libgvc:strict
liblasi
libpng
librsvg
lua52                           # Support needs to be checked
perl:strict
pkgconf
python:strict
python3-core:strict
qt
sed
swig
tcl                             # Not presently used
tk                              # Ditto
vala
xorg
zlib

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

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

if [ -f ./autogen.sh ]; then
        ./autogen.sh NOCONFIG
fi

bash ./configure \
    --prefix=$PKGDIR_PROD          \
    --build=$LACARCHBUILD          \
    --host=$LACARCHHOST            \
\
    --disable-dependency-tracking  \
    --disable-guile                \
    --disable-io                   \
    --disable-java                 \
    --disable-lua                  \
    --disable-ocaml                \
    --disable-perl                 \
    --disable-php                  \
    --disable-python               \
    --disable-r                    \
    --disable-ruby                 \
    --disable-sharp                \
    --disable-static               \
\
    --enable-qt                    \
    --enable-shared                \
    --enable-static                \
    --enable-swig                  \
    --enable-tcl                   \
    --mandir=$MANBASE              \
\
    --with-cgraph                  \
    --with-devil                   \
    --with-libgd

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

[postbuild]
instreplinks -d $PKGDIR_PROD/lib/pkgconfig \
                   /$LACARCH/lib/pkgconfig

rm -fr $PKGDIR_PROD/share/graphviz/doc
export LACNOPURGE=yes
makelac vala --force

pip3 install --no-index --upgrade \
    --find-links /src/piprepo3 graphviz

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

# Original URLs.  Note:  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.  You may not  be able to
# replace them.

[urls]
url_debian  = http://packages.debian.org/unstable/source/graphviz
url_home    = http://www.graphviz.org/
url_lfs     = n/a
url_tarball = git               # See "technotes" in "cfg" file

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

[history]
191001 Updated from to 20171026.1811 to ccfe40278 ("git" hash)
210125 Updated to 4bf0ec9b0
210404 Updated to a3c427252
210620 Updated to 887cd2207 - same as 2.47.3
211205 Updated to 3425dae07 - same as 2.49.3
241004 Updated to c6204377a - same as 12.1.2
250222 Updated to 0a1e625ea - same as 12.2.1