summaryrefslogtreecommitdiff
path: root/cad/boolean/patches/patch-aa
blob: 5aa0d85d99c3b87364d52189e82b3d287030941f (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
70
71
72
73
74
75
76
77
78
79
80
81
82
$NetBSD: patch-aa,v 1.1.1.1 2000/11/18 17:57:27 dmcmahill Exp $

--- makefile.gui.orig	Sun Sep 17 22:18:44 2000
+++ makefile.gui	Sat Nov 11 19:35:59 2000
@@ -1,5 +1,5 @@
-CC		=	g++
+CC		=	${CXX}
 #WXWIN		= 	../wx_src
-WXWINDOW_LIBPATH=       /usr/local/lib
+WXWINDOW_LIBPATH=       ${LOCALBASE}/lib
 WXWIN		=	$(WXWINDOW_LIBPATH)
 TEMPDIR		=	../temp/linuxgui
@@ -11,19 +11,17 @@
 			-I$(SRCDIR)/tools \
 			-I$(SRCDIR)/bool \
-         -I$(SRCDIR)/drivers \
+			-I$(SRCDIR)/drivers \
 			-I$(SRCDIR)/intrface \
 			-I$(SRCDIR)/dosint \
-         -I$(SRCDIR)/list \
-			-I$(WXWIN)/wx/include\
-			-I/usr/local/include\
-			-I/usr/local/lib/wx/include\
-			-I/usr/local/lib/glib/include\
-			-I/usr/local/include\
-			-I/usr/X11R6/include 
-LIBDIR		=	-L/usr/X11R6/lib \
-			-L/usr/local/lib
+			-I$(SRCDIR)/list \
+			-I${LOCALBASE}/include \
+			-I${X11BASE}/include \
+			`glib-config --cflags` \
+			`gtk-config --cflags` \
+			`wx-config --cflags`
+LIBDIR		=	-L${X11BASE}/lib -Wl,-R${X11BASE}/lib \
+			-L${LOCALBASE}/lib -Wl,-R${LOCALBASE}/lib
 XTRAFLAGS	=	-static
 CFLAGS 		= 	-D_G_UNIX \
-			-DBIGINDIAN \
 			-DLINUX \
 			-DWIN_INT \
@@ -31,15 +29,16 @@
 			-fenum-int-equiv \
 			-fexceptions \
-         -fguiding-decls \
+			-fguiding-decls \
 			-fno-implicit-templates \
-		   -D_REENTRANT -g 
+			-D_REENTRANT -g 
 #		   -D_REENTRANT -g -D__WXDEBUG__
 #			-Wall -D_REENTRANT    -g -D__WXDEBUG__  
 TEXTLIBS	= 	-ll -lm -lg++ -lstdc++
 LIBS   		= 	-lstdc++ -lXmu -lXt \
-		        -lwx_gtk \
-			-lgtk -lgdk -lglib -lgmodule \
-			-lpthread  -rdynamic  -ldl -lXext -lX11 -lm -lgthread
-		
+			`glib-config --libs` \
+			`gtk-config --libs` \
+			`wx-config --libs` \
+			--Wl,-export-dynamic -lXext \
+			-lX11 -lm
 PROGNAME 	= 	boolean
 SRCPOOLS 	= 	interface misc  bool gdssource drivers tools parser list
@@ -72,8 +71,8 @@
 			$(TEMPDIR)/unitsdlg.o \
 			$(TEMPDIR)/distdlg.o \
-         $(TEMPDIR)/orderdlg.o \
+			$(TEMPDIR)/orderdlg.o \
 			$(TEMPDIR)/groupdlg.o \
 			$(TEMPDIR)/strucdlg.o \
-         $(TEMPDIR)/about.o \
+			$(TEMPDIR)/about.o \
 			$(TEMPDIR)/wait.o \
 			$(TEMPDIR)/gdsapp.o \
@@ -126,5 +125,5 @@
 			$(TEMPDIR)/trans.o\
 			$(TEMPDIR)/dcclbuf.o\
-         $(TEMPDIR)/windrv.o \
+			$(TEMPDIR)/windrv.o \
 			$(TEMPDIR)/gdsdrout.o \
 			$(TEMPDIR)/emaskin.o \