summaryrefslogtreecommitdiff
path: root/math/scilab/Makefile
blob: b5be115a06a5b97fbba6ed14b8d8aeaac19c58f5 (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
# $NetBSD: Makefile,v 1.12 1999/11/23 16:26:13 hubertf Exp $
#
# IMPORTANT: Before upgrading this package, please read files/README.next_rev!

DISTNAME=	scilab-2.4.1-src
PKGNAME=	scilab-2.4.1
WRKSRC=		${WRKDIR}/${PKGNAME}
CATEGORIES=	math
MASTER_SITES=	ftp://ftp.inria.fr/INRIA/Projects/Meta2/Scilab/distributions/

MAINTAINER=	dmcmahill@netbsd.org
HOMEPAGE=	http://www-rocq.inria.fr/scilab/

RUN_DEPENDS+=	xless-1.7:../../x11/xless
DEPENDS+=	pvm-3.4.2:../../parallel/pvm3

RESTRICTED=	"no paid distribution of SCILAB"
NO_CDROM=	${RESTRICTED}

USE_FORTRAN=	yes
USE_X11BASE=	yes
USE_X11=	yes
GNU_CONFIGURE=	yes

MAKE_ENV+=	HOME=${WRKSRC}
CONFIGURE_ENV+=	LOCALBASE=${LOCALBASE}
CONFIGURE_ENV+=	X11BASE=${X11BASE}

pre-fetch:
	@if [ ${MACHINE_ARCH} = "alpha" ]; then \
	${ECHO} "Although Scilab will build and run on the alpha, it sometimes" ; \
	${ECHO} "experiences floating point exceptions.  This problem is being" ; \
	${ECHO} "worked on and will be fixed as soon as possible.  However, the" ; \
	${ECHO} "program is still usable for many things." ; \
	fi

post-patch:
	@if [ ${MACHINE_ARCH} != "alpha" ]; then \
		${MV} ${WRKSRC}/scilab.star.orig ${WRKSRC}/scilab.star ; \
	fi

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