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