diff options
author | wen <wen@pkgsrc.org> | 2016-04-17 04:09:44 +0000 |
---|---|---|
committer | wen <wen@pkgsrc.org> | 2016-04-17 04:09:44 +0000 |
commit | 57fb3dd1fafe5949b920ae6314d1c0c7e8bff693 (patch) | |
tree | 3e9f8829420e751b3368b842a1e7b6ec4a0fe614 /math | |
parent | a7514774a9119a52156fd48302fbcd9d771530aa (diff) | |
download | pkgsrc-57fb3dd1fafe5949b920ae6314d1c0c7e8bff693.tar.gz |
Import nloptr-1.0.4 as math/R-nloptr.
nloptr is an R interface to NLopt. NLopt is a free/open-source library
for nonlinear optimization, providing a common interface for a number
of different free optimization routines available online as well as
original implementations of various other algorithms.
Diffstat (limited to 'math')
-rw-r--r-- | math/R-nloptr/DESCR | 4 | ||||
-rw-r--r-- | math/R-nloptr/Makefile | 25 | ||||
-rw-r--r-- | math/R-nloptr/distinfo | 6 | ||||
-rw-r--r-- | math/R-nloptr/patches/patch-configure | 15 |
4 files changed, 50 insertions, 0 deletions
diff --git a/math/R-nloptr/DESCR b/math/R-nloptr/DESCR new file mode 100644 index 00000000000..21c56d9fcdb --- /dev/null +++ b/math/R-nloptr/DESCR @@ -0,0 +1,4 @@ +nloptr is an R interface to NLopt. NLopt is a free/open-source library +for nonlinear optimization, providing a common interface for a number +of different free optimization routines available online as well as +original implementations of various other algorithms. diff --git a/math/R-nloptr/Makefile b/math/R-nloptr/Makefile new file mode 100644 index 00000000000..5c70c943ad3 --- /dev/null +++ b/math/R-nloptr/Makefile @@ -0,0 +1,25 @@ +# $NetBSD: Makefile,v 1.1 2016/04/17 04:09:44 wen Exp $ +# + +CATEGORIES= math +MASTER_SITES= ${MASTER_SITE_R_CRAN:=contrib/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= ${R_HOMEPAGE_BASE}/nloptr/ +COMMENT= R interface to NLopt +LICENSE= gnu-lgpl-v3 + +R_PKGNAME= nloptr +R_PKGVER= 1.0.4 + +USE_LANGUAGES= c c++ + +SUBST_CLASSES+= conf +SUBST_STAGE.conf= post-patch +SUBST_FILES.conf+= configure +SUBST_MESSAGE.conf= Fixing redirection of configure. +SUBST_SED.conf= -e "s,<<<,<,g" + +.include "../../math/R/Makefile.extension" +.include "../../math/nlopt/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/math/R-nloptr/distinfo b/math/R-nloptr/distinfo new file mode 100644 index 00000000000..fc18dcbd8de --- /dev/null +++ b/math/R-nloptr/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2016/04/17 04:09:44 wen Exp $ + +SHA1 (R/nloptr_1.0.4.tar.gz) = 96a408dd280081c4ee4e56050afd317e8c3cfef9 +RMD160 (R/nloptr_1.0.4.tar.gz) = 2d28e16b635bcaaceb108a0a96d21ba621b8955f +Size (R/nloptr_1.0.4.tar.gz) = 353942 bytes +SHA1 (patch-configure) = edadaf36dce4e3ff1b762dee7842ad63ca67603d diff --git a/math/R-nloptr/patches/patch-configure b/math/R-nloptr/patches/patch-configure new file mode 100644 index 00000000000..bf9dec7c579 --- /dev/null +++ b/math/R-nloptr/patches/patch-configure @@ -0,0 +1,15 @@ +$NetBSD: patch-configure,v 1.1 2016/04/17 04:09:44 wen Exp $ +Fix usage of conditionals in configure +--- configure.orig 2015-11-28 07:01:04.000000000 +0000 ++++ configure +@@ -2953,8 +2953,8 @@ fi + + ## also use pkg-config to check for NLopt + ## +-if test x"${nlopt_libs}" == x""; then +- if test x"${PKGCONFIG}" == x"yes"; then ++if test x"${nlopt_libs}" = x""; then ++ if test x"${PKGCONFIG}" = x"yes"; then + ## check via pkg-config for hiredis + if pkg-config --exists nlopt; then + ## obtain cflags and obtain libs |