2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-10-23 14:54:42 +02:00
|
|
|
#
|
|
|
|
# gawk
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2015-04-29 21:18:19 +02:00
|
|
|
GAWK_VERSION = 4.1.2
|
2013-09-06 08:14:15 +02:00
|
|
|
GAWK_SOURCE = gawk-$(GAWK_VERSION).tar.xz
|
2010-06-07 16:35:58 +02:00
|
|
|
GAWK_SITE = $(BR2_GNU_MIRROR)/gawk
|
2013-05-12 06:01:41 +02:00
|
|
|
GAWK_DEPENDENCIES = host-gawk $(if $(BR2_PACKAGE_MPFR),mpfr)
|
|
|
|
GAWK_LICENSE = GPLv3+
|
2012-12-27 06:39:08 +01:00
|
|
|
GAWK_LICENSE_FILES = COPYING
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2011-11-13 23:27:52 +01:00
|
|
|
# Prefer full-blown gawk over busybox awk
|
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
|
|
GAWK_DEPENDENCIES += busybox
|
|
|
|
endif
|
|
|
|
|
2013-05-12 06:01:41 +02:00
|
|
|
# We don't have a host-busybox
|
2012-01-18 11:17:26 +01:00
|
|
|
HOST_GAWK_DEPENDENCIES =
|
|
|
|
|
2010-09-01 23:23:40 +02:00
|
|
|
define GAWK_CREATE_SYMLINK
|
2010-06-07 16:35:58 +02:00
|
|
|
ln -sf /usr/bin/gawk $(TARGET_DIR)/usr/bin/awk
|
2010-09-01 23:23:40 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
GAWK_POST_INSTALL_TARGET_HOOKS += GAWK_CREATE_SYMLINK
|
2002-10-23 14:54:42 +02:00
|
|
|
|
2013-05-12 06:01:41 +02:00
|
|
|
# Assume we support shared libs
|
|
|
|
# The check isn't cross-compile friendly and it's mandatory anyway
|
|
|
|
define GAWK_DISABLE_SHARED_CHECK
|
|
|
|
$(SED) 's/ check-for-shared-lib-support//' $(@D)/extension/Makefile.in
|
2010-09-01 23:23:40 +02:00
|
|
|
endef
|
|
|
|
|
2013-05-12 06:01:41 +02:00
|
|
|
GAWK_POST_PATCH_HOOKS += GAWK_DISABLE_SHARED_CHECK
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|