mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 23:23:51 +02:00
postfix: unbreak cross compilation.
This commit is contained in:
parent
d6aaa1ddc1
commit
1db1f0b932
1 changed files with 10 additions and 13 deletions
|
@ -56,19 +56,19 @@ make_dirs="
|
||||||
do_build() {
|
do_build() {
|
||||||
sed -e "s,\(/usr/include/db.h\),${XBPS_CROSS_BASE}/\1,g" -i makedefs
|
sed -e "s,\(/usr/include/db.h\),${XBPS_CROSS_BASE}/\1,g" -i makedefs
|
||||||
|
|
||||||
make makefiles DEBUG='' CCARGS=' \
|
make makefiles DEBUG='' CCARGS=" \
|
||||||
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl \
|
-DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I${XBPS_CROSS_BASE}/usr/include/sasl \
|
||||||
-DHAS_LDAP \
|
-DHAS_LDAP \
|
||||||
-DUSE_TLS \
|
-DUSE_TLS \
|
||||||
-DHAS_MYSQL -I/usr/include/mysql \
|
-DHAS_MYSQL -I${XBPS_CROSS_BASE}/usr/include/mysql \
|
||||||
-DHAS_PGSQL -I/usr/include/postgresql \
|
-DHAS_PGSQL -I${XBPS_CROSS_BASE}/usr/include/postgresql \
|
||||||
-DHAS_SQLITE \
|
-DHAS_SQLITE \
|
||||||
-DDEF_COMMAND_DIR=\"/usr/bin\" \
|
-DDEF_COMMAND_DIR=\'/usr/bin\' \
|
||||||
-DDEF_SENDMAIL_PATH=\"/usr/bin/sendmail\" \
|
-DDEF_SENDMAIL_PATH=\'/usr/bin/sendmail\' \
|
||||||
-DDEF_README_DIR=\"/usr/share/doc/postfix\" \
|
-DDEF_README_DIR=\'/usr/share/doc/postfix\' \
|
||||||
-DDEF_SAMPLE_DIR=\"/usr/share/examples/postfix/\" \
|
-DDEF_SAMPLE_DIR=\'/usr/share/examples/postfix/\' \
|
||||||
-DDEF_MANPAGE_DIR=\"/usr/share/man\" \
|
-DDEF_MANPAGE_DIR=\'/usr/share/man\' \
|
||||||
' AUXLIBS=' \
|
" AUXLIBS=' \
|
||||||
-lsasl2 \
|
-lsasl2 \
|
||||||
-lldap -llber \
|
-lldap -llber \
|
||||||
-lssl -lcrypto \
|
-lssl -lcrypto \
|
||||||
|
@ -77,9 +77,6 @@ do_build() {
|
||||||
-lsqlite3 -lpthread \
|
-lsqlite3 -lpthread \
|
||||||
' OPT="${CFLAGS} ${LDFLAGS}"
|
' OPT="${CFLAGS} ${LDFLAGS}"
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
sed -e "s,/usr/include,${XBPS_CROSS_BASE}/usr/include,g" -i Makefile
|
|
||||||
fi
|
|
||||||
make ${makejobs}
|
make ${makejobs}
|
||||||
}
|
}
|
||||||
pre_install() {
|
pre_install() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue