summaryrefslogtreecommitdiff
path: root/Build/source/libs/freetype2/freetype-src/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/freetype2/freetype-src/autogen.sh')
-rwxr-xr-xBuild/source/libs/freetype2/freetype-src/autogen.sh42
1 files changed, 7 insertions, 35 deletions
diff --git a/Build/source/libs/freetype2/freetype-src/autogen.sh b/Build/source/libs/freetype2/freetype-src/autogen.sh
index 6503975d187..79c4e4e160d 100755
--- a/Build/source/libs/freetype2/freetype-src/autogen.sh
+++ b/Build/source/libs/freetype2/freetype-src/autogen.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright (C) 2005-2021 by
+# Copyright (C) 2005-2020 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -138,25 +138,18 @@ check_tool_version $ACLOCAL aclocal ACLOCAL 1.10.1
check_tool_version $LIBTOOLIZE libtoolize LIBTOOLIZE 2.2.4
check_tool_version $AUTOCONF autoconf AUTOCONF 2.62
-# This sets FREETYPE version.
-eval `sed -n \
--e 's/^#define *\(FREETYPE_MAJOR\) *\([0-9][0-9]*\).*/\1=\2/p' \
--e 's/^#define *\(FREETYPE_MINOR\) *\([0-9][0-9]*\).*/\1=\2/p' \
--e 's/^#define *\(FREETYPE_PATCH\) *\([0-9][0-9]*\).*/\1=\2/p' \
-include/freetype/freetype.h`
+# This sets freetype_major, freetype_minor, and freetype_patch.
+eval `sed -nf version.sed include/freetype/freetype.h`
-if test "$FREETYPE_PATCH" = "0"; then
- FREETYPE=$FREETYPE_MAJOR.$FREETYPE_MINOR
-else
- FREETYPE=$FREETYPE_MAJOR.$FREETYPE_MINOR.$FREETYPE_PATCH
+# We set freetype-patch to an empty value if it is zero.
+if test "$freetype_patch" = ".0"; then
+ freetype_patch=
fi
-echo "FreeType $FREETYPE:"
-
cd builds/unix
echo "generating \`configure.ac'"
-sed -e "s;@VERSION@;$FREETYPE;" \
+sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \
< configure.raw > configure.ac
run aclocal -I . --force
@@ -169,25 +162,4 @@ cd ../..
chmod +x ./configure
-# Copy all necessary 'dlg' files.
-copy_submodule_files ()
-{
- echo "Copying files from \`subprojects/dlg' to \`src/dlg' and \`include/dlg'"
- mkdir include/dlg 2> /dev/null
- cp $DLG_INC_DIR/output.h include/dlg
- cp $DLG_INC_DIR/dlg.h include/dlg
- cp $DLG_SRC_DIR/* src/dlg
-}
-
-DLG_INC_DIR=subprojects/dlg/include/dlg
-DLG_SRC_DIR=subprojects/dlg/src/dlg
-
-if ! test -d "$DLG_INC_DIR"; then
- echo "Checking out submodule in \`subprojects/dlg':"
- git submodule init
- git submodule update
-fi
-
-copy_submodule_files
-
# EOF