blob: e7c6deab42000a8504e7dfd5420d9f8fa7f788fe (
plain) (
blame)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# New ports collection makefile for: Yorick
# Date created: 26 Oct 97
# Whom: Pedro Giffuni <giffunip@asme.org>
#
# $FreeBSD$
#
# History: 1.4.1 port by Pedro Giffuni <giffunip@asme.org>
# 1.5.02 port by ports@FreeBSD.org,
# from submission by Ed Alley <wea@llnl.gov>
# 1.5.07 port by David H. Munro <munro1@llnl.gov>
# 1.5.12 port by David H. Munro <munro1@llnl.gov>, 01/Nov/02
# 1.5.07 notes:
# (1) info pages installed in PREFIX/info for consistency with other apps
# -- really should be in PREFIX/share/info
# (2) several fixes to allow PREFIX for package install to be different
# from PREFIX at build time (which is compiled into yorick and gist):
# (a) PREFIX/bin/{yorick,gist} are softlinks, which allows
# yorick and gist to compute ${PREFIX}/lib/${PORTNAME} at runtime
# (b) softlink for g/ put in lib/${PORTNAME} for gist
# (c) softlink doc/ so yorick online help is correct
# (d) copy of paths.i put in lib/${PORTNAME}/bin for yorick
# (e) pkg-install script added to fiddle softlinks, paths.i, and
# Maketmpl if PREFIX has changed at install time
# -- assume DOCSDIR and DATADIR take default values as does pkg-plist
# 1.5.08 replaces 1.5.07 infant mortality
PORTNAME= yorick
PORTVERSION= 1.5.12
CATEGORIES= lang math
MASTER_SITES= ftp://ftp-icf.llnl.gov/pub/Yorick/
EXTRACT_SUFX= .tgz
MAINTAINER= munro1@llnl.gov
COMMENT= Interpreted language and scientific graphics
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
USE_XLIB= yes
MAKE_ARGS= Y_HOME="${PREFIX}/lib/${PORTNAME}" Y_SITE="${DATADIR}" \
Y_DOCDIR=/dev/null
MAN1= yorick.1 gist.1
INFO= yorick
PORTDOCS= FILE_FORMATS README drat.doc drat.tex graph.doc hex.doc \
library.doc math.doc refs.pdf refs.ps refs.tex std.doc \
yorick.pdf yorick.ps yorick.tex
do-configure:
@(cd ${CONFIGURE_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ysite config)
post-build:
.if !defined(NOPORTDOCS)
cd ${WRKSRC}/doc; make yorick.info
.endif
post-install:
.for file in gist yorick
${INSTALL_MAN} ${WRKSRC}/doc/${file}.1 ${PREFIX}/man/man1
@${STRIP_CMD} ${PREFIX}/lib/${PORTNAME}/bin/${file}
@${LN} -sf ${PREFIX}/lib/${PORTNAME}/bin/${file} ${PREFIX}/bin/${file}
.endfor
@${STRIP_CMD} ${PREFIX}/lib/${PORTNAME}/lib/codger
${INSTALL_DATA} ${WRKSRC}/emacs/yorick.el ${DATADIR}
@${LN} -sf ../../share/${PORTNAME}/g ${PREFIX}/lib/${PORTNAME}/g
@${CP} ${DATADIR}/i0/paths.i ${PREFIX}/lib/${PORTNAME}/bin/paths.i
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
@${LN} -sf ../doc/${PORTNAME} ${DATADIR}/doc
for f in ${WRKSRC}/doc/yorick.info*; do \
${INSTALL_DATA} $$f ${PREFIX}/info; \
done
install-info ${PREFIX}/info/yorick.info ${PREFIX}/info/dir
.endif
.include <bsd.port.mk>
|