2001-10-03 16:44:01 +02:00
|
|
|
# New ports collection makefile for: scilab
|
|
|
|
# Date created: 30 April 2001
|
|
|
|
# Whom: js@jeannot.org
|
1997-06-18 14:14:52 +02:00
|
|
|
#
|
1999-08-25 09:05:28 +02:00
|
|
|
# $FreeBSD$
|
1997-06-18 14:14:52 +02:00
|
|
|
#
|
|
|
|
|
2001-10-03 16:44:01 +02:00
|
|
|
PORTNAME= scilab
|
2008-05-02 13:44:37 +02:00
|
|
|
PORTVERSION= 4.1.2
|
2008-06-06 16:17:21 +02:00
|
|
|
PORTREVISION= 1
|
2002-11-24 14:41:11 +01:00
|
|
|
CATEGORIES= math cad parallel
|
2007-01-03 22:04:34 +01:00
|
|
|
MASTER_SITES= http://www.scilab.org/download/${PORTVERSION}/
|
2005-06-05 12:23:48 +02:00
|
|
|
EXTRACT_SUFX= -src.tar.gz
|
1997-06-18 14:14:52 +02:00
|
|
|
|
2001-10-03 16:44:01 +02:00
|
|
|
MAINTAINER= js@jeannot.org
|
2003-02-21 13:51:06 +01:00
|
|
|
COMMENT= A free Matlab clone by INRIA & ENPC
|
1997-06-18 14:14:52 +02:00
|
|
|
|
2006-06-06 04:11:55 +02:00
|
|
|
LIB_DEPENDS= Xaw3d.${XAWVER}:${PORTSDIR}/x11-toolkits/Xaw3d
|
|
|
|
BUILD_DEPENDS= wish8.4:${PORTSDIR}/x11-toolkits/tk84 \
|
2008-05-02 13:44:37 +02:00
|
|
|
xsltproc:${PORTSDIR}/textproc/libxslt \
|
|
|
|
pvm:${PORTSDIR}/net/pvm
|
|
|
|
RUN_DEPENDS+= wish8.4:${PORTSDIR}/x11-toolkits/tk84 \
|
|
|
|
pvm:${PORTSDIR}/net/pvm
|
1998-07-25 14:54:07 +02:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_XORG= x11
|
1999-11-27 02:38:31 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2006-03-22 01:37:53 +01:00
|
|
|
USE_GETTEXT= yes
|
|
|
|
WANT_GNOME= yes
|
2008-05-02 13:44:37 +02:00
|
|
|
USE_GNOME= pkgconfig gtk20 libgtkhtml vte
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= autoconf:262
|
1997-06-18 14:14:52 +02:00
|
|
|
|
2003-04-04 06:58:31 +02:00
|
|
|
CONFIGURE_ARGS= --with-tk \
|
2003-02-06 00:43:15 +01:00
|
|
|
--with-tk-library=${LOCALBASE}/lib \
|
2003-12-09 03:22:27 +01:00
|
|
|
--with-tk-include=${LOCALBASE}/include/tk8.4 \
|
2003-02-06 00:43:15 +01:00
|
|
|
--with-tcl-library=${LOCALBASE}/lib \
|
2003-12-09 03:22:27 +01:00
|
|
|
--with-tcl-include=${LOCALBASE}/include/tcl8.4 \
|
2003-02-06 00:43:15 +01:00
|
|
|
--with-xaw3d \
|
2008-05-02 13:44:37 +02:00
|
|
|
--x-include=${LOCALBASE}/include \
|
|
|
|
--x-libraries=${LOCALBASE}/lib \
|
2005-06-05 12:23:48 +02:00
|
|
|
--without-java \
|
2008-05-02 13:44:37 +02:00
|
|
|
--without-ocaml \
|
|
|
|
--with-pvm-library=${LOCALBASE}/lib \
|
|
|
|
--with-pvm-include=${LOCALBASE}/include \
|
|
|
|
--with-gtk2
|
1997-06-18 14:14:52 +02:00
|
|
|
|
2008-05-02 13:44:37 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ENV+= F77=${F77} CFLAGS="${CFLAGS}" FFLAGS="${FFLAGS}" \
|
|
|
|
PVM_ROOT=${LOCALBASE}/lib/pvm
|
2006-03-22 01:37:53 +01:00
|
|
|
|
2004-02-25 11:04:41 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-10-04 03:53:45 +02:00
|
|
|
.if exists(${LOCALBASE}/lib/libreadline.so.5)
|
2006-06-06 04:11:55 +02:00
|
|
|
LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
|
2006-03-22 01:37:53 +01:00
|
|
|
.endif
|
|
|
|
|
2007-01-16 09:53:14 +01:00
|
|
|
.if exists(${LOCALBASE}/lib/libatlas_r.so) && !defined(WITH_BLAS)
|
2007-03-13 09:26:26 +01:00
|
|
|
WITH_ATLAS= yes
|
2007-01-16 09:53:14 +01:00
|
|
|
.endif
|
2006-06-06 04:11:55 +02:00
|
|
|
.if defined(WITH_ATLAS)
|
2006-03-22 01:37:53 +01:00
|
|
|
CONFIGURE_ARGS+= --with-atlas-library=${LOCALBASE}/lib
|
2007-01-16 09:53:14 +01:00
|
|
|
LIB_DEPENDS+= atlas.2:${PORTSDIR}/math/atlas
|
2006-06-06 04:11:55 +02:00
|
|
|
BLAS_LIBS= -lalapack -lcblas -lf77blas -latlas
|
|
|
|
.else
|
2007-01-16 09:53:14 +01:00
|
|
|
LIB_DEPENDS+= lapack.4:${PORTSDIR}/math/lapack
|
|
|
|
LIB_DEPENDS+= blas.2:${PORTSDIR}/math/blas
|
2006-06-06 04:11:55 +02:00
|
|
|
BLAS_LIBS?= -llapack -lblas
|
2006-03-22 01:37:53 +01:00
|
|
|
.endif
|
2006-06-06 04:11:55 +02:00
|
|
|
MAKE_ENV+= BLAS_LIBS="-L${LOCALBASE}/lib ${BLAS_LIBS}"
|
2006-03-22 01:37:53 +01:00
|
|
|
|
2007-01-16 09:53:14 +01:00
|
|
|
WANT_FORTRAN=yes #dummy but future use
|
2007-03-13 09:26:26 +01:00
|
|
|
BUILD_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
|
2007-06-19 22:30:37 +02:00
|
|
|
RUN_DEPENDS+= gfortran42:${PORTSDIR}/lang/gcc42
|
2007-01-16 09:53:14 +01:00
|
|
|
F77= gfortran42
|
|
|
|
FC= gfortran42
|
|
|
|
CONFIGURE_ARGS+= --with-gfortran
|
|
|
|
|
2008-06-18 23:15:31 +02:00
|
|
|
.if ${ARCH} == "alpha" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
|
|
|
|
BROKEN= does not compile on alpha 5.x, ia64, sparc64
|
2004-02-25 11:04:41 +01:00
|
|
|
.endif
|
|
|
|
|
2002-03-02 23:55:06 +01:00
|
|
|
post-patch:
|
2006-03-22 01:37:53 +01:00
|
|
|
@# malloc.h -> stdlib.h conversions
|
|
|
|
@${GREP} -lr "<malloc.h>" ${WRKSRC} \
|
2003-04-04 06:58:31 +02:00
|
|
|
| ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's/[<"]malloc.h[>"]/<stdlib.h>/'
|
2005-06-07 22:49:04 +02:00
|
|
|
.if defined(NOPORTDOCS)
|
2008-09-10 00:05:56 +02:00
|
|
|
@${REINPLACE_CMD} -e '/%%PORTDOCS%%/d' ${WRKSRC}/Makefile.in
|
2005-06-07 22:49:04 +02:00
|
|
|
.else
|
2006-03-22 01:37:53 +01:00
|
|
|
@${REINPLACE_CMD} -e 's/%%PORTDOCS%%//' ${WRKSRC}/Makefile.in
|
2005-06-07 22:49:04 +02:00
|
|
|
.endif
|
2002-01-30 06:59:03 +01:00
|
|
|
|
2008-05-02 13:44:37 +02:00
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} -e 's|CC_OPTIONS)|CC_OPTIONS) ${CFLAGS}|g' \
|
|
|
|
${WRKSRC}/routines/scicos/Makefile
|
|
|
|
|
2001-10-03 16:44:01 +02:00
|
|
|
pre-install:
|
2006-03-22 01:37:53 +01:00
|
|
|
@${FIND} ${WRKSRC} -name \*.orig -delete
|
|
|
|
@${FIND} ${WRKSRC} -name \*.bak -delete
|
2006-06-06 04:11:55 +02:00
|
|
|
@${FIND} ${WRKSRC} -name .cvsignore -delete
|
1997-06-18 14:14:52 +02:00
|
|
|
|
2004-02-25 11:04:41 +01:00
|
|
|
.include <bsd.port.post.mk>
|