cb6fcf96538a5d06a8eb31139130eb3095c80e06
[vuplus_openembedded] / cyrus-sasl / cyrus-sasl_2.1.17.oe
1 DEPENDS = "virtual/libc db3"
2 DESCRIPTION = "Generic client/server library for SASL authentication."
3
4 SRC_URI = "ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/cyrus-sasl-${PV}.tar.gz \
5            file://${FILESDIR}/configure.patch;patch=1"
6
7 inherit autotools 
8
9 acpaths = "-I ${S}/cmulocal -I ${S}/config -I ."
10 CFLAGS_append = " -I${S}/include -I${S}/saslauthd/include"
11 EXTRA_OECONF = "--enable-shared --enable-static --with-dblib=berkeley \
12                 --with-bdb-libdir=${STAGING_LIBDIR} \
13                 --with-bdb-incdir=${STAGING_INCDIR} \
14                 --without-opie --without-des"
15
16 do_configure_prepend () {
17         rm -f acinclude.m4
18 }
19
20 do_compile_prepend () {
21         cd include
22         ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} makemd5.c -o makemd5
23         touch makemd5.o makemd5.lo makemd5
24         cd ..
25 }
26
27 do_stage () {
28         oe_libinstall -so -a -C lib libsasl2 ${STAGING_LIBDIR}
29         install -d ${STAGING_LIBDIR}/sasl
30         install -d ${STAGING_INCDIR}/sasl
31         install -m 0644 ${S}/include/hmac-md5.h ${STAGING_INCDIR}/sasl/
32         install -m 0644 ${S}/include/md5.h ${STAGING_INCDIR}/sasl/
33         install -m 0644 ${S}/include/md5global.h ${STAGING_INCDIR}/sasl/
34         install -m 0644 ${S}/include/sasl.h ${STAGING_INCDIR}/sasl/
35         install -m 0644 ${S}/include/saslplug.h ${STAGING_INCDIR}/sasl/
36         install -m 0644 ${S}/include/saslutil.h ${STAGING_INCDIR}/sasl/
37         install -m 0644 ${S}/include/prop.h ${STAGING_INCDIR}/sasl/
38 }