blob: f6be92205f8988d9616e8e0895792df2aa70911d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Created by: Eric van Gyzen <vangyzen@stat.duke.edu>
PORTNAME= libRmath
DISTVERSION= 4.1.1
CATEGORIES= math lang
MASTER_SITES= CRAN/src/base/R-${PORTVERSION:C|\..*||}
DISTNAME= R-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Standalone math library from R
LICENSE= GPLv2
ONLY_FOR_ARCHS= aarch64 amd64 armv6 armv7 i386 powerpc64 powerpc64le
LIB_DEPENDS= libcurl.so:ftp/curl \
libpcre2-8.so:devel/pcre2
USES= localbase
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-nls \
--with-cairo=no \
--with-ICU=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 \
FPICFLAGS=-fPIC
BUILD_WRKSRC= ${WRKSRC}/src/nmath/standalone
PLIST_SUB= RMATH_SOVERSION="${_RMATH_SOVERSION}"
OPTIONS_DEFINE= FLANG
OPTIONS_EXCLUDE_aarch64= FLANG
OPTIONS_EXCLUDE_armv6= FLANG
OPTIONS_EXCLUDE_armv7= FLANG
OPTIONS_EXCLUDE_i386= FLANG
FLANG_DESC= Use experimental flang instead of default Fortran compiler
FLANG_USES= fortran:flang
FLANG_USES_OFF= fortran
_RMATH_SOVERSION= ${DISTVERSION:R}
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>
|