Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame^] | 1 | SUMMARY = "Feature-rich BSD mail(1)" |
| 2 | HOMEPAGE = "https://www.sdaoden.eu/code.html#s-mailx" |
| 3 | SECTION = "console/network" |
| 4 | |
| 5 | LICENSE = "ISC & BSD-3-Clause & BSD-4-Clause" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=87266591c81260f10221f1f38872d023" |
| 7 | |
| 8 | SRC_URI = "https://ftp.sdaoden.eu/${BP}.tar.xz \ |
| 9 | file://make-errors.patch" |
| 10 | SRC_URI[sha256sum] = "2c717b22f4cd8719b82b6618640da6031382d2bf8eb51283bca2c6266957bca8" |
| 11 | |
| 12 | DEPENDS = "coreutils-native" |
| 13 | |
| 14 | B = "${WORKDIR}/build" |
| 15 | |
| 16 | inherit update-alternatives |
| 17 | |
| 18 | EXTRA_OEMAKE = "VERBOSE=yes \ |
| 19 | CONFIG=minimal \ |
| 20 | OPT_AUTOCC=no \ |
| 21 | OPT_CROSS_BUILD=yes \ |
| 22 | OBJDIR=${B} \ |
| 23 | strip=true \ |
| 24 | VAL_PREFIX=${prefix} \ |
| 25 | VAL_BINDIR=${bindir} \ |
| 26 | VAL_LIBEXECDIR=${libexecdir} \ |
| 27 | VAL_MANDIR=${mandir} \ |
| 28 | VAL_SYSCONFDIR=${sysconfdir}" |
| 29 | |
| 30 | do_configure[cleandirs] += "${B}" |
| 31 | do_configure() { |
| 32 | oe_runmake -C ${S} config |
| 33 | } |
| 34 | |
| 35 | do_compile() { |
| 36 | oe_runmake -C ${S} build |
| 37 | } |
| 38 | |
| 39 | do_install() { |
| 40 | oe_runmake -C ${S} install DESTDIR=${D} |
| 41 | } |
| 42 | |
| 43 | ALTERNATIVE:${PN} = "mailx" |
| 44 | ALTERNATIVE_TARGET[mailx] = "${bindir}/s-nail" |