blob: a383e43d61b81aa064307de91d076c8425101581 (
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
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
|
# $NetBSD: Makefile,v 1.24 2001/07/18 01:14:23 dmcmahill Exp $
#
DISTNAME= ${SCIBASE}.src
PKGNAME= ${SCIBASE}nb1
SCIBASE= scilab-2.6
WRKSRC= ${WRKDIR}/${DISTNAME:.src=}
CATEGORIES= math
MASTER_SITES= ftp://ftp.inria.fr/INRIA/Projects/Meta2/Scilab/distributions/
MAINTAINER= dmcmahill@netbsd.org
HOMEPAGE= http://www-rocq.inria.fr/scilab/
COMMENT= High-level scientific math programming environment with graphics
DEPENDS+= xless-*:../../x11/xless
DEPENDS+= pvm-3.4.3:../../parallel/pvm3
# needs full floating point math. Once the FPC code for alpha is integrated
# this line can be changed to only exclude older versions of the operating
# system. Additionally, -mieee will need to be added.
NOT_FOR_PLATFORM= *-*-alpha
USE_FORTRAN= yes
USE_LIBTOOL= yes
LTCONFIG_OVERRIDE= ${WRKSRC}/config/ltconfig
USE_X11BASE= yes
USE_X11= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --without-xless --with-xaw
#override HOME to avoid picking up a bad ${HOME}/.scilab during the build
MAKE_ENV+= HOME=${WRKSRC} PVM_ROOT=${PVM_ROOT}
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
PVM_ROOT?= ${LOCALBASE}/pvm3
CONFIGURE_ENV+= PVM_ROOT=${PVM_ROOT}
CONFIGURE_ENV+= X11BASE=${X11BASE}
PLIST_SUBST+= SCIBASE=${SCIBASE}
# remove some stuff which is broken in the distfile. The config's
# are links to ../config (ie circular).
post-extract:
${RM} ${WRKSRC}/config.cache
${RM} ${WRKSRC}/examples/callsci/callsciJava/config/config
${RM} ${WRKSRC}/examples/callsci/callsciFortran/config/config
${RM} ${WRKSRC}/examples/callsci/callsciC/config/config
${RM} ${WRKSRC}/examples/callsci/callsciC++/config/config
# clean up any possible leftovers from 'make test' so that our PLIST
# will still be right
pre-install:
cd ${WRKSRC}/tests && ${MAKE_PROGRAM} distclean
cd ${WRKSRC}/examples && ${MAKE_PROGRAM} distclean
post-install:
${INSTALL_DATA} ${PREFIX}/${SCIBASE}/X11_defaults/Xscilab \
${X11BASE}/lib/X11/app-defaults
${INSTALL_DATA} ${PREFIX}/${SCIBASE}/X11_defaults/Metanet-color \
${X11BASE}/lib/X11/app-defaults
${LN} -sf ${X11BASE}/bin/xless ${PREFIX}/${SCIBASE}/bin/xless
# the "SCI=0 && unset SCI" is done because some of the tests really will
# fail if SCI is set to anything.
test: build
SCI=0 && unset SCI && cd ${WRKSRC}/tests && \
${MAKE_ENV} ${MAKE_PROGRAM} tests 2>&1 | \
tee ${WRKDIR}/tests.log
SCI=0 && unset SCI && cd ${WRKSRC}/examples && \
${MAKE_ENV} ${MAKE_PROGRAM} tests 2>&1 | \
tee ${WRKDIR}/examples.log
.include "../../mk/bsd.pkg.mk"
|