diff src/pango.mk @ 3172:8d294e37ce65

[MSVC] enable Pango compilation (and bump version to 1.34.1)
author Michael Goffioul <michael.goffioul@gmail.com>
date Tue, 23 Jul 2013 22:29:33 -0400
parents 5ef49fb3299d
children 13be64f9f16d
line wrap: on
line diff
--- a/src/pango.mk	Tue Jul 23 22:29:33 2013 -0400
+++ b/src/pango.mk	Tue Jul 23 22:29:33 2013 -0400
@@ -3,7 +3,7 @@
 
 PKG             := pango
 $(PKG)_IGNORE   :=
-$(PKG)_CHECKSUM := a29a17eae7117a1330aaa7b01795322a6ef966b6
+$(PKG)_CHECKSUM := a6c224424eb3f0dcc231a8000591c05a85df689c
 $(PKG)_SUBDIR   := pango-$($(PKG)_VERSION)
 $(PKG)_FILE     := pango-$($(PKG)_VERSION).tar.xz
 $(PKG)_URL      := http://ftp.gnome.org/pub/gnome/sources/pango/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
@@ -17,8 +17,10 @@
 endef
 
 define $(PKG)_BUILD
-    rm '$(1)'/docs/Makefile.am
-    cd '$(1)' && NOCONFIGURE=1 ./autogen.sh
+    if [ $(MXE_SYSTEM) = mingw ]; then \
+        rm '$(1)'/docs/Makefile.am && \
+        cd '$(1)' && NOCONFIGURE=1 ./autogen.sh; \
+    fi
     cd '$(1)' && ./configure \
         $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
         $(ENABLE_SHARED_OR_STATIC) \
@@ -28,6 +30,10 @@
         --enable-explicit-deps \
         --with-included-modules \
         --without-dynamic-modules \
-        CXX='$(MXE_CXX)'
-    $(MAKE) -C '$(1)' -j '$(JOBS)' install bin_PROGRAMS= sbin_PROGRAMS= noinst_PROGRAMS=
+        CXX='$(MXE_CXX)' \
+        PKG_CONFIG='$(MXE_PKG_CONFIG)' \
+        PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' \
+        && $(CONFIGURE_POST_HOOK)
+    $(MAKE) -C '$(1)' -j '$(JOBS)' noinst_PROGRAMS=
+    $(MAKE) -C '$(1)' -j 1 install noinst_PROGRAMS=
 endef