annotate src/kbproto.mk @ 3743:4f58c4b4dee0

build libX11 and dependencies
author John W. Eaton <jwe@octave.org>
date Wed, 19 Nov 2014 11:12:26 -0500
parents
children d5a5b8e659de
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3743
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := kbproto
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 $(PKG)_VERSION := 1.0.6
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 $(PKG)_CHECKSUM := d2168250175b51cd4d4895541b688ca14ea31d10
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION)
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_URL := http://xorg.freedesktop.org/archive/individual/proto/$($(PKG)_FILE)
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 $(PKG)_DEPS :=
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13 ifeq ($(MXE_WINDOWS_BUILD),yes)
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 define $(PKG)_BUILD
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 endef
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 else
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 define $(PKG)_BUILD
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18 mkdir '$(1)/.build'
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 cd '$(1)/.build' && $($(PKG)_CONFIGURE_ENV) '$(1)/configure' \
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
20 $(CONFIGURE_CPPFLAGS) $(CONFIGURE_LDFLAGS) \
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 $(HOST_AND_BUILD_CONFIGURE_OPTIONS) \
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 --prefix='$(HOST_PREFIX)' \
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
23 && $(CONFIGURE_POST_HOOK)
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
25 $(MAKE) -C '$(1)/.build' -j '$(JOBS)' install DESTDIR='$(3)'
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
26 endef
4f58c4b4dee0 build libX11 and dependencies
John W. Eaton <jwe@octave.org>
parents:
diff changeset
27 endif