aboutsummaryrefslogtreecommitdiffstats
path: root/mail/qmail
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2013-06-15 05:13:41 +0800
committerbdrewery <bdrewery@FreeBSD.org>2013-06-15 05:13:41 +0800
commita84a6b0f65935b8d4fbbededaea743db48e1dea6 (patch)
tree6ce1e29d70f5f5b12e84179aa3de1e2e0610dc3a /mail/qmail
parent4147e698a46792a4a96c023fae13b90cc338d1b6 (diff)
downloadfreebsd-ports-gnome-a84a6b0f65935b8d4fbbededaea743db48e1dea6.tar.gz
freebsd-ports-gnome-a84a6b0f65935b8d4fbbededaea743db48e1dea6.tar.zst
freebsd-ports-gnome-a84a6b0f65935b8d4fbbededaea743db48e1dea6.zip
- Fix qmail-mysql build with clang and recent mysql-client
Reported by: miwi via pointyhat
Diffstat (limited to 'mail/qmail')
-rw-r--r--mail/qmail/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile
index a9d8bee97a56..6355b5897403 100644
--- a/mail/qmail/Makefile
+++ b/mail/qmail/Makefile
@@ -679,7 +679,9 @@ post-patch:
. endif
.endif
.if defined(SLAVE_MYSQL)
- @${REINPLACE_CMD} 's|/opt/mysql|${LOCALBASE}|' \
+ @${REINPLACE_CMD} \
+ -e 's|/opt/mysql|${LOCALBASE}|' \
+ -e "s,MYSQL_LIBS=.*,MYSQL_LIBS=\`${LOCALBASE}/bin/mysql_config --libs\`," \
${WRKSRC}/Makefile
.elif defined(SLAVE_SPAMCONTROL)
@${ECHO_CMD} ${WRKDIR} > ${WRKSRC}/conf-qmail