diff options
author | joerg <joerg@pkgsrc.org> | 2010-06-27 17:52:56 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2010-06-27 17:52:56 +0000 |
commit | 0814f866e7221e86a0ffc16a4c6f08b611d612c8 (patch) | |
tree | d53a296a2c23f776a42bcac75b209a63b847af66 /math | |
parent | 91c295a82afb84313600aa83df193a672e2f5bbc (diff) | |
download | pkgsrc-0814f866e7221e86a0ffc16a4c6f08b611d612c8.tar.gz |
Fix configure handling of Magick option
Diffstat (limited to 'math')
-rw-r--r-- | math/octave/distinfo | 4 | ||||
-rw-r--r-- | math/octave/patches/patch-an | 28 |
2 files changed, 23 insertions, 9 deletions
diff --git a/math/octave/distinfo b/math/octave/distinfo index a1730fe2e8e..58a15cbf0de 100644 --- a/math/octave/distinfo +++ b/math/octave/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.27 2010/04/24 20:58:36 asau Exp $ +$NetBSD: distinfo,v 1.28 2010/06/27 17:52:56 joerg Exp $ SHA1 (octave-3.2.4.tar.bz2) = 7de078564027108f3436f3ba7bf5993a6b411a67 RMD160 (octave-3.2.4.tar.bz2) = 6dcdea7ef2431b8427da5e6b9d2113e0e5736f43 @@ -11,5 +11,5 @@ SHA1 (patch-ag) = ec0fac7a105b8099cc0fdfa8e4ad002af66ddf0e SHA1 (patch-ah) = a2c6e3c6cb4c4570647edb4f484f514d75dda3ba SHA1 (patch-ai) = d7b4841238f7358bea50dd1b1b22cd94ab2af229 SHA1 (patch-ak) = 98aa84ac66fac0b7b0dcdb69e911dc9d42fd6673 -SHA1 (patch-an) = c7069e1cbd9c0cacb4bec20ab0db39e00d78b518 +SHA1 (patch-an) = 4ce4be6b91fb61e76fe8a85d5120721d562b475a SHA1 (patch-ao) = 80be57d904d48cc48d8f3da0a3883309a343d084 diff --git a/math/octave/patches/patch-an b/math/octave/patches/patch-an index 401c45b3595..6216f7f6392 100644 --- a/math/octave/patches/patch-an +++ b/math/octave/patches/patch-an @@ -1,16 +1,27 @@ -$NetBSD: patch-an,v 1.1 2009/10/08 16:43:13 dmcmahill Exp $ +$NetBSD: patch-an,v 1.2 2010/06/27 17:52:56 joerg Exp $ - ---- configure.in.orig 2009-05-26 11:38:48.000000000 +0000 -+++ configure.in 2009-10-08 11:40:07.000000000 +0000 -@@ -1212,5 +1212,5 @@ +--- configure.in.orig 2010-01-19 11:13:14.000000000 +0000 ++++ configure.in +@@ -672,7 +672,7 @@ fi + + warn_magick= + AC_CHECK_PROGS(MAGICK_CONFIG, [GraphicsMagick++-config GraphicsMagick-config]) +-if test -z "$MAGICK_CONFIG"; then ++if test -z "$MAGICK_CONFIG" || test "$MAGICK_CONFIG" = "no"; then + warn_magick="GraphicsMagick++ config script not found. Assuming GraphicsMagic++ library and header files are missing, so imread will not be fully functional" + else + AC_DEFINE(HAVE_MAGICK, 1, [Define if GraphicsMagick++ is available.]) +@@ -1214,7 +1214,7 @@ OCTGRAPHICS_DLL_DEFS= + library_path_var=LD_LIBRARY_PATH SCRIPTS_EXE_SUFFIX= case "$canonical_host_type" in - *-*-386bsd* | *-*-netbsd*) + *-*-386bsd*) SH_LD=ld SH_LDFLAGS=-Bshareable -@@ -1597,6 +1597,6 @@ + ;; +@@ -1599,8 +1599,8 @@ AC_CHECK_FUNCS(atexit basename bcopy bze + _chmod _snprintf x_utime _utime32) AC_LANG_PUSH(C++) -AC_CHECK_DECLS([exp2, round, tgamma], [], [], [[#include <cmath>]]) @@ -19,7 +30,9 @@ $NetBSD: patch-an,v 1.1 2009/10/08 16:43:13 dmcmahill Exp $ +AC_CHECK_FUNCS([exp2 round tgamma tgamma]) AH_VERBATIM([Z_FUNCS_AND_DECLS], [ #if defined (__cplusplus) -@@ -1612,4 +1612,7 @@ + extern "C" { +@@ -1614,6 +1614,9 @@ double round (double); + #if HAVE_TGAMMA && ! HAVE_DECL_TGAMMA double tgamma (double); #endif +#if HAVE_TGAMMAF && ! HAVE_DECL_TGAMMAF @@ -27,3 +40,4 @@ $NetBSD: patch-an,v 1.1 2009/10/08 16:43:13 dmcmahill Exp $ +#endif #if defined (__cplusplus) } + #endif |