blob: 6978329fed2ba40b82adcc4dfb8f7c5137210c10 (
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: Mathomatic
# Date created: Tue Mar 22 10:05:25 CET 2005
# Whom: Roman Neuhauser <neuhauser@sigpipe.cz>
#
# $FreeBSD$
#
PORTNAME= mathomatic
PORTVERSION= 15.3.7
CATEGORIES= math
MASTER_SITES= http://www.panix.com/~gesslein/ \
CRITICAL
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Highly portable, general purpose CAS (Computer Algebra System)
USE_BZIP2= yes
USE_GMAKE= yes
MAKE_JOBS_SAFE= yes
MAKEFILE= makefile
PORTDOCS= *
MAN1= mathomatic.1
MAKE_ARGS= READLINE=1
OPTIONS= PDF "Install PDF manual (requires htmldoc)" off
.include <bsd.port.pre.mk>
.if defined(WITH_PDF)
BUILD_DEPENDS+= htmldoc:${PORTSDIR}/textproc/htmldoc
.endif
regression-test: build
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} check
.if defined(WITH_PDF)
post-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} pdf
.endif
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mathomatic ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/mathomatic.1 ${PREFIX}/man/man1
${MKDIR} ${PREFIX}/share/applications ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/icons/mathomatic.desktop \
${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/icons/mathomatic.png ${PREFIX}/share/pixmaps
.if !defined(NOPORTDOCS)
.for d in m4 tests factorial
${MKDIR} ${DOCSDIR}/${d}
${INSTALL_DATA} ${WRKSRC}/${d}/* ${DOCSDIR}/${d}
.endfor
${MKDIR} ${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}/html
.for f in AUTHORS README.txt changes.txt
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif
.include <bsd.port.post.mk>
|