blob: b35a0e06c37f56be8acb9bce9bfc4fa433a806f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# $NetBSD: Makefile,v 1.31 2013/06/14 20:16:02 gdt Exp $
DISTNAME= mu-conference-0.8.81
#The DISTFILE used to have _ separating name and version,
#but gdt accidentally didn't do that when making 0.8.81
#PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= chat
MASTER_SITES= http://download.gna.org/mu-conference/
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= https://gna.org/projects/mu-conference/
COMMENT= Implementation of the XEP-0045 Multi-User Chat protocol
LICENSE= gnu-gpl-v2
USE_TOOLS+= gmake pkg-config
LDFLAGS+= -L${BUILDLINK_PREFIX.expat}/lib
LDFLAGS+= -L${BUILDLINK_PREFIX.libidn}/lib
LDFLAGS.SunOS+= -lsocket -lnsl
PKG_SYSCONFSUBDIR= jabberd
RCD_SCRIPTS= muc
.include "../../mk/bsd.prefs.mk"
BUILD_DEFS+= JABBERD_LOGDIR JABBERD_PIDDIR
JABBERD_USER?= jabberd
PKG_USERS_VARS+= JABBERD_USER
FILES_SUBST+= JABBERD_PIDDIR=${JABBERD_PIDDIR}
FILES_SUBST+= JABBERD_USER=${JABBERD_USER}
EGDIR= ${PREFIX}/share/examples/jabberd
CONF_FILES+= ${EGDIR}/muc.xml ${PKG_SYSCONFDIR}/muc.xml
INSTALLATION_DIRS= bin share/examples/jabberd
SUBST_CLASSES+= config
SUBST_STAGE.config= pre-configure
SUBST_MESSAGE.config= Fixing configuration file.
SUBST_FILES.config= muc-default.xml
SUBST_SED.config= -e 's|\(<logdir>\)[^<]*|\1${JABBERD_LOGDIR}|g'
SUBST_SED.config+= -e 's|\(<pidfile>\).|\1${JABBERD_PIDDIR}|g'
SUBST_SED.config+= -e 's|\(<spool>\)./spool|\1${JABBERD_SPOOLDIR}|g'
SUBST_SED.config+= -e 's|\(<stylesheet>\)..|\1${EGDIR}|g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/mu-conference ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/mu-conference.sql ${DESTDIR}${EGDIR}/
${INSTALL_DATA} ${WRKSRC}/muc-default.xml ${DESTDIR}${EGDIR}/muc.xml
${INSTALL_DATA} ${WRKSRC}/style.css ${DESTDIR}${EGDIR}/
.include "../../devel/glib2/buildlink3.mk"
.include "../../devel/libidn/buildlink3.mk"
.include "../../textproc/expat/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|