# -*-makefile-*- # # Copyright (C) 2007 by Luotao Fu # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # HOST_PACKAGES-$(PTXCONF_HOST_GLIB) += host-glib # # Paths and names # HOST_GLIB_DIR = $(HOST_BUILDDIR)/$(GLIB) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- # # meson # HOST_GLIB_CONF_TOOL := meson HOST_GLIB_CONF_OPT := \ $(HOST_MESON_OPT) \ -Dbsymbolic_functions=true \ -Ddtrace=false \ -Dfam=false \ -Dforce_posix_threads=true \ -Dgtk_doc=false \ -Diconv=libc \ -Dinstalled_tests=false \ -Dinternal_pcre=false \ -Dlibmount=disabled \ -Dman=false \ -Dnls=disabled \ -Dselinux=disabled \ -Dsystemtap=false \ -Dxattr=false $(STATEDIR)/host-glib.install.post: @$(call targetinfo) @mkdir -p $(HOST_GLIB_PKGDIR)/share/glib-2.0/gettext @$(call world/install.post, HOST_GLIB) @sed -i "s:'/share':'$(PTXDIST_SYSROOT_HOST)/share':" "$(PTXDIST_SYSROOT_HOST)/bin/gdbus-codegen" @sed -i -e 's:^prefix=.*:prefix=$(PTXDIST_SYSROOT_HOST):' \ -e 's:^\(datarootdir\|datadir\)=.*:\1=$(PTXDIST_SYSROOT_HOST)/share:' \ $(PTXDIST_SYSROOT_HOST)/bin/glib-gettextize @$(call touch) # vim: syntax=make