aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-05-13 06:32:44 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-05-13 06:33:09 +0000
commitb92c6f8ea28cb9d991c5508e4e9ff3b6d63b8567 (patch)
treedb959ba6848b87af40c48b802604c93f5a818778 /main
parent596edb26453885baee06f4b10ff7f1fd71cd5d6b (diff)
downloadaports-b92c6f8ea28cb9d991c5508e4e9ff3b6d63b8567.tar.bz2
aports-b92c6f8ea28cb9d991c5508e4e9ff3b6d63b8567.tar.xz
main/posstfix: fix linking of the dynamic modules
Diffstat (limited to 'main')
-rw-r--r--main/postfix/APKBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/main/postfix/APKBUILD b/main/postfix/APKBUILD
index 71ce0d1152..5c0d533c27 100644
--- a/main/postfix/APKBUILD
+++ b/main/postfix/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=postfix
pkgver=3.0.1
-pkgrel=1
+pkgrel=2
pkgdesc="Secure and fast drop-in replacement for Sendmail (MTA)"
url="http://www.postfix.org/"
arch="all"
@@ -47,8 +47,7 @@ build () {
ccargs="$ccargs -DDEF_DAEMON_DIR=\\\"/usr/lib/postfix\\\""
# pcre
- ccargs="$ccargs -DHAS_PCRE"
- #auxlibs="$auxlibs -lpcre"
+ ccargs="$ccargs -DHAS_PCRE $(pkg-config --cflags libpcre)"
# ssl
ccargs="$ccargs -DUSE_TLS"
@@ -62,25 +61,31 @@ build () {
auxlibs="$auxlibs -lsasl2"
# postgresql
- ccargs="$ccargs -DHAS_PGSQL -I$(pg_config --includedir)"
- #auxlibs="$auxlibs -lpq -L$(pg_config --libdir)"
+ ccargs="$ccargs -DHAS_PGSQL $(pkg-config --cflags libpq)"
# mysql
ccargs="$ccargs -DHAS_MYSQL $(mysql_config --include)"
- #auxlibs="$auxlibs -lmysqlclient -lm -lz"
# ldap
ccargs="$ccargs -DHAS_LDAP"
- #auxlibs="$auxlibs -lldap -llber"
# sqlite
- ccargs="$ccargs -DHAS_SQLITE"
+ ccargs="$ccargs -DHAS_SQLITE $(pkg-config --cflags sqlite3)"
+
+ #
+ # AUXLIBS_CDB="$cdb_libs" \
+ # AUXLIBS_LMDB="$lmdb_libs" \
# compile
make DEBUG="" \
OPT="$CFLAGS" \
CCARGS="$ccargs" \
AUXLIBS="$auxlibs" \
+ AUXLIBS_LDAP="-lldap -llber" \
+ AUXLIBS_MYSQL="$(mysql_config --libs)" \
+ AUXLIBS_PCRE="$(pkg-config --libs libpcre)" \
+ AUXLIBS_PGSQL="$(pkg-config --libs libpq)" \
+ AUXLIBS_SQLITE="$(pkg-config --libs sqlite3)" \
dynamicmaps=yes \
shared=yes \
makefiles || return 1