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