blob: e82d892560dae779fbf0029d221d72db6cf41ea7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
From ca8eda770e36d2649bfc808464415308a5e9fc47 Mon Sep 17 00:00:00 2001
From: Michael Orlitzky <michael@orlitzky.com>
Date: Thu, 6 Jul 2023 21:27:09 -0400
Subject: [PATCH 1/1] src: unbundle gl2ps.
Updated patch based on the one by infinity0@debian.org. Ours links
only libxcas (and not libgiac) to gl2ps.
---
configure.ac | 4 ++++
src/Graph3d.cc | 2 +-
src/Makefile.am | 6 +++---
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 8e1813e..2f7f644 100644
--- a/configure.ac
+++ b/configure.ac
@@ -465,6 +465,10 @@ dnl AC_CHECK_LIB(GLU, main)
AC_CHECK_LIB(fltk_images, main)
FLTK_LIBS="$LIBS $X_LIBS"
AC_SUBST(FLTK_LIBS)
+
+ # GL2PS is only used by xcas (the GUI)
+ GL2PS_LIBS="-lgl2ps"
+ AC_SUBST(GL2PS_LIBS)
cd src && ln -sf ../fltk-1.3.8 && cd ..
fi
fi
diff --git a/src/Graph3d.cc b/src/Graph3d.cc
index 7f54327..12d4723 100644
--- a/src/Graph3d.cc
+++ b/src/Graph3d.cc
@@ -45,7 +45,7 @@
#include "Xcas1.h"
#include "Cfg.h"
#include "Print.h"
-#include "gl2ps.h"
+#include <gl2ps.h>
#ifdef __APPLE__
//#include <OpenGL/gl.h>
diff --git a/src/Makefile.am b/src/Makefile.am
index 3fdd209..120ccb6 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -35,17 +35,17 @@ libbf.h list.h cutils.h qjsgiac.h \
quickjs.h js.h quickjs-atom.h quickjs-libc.h quickjs-opcode.h bf2gmp.h
noinst_LTLIBRARIES = libxcas.la
-libxcas_la_LIBADD = libgiac.la $(FLTK_LIBS)
+libxcas_la_LIBADD = libgiac.la $(FLTK_LIBS) $(GL2PS_LIBS)
libxcas_la_SOURCES = History.cc Input.cc Xcas1.cc Equation.cc Print.cc \
Tableur.cc Editeur.cc Graph.cc Graph3d.cc Help1.cc Cfg.cc \
Flv_CStyle.cc \
Flve_Check_Button.cc Flve_Input.cc Flv_Style.cc Flv_Data_Source.cc \
- Flve_Combo.cc Flv_List.cc Flv_Table.cc gl2ps.c \
+ Flve_Combo.cc Flv_List.cc Flv_Table.cc \
History.h Input.h Xcas1.h Equation.h Print.h Tableur.h \
Editeur.h Graph.h Graph3d.h Help1.h Cfg.h Python.cc Python.h \
Flv_CStyle.H Flve_Check_Button.H Flve_Input.H Flv_Style.H \
- Flv_Data_Source.H Flve_Combo.H Flv_List.H Flv_Table.H gl2ps.h
+ Flv_Data_Source.H Flve_Combo.H Flv_List.H Flv_Table.H
##libjavagiac_la_LIBADD = libgiac.la
--
2.39.3
|