aboutsummaryrefslogtreecommitdiffstats
path: root/mail
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
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')
-rw-r--r--mail/qmail-mysql/Makefile1
-rw-r--r--mail/qmail/Makefile4
2 files changed, 3 insertions, 2 deletions
diff --git a/mail/qmail-mysql/Makefile b/mail/qmail-mysql/Makefile
index a21a9ec85eaa..ea731e0a5f5f 100644
--- a/mail/qmail-mysql/Makefile
+++ b/mail/qmail-mysql/Makefile
@@ -16,7 +16,6 @@ MYSQL_PATCH_VERSION= 1.1.15
SLAVE_MYSQL= yes
USE_MYSQL= yes
-USE_GCC= any
MASTERDIR= ${.CURDIR}/../qmail
DESCR= ${.CURDIR}/pkg-descr
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