defec81127
- Make sure PVM_ROOT gets set if not already set. This will let bulk builds succeed. In non-bulk environments, this should already be set if pvm is correctly installed.
48 lines
1.4 KiB
Makefile
48 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.15 1999/12/22 16:15:45 dmcmahill Exp $
|
|
#
|
|
# IMPORTANT: Before upgrading this package, please read files/README.next_rev!
|
|
|
|
DISTNAME= scilab-2.5-src
|
|
PKGNAME= scilab-2.5
|
|
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/
|
|
|
|
DEPENDS+= xless-*:../../x11/xless
|
|
DEPENDS+= pvm-3.4.2:../../parallel/pvm3
|
|
|
|
RESTRICTED= "no paid distribution of SCILAB"
|
|
NO_CDROM= ${RESTRICTED}
|
|
|
|
USE_FORTRAN= yes
|
|
USE_LIBTOOL= yes
|
|
USE_X11BASE= yes
|
|
USE_X11= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --without-xless
|
|
#override HOME to avoid picking up a bad ${HOME}/.scilab during the build
|
|
MAKE_ENV+= HOME=${WRKSRC}
|
|
CONFIGURE_ENV+= LOCALBASE=${LOCALBASE}
|
|
PVM_ROOT?= ${LOCALBASE}/pvm3
|
|
CONFIGURE_ENV+= PVM_ROOT=${PVM_ROOT}
|
|
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 \
|
|
${RM} ${WRKSRC}/scilab.star ; \
|
|
${CP} ${WRKSRC}/scilab.star.orig ${WRKSRC}/scilab.star ; \
|
|
fi
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|