summaryrefslogtreecommitdiff
path: root/chat/zenicb/Makefile
blob: b1fed252215cecbc8b8128fbd7b5c0ea14214e5b (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
45
46
47
# $NetBSD: Makefile,v 1.5 2002/04/26 09:36:57 tron Exp $

DISTNAME=		zenicb-19981202
CATEGORIES=		chat
MASTER_SITES=		${MASTER_SITE_LOCAL}

MAINTAINER=		thorpej@netbsd.org
COMMENT=		ICB client for Emacs

NO_SRC_ON_FTP=		Already in MASTER_SITE_LOCAL

# XXX YUCK!  I really don't like this, but what else are we going to do?
.include "../../mk/bsd.prefs.mk"
.if defined(USE_XEMACS)
EMACS=			xemacs
DEPENDS+=		xemacs-[1-9]*:../../editors/xemacs
MAKEFLAGS+=		USE_XEMACS=${USE_XEMACS}
ELISPDIR=		lib/xemacs/xemacs-packages/lisp

.include "../../editors/xemacs/Makefile.pkg"
.else
EMACS=			emacs
DEPENDS+=		emacs-[0-9]*:../../editors/emacs
ELISPDIR=		share/emacs/site-lisp
.endif

PLIST_SUBST+=		ELISPDIR=${ELISPDIR}

pre-configure:
.if defined(USE_XEMACS)
	@${ECHO} "You have chosen Xemacs configuration."
.else
	@${ECHO} "To install for Xemacs, set the environment variable USE_XEMACS."
.endif

do-build:

do-install:
.if defined(USE_XEMACS)
	@${INSTALL_DATA_DIR} ${PREFIX}/${ELISPDIR}
.endif
	@for file in ${WRKSRC}/src/*.el; do \
		j="${INSTALL_DATA} $$file ${PREFIX}/${ELISPDIR}/"; \
		${ECHO} $$j; $$j; \
	done

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