head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2003.07.31.17.37.27;	author shige;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Add elisp/emacsen ports in the ports tree @@ 2003/07/31
@
text
@# New ports collection makefile for:   eudc-emacs20
# Date created:        8 February 2001
# Whom:                ilya
#
# $FreeBSD$
# $ports: ports/net/eudc-emacs20/Makefile,v 1.7 2003/02/24 02:26:53 edwin Exp $
#

PORTNAME=	eudc
PORTVERSION=	1.30b
CATEGORIES=	net mail elisp
MASTER_SITES=	http://lspwww.epfl.ch/~figueire/Software/eudc/
PKGNAMESUFFIX=	-${EMACS_PORT_NAME}

MAINTAINER=	ports@@FreeBSD.org
COMMENT=	An Emacs client to directory servers

RUN_DEPENDS=	ldapsearch:${PORTSDIR}/net/openldap12

EMACS_PORT_NAME?=emacs20

USE_GMAKE=	yes
MAKEFILE=	GNUmakefile

INFODIR=	${PREFIX}/info

PORTDOCDIR=	share/doc/${PORTNAME}-${EMACS_PORT_NAME}
DOCS=		COPYRIGHT ChangeLog INSTALL NEWS README
SOURCES=	eudc-autoloads.el eudc-bob.el eudc-export.el \
		eudc-hotlist.el eudc-vars.el eudc.el \
		eudcb-bbdb.el eudcb-ldap.el eudcb-ph.el ldap.el
ELCS=		${SOURCES:S/.el/.elc/g}
INFOS=		eudc.info

PLIST_SUB+=	EMACS_PORT_NAME=${EMACS_PORT_NAME} \
		INFODIR=${INFODIR:S/${PREFIX}\///}

INSTALL_TARGET=
lispdir=	${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/eudc

post-build:
	@@(cd ${WRKSRC}; makeinfo --no-split eudc.texi)
post-install:
	${MKDIR} ${lispdir};
.for i in ${SOURCES} ${ELCS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${lispdir}
.endfor
.for i in ${INFOS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${INFODIR}
	install-info ${INFODIR}/eudc.info ${INFODIR}/dir
.endfor
.if !defined(NOPORTDOCS)
	${MKDIR} ${PREFIX}/${PORTDOCDIR}
.for i in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/${PORTDOCDIR}
.endfor
.endif
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
@
