pkgsrc/math/R/Makefile
markd 20f98877bd Update to R-1.6.2
CHANGES IN R VERSION 1.6.2

BUG FIXES

    o   plot.stepfun() now obeys a `ylim=.' specification.

    o   removeClass() does a better job of removing inheritance
        information.

    o   setIs() will not allow mismatched representations between two
        classes (without an explicit coerce method).

    o   The code underlying polygon drawing contained a memory leak.
        This showed up in persp, but did not affect other graphics
        functions.  It is now possible to draw big DEMs.

    o   logLik.nls() gave wrong df.

    o   rbind() with a mixture of data frames and matrices treated the
        matrices as vectors.

    o   stripchart(method="stack") was not handling missing values.

    o   Arithmetic functions such as log() lost the object bit from
        classed objects if coercion was needed.

    o   exp_rand would go into an infinite loop if unif_rand returned 0.

    o   formatC(x, format="fg") could return exponential format if
        rounding pushed x over a positive power of 10.

    o   attr(x, foo) used partial matching for `foo' (even though not
        documented to do so), and failed to find `foo' if there were
        two or more partial matches before the exact match in the list
        of attributes.

    o   Rdconv now creates direct HTML hyperlinks when linking to
        documentation in the same package.  The code now ensures that
        links which can be resolved within the package are so resolved,
        even when there are possible resolutions in other packages.

    o   If readBin(what=character()) is used incorrectly on a file which
        does not contain C-style character strings, warnings (usually
        many) are now given.

    o   Building libR.so with the zlib in the R sources was not
        finding the local zlib headers.

    o   system(intern=TRUE) has an undocumented line length limit of
        119 chars both on Unix and Windows.  The limit is now 8096 and
        documented.  On Unix (only) every 120th character used to be
        discarded.

    o   plot.POSIX[cl]t were not passing graphics parameters on to
        axis.POSIXct.

    o   On some HP-UX systems, installed scripts were not executable
        when using the BSD-compatible install system program found by
        configure.  We now always use install-sh on HP-UX.

    o   c() was converting NA names to "NA": now proper NA strings are
        used wherever possible.

    o   A typo was causing segfaults when using data.entry under SuSE.
2003-01-23 21:24:58 +00:00

116 lines
3.8 KiB
Makefile

# $NetBSD: Makefile,v 1.42 2003/01/23 21:24:58 markd Exp $
DISTNAME= R-1.6.2
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_R_CRAN:=base/}
EXTRACT_SUFX= .tgz
MAINTAINER= markd@netbsd.org
HOMEPAGE= http://www.R-project.org/
COMMENT= Statistical language for data analysis and graphics
#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_BUILDLINK2= # defined
USE_X11= # defined
USE_PERL5= # defined
USE_GMAKE= # defined
USE_GNU_READLINE= # uses callback interface
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --enable-R-shlib
CONFIGURE_ARGS+= --with-x
CONFIGURE_ARGS+= --with-readline
CONFIGURE_ARGS+= --with-tcltk
CONFIGURE_ARGS+= --with-tcl-config=${BUILDLINK_PREFIX.tcl}/lib/tclConfig.sh
CONFIGURE_ARGS+= --with-tk-config=${BUILDLINK_PREFIX.tk}/lib/tkConfig.sh
CONFIGURE_ARGS+= --without-gnome # not yet stable
CONFIGURE_ENV+= XMKMF="${XMKMF}"
# Use BLAS (math/blas)
#
CONFIGURE_ARGS+= --without-atlas
CONFIGURE_ARGS+= --with-blas=${BUILDLINK_PREFIX.blas}/lib/libblas.a
CONFIGURE_ARGS+= --without-blas_risc
CONFIGURE_ARGS+= --without-dxml
CONFIGURE_ARGS+= --without-libmoto
# Work around missing MAIN__() definition used in -lF77 by AC_CHECK_LIB.
CONFIGURE_ENV+= ac_cv_lib_blas_dgemm=yes
CONFIGURE_ENV+= ac_cv_lib_blas_dgemm_=yes
# Pass the Fortran compiler to the configure script in case it's overridden
# by the package builder.
#
USE_FORTRAN= # defined
.include "../../mk/bsd.prefs.mk"
# R_PAPERSIZE can be: A4, Letter, Legal, Executive
#
.if defined(PAPERSIZE)
R_PAPERSIZE?= ${PAPERSIZE}
.else
R_PAPERSIZE?= A4
.endif
.if (${R_PAPERSIZE} == "Letterdj")
R_PAPERSIZE= Letter
.endif
CONFIGURE_ENV+= R_PAPERSIZE="${R_PAPERSIZE}"
# These macros are used during the build, so strip off the -o,-g flags.
#
INSTALL_DATA= ${INSTALL} ${COPY} -m ${SHAREMODE}
INSTALL_SCRIPT= ${INSTALL} ${COPY} -m ${BINMODE}
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
R_LIBDIR= ${PREFIX}/lib/R
R_INSTALL_DIRS= ${R_LIBDIR}
# R does ugly things in the configure to get the default list of arguments
# for linking Fortran, which exposes the buildlink2 tricks so clean up
# afterwards
#
post-configure:
( cd ${WRKSRC}; \
for file in src/scripts/R.sh src/scripts/f77 etc/Makeconf; do \
${SED} -e "s|${BUILDLINK_X11_DIR}/|${X11BASE}/|g" \
-e "s|${BUILDLINK_DIR}/|${LOCALBASE}/|g" $${file} > $${file}.fix; \
${MV} $${file}.fix $${file}; \
done; \
)
# Generate the PLIST dynamically as it changes in each version only in a
# specific subtree. This will make maintaining this package a little easier
# when updating.
#
post-install:
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${R_LIBDIR}
${RM} -f ${PLIST_SRC}
${CAT} ${PKGDIR}/PLIST > ${PLIST_SRC}
( cd ${PREFIX}; \
for dir in ${R_INSTALL_DIRS}; do \
${FIND} $${dir#${PREFIX}/} \( -type f -o -type l \) -print; \
done; \
) | ${GREP} -v "lib/R/doc/html/packages.html" | \
${GREP} -v "lib/R/doc/html/search/index.txt" | \
${SORT} -u >> ${PLIST_SRC}
${ECHO} "@unexec ${RM} -f %D/lib/R/doc/html/packages.html" >> ${PLIST_SRC}
${ECHO} "@unexec ${RM} -f %D/lib/R/doc/html/search/index.txt" >> ${PLIST_SRC}
( cd ${PREFIX}; \
for dir in ${R_INSTALL_DIRS}; do \
${FIND} $${dir#${PREFIX}/} -type d -print; \
done; \
) | ${SORT} -ur | ${SED} -e "s|^|@dirrm |" >> ${PLIST_SRC}
${ECHO} "@exec R CMD ${PERL5} %D/lib/R/share/perl/build-help.pl --htmllists 2>/dev/null" >> ${PLIST_SRC}
${ECHO} "@exec ${CAT} %D/lib/R/library/*/CONTENTS > %D/lib/R/doc/html/search/index.txt 2>/dev/null" >> ${PLIST_SRC}
.include "../../devel/readline/buildlink2.mk"
.include "../../devel/zlib/buildlink2.mk"
.include "../../graphics/jpeg/buildlink2.mk"
.include "../../graphics/png/buildlink2.mk"
.include "../../math/blas/buildlink2.mk"
.include "../../x11/tk/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"