annotate src/msitools.mk @ 3137:98d994cfc408

Add msitools (and MSVC-specific patches)
author Michael Goffioul <michael.goffioul@gmail.com>
date Sat, 13 Jul 2013 23:52:36 -0400
parents
children 13be64f9f16d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3137
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
1 # This file is part of MXE.
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
2 # See index.html for further information.
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
3
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
4 PKG := msitools
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
5 $(PKG)_IGNORE :=
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
6 $(PKG)_CHECKSUM := 695933981b679f71a5aed21d14d2fb54ae0e7102
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
7 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
8 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
9 $(PKG)_URL := http://ftp.gnome.org/pub/gnome/sources/$(PKG)/$(call SHORT_PKG_VERSION,$(PKG))/$($(PKG)_FILE)
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
10 $(PKG)_DEPS := gcab glib libgsf libxml2
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
11
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
12 $(PKG)_PREFIX := '$(HOST_PREFIX)'
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
13
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
14 define $(PKG)_UPDATE
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
15 $(WGET) -q -O- 'http://git.gnome.org/browse/$(PKG)/refs/tags' | \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
16 $(SED) -n "s,.*tag/?id=\([0-9]\+\.[0-9]*[02468]\.[^']*\).*,\1,p" | \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
17 head -1
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
18 endef
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
19
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
20 ifeq ($(MXE_SYSTEM),msvc)
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
21 $(PKG)_CONFIGURE_EXTRA_OPTIONS := \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
22 UUID_CFLAGS=-I. \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
23 UUID_LIBS=-lrpcrt4 \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
24 WIXL_CFLAGS="`PKG_CONFIG_PATH=$(HOST_LIBDIR)/pkgconfig $(MXE_PKG_CONFIG) --cflags gio-2.0 libgcab-1.0 libxml-2.0`" \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
25 WIXL_LIBS="`PKG_CONFIG_PATH=$(HOST_LIBDIR)/pkgconfig $(MXE_PKG_CONFIG) --libs gio-2.0 libgcab-1.0 libxml-2.0` -lrpcrt4"
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
26 $(PKG)_PREFIX := $(shell cd $(HOST_PREFIX) && pwd -W)
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
27 endif
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
28
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
29 define $(PKG)_BUILD
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
30 cd '$(1)' && './configure' \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
31 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
32 $(ENABLE_SHARED_OR_STATIC) \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
33 --prefix='$($(PKG)_PREFIX)' \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
34 PKG_CONFIG='$(MXE_PKG_CONFIG)' \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
35 PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
36 $($(PKG)_CONFIGURE_EXTRA_OPTIONS) \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
37 && $(CONFIGURE_POST_HOOK)
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
38
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
39 $(MAKE) -C '$(1)' -j '$(JOBS)' noinst_PROGRAMS=
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
40 $(MAKE) -C '$(1)' -j 1 install noinst_PROGRAMS=
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
41 endef