summaryrefslogtreecommitdiff
path: root/Build/source/libs/freetype2/freetype-src/autogen.sh
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2021-08-29 03:23:39 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2021-08-29 03:23:39 +0000
commitbbf1dbf0b3d1816a776bb343fe3d7053ded7edaa (patch)
tree2bec0223c338750826e348165a25ff886ff7af01 /Build/source/libs/freetype2/freetype-src/autogen.sh
parent5003f15f368f1ae0e925f78bf482c98fe06e68ba (diff)
freetype 2.11.0
git-svn-id: svn://tug.org/texlive/trunk@60354 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/freetype2/freetype-src/autogen.sh')
-rwxr-xr-xBuild/source/libs/freetype2/freetype-src/autogen.sh42
1 files changed, 35 insertions, 7 deletions
diff --git a/Build/source/libs/freetype2/freetype-src/autogen.sh b/Build/source/libs/freetype2/freetype-src/autogen.sh
index 79c4e4e160d..6503975d187 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-2020 by
+# Copyright (C) 2005-2021 by
# David Turner, Robert Wilhelm, and Werner Lemberg.
#
# This file is part of the FreeType project, and may only be used, modified,
@@ -138,18 +138,25 @@ 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_major, freetype_minor, and freetype_patch.
-eval `sed -nf version.sed include/freetype/freetype.h`
+# 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`
-# We set freetype-patch to an empty value if it is zero.
-if test "$freetype_patch" = ".0"; then
- freetype_patch=
+if test "$FREETYPE_PATCH" = "0"; then
+ FREETYPE=$FREETYPE_MAJOR.$FREETYPE_MINOR
+else
+ FREETYPE=$FREETYPE_MAJOR.$FREETYPE_MINOR.$FREETYPE_PATCH
fi
+echo "FreeType $FREETYPE:"
+
cd builds/unix
echo "generating \`configure.ac'"
-sed -e "s;@VERSION@;$freetype_major$freetype_minor$freetype_patch;" \
+sed -e "s;@VERSION@;$FREETYPE;" \
< configure.raw > configure.ac
run aclocal -I . --force
@@ -162,4 +169,25 @@ 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