diff options
author | Martin Matuska <mm@FreeBSD.org> | 2007-07-27 12:19:48 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2007-07-27 12:19:48 +0000 |
commit | d5d84a5f88bed2ee4c71eac94864ad9027bea136 (patch) | |
tree | bcc3f64ef1c36bba6f8a2923fdf6940230a8b04d /net-im | |
parent | - Convert to rc.d style script (diff) |
- Fix build with SQLITE option and installed databases/sqlite-threads
Reported by: Sean Winn <sean@gothic.net.au>
Approved by: garga (mentor, implicit)
Notes
Notes:
svn path=/head/; revision=196385
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/jabberd/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net-im/jabberd/Makefile b/net-im/jabberd/Makefile index a9c250764fa5..f9f160723fa0 100644 --- a/net-im/jabberd/Makefile +++ b/net-im/jabberd/Makefile @@ -77,6 +77,7 @@ PLIST_SUB+= SUB_PGSQL="@comment " .if defined(WITH_SQLITE) CONFIGURE_ARGS+=--enable-sqlite LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3 +CFLAGS+= ${PTHREAD_CFLAGS} PLIST_SUB+= SUB_SQLITE="" .else CONFIGURE_ARGS+=--disable-sqlite @@ -139,6 +140,10 @@ PLIST_SUB+= SUB_ANON="@comment " MAN8= c2s.8 jabberd.8 resolver.8 router.8 s2s.8 sm.8 +post-patch: + @${REINPLACE_CMD} -e 's|"-lsqlite3|"-lsqlite3 ${PTHREAD_LIBS}|g' \ + ${WRKSRC}/configure + post-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL @${CHOWN} -R ${JABBER_USER}:${JABBER_GROUP} ${PREFIX}/etc/jabberd |