2001-12-16 11:25:05 +00:00
|
|
|
# New ports collection makefile for: tramp (for emacs21)
|
|
|
|
# Date Created: 12 Dec 2001
|
|
|
|
# Whom: Yoichi NAKAYAMA <yoichi@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= tramp
|
2003-08-02 02:23:21 +00:00
|
|
|
PORTVERSION= 2.0.36
|
2001-12-16 11:25:05 +00:00
|
|
|
CATEGORIES= net elisp
|
2002-09-22 20:30:21 +00:00
|
|
|
MASTER_SITES= http://savannah.nongnu.org/download/tramp/
|
2001-12-16 11:25:05 +00:00
|
|
|
PKGNAMESUFFIX= -${EMACS_PORT_NAME}
|
|
|
|
|
|
|
|
MAINTAINER= yoichi@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= Transparent remote file access tool for emacsen
|
2001-12-16 11:25:05 +00:00
|
|
|
|
|
|
|
EMACS_PORT_NAME?= emacs21
|
|
|
|
|
2002-02-05 16:10:08 +00:00
|
|
|
USE_GMAKE= yes
|
2003-08-02 02:23:21 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2002-01-14 20:53:57 +00:00
|
|
|
|
2001-12-16 11:25:05 +00:00
|
|
|
TRAMP_LISPDIR= ${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
|
|
|
|
DIRSECTION= "The Emacs editor and associated tools"
|
|
|
|
INFOENTRY= "* TRAMP: (tramp). Transparent Remote Access, Multiple Protocol."
|
|
|
|
INFOENTRY_JA= "* TRAMP-J: (tramp_ja). Transparent Remote Access, Multiple Protocol."
|
|
|
|
PLIST_SUB+= TRAMP_LISPDIR=${TRAMP_LISPDIR} \
|
|
|
|
DIRSECTION=${DIRSECTION} \
|
|
|
|
INFOENTRY=${INFOENTRY} INFOENTRY_JA=${INFOENTRY_JA}
|
2003-08-02 02:23:21 +00:00
|
|
|
CONFIGURE_ARGS= --prefix=${PREFIX} \
|
|
|
|
--with-lispdir=${PREFIX}/${TRAMP_LISPDIR}
|
2001-12-16 11:25:05 +00:00
|
|
|
|
2003-08-02 02:23:21 +00:00
|
|
|
|
|
|
|
#.if !defined(NOPORTDOCS) && defined(JAPANESE_INFO)
|
|
|
|
#BUILD_DEPENDS+= jmakeinfo:${PORTSDIR}/japanese/texinfo
|
|
|
|
#PLIST_SUB+= JAPANESE_INFO=""
|
|
|
|
#.else
|
2001-12-16 11:25:05 +00:00
|
|
|
PLIST_SUB+= JAPANESE_INFO="@comment "
|
2003-08-02 02:23:21 +00:00
|
|
|
#.endif
|
2001-12-16 11:25:05 +00:00
|
|
|
|
2002-01-14 20:53:57 +00:00
|
|
|
.if ${EMACS_PORT_NAME} == emacs20
|
2003-08-02 02:23:21 +00:00
|
|
|
MAKE_ARGS+= USE_CONTRIB=yes
|
2002-01-14 20:53:57 +00:00
|
|
|
PLIST_SUB+= EMACS20_ONLY=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= EMACS20_ONLY="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-08-02 02:23:21 +00:00
|
|
|
#pre-build:
|
|
|
|
#.if ${EMACS_PORT_NAME} == emacs20
|
|
|
|
#.for i in format-spec md5
|
|
|
|
# (cd ${WRKSRC}/contrib; ${EMACS_CMD} -batch -f batch-byte-compile ${i}.el)
|
|
|
|
# (${CP} -p ${WRKSRC}/contrib/${i}.el ${WRKSRC}/contrib/${i}.elc ${BUILD_WRKSRC})
|
|
|
|
#.endfor
|
|
|
|
#.endif
|
|
|
|
#post-build:
|
|
|
|
#.if !defined(NOPORTDOCS)
|
|
|
|
## (cd ${WRKSRC}/texi; ${GMAKE} EMACS=${EMACS_CMD} MAKEINFO=makeinfo tramp.info)
|
|
|
|
#.if defined(JAPANESE_INFO)
|
|
|
|
# (cd ${WRKSRC}/texi; ${GMAKE} EMACS=${EMACS_CMD} MAKEINFO=jmakeinfo tramp_ja.info)
|
|
|
|
#.endif
|
|
|
|
#.endif
|
2002-01-14 20:53:57 +00:00
|
|
|
|
2003-08-02 02:23:21 +00:00
|
|
|
post-install:
|
2001-12-16 11:25:05 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2003-08-02 02:23:21 +00:00
|
|
|
# ${INSTALL_DATA} ${WRKSRC}/info/tramp ${PREFIX}/info
|
2002-09-03 08:02:07 +00:00
|
|
|
install-info --section=${DIRSECTION} --entry=${INFOENTRY} ${PREFIX}/info/tramp ${PREFIX}/info/dir
|
2003-08-02 02:23:21 +00:00
|
|
|
#.if defined(JAPANESE_INFO)
|
|
|
|
# ${INSTALL_DATA} ${WRKSRC}/texi/tramp_ja.info ${PREFIX}/info
|
|
|
|
# install-info --section=${DIRSECTION} --entry=${INFOENTRY_JA} ${PREFIX}/info/tramp_ja.info ${PREFIX}/info/dir
|
|
|
|
#.endif
|
2001-12-16 11:25:05 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|