Browse Source

Replace mingw prefix before computing dependencies

tmp/comercial-emacs
Juan Jose Garcia-Ripoll 4 years ago
parent
commit
9fce9257e7
  1. 32
      emacs-build.sh
  2. 4
      scripts/tools.sh

32
emacs-build.sh

@ -93,7 +93,7 @@ function ensure_mingw_build_software ()
function emacs_root_packages ()
{
local feature_selector=`echo $features | sed -e 's, ,|,g'`
feature_list | grep -E "$feature_selector" | cut -d ' ' -f 2-
feature_list | grep -E "$feature_selector" | cut -d ' ' -f 2- | sed -e "s,mingw-,${mingw_prefix}-,g"
}
function emacs_dependencies ()
@ -105,7 +105,7 @@ function emacs_dependencies ()
errcho Inspecting required packages for build features
errcho $features
local packages=`emacs_root_packages`
emacs_dependencies=`full_dependency_list "$packages" "glib2" "Emacs"`
emacs_dependencies=`full_dependency_list "$packages" "${mingw_prefix}-glib2" "Emacs"`
errcho Total packages required:
for p in $emacs_dependencies; do
errcho " $p"
@ -159,7 +159,7 @@ function action1_ensure_packages ()
# Collect the list of packages required for running Emacs, and ensure they
# have been installed.
#
ensure_packages `emacs_dependencies`
ensure_packages `emacs_root_packages`
}
function action2_build ()
@ -276,19 +276,19 @@ function action5_package_all ()
function feature_list () {
cat <<EOF
xpm xpm-nox
jpeg libjpeg-turbo
tiff libtiff
gif giflib
png libpng
rsvg librsvg
cairo cairo
harfbuzz harfbuzz
json jansson
lcms2 lcms2
xml2 libxml2
gnutls gnutls
zlib zlib
xpm mingw-xpm-nox
jpeg mingw-libjpeg-turbo
tiff mingw-libtiff
gif mingw-giflib
png mingw-libpng
rsvg mingw-librsvg
cairo mingw-cairo
harfbuzz mingw-harfbuzz
json mingw-jansson
lcms2 mingw-lcms2
xml2 mingw-libxml2
gnutls mingw-gnutls
zlib mingw-zlib
EOF
if test "$emacs_nativecomp" = yes; then
echo nativecomp libgccjit

4
scripts/tools.sh

@ -88,10 +88,6 @@ function full_dependency_list ()
s, ,\n,g;
s,$mingw_prefix-libwinpthread\$,$mingw_prefix-libwinpthread-git,g;
s,$mingw_prefix-libtre\$,$mingw_prefix-libtre-git,g;"
if test -z "$avoid_prefix"; then
packages=`for p in $packages; do echo $mingw_prefix-$p; done`
skip_pkgs=`for p in $skip_pkgs; do echo $mingw_prefix-$p; done`
fi
local oldpackages
local dependencies
if "$debug_dependency_list"; then

Loading…
Cancel
Save