Move all to deprecated folder.
This commit is contained in:
7
deprecated/firmware/buildroot/package/zlib/Config.in
Normal file
7
deprecated/firmware/buildroot/package/zlib/Config.in
Normal file
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_ZLIB
|
||||
bool "zlib"
|
||||
help
|
||||
Standard (de)compression library. Used by things like
|
||||
gzip and libpng.
|
||||
|
||||
http://www.gzip.org/zlib/
|
||||
2
deprecated/firmware/buildroot/package/zlib/zlib.hash
Normal file
2
deprecated/firmware/buildroot/package/zlib/zlib.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From http://www.zlib.net/
|
||||
md5 28f1205d8dd2001f26fec1e8c2cebe37 zlib-1.2.8.tar.xz
|
||||
77
deprecated/firmware/buildroot/package/zlib/zlib.mk
Normal file
77
deprecated/firmware/buildroot/package/zlib/zlib.mk
Normal file
@@ -0,0 +1,77 @@
|
||||
################################################################################
|
||||
#
|
||||
# zlib
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ZLIB_VERSION = 1.2.8
|
||||
ZLIB_SOURCE = zlib-$(ZLIB_VERSION).tar.xz
|
||||
ZLIB_SITE = http://downloads.sourceforge.net/project/libpng/zlib/$(ZLIB_VERSION)
|
||||
ZLIB_LICENSE = zlib license
|
||||
ZLIB_LICENSE_FILES = README
|
||||
ZLIB_INSTALL_STAGING = YES
|
||||
|
||||
# It is not possible to build only a shared version of zlib, so we build both
|
||||
# shared and static, unless we only want the static libs, and we eventually
|
||||
# selectively remove what we do not want
|
||||
ifeq ($(BR2_STATIC_LIBS),y)
|
||||
ZLIB_PIC =
|
||||
ZLIB_SHARED = --static
|
||||
else
|
||||
ZLIB_PIC = -fPIC
|
||||
ZLIB_SHARED = --shared
|
||||
endif
|
||||
|
||||
define ZLIB_CONFIGURE_CMDS
|
||||
(cd $(@D); rm -rf config.cache; \
|
||||
$(TARGET_CONFIGURE_ARGS) \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(TARGET_CFLAGS) $(ZLIB_PIC)" \
|
||||
./configure \
|
||||
$(ZLIB_SHARED) \
|
||||
--prefix=/usr \
|
||||
)
|
||||
endef
|
||||
|
||||
define HOST_ZLIB_CONFIGURE_CMDS
|
||||
(cd $(@D); rm -rf config.cache; \
|
||||
$(HOST_CONFIGURE_ARGS) \
|
||||
$(HOST_CONFIGURE_OPTS) \
|
||||
./configure \
|
||||
--prefix="$(HOST_DIR)/usr" \
|
||||
--sysconfdir="$(HOST_DIR)/etc" \
|
||||
)
|
||||
endef
|
||||
|
||||
define ZLIB_BUILD_CMDS
|
||||
$(MAKE1) -C $(@D)
|
||||
endef
|
||||
|
||||
define HOST_ZLIB_BUILD_CMDS
|
||||
$(MAKE1) -C $(@D)
|
||||
endef
|
||||
|
||||
define ZLIB_INSTALL_STAGING_CMDS
|
||||
$(MAKE1) -C $(@D) DESTDIR=$(STAGING_DIR) LDCONFIG=true install
|
||||
endef
|
||||
|
||||
define ZLIB_INSTALL_TARGET_CMDS
|
||||
$(MAKE1) -C $(@D) DESTDIR=$(TARGET_DIR) LDCONFIG=true install
|
||||
endef
|
||||
|
||||
# We don't care removing the .a from target, since it not used at link
|
||||
# time to build other packages, and it is anyway removed later before
|
||||
# assembling the filesystem images anyway.
|
||||
ifeq ($(BR2_SHARED_LIBS),y)
|
||||
define ZLIB_RM_STATIC_STAGING
|
||||
rm -f $(STAGING_DIR)/usr/lib/libz.a
|
||||
endef
|
||||
ZLIB_POST_INSTALL_STAGING_HOOKS += ZLIB_RM_STATIC_STAGING
|
||||
endif
|
||||
|
||||
define HOST_ZLIB_INSTALL_CMDS
|
||||
$(MAKE1) -C $(@D) LDCONFIG=true install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user