Skip to contentSkip to conversation

lzip: new package

PATCH New Gustavo Zacarias 2 participants 2 messages Mar 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 lzip: new package

The host variant is in preparation for possibly some gnu packages shipping tar.lz versions only.
At least ed 1.10 did it (still needed to add extraction support for it).

---
 package/Config.in      |  1 +
 package/lzip/Config.in | 15 +++++++++++++++
 package/lzip/lzip.mk   | 40 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 56 insertions(+)
 create mode 100644 package/lzip/Config.in
 create mode 100644 package/lzip/lzip.mk
package/Config.in +1 -0
index 33a68f0..5b5dc6d 100644
@@ -35,6 +35,7 @@ if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
 source "package/gzip/Config.in"
 endif
 source "package/infozip/Config.in"
+source "package/lzip/Config.in"
 source "package/lzop/Config.in"
 source "package/xz/Config.in"
 endmenu
package/lzip/Config.in new file +15 -0
new file mode 100644
index 0000000..b72ac78
@@ -0,0 +1,15 @@
+comment "lzip needs a toolchain w/ C++, largefile"
+	depends on !(BR2_INSTALL_LIBSTDCPP && BR2_LARGEFILE)
+
+config BR2_PACKAGE_LZIP
+	bool "lzip"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_LARGEFILE
+	help
+	  Lzip is a lossless data compressor with a user interface similar
+	  to the one of gzip or bzip2.
+	  Lzip is about as fast as gzip, compresses most files more than
+	  bzip2, and is better than both from a data recovery perspective.
+	  Lzip is a clean implementation of the LZMA algorithm.
+
+	  http://savannah.nongnu.org/projects/lzip
package/lzip/lzip.mk new file +40 -0
new file mode 100644
index 0000000..0aa7051
@@ -0,0 +1,40 @@
+################################################################################
+#
+# lzip
+#
+################################################################################
+
+LZIP_VERSION = 1.15
+LZIP_SITE = http://download.savannah.gnu.org/releases/lzip/
+LZIP_LICENSE = GPLv3+
+LZIP_LICENSE_FILES = COPYING
+
+define LZIP_CONFIGURE_CMDS
+	(cd $(@D); ./configure --prefix=/usr \
+		$(TARGET_CONFIGURE_OPTS) )
+endef
+
+define HOST_LZIP_CONFIGURE_CMDS
+	(cd $(@D); ./configure --prefix=/usr \
+		$(HOST_CONFIGURE_OPTS) )
+endef
+
+define LZIP_BUILD_CMDS
+	$(MAKE) -C $(@D)
+endef
+
+define HOST_LZIP_BUILD_CMDS
+	$(MAKE) -C $(@D)
+endef
+
+define LZIP_INSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
+endef
+
+define HOST_LZIP_INSTALL_CMDS
+	$(MAKE) -C $(@D) DESTDIR=$(HOST_DIR) install
+endef
+
+# It's not autotools-based
+$(eval $(generic-package))
+$(eval $(host-generic-package))
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH v2 1/1 lzip: new package

Dear Gustavo Zacarias,

Quoted 4 lines · Gustavo Zacarias

The host variant is in preparation for possibly some gnu packages shipping tar.lz versions only.
At least ed 1.10 did it (still needed to add extraction support for it).

Quoted 8 lines
---
 package/Config.in      |  1 +
 package/lzip/Config.in | 15 +++++++++++++++
 package/lzip/lzip.mk   | 40 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 56 insertions(+)
 create mode 100644 package/lzip/Config.in
 create mode 100644 package/lzip/lzip.mk

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com