aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/mu-conference
diff options
context:
space:
mode:
authormm <mm@FreeBSD.org>2009-05-06 17:31:16 +0800
committermm <mm@FreeBSD.org>2009-05-06 17:31:16 +0800
commit7c837ca4b3b5723c3a3d767552ad82e47d7f51d4 (patch)
tree2615c5a7491203c71215364335f49a68bf3c9810 /net-im/mu-conference
parent09bb1a833fb2af81da1413e0f8e0486dd9ffe4e8 (diff)
downloadfreebsd-ports-gnome-7c837ca4b3b5723c3a3d767552ad82e47d7f51d4.tar.gz
freebsd-ports-gnome-7c837ca4b3b5723c3a3d767552ad82e47d7f51d4.tar.zst
freebsd-ports-gnome-7c837ca4b3b5723c3a3d767552ad82e47d7f51d4.zip
- Fix build with WITH_MYSQL option set
Diffstat (limited to 'net-im/mu-conference')
-rw-r--r--net-im/mu-conference/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/net-im/mu-conference/Makefile b/net-im/mu-conference/Makefile
index e2380ebd8894..024e1cedb422 100644
--- a/net-im/mu-conference/Makefile
+++ b/net-im/mu-conference/Makefile
@@ -41,6 +41,8 @@ MAKE_JOBS_UNSAFE= yes
.if defined(WITH_MYSQL)
USE_MYSQL= yes
CFLAGS+= -DHAVE_MYSQL
+LIBS+= `${LOCALBASE}/bin/mysql_config --libs`
+MAKE_ENV+= LIBS="${LIBS}"
DOCFILES+= README.sql mu-conference.sql
.endif
@@ -88,14 +90,6 @@ post-patch:
-e 's#<logdir>\./logs#<logdir>${JABBER_SPOOLDIR}/conference.localhost/logs#g' \
-e 's#<pidfile>\.#<pidfile>${JABBER_PIDDIR}#g' \
${WRKSRC}/muc-default.xml
-.if defined(WITH_MYSQL)
- @${REINPLACE_CMD} \
- -e 's#`mysql_config#`${LOCALBASE}/bin/mysql_config#g' \
- ${WRKSRC}/src/Makefile
-.else
- @${REINPLACE_CMD} -e 's#`mysql_config --libs`##g' \
- ${WRKSRC}/src/Makefile
-.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/mu-conference ${PREFIX}/bin