freebsd-ports/net/eudc-emacs20/Makefile
Yoichi NAKAYAMA 3372573aa7 Change site-lisp directory to version specific one since Emacs 21 contains eudc.
Put info to the category where ones for Emacs 21 is placed, and put back info
entry after deinstalling this package.
2002-01-04 03:22:23 +00:00

59 lines
1.4 KiB
Makefile

# New ports collection makefile for: eudc-emacs20
# Date created: 8 February 2001
# Whom: ilya
#
# $FreeBSD$
#
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
RUN_DEPENDS= ldapsearch:${PORTSDIR}/net/openldap
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>