mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
16
package/gawk/0001-no-versioned.patch
Normal file
16
package/gawk/0001-no-versioned.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
Disabled versioned installation of binaries to save space.
|
||||
|
||||
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||
[Gustavo: update for 4.1.2]
|
||||
|
||||
diff -Nura gawk-4.1.2.orig/Makefile.in gawk-4.1.2/Makefile.in
|
||||
--- gawk-4.1.2.orig/Makefile.in 2015-04-29 16:11:09.367925925 -0300
|
||||
+++ gawk-4.1.2/Makefile.in 2015-04-29 16:11:25.308466495 -0300
|
||||
@@ -1173,6 +1173,7 @@
|
||||
# (This is done universally, which may not always be right, but
|
||||
# there's no easy way to distinguish GNU from non-GNU systems.)
|
||||
install-exec-hook:
|
||||
+foo:
|
||||
(cd $(DESTDIR)$(bindir); \
|
||||
$(LN) gawk$(EXEEXT) gawk-$(VERSION)$(EXEEXT) 2>/dev/null ; \
|
||||
if [ ! -f awk$(EXEEXT) ]; \
|
||||
16
package/gawk/Config.in
Normal file
16
package/gawk/Config.in
Normal file
@@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_GAWK
|
||||
bool "gawk"
|
||||
depends on BR2_USE_WCHAR
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
help
|
||||
A special-purpose programming language which is data driven
|
||||
rather than procedural. Allows for simple data-reformatting
|
||||
jobs with just a few lines of code.
|
||||
|
||||
http://www.gnu.org/software/gawk/
|
||||
|
||||
comment "gawk needs a toolchain w/ wchar"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_USE_WCHAR
|
||||
depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
|
||||
5
package/gawk/gawk.hash
Normal file
5
package/gawk/gawk.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
# https://ftp.gnu.org/gnu/gawk/gawk-4.2.1.tar.xz.sig
|
||||
sha256 d1119785e746d46a8209d28b2de404a57f983aa48670f4e225531d3bdc175551 gawk-4.2.1.tar.xz
|
||||
# Locally calculated
|
||||
sha256 8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING
|
||||
43
package/gawk/gawk.mk
Normal file
43
package/gawk/gawk.mk
Normal file
@@ -0,0 +1,43 @@
|
||||
################################################################################
|
||||
#
|
||||
# gawk
|
||||
#
|
||||
################################################################################
|
||||
|
||||
GAWK_VERSION = 4.2.1
|
||||
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
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user