]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
Updated lzma package to xz utils.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Feb 2009 13:10:22 +0000 (14:10 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 28 Feb 2009 13:10:22 +0000 (14:10 +0100)
lfs/xz [moved from lfs/lzma with 68% similarity]

diff --git a/lfs/lzma b/lfs/xz
similarity index 68%
rename from lfs/lzma
rename to lfs/xz
index 69920c5fa798bf54455334a1f5ca919abadfdb52..2104f6ed449c77adc023dfb06c0b6472db350067 100644 (file)
--- a/lfs/lzma
+++ b/lfs/xz
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007, 2008, 2009 Michael Tremer & Christian Schmidt           #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
 
 include Config
 
-PKG_NAME   = lzma
-PKG_VER    = 457
+PKG_NAME   = xz
+PKG_VER    = 4.999.8beta
+PKG_REL    = 0
 
 THISAPP    = $(PKG_NAME)$(PKG_VER)
-DL_FILE    = $(THISAPP).tar.bz2
+DL_FILE    = $(THISAPP).tar.gz
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 
 OBJECT     = $(DIR_INFO)/$(STAGE_ORDER)_$(STAGE)/$(THISAPP)
 
+MAINTAINER =
+GROUP      = Applications/Compression
+EXTRA      = no
+DEBUG      = no
+DEPS       =
+
+URL        = http://tukaani.org/xz/
+LICENSE    = GPLv2+
+SHORT_DESC = LZMA Utils.
+
+define LONG_DESC
+       LZMA provides very high compression ratio and fast decompression. The \
+       core of the LZMA utils is Igor Pavlov's LZMA SDK containing the actual \
+       LZMA encoder/decoder. LZMA utils add a few scripts which provide \
+       gzip-like command line interface and a couple of other LZMA related \
+       tools.
+endef
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
 
 objects = $(DL_FILE)
 
-install : $(OBJECT)
+download: $(objects)
+
+info:
+       $(DO_PKG_INFO)
 
-download : $(objects)
+install: $(OBJECT)
 
-$(objects) :
+package:
+       @$(DO_PACKAGE)
+
+$(objects):
        @$(LOAD)
 
 ###############################################################################
 # Installation Details
 ###############################################################################
 
-$(OBJECT) : 
+$(OBJECT): $(objects)
        @$(PREBUILD)
-       @rm -rf $(DIR_SRC)/$(THISAPP) && mkdir $(DIR_SRC)/$(THISAPP)
-       @cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE) -C $(THISAPP)
-
-       cd $(DIR_APP) && make -C CPP/7zip/Compress/LZMA_Alone \
-               -f makefile.gcc $(PARALLELISMFLAGS) CXX="g++ $(CXXFLAGS)" CXX_C="gcc $(CFLAGS)"
-
-       install -m 755 \
-               $(DIR_APP)/CPP/7zip/Compress/LZMA_Alone/lzma \
-               /usr/bin/lzma_sdk
-
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && $(EXTRACTOR) $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && \
+               ./configure \
+                       $(CONFIGURE_ARCH) \
+                       --prefix=/usr \
+                       --disable-static
+       cd $(DIR_APP) && make $(PARALLELISMFLAGS)
+       cd $(DIR_APP) && make install
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)