aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/jabber.el/Makefile
blob: a2c9b03b6aa155c54fc5f7081806c9094d8b95c4 (plain) (blame)
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
# New ports collection makefile for:    jabber.el
# Date created:                         26 May 2006
# Whom:                                 Max N. Boyarov <m.boyarov@bsd.by>
#
# $FreeBSD$

PORTNAME=   jabber.el
PORTVERSION=    0.7.1
CATEGORIES= net-im elisp
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= emacs-jabber
DISTNAME=       emacs-jabber-${PORTVERSION}

MAINTAINER= m.boyarov@bsd.by
COMMENT=    A minimal jabber client for [X]Emacs

NO_BUILD=   yes

INFO=       jabber.el
PORTDOCS+=  AUTHORS NEWS README

EMACS_LISPDIR=  share/emacs/site-lisp/emacs-jabber
XEMACS_LISPDIR= lib/xemacs/site-lisp/emacs-jabber

PLIST_SUB+= EMACS_LISPDIR=${EMACS_LISPDIR}  \
        XEMACS_LISPDIR=${XEMACS_LISPDIR}

## Generate info
pre-install:
    ( cd ${WRKSRC} && ${CP} -f jabber.info jabber.el.info )
    ${REINPLACE_CMD} -e 's/^File: jabber.info/File: jabber.el.info/'    \
            -e 's/^* jabber.el: (jabber)/* jabber.el: (jabber.el)/' \
            ${WRKSRC}/jabber.el.info

do-install:
    ${MKDIR} ${PREFIX}/${EMACS_LISPDIR}
    ${MKDIR} ${PREFIX}/${XEMACS_LISPDIR}
    cd ${WRKSRC}; \
    for el in `ls -1 *.el`; do                          \
        ${INSTALL_DATA} $$el ${PREFIX}/${EMACS_LISPDIR}/;           \
        ${LN} -sf ${PREFIX}/${EMACS_LISPDIR}/$$el ${PREFIX}/${XEMACS_LISPDIR}/; \
    done;

    ${INSTALL_DATA} ${WRKSRC}/${INFO}.info ${PREFIX}/${INFO_PATH}/
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/xmppuri.sh ${EXAMPLESDIR}/

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}/
.endfor
.endif

.include <bsd.port.mk>