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 \ |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 9 | file://make-errors.patch \ |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 10 | file://0001-make.rc-set-VAL_MTA.patch \ |
| 11 | file://0001-su_INLINE-gcc-only-GNU-specifics-after-Og.patch \ |
| 12 | file://0001-su_INLINE-eh-no-give-up-share-detection.patch \ |
Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 13 | file://0001-mk-make-config.sh-not-reveal-the-build-env.patch \ |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 14 | " |
Patrick Williams | 03907ee | 2022-05-01 06:28:52 -0500 | [diff] [blame] | 15 | SRC_URI[sha256sum] = "2714d6b8fb2af3b363fc7c79b76d058753716345d1b6ebcd8870ecd0e4f7ef8c" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 16 | |
| 17 | DEPENDS = "coreutils-native" |
| 18 | |
| 19 | B = "${WORKDIR}/build" |
| 20 | |
| 21 | inherit update-alternatives |
| 22 | |
| 23 | EXTRA_OEMAKE = "VERBOSE=yes \ |
| 24 | CONFIG=minimal \ |
| 25 | OPT_AUTOCC=no \ |
| 26 | OPT_CROSS_BUILD=yes \ |
| 27 | OBJDIR=${B} \ |
| 28 | strip=true \ |
| 29 | VAL_PREFIX=${prefix} \ |
| 30 | VAL_BINDIR=${bindir} \ |
| 31 | VAL_LIBEXECDIR=${libexecdir} \ |
| 32 | VAL_MANDIR=${mandir} \ |
| 33 | VAL_SYSCONFDIR=${sysconfdir}" |
| 34 | |
| 35 | do_configure[cleandirs] += "${B}" |
| 36 | do_configure() { |
| 37 | oe_runmake -C ${S} config |
| 38 | } |
| 39 | |
| 40 | do_compile() { |
| 41 | oe_runmake -C ${S} build |
| 42 | } |
| 43 | |
| 44 | do_install() { |
| 45 | oe_runmake -C ${S} install DESTDIR=${D} |
| 46 | } |
| 47 | |
| 48 | ALTERNATIVE:${PN} = "mailx" |
| 49 | ALTERNATIVE_TARGET[mailx] = "${bindir}/s-nail" |