summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2014-11-02 23:09:31 +0000
committercheusov <cheusov@pkgsrc.org>2014-11-02 23:09:31 +0000
commitc9d7a8a89ec85a92394d83967fd9e3d6784c1206 (patch)
tree2126415ef482a4cd5ba7b2a90832c435d959ee58 /math
parent82c5a5564da4d901ce47a895f99c35d5ffc8a377 (diff)
downloadpkgsrc-c9d7a8a89ec85a92394d83967fd9e3d6784c1206.tar.gz
Fix for build failure seen on Linux/gcc-4.7.
We have to enable -msse2 before checking for xmmintrin.h.
Diffstat (limited to 'math')
-rw-r--r--math/liblbfgs/Makefile7
-rw-r--r--math/liblbfgs/distinfo3
-rw-r--r--math/liblbfgs/patches/patch-configure.in35
3 files changed, 43 insertions, 2 deletions
diff --git a/math/liblbfgs/Makefile b/math/liblbfgs/Makefile
index d73a1a223b8..0cd625c49e2 100644
--- a/math/liblbfgs/Makefile
+++ b/math/liblbfgs/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2014/10/29 23:10:29 cheusov Exp $
+# $NetBSD: Makefile,v 1.2 2014/11/02 23:09:31 cheusov Exp $
DISTNAME= liblbfgs-1.10
CATEGORIES= math
@@ -12,5 +12,10 @@ LICENSE= mit
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
+AUTOCONF_REQD= 2.50
+USE_TOOLS+= autoconf
+pre-configure:
+ set -e; cd ${WRKSRC}; autoconf
+
.include "options.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/math/liblbfgs/distinfo b/math/liblbfgs/distinfo
index b9fa8aa65e8..4dd17079fac 100644
--- a/math/liblbfgs/distinfo
+++ b/math/liblbfgs/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2014/10/29 23:10:29 cheusov Exp $
+$NetBSD: distinfo,v 1.2 2014/11/02 23:09:31 cheusov Exp $
SHA1 (liblbfgs-1.10.tar.gz) = fde08e7b842cd125364cb9db9d66fd61dcf37d21
RMD160 (liblbfgs-1.10.tar.gz) = bd1bbbd1fb3c708f33e89b600b65bd0ff052a7b0
Size (liblbfgs-1.10.tar.gz) = 318739 bytes
+SHA1 (patch-configure.in) = 97a3fdb8405343a46a9d6636dc857348f1887253
diff --git a/math/liblbfgs/patches/patch-configure.in b/math/liblbfgs/patches/patch-configure.in
new file mode 100644
index 00000000000..e7997ec7ca0
--- /dev/null
+++ b/math/liblbfgs/patches/patch-configure.in
@@ -0,0 +1,35 @@
+$NetBSD: patch-configure.in,v 1.1 2014/11/02 23:09:31 cheusov Exp $
+
+# fix for build failure seen on Linux/gcc-4.7
+--- ./configure.in.orig 2014-11-02 17:48:31.192060650 -0500
++++ ./configure.in 2014-11-02 17:48:50.225607845 -0500
+@@ -42,14 +42,6 @@
+
+
+ dnl ------------------------------------------------------------------
+-dnl Checks for header files.
+-dnl ------------------------------------------------------------------
+-AC_HEADER_STDC
+-AC_CHECK_HEADERS(xmmintrin.h emmintrin.h)
+-
+-
+-
+-dnl ------------------------------------------------------------------
+ dnl Checks for debugging mode
+ dnl ------------------------------------------------------------------
+ AC_ARG_ENABLE(
+@@ -87,6 +79,14 @@
+ )
+
+ dnl ------------------------------------------------------------------
++dnl Checks for header files.
++dnl ------------------------------------------------------------------
++AC_HEADER_STDC
++AC_CHECK_HEADERS(xmmintrin.h emmintrin.h)
++
++
++
++dnl ------------------------------------------------------------------
+ dnl Checks for library functions.
+ dnl ------------------------------------------------------------------
+ AC_CHECK_LIB(m, fabs)