aboutsummaryrefslogtreecommitdiffstats
path: root/editors/mode-info/Makefile
blob: 4c28abb666e49936b255cdbd6ba51d7a0cde8cfa (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
61
62
63
64
65
66
67
68
69
70
71
72
73
# New ports collection makefile for:    elisp-info.el
# Date Created:     21 Jan 2002
# Whom:         Yoichi NAKAYAMA <yoichi@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   mode-info
PORTVERSION=    0.1.4
CATEGORIES= elisp
MASTER_SITES=   http://namazu.org/~tsuchiya/elisp/

MAINTAINER= yoichi@FreeBSD.org

MI_INDEX+=  mi-emacs.idx
MI_WITH_ELISP?= yes
MI_ELISP_LANG?= en
MI_WITH_MAKE?=  yes

.if (${MI_WITH_ELISP} == "yes")
.if (${MI_ELISP_LANG} == "en")
BUILD_DEPENDS+= ${LOCALBASE}/info/elisp:${PORTSDIR}/lang/elisp-manual
RUN_DEPENDS+=   ${LOCALBASE}/info/elisp:${PORTSDIR}/lang/elisp-manual
.elif (${MI_ELISP_LANG} == "ja")
BUILD_DEPENDS+= ${LOCALBASE}/info/elisp-ja:${PORTSDIR}/japanese/elisp-manual
RUN_DEPENDS+=   ${LOCALBASE}/info/elisp-ja:${PORTSDIR}/japanese/elisp-manual
.else
.error MI_ELISP_LANG should be "en" or "ja".
.endif
MI_INDEX+=  mi-elisp.idx
PLIST_SUB+= MI_WITH_ELISP=""
.else
PLIST_SUB+= MI_WITH_ELISP="@comment "
.endif

.if (${MI_WITH_MAKE} == "yes")
BUILD_DEPENDS+= ${LOCALBASE}/info/make.info:${PORTSDIR}/devel/gmake
RUN_DEPENDS+=   ${LOCALBASE}/info/make.info:${PORTSDIR}/devel/gmake
MI_INDEX+=  mi-make.idx
PLIST_SUB+= MI_WITH_MAKE=""
.else
PLIST_SUB+= MI_WITH_MAKE="@comment "
.endif

EMACS_PORT_NAME?=   emacs21
EMACS_NO_RUN_DEPENDS=   yes
LISPDIR?=   ${PREFIX}/${EMACS_SITE_LISPDIR}/${PORTNAME}
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --with-emacs=${EMACS_CMD} \
        --with-lispdir=${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mode-info
ALL_TARGET= default index
#INSTALL_TARGET=    install install-index

post-configure:
.if (${MI_ELISP_LANG} == "en")
    ${ECHO_CMD} "(setq mode-info-elisp-titles (list \"elisp\"))" >> ${WRKSRC}/elisp-comp
.elif (${MI_ELISP_LANG} == "ja")
    ${ECHO_CMD} "(setq mode-info-elisp-titles (list \"elisp-ja\"))" >> ${WRKSRC}/elisp-comp
.endif
    ${ECHO_CMD} "(setq mode-info-make-titles (list \"make\"))" >> ${WRKSRC}/elisp-comp
post-install:
.for i in ${MI_INDEX}
    ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mode-info/
.endfor
    ${RM} ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mode-info/ChangeLog
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
.for i in README README.ja ChangeLog
    ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
    @${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
span>4-4/+11 * Update to 1.1.0.p19.8.4Patrick Li2002-02-023-15/+15 * - PR #34368 <vince@oahu.WURLDLINK.NET>Dirk Meyer2002-02-023-2/+14 * It checks for binary at build time, move from run to build dependencyMario Sergio Fujikawa Ferreira2002-02-011-1/+1 * Take MaintainershipDirk Meyer2002-02-011-1/+1 * upgrade to 4.5.1Ying-Chieh Liao2002-02-012-4/+3 * Update to 0.8.3aPatrick Li2002-02-012-2/+2 * Update to 3.0 alpha 14David W. Chapman Jr.2002-02-014-6/+4 * Update to 0.3.3Patrick Li2002-02-012-2/+2 * Drop maintainershipPatrick Li2002-02-011-1/+1 * Add Felix von Leitner's IPv6 patches if WITH_IPV6 is defined.Peter Pentchev2002-01-313-2/+46 * pass maintainership to drt@un.bewaff.netYing-Chieh Liao2002-01-311-1/+1 * Fix some typos I (knu) made in the last commit to unbreak makeAkinori MUSHA2002-01-311-11/+11 * Add port net/dnstracer - dnstracer determines where a givenPatrick Li2002-01-316-0/+37 * Add a patch that was left out from the last updatePatrick Li2002-01-315-0/+60 * Update to 0.8.3Patrick Li2002-01-313-5/+5 * Update to 3.0.1.r6Patrick Li2002-01-3110-10/+10 * Add port net/ipv6calc - a utility to convert, change and calculate withPatrick Li2002-01-318-0/+77 * * Update freevrrpd to version 0.8.2 with a define correction forChristian Weisgerber2002-01-314-19/+9 * add py-libnet 1.0Ying-Chieh Liao2002-01-307-0/+60 * Update to 0.9.09Patrick Li2002-01-304-88/+101 * Add new port net/freevrrpd - A VRRP (Virtual Router Redundancy Protocol)Patrick Li2002-01-307-0/+66 * add py-ipy 0.41Ying-Chieh Liao2002-01-306-0/+39 * Mark FORBIDDEN due to remotely exploitable buffer overflows.Jacques Vidrine2002-01-295-0/+10 * Use ${ECHO_CMD} instead of ${ECHO} where you mean the echo command;Akinori MUSHA2002-01-2923-73/+73 * Remove FORBIDDEN, and apologies to the MAINTAINER -- he had alreadyJacques Vidrine2002-01-291-1/+0 * Mark FORBIDDEN due to remotely exploitable buffer overflowJacques Vidrine2002-01-291-0/+1 * Update maintainer email addressPatrick Li2002-01-293-3/+3 * Update to 0.7.7Mario Sergio Fujikawa Ferreira2002-01-282-2/+2 * Remove gnubile due to it being very outdatedDavid W. Chapman Jr.2002-01-281-1/+0 * Remove this undeveloped and unavailable portDavid W. Chapman Jr.2002-01-285-28/+0 * Update to 0.42Mario Sergio Fujikawa Ferreira2002-01-282-2/+2 * Update to 0.68.0Mario Sergio Fujikawa Ferreira2002-01-282-2/+2 * Update to 1.2Patrick Li2002-01-272-11/+9 * Take Maintainership to see errors.Dirk Meyer2002-01-273-3/+3 * - Change the Makefile.in so i386--freebsd4.4-licq is _not_ installed.Dirk Meyer2002-01-272-6/+4 * Fix checksum for recycle bin patchDavid W. Chapman Jr.2002-01-271-1/+1 * Remove isc-dhcp2 due to v 3 being stable for quite some timeDavid W. Chapman Jr.2002-01-2714-215/+0 * Update to 1.5.1.1Patrick Li2002-01-27