pkgsrc-wip/octave-nox11/Makefile

61 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2006/04/29 17:43:16 shattered Exp $
#
DISTNAME= octave-${OCTAVE_VER}
PKGNAME= octave-nox11-${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/ \
ftp://ftp.u-aizu.ac.jp/pub/SciEng/numanal/Octave/bleeding-edge/ \
ftp://ftp.task.gda.pl/pub/software/octave/bleeding-edge/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= adam@NetBSD.org
HOMEPAGE= http://www.octave.org/
COMMENT= High-level language, intended for numerical computations
BUILD_DEPENDS+= bison>=1.875:../../devel/bison
BUILD_DEPENDS+= gperf>=2.7:../../devel/gperf
OCTAVE_VER= 2.1.55
CONFLICTS+= octave-2.0.*
.if (${MACHINE_ARCH} == "arm32")
BROKEN= Internal compiler error occurs on arm32 (even with gcc-2.95.3)
.endif
USE_GNU_READLINE= yes
USE_LIBTOOL= yes
USE_TOOLS+= gmake makeinfo
GNU_CONFIGURE= yes
INFO_FILES= # PLIST
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_*.html interpreter/octave_*.html \
liboctave/liboctave_*.html
post-extract:
${FIND} ${WRKSRC}/doc -type f -name '*.info*' -exec ${RM} -f {} \;
post-install:
cd ${WRKSRC}/doc/liboctave; \
for f in liboctave.info liboctave.info-[0-9]*; do \
${TEST} ! -f "$$f" || \
${INSTALL_DATA} "$$f" ${PREFIX}/${PKGINFODIR}; \
done
${INSTALL_DATA_DIR} ${PREFIX}/share/octave/${OCTAVE_VER}/doc
.for f in ${OCTAVE_DOC}
${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 "../../devel/readline/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
#.include "../../math/fftw2/buildlink3.mk"
#.include "../../math/lapack/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"