2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-02-12 11:40:28 +01:00
|
|
|
#
|
|
|
|
# file
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2023-08-21 11:17:49 +02:00
|
|
|
FILE_VERSION = 5.45
|
2012-01-05 19:26:23 +01:00
|
|
|
FILE_SITE = ftp://ftp.astron.com/pub/file
|
2017-03-30 15:43:40 +02:00
|
|
|
FILE_LICENSE = BSD-2-Clause, BSD-4-Clause (one file), BSD-3-Clause (one file)
|
2012-11-13 02:05:43 +01:00
|
|
|
FILE_LICENSE_FILES = COPYING src/mygetopt.h src/vasprintf.c
|
2021-03-05 23:27:44 +01:00
|
|
|
FILE_CPE_ID_VENDOR = file_project
|
2022-01-08 22:36:38 +01:00
|
|
|
|
package/file: fix build with gcc-4.8
file-5.41 uses AC_PROG_CC, and was generated with autoconf 2.69. That
oldish version of autoconf does not check the C standard when AC_PROG_CC
is called, and standard-specific macros must be called instead:
AC_PROG_CC_C89, AC_PROG_CC_C99, or AC_PROG_CC_STDC.
So we would need to patch configure.ac to call either of those options,
and then we'd have to autoreocnf.
However, that would autoreconf with our autoconf, version 2.71. In that
version, AC_PROG_CC always check what C standards are available and sets
the appropriate ac_cv_XXX variables, and the previous macros,
AC_PROG_CC_C89, AC_PROG_CC_C99, and AC_PROG_CC_STDC are deprecated.
So it turns out that we just need to autoreconf.
Fixes:
- http://autobuild.buildroot.org/results/9e7868be00f2cd18205b2ce664be95f8b9e2b063
- http://autobuild.buildroot.org/results/31cbc313fceb84c0cbb1969fca5ac44244871dbc
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2022-01-08 22:37:11 +01:00
|
|
|
FILE_AUTORECONF = YES
|
|
|
|
|
2022-01-08 22:36:38 +01:00
|
|
|
FILE_DEPENDENCIES = host-file
|
|
|
|
FILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
|
|
|
FILE_INSTALL_STAGING = YES
|
|
|
|
|
|
|
|
HOST_FILE_DEPENDENCIES = host-zlib
|
2018-10-08 22:28:34 +02:00
|
|
|
HOST_FILE_CONF_OPTS = --disable-libseccomp
|
2022-01-08 22:36:38 +01:00
|
|
|
HOST_FILE_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
|
2003-02-12 11:40:28 +01:00
|
|
|
|
2020-01-31 19:05:44 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
|
|
|
FILE_CONF_OPTS += --enable-bzlib
|
|
|
|
FILE_DEPENDENCIES += bzip2
|
|
|
|
else
|
|
|
|
FILE_CONF_OPTS += --disable-bzlib
|
|
|
|
endif
|
|
|
|
|
2018-06-13 19:16:14 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
|
|
|
FILE_CONF_OPTS += --enable-libseccomp
|
|
|
|
FILE_DEPENDENCIES += libseccomp
|
|
|
|
else
|
|
|
|
FILE_CONF_OPTS += --disable-libseccomp
|
|
|
|
endif
|
|
|
|
|
2020-01-31 19:05:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_XZ),y)
|
|
|
|
FILE_CONF_OPTS += --enable-xzlib
|
|
|
|
FILE_DEPENDENCIES += xz
|
|
|
|
else
|
|
|
|
FILE_CONF_OPTS += --disable-xzlib
|
|
|
|
endif
|
|
|
|
|
2020-02-01 12:04:26 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
FILE_CONF_OPTS += --enable-zlib
|
|
|
|
FILE_DEPENDENCIES += zlib
|
|
|
|
else
|
|
|
|
FILE_CONF_OPTS += --disable-zlib
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|