summaryrefslogtreecommitdiff
path: root/chat/mu-conference/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'chat/mu-conference/Makefile')
-rw-r--r--chat/mu-conference/Makefile55
1 files changed, 55 insertions, 0 deletions
diff --git a/chat/mu-conference/Makefile b/chat/mu-conference/Makefile
new file mode 100644
index 00000000000..f91ecd84cb8
--- /dev/null
+++ b/chat/mu-conference/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/06/26 14:28:09 abs Exp $
+#
+
+DISTNAME= mu-conference-0.6.0
+CATEGORIES= chat
+MASTER_SITES= http://jabber.terrapin.com/JCR/ http://www.jabberstudio.org/projects/mu-conference/releases/download.php?file=
+DISTFILES= ${DISTNAME}.tar.gz jcr-0.1.2.tar.gz
+
+MAINTAINER= abs@mono.org
+HOMEPAGE= http://jabber.terrapin.com/JCR/
+COMMENT= Implementation of the JEP-0045 Multi-User Chat protocol
+
+DEPENDS+= jabberd-[0-9]*:../../chat/jabberd2
+
+WRKSRC= ${WRKDIR}/jcr-0.1.2
+SUBWRKSRC= ${WRKSRC}/${DISTNAME}/src
+XMLCONFIG= ${WRKDIR}/${DISTNAME}/muc-jcr.xml
+
+USE_BUILDLINK3= yes
+USE_GNU_TOOLS+= make
+USE_BUILDLINK3= yes
+USE_PKGINSTALL= yes
+
+PKG_SYSCONFSUBDIR= jabberd
+RCD_SCRIPTS= muc
+
+FILES_SUBST+= JABBERD_PIDDIR=${JABBERD_PIDDIR}
+
+EGDIR= ${PREFIX}/share/examples/jabberd
+CONF_FILES+= ${EGDIR}/muc-jcr.xml ${PKG_SYSCONFDIR}/muc-jcr.xml
+
+post-extract:
+ @${MV} ${XMLCONFIG} ${XMLCONFIG}.in
+
+pre-configure:
+ @${SED} -e "s|\(<logdir>\)[^<]*|\1${JABBERD_LOGDIR}|g" \
+ -e "s|\(<pidfile>\).|\1${JABBERD_PIDDIR}|g" \
+ -e "s|\(<spool>\).|\1${JABBERD_SPOOLDIR}|g" \
+ ${XMLCONFIG}.in > ${XMLCONFIG}
+
+pre-build:
+ cd ${WRKDIR} ; ${PAX} -rw -pe ${DISTNAME} ${WRKSRC}
+
+post-build:
+ ${CP} ${WRKSRC}/src/main.c ${WRKSRC}/src/jcomp.mk ${SUBWRKSRC}
+ cd ${SUBWRKSRC} ; ${GMAKE} -f jcomp.mk
+
+do-install:
+ ${INSTALL_PROGRAM} ${SUBWRKSRC}/mu-conference ${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}/muc-jcr.xml ${EGDIR}
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/pkgconfig/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
+