Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "UW c-client library for mail protocols" |
| 2 | SECTION = "devel" |
| 3 | |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a6a4ddbb7cd2999f6827ee143f6fcd97" |
| 6 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 7 | DEPENDS = "openssl virtual/crypt" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 8 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 9 | SRC_URI = "https://fossies.org/linux/misc/old/imap-${PV}.tar.gz \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 10 | file://quote_cctype.patch \ |
| 11 | file://imap-2007e-shared.patch \ |
| 12 | file://imap-2007f-format-security.patch \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 13 | file://0001-Support-OpenSSL-1.1.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | " |
| 15 | |
| 16 | SRC_URI[md5sum] = "2126fd125ea26b73b20f01fcd5940369" |
| 17 | SRC_URI[sha256sum] = "53e15a2b5c1bc80161d42e9f69792a3fa18332b7b771910131004eb520004a28" |
| 18 | |
| 19 | S = "${WORKDIR}/imap-${PV}" |
| 20 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 21 | PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 22 | PACKAGECONFIG[pam] = ",,libpam" |
| 23 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 24 | EXTRA_OEMAKE = "CC='${CC}' ARRC='${AR} -rc' RANLIB='${RANLIB}'" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 25 | |
| 26 | HEADERS = "src/c-client/*.h src/osdep/unix/*.h c-client/auths.c c-client/linkage.c c-client/linkage.h c-client/osdep.h" |
| 27 | |
| 28 | do_compile() { |
| 29 | echo "SSLINCLUDE=${STAGING_INCDIR} SSLLIB=${STAGING_LIBDIR}" > ${S}/SPECIALS |
| 30 | oe_runmake ${@bb.utils.contains('PACKAGECONFIG', 'pam', 'lnp', 'slx', d)} |
| 31 | } |
| 32 | |
| 33 | do_install() { |
| 34 | install -d ${D}${includedir}/c-client |
| 35 | install ${HEADERS} ${D}${includedir}/c-client |
| 36 | install -d ${D}${libdir} |
| 37 | install c-client/c-client.a ${D}${libdir}/libc-client.a |
| 38 | } |
| 39 | |
| 40 | RPROVIDES_${PN} = "libc-client" |
| 41 | RREPLACES_${PN} = "libc-client" |
| 42 | RCONFLICTS_${PN} = "libc-client" |
| 43 | |
| 44 | ALLOW_EMPTY_${PN} = "1" |
| 45 | |