2002-10-23 14:54:42 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# gawk
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
|
2011-11-13 23:27:52 +01:00
|
|
|
GAWK_VERSION = 4.0.0
|
2010-06-07 16:35:58 +02:00
|
|
|
GAWK_SITE = $(BR2_GNU_MIRROR)/gawk
|
|
|
|
GAWK_TARGET_BINS = awk gawk igawk pgawk
|
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
|
|
|
|
|
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
|
|
|
|
2010-09-01 23:23:40 +02:00
|
|
|
define GAWK_UNINSTALL_TARGET_CMDS
|
2010-06-07 16:35:58 +02:00
|
|
|
rm -f $(addprefix $(TARGET_DIR)/usr/bin/, $(GAWK_TARGET_BINS))
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/info/gawk*.info
|
|
|
|
rm -f $(TARGET_DIR)/usr/share/man/man*/*gawk.1
|
|
|
|
rm -rf $(TARGET_DIR)/usr/libexec/awk
|
|
|
|
rm -rf $(TARGET_DIR)/usr/share/awk
|
2010-09-01 23:23:40 +02:00
|
|
|
endef
|
|
|
|
|
2011-09-29 21:57:43 +02:00
|
|
|
$(eval $(call AUTOTARGETS))
|
|
|
|
$(eval $(call AUTOTARGETS,host))
|