postfix: unbreak cross compilation.

This commit is contained in:
Juan RP 2015-04-01 23:14:04 +02:00
parent d6aaa1ddc1
commit 1db1f0b932

View file

@ -56,19 +56,19 @@ make_dirs="
do_build() {
sed -e "s,\(/usr/include/db.h\),${XBPS_CROSS_BASE}/\1,g" -i makedefs
make makefiles DEBUG='' CCARGS=' \
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl \
make makefiles DEBUG='' CCARGS=" \
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${XBPS_CROSS_BASE}/usr/include/sasl \
-DHAS_LDAP \
-DUSE_TLS \
-DHAS_MYSQL -I/usr/include/mysql \
-DHAS_PGSQL -I/usr/include/postgresql \
-DHAS_MYSQL -I${XBPS_CROSS_BASE}/usr/include/mysql \
-DHAS_PGSQL -I${XBPS_CROSS_BASE}/usr/include/postgresql \
-DHAS_SQLITE \
-DDEF_COMMAND_DIR=\"/usr/bin\" \
-DDEF_SENDMAIL_PATH=\"/usr/bin/sendmail\" \
-DDEF_README_DIR=\"/usr/share/doc/postfix\" \
-DDEF_SAMPLE_DIR=\"/usr/share/examples/postfix/\" \
-DDEF_MANPAGE_DIR=\"/usr/share/man\" \
' AUXLIBS=' \
-DDEF_COMMAND_DIR=\'/usr/bin\' \
-DDEF_SENDMAIL_PATH=\'/usr/bin/sendmail\' \
-DDEF_README_DIR=\'/usr/share/doc/postfix\' \
-DDEF_SAMPLE_DIR=\'/usr/share/examples/postfix/\' \
-DDEF_MANPAGE_DIR=\'/usr/share/man\' \
" AUXLIBS=' \
-lsasl2 \
-lldap -llber \
-lssl -lcrypto \
@ -77,9 +77,6 @@ do_build() {
-lsqlite3 -lpthread \
' OPT="${CFLAGS} ${LDFLAGS}"
if [ "$CROSS_BUILD" ]; then
sed -e "s,/usr/include,${XBPS_CROSS_BASE}/usr/include,g" -i Makefile
fi
make ${makejobs}
}
pre_install() {