1 ################################################################################
5 ################################################################################
8 ZIP_SOURCE
= zip
$(ZIP_VERSION
).tgz
9 ZIP_SITE
= ftp
://ftp.info-zip.org
/pub
/infozip
/src
10 ZIP_LICENSE
= Info-ZIP
11 ZIP_LICENSE_FILES
= LICENSE
13 ifeq ($(BR2_PACKAGE_BZIP2
),y
)
14 ZIP_DEPENDENCIES
+= bzip2
17 # Infozip's default CFLAGS.
18 ZIP_CFLAGS
= -I.
-DUNIX
20 # Disable the support of 16-bit UIDs/GIDs, the test in unix/configure was
21 # removed since it can't work for cross-compilation.
22 ZIP_CFLAGS
+= -DUIDGID_NOT_16BIT
24 # infozip already defines _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE when
25 # necessary, redefining it on the command line causes some warnings.
27 $(filter-out -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE
,$(TARGET_CFLAGS
))
30 $(TARGET_MAKE_ENV
) $(MAKE
) $(TARGET_CONFIGURE_OPTS
) -C
$(@D
) \
31 CFLAGS
="$(ZIP_TARGET_CFLAGS) $(ZIP_CFLAGS)" \
32 AS
="$(TARGET_CC) -c" \
33 -f unix
/Makefile generic
36 define ZIP_INSTALL_TARGET_CMDS
37 $(TARGET_MAKE_ENV
) $(MAKE
) $(TARGET_CONFIGURE_OPTS
) -C
$(@D
) -f unix
/Makefile
install \
38 prefix=$(TARGET_DIR
)/usr
41 define HOST_ZIP_BUILD_CMDS
42 $(HOST_MAKE_ENV
) $(MAKE
) $(HOST_CONFIGURE_OPTS
) -C
$(@D
) \
43 CFLAGS
="$(HOST_CFLAGS) $(ZIP_CFLAGS)" \
45 -f unix
/Makefile generic
48 define HOST_ZIP_INSTALL_CMDS
49 $(HOST_MAKE_ENV
) $(MAKE
) $(HOST_CONFIGURE_OPTS
) -C
$(@D
) -f unix
/Makefile
install \
50 prefix=$(HOST_DIR
)/usr
53 $(eval
$(generic-package
))
54 $(eval
$(host-generic-package
))