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
|
$NetBSD: patch-aa,v 1.4 2002/09/20 11:41:16 rh Exp $
--- Makefile.orig Fri Jun 14 23:58:53 2002
+++ Makefile
@@ -10,7 +10,7 @@
######## Covered by GPL; see the file ./Copyright for details.
# defaults..
-CC = gcc
+#CC = gcc
PLATFORM = UNIX
RMCOM = rm -f
XOBJ = x11.o sleep.o interact.o
@@ -23,15 +23,16 @@ PLPNG = plpng
######## Choose one of the following. All others should be commented out.
#### For Solaris 2.x uncomment the following..
-XLIBS = -L/usr/openwin/lib -lX11
-XINCLUDEDIR = -I/usr/openwin/include
+#XLIBS = -L/usr/openwin/lib -lX11
+#XINCLUDEDIR = -I/usr/openwin/include
#### For Linux and FreeBSD uncomment the following..
-# XLIBS = -L/usr/X11R6/lib -lX11
-# XINCLUDEDIR = -I/usr/X11R6/include
+XLIBS = -L${X11BASE} -lX11
+XINCLUDEDIR = -I${X11BASE}/include
#### For FreeBSD uncomment the following and find GD16H or GD18H below and set to -I/usr/local/include
# ADDLIBS = -L/usr/local/lib
+
#### For Cygwin uncomment the following..
# PLATFORM = WIN32
# XLIBS = -L/usr/X11R6/lib -lX11
@@ -78,7 +79,7 @@ XINCLUDEDIR = -I/usr/openwin/include
######## Choose ONE of the following. All others should be commented out.
#### For pseudo-GIF uncomment the following.. (no libs required)
-ploticus: pl
+# ploticus: pl
#### For PNG uncomment the following.. (you must have libpng and zlib)
# ploticus: plpng
@@ -103,11 +104,11 @@ ploticus: pl
#### For JPEG, WBMP, and PNG & FreeType2 using your copy of GD 1.84+ uncomment the following..
#### (you must have gd 1.84+, libpng, zlib, libjpeg, libfreetype)
#### Before using set environment var GDFONTPATH to directory containing .ttf files
-# ploticus: plgd18
-# GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype
-# GD18H =
-# GDFREETYPE = -DGDFREETYPE
-# ZFLAG = -DWZ
+ploticus: plgd18
+GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype
+GD18H =
+GDFREETYPE = -DGDFREETYPE
+ZFLAG = -DWZ
#### To disable GD image support (no GIF, PNG, JPEG, etc) uncomment the following..
# ploticus: plnogd
@@ -125,7 +126,7 @@ ploticus: pl
#### To set a hard-coded directory for prefabs files, uncomment & edit the following..
#### If done, users won't be required to have PLOTICUS_PREFABS environment variable defined.
#### This option not available for win32
-# PREFABS_DIR = "/usr/lib/ploticus"
+PREFABS_DIR = "${PREFIX}/share/ploticus"
#### For LOCALE support (non-roman alphabets & collation), uncomment the following..
# LOCALEOBJ = localef.o
@@ -156,9 +157,9 @@ GD16 = grgd16.o devstuff16.o gd16.o gd_i
GD = gdfontg.o gdfontl.o gdfontmb.o gdfonts.o gdfontt.o
-LIBS = $(XLIBS) -lm $(ADDLIBS)
+LIBS = ${LDFLAGS} $(XLIBS) -lm $(ADDLIBS)
-CFLAGS = -DPLOTICUS -D$(PLATFORM) -DTDH_NOREC $(ZFLAG) $(FLAGS) $(LOCALE_FLAG) \
+CFLAGS+= -DPLOTICUS -D$(PLATFORM) -DTDH_NOREC $(ZFLAG) $(FLAGS) $(LOCALE_FLAG) \
$(NOGDFLAG) $(NOXFLAG) $(XINCLUDEDIR) $(NORLIMFLAG) -DPREFABS_DIR=\"$(PREFABS_DIR)\"
OBJ = proc_annotate.o proc_areadef.o proc_axis.o proc_bars.o proc_rect.o proc_breakaxis.o \
|