blob: 213e38d222297f0b0d8e1be839d50c01b0fdf7ae (
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
|
# New ports collection makefile for: Yorick
# Date created: 26 Oct 97
# Whom: Pedro Giffuni <giffunip@asme.org>
#
# $FreeBSD$
#
PORTNAME= yorick
PORTVERSION= 2.1.05
PORTREVISION= 1
CATEGORIES= lang math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX= .tgz
MAINTAINER= johans@stack.nl
COMMENT= Interpreted language and scientific graphics
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}
USE_XORG= x11
MAKE_ARGS= Y_HOME=relocatable Y_DOCDIR=/dev/null
MAN1= yorick.1 gist.1
INFO= yorick
PORTDOCS= FILE_FORMATS README drat.doc graph.doc hex.doc \
library.doc math.doc refs.pdf refs.tex std.doc \
yorick.pdf yorick.tex
do-configure:
@(cd ${CONFIGURE_WRKSRC}; ${SETENV} ${MAKE_ENV} \
${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ysite config)
post-build:
cd ${WRKSRC}/doc; make yorick.info
post-install:
${INSTALL_DATA} ${WRKSRC}/emacs/yorick.el ${WRKSRC}/relocatable
@${RM} -rf ${WRKSRC}/relocatable/doc
@${RM} -rf ${PREFIX}/lib/${PORTNAME}
@${MV} ${WRKSRC}/relocatable ${PREFIX}/lib/${PORTNAME}
.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
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
@${LN} -sf ${DOCSDIR} ${PREFIX}/lib/${PORTNAME}/doc
.endif
for f in ${WRKSRC}/doc/yorick.info*; do \
${INSTALL_DATA} $$f ${PREFIX}/${INFO_PATH}; \
done
# Hidden by default: this requires an X terminal to run all checks
.ifdef MAINTAINER_MODE
regression-test: build
(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} check)
.endif
.include <bsd.port.mk>
|