summaryrefslogtreecommitdiff
path: root/math/calc/Makefile
blob: 288e279ee69c354305b0dbd2106d6ea35bcb1438 (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
# $NetBSD: Makefile,v 1.4 2001/04/14 21:43:50 jtb Exp $

DISTNAME=	calc-2.02f
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_GNU:=calc/}

MAINTAINER=	packages@netbsd.org
HOMEPAGE=	http://www.gnu.org/software/calc/calc.html
COMMENT=	Advanced Calculator for GNU Emacs

.include "../../mk/bsd.prefs.mk"

.if defined(USE_XEMACS)
MAKE_ENV+=	EMACS=xemacs
DEPENDS+=	xemacs-[0-9]*:../../editors/xemacs
SITE_LISP=	lib/xemacs/xemacs-packages/lisp
.else
MAKE_ENV+=	EMACS=emacs
DEPENDS+=	emacs-[0-9]*:../../editors/emacs
SITE_LISP=	share/emacs/site-lisp
.endif

PLIST_SUBST+=	SITE_LISP=${SITE_LISP}

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/${SITE_LISP}
	${INSTALL_DATA_DIR} ${PREFIX}/${SITE_LISP}/calc
	${INSTALL_DATA} ${WRKSRC}/*.el ${WRKSRC}/*.elc \
	${WRKSRC}/calccard.tex ${PREFIX}/${SITE_LISP}/calc
	${INSTALL_DATA} ${WRKSRC}/calc.info* ${PREFIX}/info

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