1 |
grozin 08/11/01 18:42:50 |
2 |
|
3 |
Added: asymptote-1.47-configure-ac.patch |
4 |
asymptote-1.47-xdg-utils.patch |
5 |
Removed: asymptote-1.44-configure-ac.patch |
6 |
asymptote-1.44-xdg-utils.patch |
7 |
Log: |
8 |
Version |
9 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.26-tuxonice i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 media-gfx/asymptote/files/asymptote-1.47-configure-ac.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.47-configure-ac.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.47-configure-ac.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: asymptote-1.47-configure-ac.patch |
18 |
=================================================================== |
19 |
diff -r -U2 asymptote-1.47.orig/configure.ac asymptote-1.47/configure.ac |
20 |
--- asymptote-1.47.orig/configure.ac 2008-10-23 14:06:31.000000000 +0700 |
21 |
+++ asymptote-1.47/configure.ac 2008-11-02 03:57:58.000000000 +0600 |
22 |
@@ -77,8 +77,14 @@ |
23 |
fi |
24 |
|
25 |
-AC_CHECK_HEADER(fftw3.h, |
26 |
- AC_CHECK_LIB([fftw3], fftw_execute,, |
27 |
+AC_ARG_WITH([fftw], |
28 |
+ [ --with-fftw use fftw3], |
29 |
+ [with_fftw=$withval], |
30 |
+ [with_fftw="no"]) |
31 |
+if test "$with_fftw" = "yes"; then |
32 |
+AC_CHECK_HEADER([fftw3.h], |
33 |
+ AC_CHECK_LIB([fftw3], [fftw_execute],, |
34 |
AC_MSG_NOTICE([*** Could not find libfftw3: will compile without optional fast Fourier transforms. ***])), |
35 |
AC_MSG_NOTICE([*** Header file fftw3.h not found: will compile without optional fast Fourier transforms. ***])) |
36 |
+fi |
37 |
|
38 |
GCVERSION=gc-7.1 |
39 |
@@ -117,5 +123,5 @@ |
40 |
CPPFLAGS_SAVE=$CPPFLAGS |
41 |
CPPFLAGS=$CPPFLAGS" $INCL" |
42 |
- AC_CHECK_HEADER(gc.h, |
43 |
+ AC_CHECK_HEADER([gc/gc.h], |
44 |
AC_CHECK_LIB([gc],[GC_malloc],[ |
45 |
LIBS=$LIBS"-lgc " |
46 |
@@ -183,5 +189,14 @@ |
47 |
AC_CHECK_LIB([m], [sqrt]) |
48 |
AC_CHECK_LIB([z], [deflate]) |
49 |
-AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]) |
50 |
+ |
51 |
+AC_ARG_WITH(sigsegv, |
52 |
+ [ --with-sigsegv use libsigsegv], |
53 |
+ [with_sigsegv=$withval], |
54 |
+ [with_sigsegv="no"]) |
55 |
+if test "$with_sigsegv" = "yes"; then |
56 |
+AC_CHECK_HEADER([sigsegv.h], |
57 |
+ AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]), |
58 |
+ AC_MSG_NOTICE([*** Header file sigsegv.h not found ***])) |
59 |
+fi |
60 |
|
61 |
AC_CHECK_LIB([readline], [rl_completion_matches],, |
62 |
@@ -200,9 +215,15 @@ |
63 |
AC_MSG_WARN([*** Broken rpc headers; XDR support disabled ***])) |
64 |
|
65 |
-AC_CHECK_HEADER(gsl/gsl_sf.h, |
66 |
+AC_ARG_WITH(gsl, |
67 |
+ [ --with-gsl use gsl libraries], |
68 |
+ [with_gsl=$withval], |
69 |
+ [with_gsl="no"]) |
70 |
+if test "$with_gsl" = "yes"; then |
71 |
+AC_CHECK_HEADER([gsl/gsl_sf.h], |
72 |
AC_CHECK_LIB([gsl], gsl_sf_Si, [AC_DEFINE(HAVE_LIBGSL, 1, |
73 |
[Define to 1 if you have the 'gsl' library (-lgsl). ]) LIBS=$LIBS"-lgsl -lgslcblas "], |
74 |
AC_MSG_NOTICE([*** Could not find libgsl: will compile without optional special functions. ***]),[-lgslcblas]), |
75 |
AC_MSG_NOTICE([*** Header file gsl_sf.h not found: will compile without optional special functions. ***])) |
76 |
+fi |
77 |
|
78 |
case "$MACHTYPE" in |
79 |
|
80 |
|
81 |
|
82 |
1.1 media-gfx/asymptote/files/asymptote-1.47-xdg-utils.patch |
83 |
|
84 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.47-xdg-utils.patch?rev=1.1&view=markup |
85 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.47-xdg-utils.patch?rev=1.1&content-type=text/plain |
86 |
|
87 |
Index: asymptote-1.47-xdg-utils.patch |
88 |
=================================================================== |
89 |
diff -r -U2 asymptote-1.47.orig/settings.cc asymptote-1.47/settings.cc |
90 |
--- asymptote-1.47.orig/settings.cc 2008-10-23 14:06:15.000000000 +0700 |
91 |
+++ asymptote-1.47/settings.cc 2008-11-02 03:51:08.000000000 +0600 |
92 |
@@ -81,12 +81,12 @@ |
93 |
const char *HOME="HOME"; |
94 |
const char pathSeparator=':'; |
95 |
-string defaultPSViewer="gv"; |
96 |
+string defaultPSViewer="xdg-open"; |
97 |
#ifdef __APPLE__ |
98 |
string defaultPDFViewer="open"; |
99 |
#else |
100 |
-string defaultPDFViewer="acroread"; |
101 |
+string defaultPDFViewer="xdg-open"; |
102 |
#endif |
103 |
string defaultGhostscript="gs"; |
104 |
-string defaultDisplay="display"; |
105 |
+string defaultDisplay="xdg-open"; |
106 |
string defaultPython; |
107 |
const string docdir=ASYMPTOTE_DOCDIR; |