aboutsummaryrefslogtreecommitdiffstats
path: root/net/tramp/Makefile
blob: 98ec0632647be760055f64f9f5c00a65bde7b918 (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
# New ports collection makefile for:    tramp (for emacs21)
# Date Created:     12 Dec 2001
# Whom:         Yoichi NAKAYAMA <yoichi@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   tramp
PORTVERSION=    2.1.19
CATEGORIES= net elisp
MASTER_SITES=   ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= ${PORTNAME}
PKGNAMESUFFIX=  -${EMACS_PORT_NAME}

MAINTAINER= kuriyama@FreeBSD.org
COMMENT=    Transparent remote file access tool for emacsen

USE_EMACS=  yes

USE_GMAKE=  yes
USE_AUTOTOOLS=  autoconf:262

TRAMP_LISPDIR=  ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
PLIST_SUB+= TRAMP_LISPDIR=${TRAMP_LISPDIR}
CONFIGURE_ENV=  TEXI2DVI=no
CONFIGURE_ARGS= --with-contrib --prefix=${PREFIX} \
        --with-lispdir=${PREFIX}/${TRAMP_LISPDIR} \
        --with-emacs=${EMACS_CMD}

INFO=       tramp21

.if defined(JAPANESE_INFO)
CONFIGURE_ARGS+=    --with-japanese-manual
INFO+=      tramp
.endif

.include <bsd.port.pre.mk>

.if ${EMACS_PORT_NAME} == emacs20
PLIST_SUB+= EMACS20_ONLY=""
.else
PLIST_SUB+= EMACS20_ONLY="@comment "
.endif

pre-build:
.if ${EMACS_PORT_NAME} == emacs20
    (cd ${WRKSRC}/contrib; ${GMAKE})
.endif
    ${LN} -sf ../contrib/password.el ${WRKSRC}/lisp

post-install:
.if ${EMACS_PORT_NAME} == emacs20
    (cd ${WRKSRC}/contrib; ${GMAKE} install)
.endif

.include <bsd.port.post.mk>