package/zip: install to staging
authorKamel Bouhara <kamel.bouhara@bootlin.com>
Mon, 6 Jul 2020 15:34:06 +0000 (17:34 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Tue, 7 Jul 2020 20:58:39 +0000 (22:58 +0200)
Install header files and libraries into the staging area.

Signed-off-by: Kamel Bouhara <kamel.bouhara@bootlin.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/zip/zip.mk

index ca52c74fb1bdd8236981d7be98a3f59745378aed..c78efedc252f9a9dca642df970a7361b0b0e92c6 100644 (file)
@@ -10,6 +10,7 @@ ZIP_SOURCE = zip$(subst .,,$(ZIP_VERSION)).tgz
 ZIP_SITE = ftp://ftp.info-zip.org/pub/infozip/src
 ZIP_LICENSE = Info-ZIP
 ZIP_LICENSE_FILES = LICENSE
+ZIP_INSTALL_STAGING = YES
 
 ifeq ($(BR2_PACKAGE_BZIP2),y)
 ZIP_DEPENDENCIES += bzip2
@@ -39,6 +40,11 @@ define ZIP_INSTALL_TARGET_CMDS
                prefix=$(TARGET_DIR)/usr
 endef
 
+define ZIP_INSTALLING_STAGING_CMDS
+       $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) -f unix/Makefile install \
+               prefix=$(STAGING_DIR)/usr
+endef
+
 define HOST_ZIP_BUILD_CMDS
        $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D) \
                CFLAGS="$(HOST_CFLAGS) $(ZIP_CFLAGS)" \