# glib20-intro/cfg - "Build" settings for package #--------------------------------------------------------------------- [technotes] 1. This package is a work-around for a circular dependency between "glib20" and "gobject-intro". #--------------------------------------------------------------------- [buildtimes] #--------------------------------------------------------------------- [settings] archive = same as glib20 compiler = clang fortran = disabled license = See "license*.txt" in installed tree licfile = COPYING nls = disabled proddir = $PRODTREE/gtkcore purge = no shareddir = yes tmpsize = 177M unpack = relaxed setpaths = \ elfutils gettext libffi pcre2 \ util-linux zlib \ $PRODTREE/gtkcore #--------------------------------------------------------------------- [depends] glib20:strict gobject-intro:strict #--------------------------------------------------------------------- [configure] #--------------------------------------------------------------------- # Warning: "Builds" may fail unless "--keeptimes" is used here. treetextsub --keeptimes \ --pattern="G_DISABLE_DEPRECATED" \ --newtext="G_DISABLE_MASTICATED" #--------------------------------------------------------------------- PATH=$PRODTREE/python3/bin:$PATH PP=$PKGDIR_PROD rm -fr lacobj && mkdir lacobj && cd lacobj # meson setup \ -D prefix=$PP \ -D installed_tests=false \ -D introspection=enabled \ -D man=true \ -D nls=disabled \ -D selinux=disabled \ -D tests=false sed -e "s@^#define HAVE_BIND_TEXTDOMAIN_CODESET@//&@" \ -i config.h #--------------------------------------------------------------------- [build] cd lacobj && ninja_simple_build #--------------------------------------------------------------------- [postbuild] INCDIR=$PKGDIR_PROD/include LIBDIR=$PKGDIR_PROD/lib cd $INCDIR/glib-2.0 ln -nsf ../../lib/glib-2.0/include/glibconfig.h . cd $LIBDIR/pkgconfig sed \ -e 's@\(-lgio-2.0\)@\1 -lgobject-2.0@' \ -e 's@\(-lgmodule-2.0\)@\1 -lglib-2.0@' \ -e 's@\(-lgobject-2.0\)@\1 -lglib-2.0@' \ -e 's@\(-lgthread-2.0\)@\1 -lglib-2.0@' \ -i *.pc sed -e "s@^\(Libs:.*\)@\1 -L$PRODTREE/openssl/lib -lssl@" \ -i gio-2.0.pc export LACNOPURGE=yes rm -fr $SYSTREE/status/build/appstream-glib/ rm -fr $SYSTREE/status/build/gettext/ makelac gettext PT=$PRODTREE MORELIBS="-L$PT/pcre2/lib -lpcre2-8 \ -L$PT/util-linux -lmount \ -L$PT/zlib/lib -lz" # sed -e "s@-lglib-2.0@& $MORELIBS@" \ -i $PRODTREE/gtkcore/lib/pkgconfig/glib-2.0.pc #--------------------------------------------------------------------- # ifdef NOTDEF # [setup.bash] # export XDG_DATA_DIRS=`xdgaddshare $PKGDIR_PROD` #endif #--------------------------------------------------------------------- # 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/glib2.0 url_home = http://www.gtk.org/ url_lfs = http://www.linuxfromscratch.org/blfs/view/stable/\ general/glib2.html url_tarball = same as "glib20" #--------------------------------------------------------------------- [history] 250913 Added package