summaryrefslogtreecommitdiff
path: root/math/calc/Makefile
blob: e1988dfc8b7b1bcca198077c4fcb1597c07fc369 (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
# $NetBSD: Makefile,v 1.2 2000/12/13 23:51:34 jtb Exp $

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

MAINTAINER=	jtb@netbsd.org
HOMEPAGE=	http://www.gnu.org/software/calc/calc.html

.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"