aboutsummaryrefslogtreecommitdiffstats
path: root/editors/speedbar/Makefile
blob: 3500abca2815eaf33f37d16f79f073e73ef169ab (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
56
57
58
59
60
# New ports collection makefile for:   speedbar
# Date created:                29 December 2001
# Whom:                        Kimura Fuyuki <fuyuki@mj.0038.net>
#
# $FreeBSD$
#

PORTNAME=   speedbar
PORTVERSION=    0.14.b4
PORTREVISION=   3
CATEGORIES= editors elisp
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE} \
        http://bsdchat.com/dist/dryice/
MASTER_SITE_SUBDIR= cedet
PKGNAMESUFFIX=  -${EMACS_PORT_NAME}
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.b/beta/}

MAINTAINER= dryice@dryice.name
COMMENT=    Quick access to files and tags in an Emacs frame

EMACS_PORT_NAME?=   emacs21

USE_REINPLACE=  yes
USE_GMAKE=  yes
CONFLICTS=  cedet*

LISPDIR=    ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/speedbar

# We need to recompile these el's because of some incompatible changes
# in speedbar.
MUST_BE_RECOMPILED= gud.el info.el rmail.el vhdl-mode.el

EMACS_ARGS=  -batch -l speedbar-compile-script -f batch-byte-compile

pre-everything::
    @${ECHO_MSG} ""
    @${ECHO_MSG} "New version of speedbar is now in devel/cedet."
    @${ECHO_MSG} "Hit C-c now if you want the new version."
    @${ECHO_MSG} ""

pre-build:
.for i in ${MUST_BE_RECOMPILED}
    ${CP} `${FIND} ${PREFIX}/${EMACS_LIBDIR_WITH_VER}/lisp -name ${i}` \
        ${WRKSRC}
    ${REINPLACE_CMD} -e 's/speedbar-attached-frame/dframe-attached-frame/' \
        ${WRKSRC}/${i}
.endfor

post-build:
    cd ${WRKSRC}; ${EMACS_CMD} ${EMACS_ARGS} ${MUST_BE_RECOMPILED}

do-install:
    ${MKDIR} ${LISPDIR}
.for i in *.el *.elc *.xpm
    ${INSTALL_DATA} ${WRKSRC}/${i} ${LISPDIR}
.endfor
    ${INSTALL_DATA} ${WRKSRC}/speedbar.info ${PREFIX}/info
    install-info ${PREFIX}/info/speedbar.info ${PREFIX}/info/dir

.include <bsd.port.mk>