annotate src/msitools.mk @ 3480:13be64f9f16d

move version info from index.html to src/*.mk files
author John W. Eaton <jwe@octave.org>
date Fri, 31 Jan 2014 16:04:01 -0500
parents 98d994cfc408
children ae4193aad5fe
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 :=
3480
13be64f9f16d move version info from index.html to src/*.mk files
John W. Eaton <jwe@octave.org>
parents: 3137
diff changeset
6 $(PKG)_VERSION := 0.92
3137
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
7 $(PKG)_CHECKSUM := 695933981b679f71a5aed21d14d2fb54ae0e7102
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
10 $(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
11 $(PKG)_DEPS := gcab glib libgsf libxml2
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
12
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
13 $(PKG)_PREFIX := '$(HOST_PREFIX)'
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
14
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
15 define $(PKG)_UPDATE
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
16 $(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
17 $(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
18 head -1
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
19 endef
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
20
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
21 ifeq ($(MXE_SYSTEM),msvc)
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
22 $(PKG)_CONFIGURE_EXTRA_OPTIONS := \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
23 UUID_CFLAGS=-I. \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
24 UUID_LIBS=-lrpcrt4 \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
25 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
26 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
27 $(PKG)_PREFIX := $(shell cd $(HOST_PREFIX) && pwd -W)
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
28 endif
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
29
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
30 define $(PKG)_BUILD
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
31 cd '$(1)' && './configure' \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
32 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
33 $(ENABLE_SHARED_OR_STATIC) \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
34 --prefix='$($(PKG)_PREFIX)' \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
35 PKG_CONFIG='$(MXE_PKG_CONFIG)' \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
36 PKG_CONFIG_PATH='$(HOST_LIBDIR)/pkgconfig' \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
37 $($(PKG)_CONFIGURE_EXTRA_OPTIONS) \
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
38 && $(CONFIGURE_POST_HOOK)
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
39
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
40 $(MAKE) -C '$(1)' -j '$(JOBS)' noinst_PROGRAMS=
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
41 $(MAKE) -C '$(1)' -j 1 install noinst_PROGRAMS=
98d994cfc408 Add msitools (and MSVC-specific patches)
Michael Goffioul <michael.goffioul@gmail.com>
parents:
diff changeset
42 endef