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