summaryrefslogtreecommitdiff
path: root/misc/bbdb/Makefile
blob: bb7a21ea9d53773c9a2875aeab6c5a552a284c22 (plain)
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
# $NetBSD: Makefile,v 1.5 2004/12/03 15:15:04 wiz Exp $
#

DISTNAME=		bbdb-2.34
CATEGORIES=		mail misc news
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=bbdb/}

MAINTAINER=		minoura@NetBSD.org
HOMEPAGE=		http://sourceforge.net/projects/bbdb/
COMMENT=		Insidious Big Brother DataBase, a rolodex-like database Emacs program

# bbdb is included in xemacs-packages
EMACS_VERSIONS_ACCEPTED=	emacs21 emacs21nox emacs20
CONFLICTS+=		xemacs-packages

USE_BUILDLINK3=		yes
USE_PKGLOCALEDIR=	yes
GNU_CONFIGURE=		yes
BUILD_TARGET=		all mhe
USE_MAKEINFO=		yes
INFO_FILES=		bbdb.info
INFO_DIR=		${INFODIR}
PLIST_SUBST+=		INFODIR=${INFODIR}

.include "../../mk/emacs.mk"

.if ${EMACS_FLAVOR} == "xemacs"
CONFIGURE_ARGS+=	--with-emacs=xemacs
CONFIGURE_ARGS+=	--with-package-dir=${PREFIX}/lib/xemacs/site-packages
INSTALL_TARGET=		install-pkg
INFODIR=		lib/xemacs/site-packages/info
pre-install:
	${INSTALL_DATA_DIR} ${PREFIX}/${INFODIR}
.else
LISPDIR=	${EMACS_LISPPREFIX}/bbdb
INFODIR=	info
do-install:
	${MKDIR} ${LISPDIR}
	${INSTALL_DATA} ${WRKSRC}/lisp/*.el ${LISPDIR}
	${INSTALL_DATA} ${WRKSRC}/lisp/*.elc ${LISPDIR}
	${INSTALL_DATA} ${WRKSRC}/texinfo/bbdb.info* ${PREFIX}/${INFO_DIR}
.endif

.include "../../mk/bsd.pkg.mk"