diff options
author | obache <obache> | 2011-12-16 10:51:18 +0000 |
---|---|---|
committer | obache <obache> | 2011-12-16 10:51:18 +0000 |
commit | bcb3761e141e9c0ca4c7d4c6e2b69611a6d9e692 (patch) | |
tree | bdbc8e168ffaa6c755a0f759dc29454ba7752810 /inputmethod/ibus-handwrite/patches | |
parent | 74f7a08c233ce6cf5f37d54e3d348979166e3831 (diff) | |
download | pkgsrc-bcb3761e141e9c0ca4c7d4c6e2b69611a6d9e692.tar.gz |
Need to check requirement of math library for atan2(3).
Diffstat (limited to 'inputmethod/ibus-handwrite/patches')
-rw-r--r-- | inputmethod/ibus-handwrite/patches/patch-configure | 70 | ||||
-rw-r--r-- | inputmethod/ibus-handwrite/patches/patch-configure.ac | 16 |
2 files changed, 86 insertions, 0 deletions
diff --git a/inputmethod/ibus-handwrite/patches/patch-configure b/inputmethod/ibus-handwrite/patches/patch-configure new file mode 100644 index 00000000000..bfee715f9ac --- /dev/null +++ b/inputmethod/ibus-handwrite/patches/patch-configure @@ -0,0 +1,70 @@ +$NetBSD: patch-configure,v 1.1 2011/12/16 10:51:18 obache Exp $ + +* regen with patched configure.ac. + +--- configure.orig 2011-03-25 05:28:36.000000000 +0000 ++++ configure +@@ -5153,6 +5153,63 @@ cat >>confdefs.h <<_ACEOF + _ACEOF + + ++{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing atan2" >&5 ++$as_echo_n "checking for library containing atan2... " >&6; } ++if ${ac_cv_search_atan2+:} false; then : ++ $as_echo_n "(cached) " >&6 ++else ++ ac_func_search_save_LIBS=$LIBS ++cat confdefs.h - <<_ACEOF >conftest.$ac_ext ++/* end confdefs.h. */ ++ ++/* Override any GCC internal prototype to avoid an error. ++ Use char because int might match the return type of a GCC ++ builtin and then its argument prototype would still apply. */ ++#ifdef __cplusplus ++extern "C" ++#endif ++char atan2 (); ++int ++main () ++{ ++return atan2 (); ++ ; ++ return 0; ++} ++_ACEOF ++for ac_lib in '' m; do ++ if test -z "$ac_lib"; then ++ ac_res="none required" ++ else ++ ac_res=-l$ac_lib ++ LIBS="-l$ac_lib $ac_func_search_save_LIBS" ++ fi ++ if ac_fn_c_try_link "$LINENO"; then : ++ ac_cv_search_atan2=$ac_res ++fi ++rm -f core conftest.err conftest.$ac_objext \ ++ conftest$ac_exeext ++ if ${ac_cv_search_atan2+:} false; then : ++ break ++fi ++done ++if ${ac_cv_search_atan2+:} false; then : ++ ++else ++ ac_cv_search_atan2=no ++fi ++rm conftest.$ac_ext ++LIBS=$ac_func_search_save_LIBS ++fi ++{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_atan2" >&5 ++$as_echo "$ac_cv_search_atan2" >&6; } ++ac_res=$ac_cv_search_atan2 ++if test "$ac_res" != no; then : ++ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" ++ ++fi ++ ++ + if test "x${enable_zinnia}" = "xyes"; then : + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zinnia_recognizer_open in -lzinnia" >&5 diff --git a/inputmethod/ibus-handwrite/patches/patch-configure.ac b/inputmethod/ibus-handwrite/patches/patch-configure.ac new file mode 100644 index 00000000000..f7075bd0bb7 --- /dev/null +++ b/inputmethod/ibus-handwrite/patches/patch-configure.ac @@ -0,0 +1,16 @@ +$NetBSD: patch-configure.ac,v 1.1 2011/12/16 10:51:18 obache Exp $ + +* Need to requirement of math library for atan2(3). + http://code.google.com/p/ibus-handwrite/issues/detail?id=19 + +--- configure.ac.orig 2011-03-25 05:28:26.000000000 +0000 ++++ configure.ac +@@ -66,6 +66,8 @@ GETTEXT_PACKAGE="$PACKAGE_NAME" + AC_SUBST(GETTEXT_PACKAGE) + AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Define to the read-only architecture-independent data directory.]) + ++AC_SEARCH_LIBS([atan2], [m]) ++ + AS_IF([test "x${enable_zinnia}" = "xyes"], + [ + AC_CHECK_LIB(zinnia,[zinnia_recognizer_open],[],[have_zinnia=no]) |