]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/zlib
toolchain: Add zlib
[ipfire-2.x.git] / lfs / zlib
index 5337c7724a00d71314459fb932c75ba0816fb070..25c587aaca912cf6c03add12c9410128cd05e5f6 100644 (file)
--- a/lfs/zlib
+++ b/lfs/zlib
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2017  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # 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        #
@@ -24,7 +24,7 @@
 
 include Config
 
-VER        = 1.2.7
+VER        = 1.2.11
 
 THISAPP    = zlib-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
@@ -39,9 +39,9 @@ CFLAGS    += -fPIC -DPIC
 ###############################################################################
 objects = $(DL_FILE)
 
-$(DL_FILE)                           = $(DL_FROM)/$(DL_FILE)
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5                       = 60df6a37c56e7c1366cca812414f7b85
+$(DL_FILE)_MD5 = 1c9f62f0778697a09d36121ead88e08e
 
 install : $(TARGET)
 
@@ -71,13 +71,17 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && ./configure --prefix=/usr --shared
+       cd $(DIR_APP) && ./configure --prefix=$(PREFIX) --shared
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
 
+ifneq "$(TOOLCHAIN)" "1"
        mv -v /usr/lib/libz.so.$(VER) /lib/libz.so.$(VER)
        ln -svf libz.so.$(VER) /lib/libz.so.1
+       ln -svf libz.so.$(VER) /lib/libz.so
        rm -vf /usr/lib/libz.so.1
+       rm -vf /usr/lib/libz.so
+endif
 
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)