# freetype2/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. "freetype2" has circular-dependency issues related to "harfbuzz". As a related issue, if the "gtkcore" binary tree is deleted, "free- type2" should be rebuilt before "xorgbase" is rebuilt. #--------------------------------------------------------------------- [buildtimes] 00.00 hours (or 000.10 minutes) - 2021 L.A. dedi box: 6x2 CPU 32GB RAM 00.00 hours (or 000.22 minutes) - ThinkPad E540 i7 4x2 16GB RAM 00.00 hours (or 000.28 minutes) - HP EliteBook 8560w 32GB RAM 00.01 hours (or 000.53 minutes) - Dell Inspiron 6400 2.0 GHz Intel Duo 7200 2GB RAM 00.03 hours (or 001.65 minutes) - Toshiba Satellite C655 E-300 CPU 4GB RAM 00.06 hours (or 003.30 minutes) - Compaq 1.7 GHz Intel Pentium 4 512MB RAM #--------------------------------------------------------------------- [settings] fortran = disabled license = See "license*.txt" in installed tree licfile = LICENSE.TXT tmpsize = 28M unpack = relaxed setpaths = bzip2 libpng zlib #--------------------------------------------------------------------- [depends] actools brotli bzip2 gawk grep gtkcore:forward harfbuzz:forward libpng meson ninja pkgconf sed zlib #--------------------------------------------------------------------- [configure] LIBDIR=$PKGDIR_PROD/lib MANBASE=$PKGDIR_PROD/man mkdir -p $MANBASE mkdir -p $LIBDIR mkdir -p $PRODTREE/gtkcore . srcpkgpaths gtkcore # Courtesy of BLFS: sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \ -i include/freetype/config/ftoption.h #--------------------------------------------------------------------- if [ "@$USEHARFBUZZ" == "@" ]; then if [ \! -d $PRODTREE/gtkcore/lib ]; then rm -fr $SYSTREE/lib/pkgconfig/harfbuzz* USEHARFBUZZ=disabled fi fi if [ "@$USEHARFBUZZ" == "@" ]; then if pkg-config --exists harfbuzz; then echo Status: harfbuzz seems to be installed USEHARFBUZZ=enabled else echo Status: harfbuzz seems to be missing USEHARFBUZZ=disabled fi fi if [ "@$USEHARFBUZZ" == "@true" ]; then USEHARFBUZZ=enabled ; fi if [ "@$USEHARFBUZZ" == "@false" ]; then USEHARFBUZZ=disabled ; fi if [ "@$USEHARFBUZZ" == "@yes" ]; then USEHARFBUZZ=enabled ; fi if [ "@$USEHARFBUZZ" == "@no" ]; then USEHARFBUZZ=disabled ; fi #--------------------------------------------------------------------- PATH=$PRODTREE/python3/bin:$PATH PP=$PKGDIR_PROD export LIBRARY_PATH=$LACLDDIRS echo USEHARFBUZZ=$USEHARFBUZZ rm -fr build mkdir build meson build \ -D prefix=$PP \ -D brotli=enabled \ -D bzip2=enabled \ -D harfbuzz=$USEHARFBUZZ \ -D png=enabled \ -D zlib=system cd build if [ \! -f build.ninja ]; then exit 1; fi meson configure #--------------------------------------------------------------------- [build] export LIBRARY_PATH=$LACLDDIRS . srcpkgpaths gtkcore cd build ninja_simple_build #--------------------------------------------------------------------- [postbuild] BINDIR=$PKGDIR_PROD/bin DOCDIR=$PKGDIR_PROD/doc INCDIR=$PKGDIR_PROD/include LIBDIR=$PKGDIR_PROD/lib mkdir -p $BINDIR $DOCDIR $INCDIR $LIBDIR cp -p docs/*.txt $DOCDIR/ #ifdef NOTDEF # sed -e "s_ $PRODTREE/gtkcore/lib/libfreetype.la _ _" \ # -i $LIBDIR/libfreetype.la #endif PT=$PRODTREE MORELIBS="-L$PT/brotli/lib -L$PT/bzip2/lib -lbz2 \ -L$PT/libpng/lib \ -lpng -L$PT/zlib -lz" # This needs to be updated appropriately if the package is updated. # To be determined: How? # sed -e "s@^Libs:.*@& $MORELIBS@" \ -e "s@^Version:.*@Version: 24.3.18@" \ -i $PKGDIR_PROD/lib/pkgconfig/freetype2.pc cd $BINDIR sed -e "s@__META_PREFIX__@$PKGDIR_PROD@g" \ -e "s@__META_PRODTREE__@$PRODTREE@g" \ < $PKGDIR_SPECIAL/freetype-config.in \ > freetype-config chmod 755 freetype-config cd $INCDIR H="#" cat > ft2build.h << END ${H}include END #--------------------------------------------------------------------- # 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/freetype url_home = http://www.freetype.org/ url_lfs = http://www.linuxfromscratch.org/blfs/view/stable/\ general/freetype2.html url_tarball = http://downloads.sourceforge.net/freetype/\ freetype-2.13.2.tar.xz #--------------------------------------------------------------------- [history] 170503 Updated from 2.5.5 to 2.7.1 171028 Updated to 2.8.1 180625 Updated to 2.9.1 190710 Updated to 2.10.1 210228 Updated to 2.10.4 210228 Modified to use "meson" build system 210228 Fixed support for "-Dharfbuzz=..." 210228 Added now-missing "freetype-config" 210313 Added now-missing "ftcid.h" 230217 Updated to 2.12.1 240510 Updated to 2.13.2