# HG changeset patch # User Mark Brand # Date 1339665195 -7200 # Node ID 076adc3c23f7cbd4596dead8020d51900adadf10 # Parent 0b271dd82312fa3befca17742dee59789cb3206f package fontconfig: replace sed hack with upstream patch diff -r 0b271dd82312 -r 076adc3c23f7 src/fontconfig-1-fixes.patch --- /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 +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 + diff -r 0b271dd82312 -r 076adc3c23f7 src/fontconfig.mk --- 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`" \