summaryrefslogtreecommitdiff
path: root/graphics/yplot/Makefile
blob: 5cb1b4c37a26aa0211e6abe23ff9eece9e3ca3e0 (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
# $NetBSD: Makefile,v 1.3 2001/03/30 20:30:06 jtb Exp $

DISTNAME=		yplot-1.0.3
CATEGORIES=		graphics math
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=yplot/}

MAINTAINER=		jtb@netbsd.org
HOMEPAGE=		http://yplot.sourceforge.net/
COMMENT=		Yorick interface to PLplot

DEPENDS+=		yorick>=1.4:../../math/yorick
DEPENDS+=		plplot>=5.0.3:../../graphics/plplot

EVAL_PREFIX+=		PLPLOT_PREFIX=plplot

MAKEFILE=		Makefile.build

pre-build:
	${MKDIR} ${WRKSRC}/plplot
	${CP} ${PLPLOT_PREFIX}/include/plplot/*.h ${WRKSRC}/plplot

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/yplot ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/yplotl ${PREFIX}/bin
	@for f in yplot.i yplotl.i yplot_body.i; do			\
	i="${INSTALL_DATA} ${WRKSRC}/$$f				\
	${PREFIX}/share/yorick/1.4/startup/";				\
	${ECHO} $$i; $$i;						\
	done
	${INSTALL_DATA} ${WRKSRC}/doc/yplot.doc				\
	${PREFIX}/share/yorick/1.4/doc/
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/yplot
	${INSTALL_DATA} ${WRKSRC}/doc/ytut.ps ${PREFIX}/share/doc/yplot
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/yplot
	@for f in ${WRKSRC}/doc/*.i; do					\
	i="${INSTALL_DATA} $$f ${PREFIX}/share/examples/yplot/";	\
	${ECHO} $$i; $$i;						\
	done

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