# cairo/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. "pthreads" auto-detection seemed to be broken as of Fall 2019. The following "configure" switch as added was a work-around: --enable-pthread=yes #--------------------------------------------------------------------- [buildtimes] 00.03 hours (or 001.68 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.03 hours (or 001.97 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM 00.04 hours (or 002.47 minutes) - HP Pavilion dv8 8GB RAM 00.05 hours (or 002.72 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.07 hours (or 004.18 minutes) - HP EliteBook 8560w 32GB RAM 00.11 hours (or 006.88 minutes) - Toshiba Satellite C655 E-300 CPU 4GB RAM #--------------------------------------------------------------------- [settings] fortran = disabled ldafter = -lm -lpthread license = LGPL 2.1 and/or Mozilla Public License 1.1 nls = disabled tmpsize = 139M unpack = relaxed setpaths = fontconfig ghostscript jbigkit llvmgcc xorg #--------------------------------------------------------------------- [depends] actools brotli fontconfig freetype2:strict gawk ghostscript-core glib20:strict # Due to circular-dependency issues grep jbigkit liblzo2 libpng libxml2 llvmgcc pkgconf sed xorg zlib #--------------------------------------------------------------------- [configure] makelac freetype2 --force # Work-around for a "harfbuzz" issue MANBASE=$PKGDIR_PROD/man mkdir -p $MANBASE #--------------------------------------------------------------------- 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 \ \ -D tests=disabled #--------------------------------------------------------------------- [build] if [ -d $PRODTREE/gs/lib ]; then . srcpkgpaths ghostscript fi cd obj ninja_simple_build #--------------------------------------------------------------------- [postbuild] INCDIR=$PKGDIR_PROD/include LIBDIR=$PKGDIR_PROD/lib mkdir -p $INCDIR cp -p $PKGDIR_SPECIAL/cairo-top.h $INCDIR/cairo.h for x in $PKGDIR_PROD/lib/pkgconfig/*.pc do LP="-L/usr/X11R6/lib" sed -e "s|Libs:.*-lcairo.*|& $LP -lfreetype -lfontconfig \ -lpixman-1 -lpng -lz|" \ -i $x done sed -e "s|