1 |
grozin 09/02/27 15:07:24 |
2 |
|
3 |
Added: asymptote-1.66-configure-ac.patch |
4 |
asymptote-1.66-xdg-utils.patch |
5 |
Removed: asymptote-1.64-xdg-utils.patch |
6 |
asymptote-1.64-configure-ac.patch |
7 |
Log: |
8 |
Version bump |
9 |
(Portage version: 2.2_rc23/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 media-gfx/asymptote/files/asymptote-1.66-configure-ac.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.66-configure-ac.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.66-configure-ac.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: asymptote-1.66-configure-ac.patch |
18 |
=================================================================== |
19 |
Index: asymptote-1.66/configure.ac |
20 |
=================================================================== |
21 |
--- asymptote-1.66.orig/configure.ac |
22 |
+++ asymptote-1.66/configure.ac |
23 |
@@ -79,10 +79,16 @@ if test "$GXX" = yes ; then |
24 |
fi |
25 |
fi |
26 |
|
27 |
-AC_CHECK_HEADER(fftw3.h, |
28 |
- AC_CHECK_LIB([fftw3], fftw_execute,, |
29 |
+AC_ARG_WITH([fftw], |
30 |
+ [ --with-fftw use fftw3], |
31 |
+ [with_fftw=$withval], |
32 |
+ [with_fftw="no"]) |
33 |
+if test "$with_fftw" = "yes"; then |
34 |
+AC_CHECK_HEADER([fftw3.h], |
35 |
+ AC_CHECK_LIB([fftw3], [fftw_execute],, |
36 |
AC_MSG_NOTICE([*** Could not find libfftw3: will compile without optional fast Fourier transforms. ***])), |
37 |
AC_MSG_NOTICE([*** Header file fftw3.h not found: will compile without optional fast Fourier transforms. ***])) |
38 |
+fi |
39 |
|
40 |
GCVERSION=gc-7.1 |
41 |
|
42 |
@@ -119,7 +125,7 @@ if test "x$ac_cv_use_gc" != "xno" ; then |
43 |
fi |
44 |
CPPFLAGS_SAVE=$CPPFLAGS |
45 |
CPPFLAGS=$CPPFLAGS" $INCL" |
46 |
- AC_CHECK_HEADER(gc.h, |
47 |
+ AC_CHECK_HEADER([gc/gc.h], |
48 |
AC_CHECK_LIB([gc],[GC_malloc],[ |
49 |
LIBS=$LIBS"-lgc " |
50 |
AC_MSG_NOTICE([enabling system $GCNAME])],[ |
51 |
@@ -186,7 +192,16 @@ AC_CHECK_LIB([ncurses], [setupterm], [AC |
52 |
AC_CHECK_LIB([m], [sqrt]) |
53 |
AC_CHECK_LIB([z], [deflate]) |
54 |
AC_CHECK_LIB([pthread], [pthread_create]) |
55 |
-AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]) |
56 |
+ |
57 |
+AC_ARG_WITH(sigsegv, |
58 |
+ [ --with-sigsegv use libsigsegv], |
59 |
+ [with_sigsegv=$withval], |
60 |
+ [with_sigsegv="no"]) |
61 |
+if test "$with_sigsegv" = "yes"; then |
62 |
+AC_CHECK_HEADER([sigsegv.h], |
63 |
+ AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]), |
64 |
+ AC_MSG_NOTICE([*** Header file sigsegv.h not found ***])) |
65 |
+fi |
66 |
|
67 |
AC_CHECK_LIB([readline], [rl_completion_matches],, |
68 |
AC_MSG_NOTICE(*** Could not find GNU readline 4.2 or later: will compile without readline support ***)) |
69 |
@@ -203,11 +218,17 @@ AC_COMPILE_IFELSE(AC_LANG_PROGRAM([#incl |
70 |
[Define if you have a working <rpc/rpc.h> header file])], |
71 |
AC_MSG_WARN([*** Broken rpc headers; XDR support disabled ***])) |
72 |
|
73 |
-AC_CHECK_HEADER(gsl/gsl_sf.h, |
74 |
+AC_ARG_WITH(gsl, |
75 |
+ [ --with-gsl use gsl libraries], |
76 |
+ [with_gsl=$withval], |
77 |
+ [with_gsl="no"]) |
78 |
+if test "$with_gsl" = "yes"; then |
79 |
+AC_CHECK_HEADER([gsl/gsl_sf.h], |
80 |
AC_CHECK_LIB([gsl], gsl_sf_Si, [AC_DEFINE(HAVE_LIBGSL, 1, |
81 |
[Define to 1 if you have the 'gsl' library (-lgsl). ]) LIBS=$LIBS"-lgsl -lgslcblas "], |
82 |
AC_MSG_NOTICE([*** Could not find libgsl: will compile without optional special functions. ***]),[-lgslcblas]), |
83 |
AC_MSG_NOTICE([*** Header file gsl_sf.h not found: will compile without optional special functions. ***])) |
84 |
+fi |
85 |
|
86 |
case "$OSTYPE" in |
87 |
cygwin) AC_CHECK_HEADER(GL/glut.h, |
88 |
|
89 |
|
90 |
|
91 |
1.1 media-gfx/asymptote/files/asymptote-1.66-xdg-utils.patch |
92 |
|
93 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.66-xdg-utils.patch?rev=1.1&view=markup |
94 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.66-xdg-utils.patch?rev=1.1&content-type=text/plain |
95 |
|
96 |
Index: asymptote-1.66-xdg-utils.patch |
97 |
=================================================================== |
98 |
Index: asymptote-1.66/settings.cc |
99 |
=================================================================== |
100 |
--- asymptote-1.66.orig/settings.cc |
101 |
+++ asymptote-1.66/settings.cc |
102 |
@@ -80,15 +80,15 @@ const bool haveglut=false; |
103 |
bool msdos=false; |
104 |
const char *HOME="HOME"; |
105 |
const char pathSeparator=':'; |
106 |
-string defaultPSViewer="gv"; |
107 |
+string defaultPSViewer="xdg-open"; |
108 |
#ifdef __APPLE__ |
109 |
string defaultPDFViewer="open"; |
110 |
#else |
111 |
-string defaultPDFViewer="acroread"; |
112 |
+string defaultPDFViewer="xdg-open"; |
113 |
#endif |
114 |
string defaultGhostscript="gs"; |
115 |
string defaultPython; |
116 |
-string defaultDisplay="display"; |
117 |
+string defaultDisplay="xdg-open"; |
118 |
string systemDir=ASYMPTOTE_SYSDIR; |
119 |
const string docdir=ASYMPTOTE_DOCDIR; |
120 |
void queryRegistry() {} |