|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
#
|
|
# Filename: package/.../glib/glib.conf
|
|
# Copyright (C) 2006 - 2016 The OpenSDE Project
|
|
# Copyright (C) 2004 - 2006 The T2 SDE Project
|
|
#
|
|
# More information can be found in the files COPYING and README.
|
|
#
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; version 2 of the License. A copy of the
|
|
# GNU General Public License can be found in the file COPYING.
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
if ! atstage native; then
|
|
# help configure
|
|
var_append configcache ' ' 'glib_cv_stack_grows=yes'
|
|
var_append configcache ' ' 'glib_cv_uscore=no'
|
|
var_append configcache ' ' 'ac_cv_func_posix_getpwuid_r=yes'
|
|
var_append configcache ' ' 'ac_cv_func_posix_getgrgid_r=yes'
|
|
var_append patchfiles ' ' "$confdir/glib-no_python.diff"
|
|
# at non-native we have no libpcre
|
|
var_append confopt ' ' '--with-pcre=internal'
|
|
|
|
find-get-text() {
|
|
if pkginstalled -f gettext-stub; then
|
|
var_append CFLAGS ' ' "-I$root/$( pkgprefix includedir gettext-stub )"
|
|
var_append CPPFLAGS ' ' "-I$root/$( pkgprefix includedir gettext-stub )"
|
|
var_append LDLAGS ' ' "-L$root/$( pkgprefix libdir gettext-stub )"
|
|
export CFLAGS CPPFLAGS LDFLAGS
|
|
fi
|
|
}
|
|
hook_add preconf 8 'find-get-text'
|
|
# very ugly hack intended to prevent rebuild of gio/Makefile.in which we patch
|
|
# to avoid python dependency on stage 0
|
|
hook_add preconf 9 "echo true > $builddir/$xsrcdir/glib-$ver/missing"
|
|
fi
|
|
|
|
# we never want this file
|
|
var_append INSTALL_WRAPPER_FILTER "|" "sed -e 's,.*/charset.alias,/tmp/x,'"
|