diff options
author | dmcmahill <dmcmahill> | 2002-03-05 21:05:52 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill> | 2002-03-05 21:05:52 +0000 |
commit | 67f7b5fc9a7220e6eb2a9b33c986fc6db5340ffe (patch) | |
tree | bef76cafdf0f21a17b12f594968cec816ccb287c /math/scilab/Makefile | |
parent | 539732aaed05487352e0e97700fc365e3ba9e388 (diff) | |
download | pkgsrc-67f7b5fc9a7220e6eb2a9b33c986fc6db5340ffe.tar.gz |
enable this on NetBSD>1.5U on alpha since alpha FPC code is now in place.
While here, add some missing headers and squish a LP64 bug. Passes all
self tests and all but 2 examples on a 1.5ZA alpha.
Diffstat (limited to 'math/scilab/Makefile')
-rw-r--r-- | math/scilab/Makefile | 29 |
1 files changed, 22 insertions, 7 deletions
diff --git a/math/scilab/Makefile b/math/scilab/Makefile index 76d4cab5eb4..5356500190e 100644 --- a/math/scilab/Makefile +++ b/math/scilab/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.29 2001/12/22 00:03:25 dmcmahill Exp $ +# $NetBSD: Makefile,v 1.30 2002/03/05 21:05:52 dmcmahill Exp $ # DISTNAME= ${SCIBASE}.src PKGNAME= ${SCIBASE} -PKGREVISION= 2 +PKGREVISION= 3 SCIBASE= scilab-2.6 WRKSRC= ${WRKDIR}/${DISTNAME:.src=} CATEGORIES= math @@ -16,10 +16,9 @@ COMMENT= High-level scientific math programming environment with graphics DEPENDS+= xless-[0-9]*:../../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 +#needs FPC code not found in older versions of NetBSD +NOT_FOR_PLATFORM= NetBSD-1.[0-4]*-alpha NetBSD-1.5-alpha \ + NetBSD-1.5.*-alpha NetBSD-1.5[A-U]-alpha USE_FORTRAN= yes USE_LIBTOOL= yes @@ -37,6 +36,22 @@ CONFIGURE_ENV+= PVM_ROOT=${PVM_ROOT} CONFIGURE_ENV+= X11BASE=${X11BASE} PLIST_SUBST+= SCIBASE=${SCIBASE} +.include "../../mk/bsd.prefs.mk" + +.if (${MACHINE_ARCH} == "alpha") +pre-fetch: + @${ECHO} "===> Checking if you have working FPC" + @${MKDIR} ${WRKDIR} + ${CC} ${CFLAGS} -o ${WRKDIR}/chk_ieee ${FILESDIR}/chk_ieee.c + @cd ${WRKDIR} && if ./chk_ieee ; then ${ECHO} "yes" ; else \ + ${ECHO} "no" ; \ + ${ECHO} "${PKGNAME} requires floating point completion on this system" ;\ + ${ECHO} "Possible causes for this check failing are:" ;\ + ${ECHO} " - you have an old /usr/lib/* which was not compiled with -mieee" ;\ + ${ECHO} " - you have overridden CFLAGS for pkgsrc removing the -mieee flag" ;\ + ${ECHO} "Without fixing this problem ${PKGNAME} will not work." ; ${FALSE} ; fi +.endif + # remove some stuff which is broken in the distfile. The config's # are links to ../config (ie circular). post-extract: @@ -58,7 +73,7 @@ post-build: pre-install: cd ${WRKSRC}/tests && ${MAKE_PROGRAM} distclean cd ${WRKSRC}/examples && ${MAKE_PROGRAM} distclean - find ${WRKSRC}/ -name \*.orig -print -exec rm {} \; + ${FIND} ${WRKSRC}/ -name \*.orig -print -exec ${RM} {} \; post-install: ${LN} -sf ${X11PREFIX}/bin/xless ${PREFIX}/${SCIBASE}/bin/xless |