2003-06-02 03:15:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.32 2003/06/02 01:18:28 jschauma Exp $
|
1998-11-22 20:45:08 +01:00
|
|
|
# FreeBSD Id: Makefile,v 1.18 1998/09/27 20:10:45 steve Exp
|
|
|
|
|
2000-04-28 10:59:35 +02:00
|
|
|
DISTNAME= octave-2.0.16
|
2002-03-13 18:36:35 +01:00
|
|
|
PKGREVISION= 1
|
1998-11-22 20:45:08 +01:00
|
|
|
CATEGORIES= math
|
1998-11-26 00:56:53 +01:00
|
|
|
MASTER_SITES= ftp://ftp.che.wisc.edu/pub/octave/ \
|
|
|
|
ftp://ftp.math.uni-hamburg.de/pub/soft/math/octave/ \
|
|
|
|
ftp://ftp.eos.hokudai.ac.jp/pub/GNU/misc/octave/ \
|
|
|
|
ftp://ftp.u-aizu.ac.jp/pub/SciEng/numanal/Octave/ \
|
|
|
|
ftp://ftp.task.gda.pl/pub/software/octave/
|
|
|
|
|
2003-06-02 03:15:31 +02:00
|
|
|
MAINTAINER= tech-pkg@netbsd.org
|
1998-11-26 00:56:53 +01:00
|
|
|
HOMEPAGE= http://www.che.wisc.edu/octave/
|
2001-02-17 18:52:59 +01:00
|
|
|
COMMENT= High-level language, primarily intended for numerical computations
|
1998-11-26 00:56:53 +01:00
|
|
|
|
2002-02-17 21:30:39 +01:00
|
|
|
BUILD_DEPENDS+= teTeX>=1.0.7:../../print/teTeX
|
2001-03-22 14:30:58 +01:00
|
|
|
DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot
|
1998-11-22 20:45:08 +01:00
|
|
|
|
2001-03-29 23:21:36 +02:00
|
|
|
CONFLICTS+= octave-2.1.*
|
|
|
|
|
1999-04-26 20:56:13 +02:00
|
|
|
USE_X11= yes
|
1998-11-26 01:01:32 +01:00
|
|
|
GNU_CONFIGURE= yes
|
1999-12-16 16:42:54 +01:00
|
|
|
USE_FORTRAN= yes
|
2000-08-15 23:01:51 +02:00
|
|
|
USE_LIBTOOL= yes
|
1998-11-26 01:01:32 +01:00
|
|
|
USE_GMAKE= yes
|
2001-04-19 05:03:24 +02:00
|
|
|
CONFIGURE_ENV+= FFLAGS="${CFLAGS}" OBJECT_FMT="${OBJECT_FMT}"
|
2001-06-11 08:34:17 +02:00
|
|
|
CPPFLAGS+= -I${WRKDIR}/include
|
2003-03-14 20:37:30 +01:00
|
|
|
LDFLAGS+= -Wl,${RPATH_FLAG}${PREFIX}/lib -L${PREFIX}/lib
|
1998-11-22 20:45:08 +01:00
|
|
|
|
1998-11-26 00:56:53 +01:00
|
|
|
INFO_FILES= liboctave.info octave.info
|
|
|
|
LIBOCTAVE_INFO= liboctave.info liboctave.info-1 liboctave.info-2 liboctave.info-3
|
1998-11-22 20:45:08 +01:00
|
|
|
|
2001-05-16 23:46:08 +02:00
|
|
|
post-extract:
|
2001-05-19 05:56:23 +02:00
|
|
|
${FIND} ${WRKSRC}/doc -type f -name \*.info\* | ${XARGS} ${RM} -f
|
2001-05-16 23:46:08 +02:00
|
|
|
|
1998-11-22 20:45:08 +01:00
|
|
|
post-install:
|
2001-02-25 05:17:35 +01:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/octave/2.0.16/doc
|
1998-11-26 00:56:53 +01:00
|
|
|
.for file in ${LIBOCTAVE_INFO}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/liboctave/${file} ${PREFIX}/info
|
1998-11-22 20:45:08 +01:00
|
|
|
.endfor
|
2000-04-28 10:59:35 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/interpreter/octave.ps ${PREFIX}/share/octave/2.0.16/doc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/liboctave/liboctave.ps ${PREFIX}/share/octave/2.0.16/doc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/refcard/refcard-letter.ps ${PREFIX}/share/octave/2.0.16/doc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/refcard/refcard-legal.ps ${PREFIX}/share/octave/2.0.16/doc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/refcard/refcard-a4.ps ${PREFIX}/share/octave/2.0.16/doc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/faq/Octave-FAQ.ps ${PREFIX}/share/octave/2.0.16/doc
|
1998-11-26 00:56:53 +01:00
|
|
|
|
1999-06-28 13:52:26 +02:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2000-04-28 10:59:35 +02:00
|
|
|
GCC_VERSION!= ${CC} --version
|
1998-11-30 00:38:30 +01:00
|
|
|
|
|
|
|
post-patch:
|
2000-04-28 10:59:35 +02:00
|
|
|
.if ${GCC_VERSION:C/-.*$$//} == egcs
|
2001-01-26 23:54:00 +01:00
|
|
|
@EGCS_VERSION=`${CC} -v 2>&1 | ${AWK} '{print $$4}'`; \
|
|
|
|
if [ $$EGCS_VERSION -lt 19981201 ]; then \
|
|
|
|
cd ${WRKSRC}; \
|
|
|
|
for FILE in ${PATCHDIR}/egcs-patch-*; do \
|
|
|
|
${PATCH} ${PATCH_ARGS} <$$FILE; \
|
|
|
|
done; \
|
|
|
|
fi
|
1998-11-30 00:38:30 +01:00
|
|
|
.endif
|
2001-01-26 23:54:00 +01:00
|
|
|
|
2002-02-18 16:14:00 +01:00
|
|
|
.include "../../mk/texinfo.mk"
|
2001-01-26 23:54:00 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|