File: 0001-Debian-Build-Patch.patch

package info (click to toggle)
calculix-cgx 2.17%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 65,048 kB
  • sloc: ansic: 99,922; cpp: 3,016; sh: 70; makefile: 35
file content (76 lines) | stat: -rw-r--r-- 2,276 bytes parent folder | download
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
70
71
72
73
74
75
76
From: =?utf-8?q?Wolfgang_F=C3=BCtterer?= <debian@wlf-online.de>
Date: Wed, 20 Jan 2016 14:46:21 +0100
Subject: Debian Build Patch to build with freeglut and libsnl from debian

---
 cgx_2.17/src/Makefile | 54 +++++----------------------------------------------
 1 file changed, 5 insertions(+), 49 deletions(-)

--- a/cgx_2.17/src/Makefile
+++ b/cgx_2.17/src/Makefile
@@ -1,15 +1,12 @@
-CFLAGS = -O2 -Wall -Wno-narrowing \
+CFLAGS += -O2 -Wall -Wno-narrowing \
   -I./ \
   -I/usr/include \
-  -I/usr/include/GL \
-  -I../../libSNL/src \
-  -I../../glut-3.5/src \
-  -I/usr/X11/include 
+  -I/usr/include/GL
 
-LFLAGS = \
-  -L/usr/lib64 -lGL -lGLU \
+LFLAGS += \
+  -L/usr/lib64 -lGL -lGLU -lglut -lSNL \
   -L/usr/X11R6/lib64 -lX11 -lXi -lXmu -lXext -lXt -lSM -lICE \
-  -lm -lpthread -lrt
+  -lm -lpthread
 
 
 # on 32bit systems change lib64 to lib
@@ -22,44 +19,8 @@
  userFunction.c
 
 SUTIL = \
- ../../glut-3.5/src/layerutil.c \
- ../../glut-3.5/src/glut_dials.c \
- ../../glut-3.5/src/glut_ext.c \
- ../../glut-3.5/src/glut_mesa.c \
- ../../glut-3.5/src/glut_menu.c \
- ../../glut-3.5/src/glut_modifier.c \
- ../../glut-3.5/src/glut_space.c \
- ../../glut-3.5/src/glut_shapes.c \
- ../../glut-3.5/src/glut_tablet.c \
- ../../glut-3.5/src/glut_warp.c \
- ../../glut-3.5/src/glut_8x13.c \
- ../../glut-3.5/src/glut_9x15.c \
- ../../glut-3.5/src/glut_hel10.c \
- ../../glut-3.5/src/glut_hel18.c \
- ../../glut-3.5/src/glut_hel12.c \
- ../../glut-3.5/src/glut_tr10.c \
- ../../glut-3.5/src/glut_tr24.c \
- ../../glut-3.5/src/glut_bitmap.c \
- ../../glut-3.5/src/glut_cursor.c \
- ../../glut-3.5/src/glut_event.c \
- ../../glut-3.5/src/glut_get.c \
- ../../glut-3.5/src/glut_overlay.c \
- ../../glut-3.5/src/glut_input.c \
- ../../glut-3.5/src/glut_stroke.c \
- ../../glut-3.5/src/glut_teapot.c \
- ../../glut-3.5/src/glut_winmisc.c \
- ../../glut-3.5/src/glut_fullscrn.c \
- ../../glut-3.5/src/glut_cindex.c \
- ../../glut-3.5/src/glut_roman.c \
- ../../glut-3.5/src/glut_mroman.c \
- ../../glut-3.5/src/glut_swidth.c \
- ../../glut-3.5/src/glut_bwidth.c \
- ../../glut-3.5/src/glut_win.c \
- ../../glut-3.5/src/glut_init.c \
- ../../glut-3.5/src/glut_util.c \
  uselibSNL.cpp \
  generateTet.cpp \
- ../../libSNL/src/*.cpp
 
 OLIB = $(SLIB:.c=.o)
 OULIB = $(ULIB:.c=.o)