summaryrefslogtreecommitdiff
path: root/math/octave-current/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'math/octave-current/Makefile')
-rw-r--r--math/octave-current/Makefile68
1 files changed, 32 insertions, 36 deletions
diff --git a/math/octave-current/Makefile b/math/octave-current/Makefile
index d03ff11b801..c4c38e311a2 100644
--- a/math/octave-current/Makefile
+++ b/math/octave-current/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.23 2003/09/28 17:54:14 kristerw Exp $
+# $NetBSD: Makefile,v 1.24 2003/12/04 11:15:37 adam Exp $
+#
-DISTNAME= octave-2.1.33
-PKGNAME= octave-2.1.34
-PKGREVISION= 1
+DISTNAME= octave-${OCTAVE_VER}
+PKGNAME= octave-current-${OCTAVE_VER}
CATEGORIES= math
MASTER_SITES= ftp://ftp.che.wisc.edu/pub/octave/bleeding-edge/ \
ftp://ftp.eos.hokudai.ac.jp/pub/GNU/misc/octave/bleeding-edge/ \
@@ -10,63 +10,59 @@ MASTER_SITES= ftp://ftp.che.wisc.edu/pub/octave/bleeding-edge/ \
ftp://ftp.task.gda.pl/pub/software/octave/bleeding-edge/
EXTRACT_SUFX= .tar.bz2
-PATCHFILES= octave-2.1.33-2.1.34.patch.gz
-PATCH_SITES= ${MASTER_SITES}
-PATCH_DIST_STRIP= -p1
-
-MAINTAINER= tech-pkg@NetBSD.org
+MAINTAINER= adam@netbsd.org
HOMEPAGE= http://www.che.wisc.edu/octave/
-COMMENT= High-level language, primarily intended for numerical computations
+COMMENT= High-level language, intended for numerical computations
-BUILD_DEPENDS+= teTeX{,2}>=1.0.7:../../print/teTeX
+BUILD_DEPENDS+= bison>=1.875:../../devel/bison
+BUILD_DEPENDS+= gperf>=2.7:../../devel/gperf
DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot
-.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
-GCC_REQD= 3.0
-.endif
-
-USE_X11= yes
-USE_BUILDLINK2= yes
-GNU_CONFIGURE= yes
-USE_LIBTOOL= yes
-USE_FORTRAN= yes
-USE_GMAKE= yes
-CONFIGURE_ARGS+=--with-g77
-CONFIGURE_ARGS+=--enable-shared --enable-rpath
-CONFIGURE_ARGS+=-prefix=${PREFIX}
+OCTAVE_VER= 2.1.52
+CONFLICTS+= octave-2.0.*
-CONFIGURE_ENV+= FFLAGS="${CFLAGS}" OBJECT_FMT="${OBJECT_FMT}"
-LTCONFIG_OVERRIDE=${WRKSRC}/ltconfig
+.if (${MACHINE_ARCH} == "arm32")
+BROKEN= Internal compiler error occurs on arm32 (even with gcc-2.95.3)
+.endif
-USE_GNU_READLINE= # defined
-BUILDLINK_DEPENDS.readline= readline>=4.0
-LDFLAGS+= -L${BUILDLINK_PREFIX.readline}/lib
+USE_BUILDLINK2= YES
+USE_FORTRAN= YES
+USE_GMAKE= YES
+USE_GNU_READLINE= YES
+USE_MAKEINFO= YES
+USE_LIBTOOL= YES
+LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
+GNU_CONFIGURE= YES
-USE_MAKEINFO= YES
INFO_FILES= octave.info liboctave.info
LIBOCTAVE_INFO= liboctave.info liboctave.info-1 \
liboctave.info-2 liboctave.info-3
OCTAVE_DOC= faq/Octave-FAQ.ps interpreter/octave.ps \
liboctave/liboctave.ps refcard/refcard-a4.ps \
refcard/refcard-legal.ps refcard/refcard-letter.ps
-OCTAVE_HTML= faq/Octave-FAQ_toc.html interpreter/octave_*.html \
- interpreter/octave.html liboctave/liboctave_*.html
+OCTAVE_HTML= faq/Octave-FAQ_*.html interpreter/octave_*.html \
+ liboctave/liboctave_*.html
-post-patch:
- @cd ${WRKSRC}/libcruft/misc && ${RM} -f xstopx.f dostop.c
+post-extract:
+ ${FIND} ${WRKSRC}/doc -type f -name '*.info*' -exec ${RM} -f {} \;
post-install:
.for f in ${LIBOCTAVE_INFO}
${INSTALL_DATA} ${WRKSRC}/doc/liboctave/$f ${PREFIX}/info
.endfor
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/octave
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/octave/${OCTAVE_VER}/doc
.for f in ${OCTAVE_DOC}
- ${INSTALL_DATA} ${WRKSRC}/doc/$f ${PREFIX}/share/doc/octave
+ ${INSTALL_DATA} ${WRKSRC}/doc/$f ${PREFIX}/share/octave/${OCTAVE_VER}/doc
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/octave
.for f in ${OCTAVE_HTML}
${INSTALL_DATA} ${WRKSRC}/doc/$f ${PREFIX}/share/doc/html/octave
.endfor
+.include "../../audio/libsndfile/buildlink2.mk"
.include "../../devel/readline/buildlink2.mk"
+.include "../../devel/ncurses/buildlink2.mk"
+.include "../../math/blas/buildlink2.mk"
+.include "../../math/fftw2/buildlink2.mk"
+.include "../../math/lapack/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"