blob: 7c92bded3e820ef57519dfd9fc5639363c3ef5e3 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "GNU awk text processing utility"
2DESCRIPTION = "The GNU version of awk, a text processing utility. \
3Awk interprets a special-purpose programming language to do \
4quick and easy text pattern matching and reformatting jobs."
5HOMEPAGE = "www.gnu.org/software/gawk"
6BUGTRACKER = "bug-gawk@gnu.org"
7SECTION = "console/utils"
8
9# gawk <= 3.1.5: GPLv2
10# gawk >= 3.1.6: GPLv3
11LICENSE = "GPLv2"
12LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
13
14RDEPENDS_gawk += "gawk-common"
15RDEPENDS_pgawk += "gawk-common"
16PR = "r2"
17
18SRC_URI = "${GNU_MIRROR}/gawk/gawk-${PV}.tar.gz \
19 file://gawk-3.1.5_fix_for_automake-1.12.patch"
20
21SRC_URI[md5sum] = "4760325489479cac17fe0114b8f62f30"
22SRC_URI[sha256sum] = "463dcb9d0ca398b1d4f5a332f6cd9cec56441265fca616f2ea1b44d459e9f0f8"
23
24inherit autotools gettext texinfo update-alternatives
25
26PACKAGES += "gawk-common pgawk"
27
28FILES_${PN} = "${bindir}/gawk* ${bindir}/igawk"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050029FILES_gawk-common += "${datadir}/awk/* ${libexecdir}/awk/*"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050030FILES_pgawk = "${bindir}/pgawk*"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050031
32ALTERNATIVE_${PN} = "awk"
33ALTERNATIVE_TARGET[awk] = "${bindir}/gawk"
34ALTERNATIVE_PRIORITY = "100"
35
36CFLAGS += "-D PROTOTYPES"
37
38do_install_append() {
39 # remove the link since we don't package it
40 rm ${D}${bindir}/awk
41}