From 4d7c2fb5ca42e05a14add498e07d4df22e5f408a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 15 Aug 2013 12:22:52 +0200 Subject: [PATCH] dovecot: cross build support. --- srcpkgs/dovecot/template | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/srcpkgs/dovecot/template b/srcpkgs/dovecot/template index c0bffdae03..c883c7f0a0 100644 --- a/srcpkgs/dovecot/template +++ b/srcpkgs/dovecot/template @@ -15,9 +15,30 @@ homepage="http://dovecot.org" distfiles="${homepage}/releases/2.2/${pkgname}-${version}.tar.gz" checksum=15b2cd607e6533f4805f471a61dd1c8bd81675cecc6ea6361504247dd9af5cf8 -makedepends="openssl-devel mit-krb5-devel libmysqlclient-devel>=5.5.27 - postgresql-libs-devel sqlite-devel libldap-devel libcap-devel pam-devel - libcurl-devel expat-devel" +if [ "$CROSS_BUILD" ]; then + CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/mysql" + LDFLAGS="-L${XBPS_CROSS_BASE}/usr/lib" + # XXX needs host krb5-config and mysql-config + hostmakedepends=" mit-krb5-devel libmysqlclient-devel" + configure_args+=" + i_cv_epoll_works=yes + i_cv_inotify_works=yes + i_cv_posix_fallocate_works=yes + i_cv_signed_size_t=no + i_cv_gmtime_max_time_t=32 + i_cv_signed_time_t=yes + i_cv_mmap_plays_with_write=yes + i_cv_fd_passing=yes + i_cv_c99_vsnprintf=yes + i_cv_gssapi_spnego=yes + lib_cv_va_copy=yes + lib_cv___va_copy=yes + lib_cv_va_val_copy=yes" +fi + +makedepends="zlib-devel bzip2-devel openssl-devel mit-krb5-devel + libmysqlclient-devel>=5.5.27 postgresql-libs-devel sqlite-devel + libldap-devel libcap-devel pam-devel libcurl-devel expat-devel" post_install() { local econfdir=usr/share/doc/dovecot/example-config