changeset 4236:49430638c5bd

build-lzip: New package.
author John W. Eaton <jwe@octave.org>
date Fri, 28 Oct 2016 10:06:54 -0400
parents 89e757c2ec72
children 1cb1ce8f351c
files Makefile.in index.html src/build-lzip.mk
diffstat 3 files changed, 28 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.in	Fri Oct 21 15:25:03 2016 -0400
+++ b/Makefile.in	Fri Oct 28 10:06:54 2016 -0400
@@ -476,10 +476,11 @@
     $(if $(filter %.tgz,     $(1)),$(3) xzf '$(1)', \
     $(if $(filter %.tar.gz,  $(1)),$(3) xzf '$(1)', \
     $(if $(filter %.tar.bz2, $(1)),$(3) xjf '$(1)', \
+    $(if $(filter %.tar.lz, $(1)),$(3) xaf '$(1)', \
     $(if $(filter %.tar.lzma,$(1)),xz -dc -F lzma '$(1)' | $(3) xf -, \
     $(if $(filter %.tar.xz,$(1)),xz -dc '$(1)' | $(3) xf -, \
     $(if $(filter %.zip,     $(1)),unzip -q '$(1)', \
-    $(error Unknown archive format for $(2): $(1))))))))
+    $(error Unknown archive format for $(2): $(1)))))))))
 
 UNPACK_PKG_ARCHIVE = \
     $(if $(value $(1)_FILE),$(call UNPACK_ARCHIVE,$(PKG_DIR)/$($(1)_FILE),$(1),$(2)),true)
--- a/index.html	Fri Oct 21 15:25:03 2016 -0400
+++ b/index.html	Fri Oct 28 10:06:54 2016 -0400
@@ -1018,6 +1018,10 @@
         <td class="website"><a href="http://www.gnu.org/software/libtool">libtool</a></td>
     </tr>
     <tr>
+        <td class="package">build-lzip</td>
+        <td class="website"><a href="http://www.nongnu.org/lzip/lzip.html">Lzip</a></td>
+    </tr>
+    <tr>
         <td class="package">build-m4</td>
         <td class="website"><a href="http://www.gnu.org/software/m4">m4</a></td>
     </tr>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/build-lzip.mk	Fri Oct 28 10:06:54 2016 -0400
@@ -0,0 +1,22 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG             := build-lzip
+$(PKG)_IGNORE   :=
+$(PKG)_VERSION  := 1.18
+$(PKG)_CHECKSUM := ef42f3209d02c3b3c217a61c8f127bcb8747b128
+$(PKG)_SUBDIR   := lzip-$($(PKG)_VERSION)
+$(PKG)_FILE     := lzip-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL      := http://download.savannah.gnu.org/releases/lzip/$($(PKG)_FILE)
+$(PKG)_DEPS     :=
+
+define $(PKG)_UPDATE
+    echo 'Warning: Updates are temporarily disabled for package $(PKG).' >&2;
+    echo $($(PKG)_VERSION)
+endef
+
+define $(PKG)_BUILD
+    cd '$(1)' && './configure' \
+        --prefix='$(BUILD_TOOLS_PREFIX)'
+    $(MAKE) -C '$(1)' -j '$(JOBS)' install DESTDIR='$(3)'
+endef