Add patch to fix windows.h include in freetype (#10075)

* Add patch to fix windows.h include in freetype

* Fix patch
This commit is contained in:
Adam J. Stewart 2018-12-17 13:00:43 -06:00 committed by GitHub
parent cbedd507cf
commit a8a0aee3f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 2 deletions

View file

@ -13,9 +13,9 @@ class Freetype(AutotoolsPackage):
of most vector and bitmap font formats."""
homepage = "https://www.freetype.org/index.html"
url = "http://download.savannah.gnu.org/releases/freetype/freetype-2.7.1.tar.gz"
url = "https://download.savannah.gnu.org/releases/freetype/freetype-2.9.1.tar.gz"
version('2.9.1', 'ec391504e55498adceb30baceebd147a6e963f636eb617424bcfc47a169898ce')
version('2.9.1', sha256='ec391504e55498adceb30baceebd147a6e963f636eb617424bcfc47a169898ce')
version('2.7.1', '78701bee8d249578d83bb9a2f3aa3616')
version('2.7', '337139e5c7c5bd645fe130608e0fa8b5')
version('2.5.3', 'cafe9f210e45360279c730d27bf071e9')
@ -24,6 +24,8 @@ class Freetype(AutotoolsPackage):
depends_on('bzip2')
depends_on('pkgconfig', type='build')
patch('windows.patch', when='@2.9.1')
def configure_args(self):
args = ['--with-harfbuzz=no']
if self.spec.satisfies('@2.9.1:'):

View file

@ -0,0 +1,27 @@
https://github.com/spack/spack/issues/9729
https://savannah.nongnu.org/bugs/index.php?54967
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=3b6e65f7bf674601b9419d02ce0aa633e2e882fb
--- a/builds/unix/configure 2018-12-14 22:08:30.000000000 -0600
+++ b/builds/unix/configure 2018-12-14 22:07:56.000000000 -0600
@@ -11853,7 +11853,9 @@
# Only expand once:
-if test -n "$ac_tool_prefix"; then
+ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
+if test "x$ac_cv_header_windows_h" = xyes; then :
+ if test -n "$ac_tool_prefix"; then
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
set dummy ${ac_tool_prefix}windres; ac_word=$2
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
@@ -12022,6 +12024,9 @@
CC=$lt_save_CC
CFLAGS=$lt_save_CFLAGS
+fi
+
+
# checks for native programs to generate building tool