changeset 2605:076adc3c23f7

package fontconfig: replace sed hack with upstream patch
author Mark Brand <mabrand@mabrand.nl>
date Thu, 14 Jun 2012 11:13:15 +0200
parents 0b271dd82312
children 714f0739b379
files src/fontconfig-1-fixes.patch src/fontconfig.mk
diffstat 2 files changed, 48 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/fontconfig-1-fixes.patch	Thu Jun 14 11:13:15 2012 +0200
@@ -0,0 +1,43 @@
+From 107e1934711cd9246c03f01e0acecdede714ea73 Mon Sep 17 00:00:00 2001
+From: Akira TAGOH <akira@tagoh.org>
+Date: Thu, 14 Jun 2012 11:27:31 +0900
+Subject: [PATCH] Fix the fail of make install with --disable-shared on Win32
+ (cherry picked from commit
+ 997a64a67b77ae7c083f4a2898670201ed618fb2)
+
+---
+ configure.in    |    1 +
+ src/Makefile.am |    2 ++
+ 3 files changed, 4 insertions(+)
+
+diff --git a/configure.in b/configure.in
+index da6ef95..88b6367 100644
+--- a/configure.in
++++ b/configure.in
+@@ -94,6 +94,7 @@ AC_SUBST(WARN_CFLAGS)
+ dnl ==========================================================================
+ 
+ AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
++AM_CONDITIONAL(ENABLE_SHARED, test "$enable_shared" = "yes")
+ 
+ dnl ==========================================================================
+ 
+diff --git a/src/Makefile.am b/src/Makefile.am
+index a7bb73c..81562cb 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -132,9 +132,11 @@ libfontconfig_la_LIBADD = $(ICONV_LIBS) $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT
+ 
+ libfontconfig_la_DEPENDENCIES = $(fontconfig_def_dependency)
+ 
++if ENABLE_SHARED
+ install-data-local: install-ms-import-lib install-libtool-import-lib
+ 
+ uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib
++endif
+ 
+ PUBLIC_FILES = \
+ 	$(top_srcdir)/fontconfig/fontconfig.h \
+-- 
+1.7.10.4
+
--- a/src/fontconfig.mk	Thu Jun 14 08:49:43 2012 +0200
+++ b/src/fontconfig.mk	Thu Jun 14 11:13:15 2012 +0200
@@ -16,9 +16,11 @@
 endef
 
 define $(PKG)_BUILD
-    # ensure there is no (buggy) attempt to install the *.dll.a file
-    # (remove this line of you want to link dynamically)
-    $(SED) -i 's,^install-data-local:.*,install-data-local:,' '$(1)/src/Makefile.in'
+    cd '$(1)' && aclocal
+    cd '$(1)' && autoheader
+    cd '$(1)' && libtoolize
+    cd '$(1)' && automake
+    cd '$(1)' && autoconf
     cd '$(1)' && ./configure \
         --host='$(TARGET)' \
         --build="`config.guess`" \