e39d2403aa
The configure script now detects the correct zlib version, so setting the r_cv_header_zlib_h is no longer necessary. Approved by: swills (mentor, implicit)
45 lines
1.4 KiB
Makefile
45 lines
1.4 KiB
Makefile
# Created by: Eric van Gyzen <vangyzen@stat.duke.edu>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libRmath
|
|
PORTVERSION= 3.4.0
|
|
PORTREVISION= 0
|
|
CATEGORIES= math lang
|
|
MASTER_SITES= CRAN/src/base/R-${PORTVERSION:C|\..*||}
|
|
DISTNAME= R-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
|
|
|
|
MAINTAINER= jrm@FreeBSD.org
|
|
COMMENT= Standalone math library from R
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libcurl.so:ftp/curl \
|
|
libpcre.so:devel/pcre
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/nmath/standalone
|
|
CONFIGURE_ARGS= --disable-nls --with-ICU=no --with-cairo=no \
|
|
--with-jpeglib=no --with-libpng=no --with-libtiff=no \
|
|
--with-readline=no --with-tcltk=no --with-x=no \
|
|
--without-libintl-prefix
|
|
CONFIGURE_ENV+= ac_cv_header_iconv_h=no
|
|
GNU_CONFIGURE= yes
|
|
RMATH_SOVERSION=3
|
|
USES= fortran localbase
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_SUB= RMATH_SOVERSION="${RMATH_SOVERSION}"
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|g'\
|
|
${WRKSRC}/src/nmath/standalone/Makefile.in \
|
|
${WRKSRC}/src/unix/Makefile.in
|
|
@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|g" \
|
|
${WRKSRC}/configure
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/src/include/Rmath.h ${STAGEDIR}${PREFIX}/include
|
|
${INSTALL_DATA} ${BUILD_WRKSRC}/libRmath.a ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_LIB} ${BUILD_WRKSRC}/libRmath.so ${STAGEDIR}${PREFIX}/lib/libRmath.so
|
|
(cd ${STAGEDIR}${PREFIX}/lib; ${LN} -sf libRmath.so libRmath.so.${RMATH_SOVERSION})
|
|
|
|
.include <bsd.port.mk>
|