76f20b728f
For news since 5.2.0, see: https://git.savannah.gnu.org/cgit/gawk.git/tree/NEWS?h=gawk-5.2.2 For detailed change log, see: https://git.savannah.gnu.org/cgit/gawk.git/tree/ChangeLog?h=gawk-5.2.2 This commit also removes the package patch, as it is included in upstream version 5.2.1, in: https://git.savannah.gnu.org/cgit/gawk.git/commit/?id=baab183439ff4e0c6b77d62156d447e61fc1dcfb The file .checkpackageignore is also updated to reflect this patch removal. The motivation of this bump is mainly the RISC-V fixes. Signed-off-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# gawk
|
|
#
|
|
################################################################################
|
|
|
|
GAWK_VERSION = 5.2.2
|
|
GAWK_SOURCE = gawk-$(GAWK_VERSION).tar.xz
|
|
GAWK_SITE = $(BR2_GNU_MIRROR)/gawk
|
|
GAWK_DEPENDENCIES = host-gawk
|
|
GAWK_LICENSE = GPL-3.0+
|
|
GAWK_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSIGSEGV),y)
|
|
GAWK_DEPENDENCIES += libsigsegv
|
|
endif
|
|
|
|
# --with-mpfr requires an argument so just let
|
|
# configure find it automatically
|
|
ifeq ($(BR2_PACKAGE_MPFR),y)
|
|
GAWK_DEPENDENCIES += mpfr
|
|
else
|
|
GAWK_CONF_OPTS += --without-mpfr
|
|
endif
|
|
|
|
# --with-readline requires an argument so just let
|
|
# configure find it automatically
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
GAWK_DEPENDENCIES += readline
|
|
else
|
|
GAWK_CONF_OPTS += --without-readline
|
|
endif
|
|
|
|
HOST_GAWK_CONF_OPTS = --without-readline --without-mpfr
|
|
|
|
define GAWK_CREATE_SYMLINK
|
|
ln -sf gawk $(TARGET_DIR)/usr/bin/awk
|
|
endef
|
|
|
|
GAWK_POST_INSTALL_TARGET_HOOKS += GAWK_CREATE_SYMLINK
|
|
|
|
define HOST_GAWK_CREATE_SYMLINK
|
|
ln -sf gawk $(HOST_DIR)/bin/awk
|
|
endef
|
|
|
|
HOST_GAWK_POST_INSTALL_HOOKS += HOST_GAWK_CREATE_SYMLINK
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|