diff src/of-communications.mk @ 2958:04791633efbc

Octave Forge package sources and build script
author John W. Eaton <jwe@octave.org>
date Mon, 14 Jan 2013 14:49:08 -0500
parents
children 100e618349f7
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/of-communications.mk	Mon Jan 14 14:49:08 2013 -0500
@@ -0,0 +1,24 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := of-communications
+$(PKG)_IGNORE   :=
+$(PKG)_CHECKSUM := 8c358c02ddd84047db62d5f36125630ea940e41b
+$(PKG)_REMOTE_SUBDIR := 
+$(PKG)_SUBDIR   := communications
+$(PKG)_FILE     := communications-$($(PKG)_VERSION).tar.gz
+$(PKG)_FIXED_FILE := communications-$($(PKG)_VERSION)a.tar.gz
+$(PKG)_URL      := '$(OCTAVE_FORGE_BASE_URL)/$($(PKG)_FILE)/download'
+$(PKG)_DEPS     := 
+
+define $(PKG)_UPDATE
+    echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
+    echo $($(PKG)_VERSION)
+endef
+
+define $(PKG)_BUILD
+    mkdir -p '$(PREFIX)/$(TARGET)/src'
+    cd '$(1)/..' \
+      && tar czf $($(PKG)_FIXED_FILE) $($(PKG)_SUBDIR) \
+      && $(INSTALL) -m644 '$($(PKG)_FIXED_FILE)' '$(PREFIX)/$(TARGET)/src'
+endef