annotate src/of-communications.mk @ 3012:100e618349f7

Improve handling of prefix directories by defining HOST_PREFIX and BUILD_TOOLS_PREFIX variables in top-level Makefile.
author John W. Eaton <jwe@octave.org>
date Sun, 02 Jun 2013 10:31:04 -0400
parents 04791633efbc
children 290e049823c9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2958
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 # This file is part of MXE.
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2 # See index.html for further information.
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4 PKG := of-communications
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
5 $(PKG)_IGNORE :=
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6 $(PKG)_CHECKSUM := 8c358c02ddd84047db62d5f36125630ea940e41b
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
7 $(PKG)_REMOTE_SUBDIR :=
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
8 $(PKG)_SUBDIR := communications
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
9 $(PKG)_FILE := communications-$($(PKG)_VERSION).tar.gz
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
10 $(PKG)_FIXED_FILE := communications-$($(PKG)_VERSION)a.tar.gz
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
11 $(PKG)_URL := '$(OCTAVE_FORGE_BASE_URL)/$($(PKG)_FILE)/download'
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12 $(PKG)_DEPS :=
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
13
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
14 define $(PKG)_UPDATE
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
15 echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
16 echo $($(PKG)_VERSION)
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
17 endef
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
18
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
19 define $(PKG)_BUILD
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2958
diff changeset
20 mkdir -p '$(HOST_PREFIX)/src'
2958
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
21 cd '$(1)/..' \
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
22 && tar czf $($(PKG)_FIXED_FILE) $($(PKG)_SUBDIR) \
3012
100e618349f7 Improve handling of prefix directories by defining HOST_PREFIX and
John W. Eaton <jwe@octave.org>
parents: 2958
diff changeset
23 && $(INSTALL) -m644 '$($(PKG)_FIXED_FILE)' '$(HOST_PREFIX)/src'
2958
04791633efbc Octave Forge package sources and build script
John W. Eaton <jwe@octave.org>
parents:
diff changeset
24 endef