summaryrefslogtreecommitdiff
path: root/graphics/xmorph/files/patch-aa
blob: 1cf152c9f2d68c4bf24e120719283bf6bc28fc0b (plain) (blame)
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
--- Makefile.orig	Thu Sep 11 20:37:55 1997
+++ Makefile	Sat Oct  3 23:33:33 1998
@@ -132,7 +132,7 @@
 #
 
 #INCLUDE=-I/usr/local/include -I/usr/openwin/include
-INCLUDE=-I/usr/local/include
+INCLUDE=-I/usr/local/include -I$(X11BASE)/include
 
 
 
@@ -167,7 +167,7 @@
 #
 
 #DEBUG=-O
-DEBUG=-O -g -Wall -DDEBUG
+#DEBUG=-O -g -Wall -DDEBUG
 #DEBUG=-g3 -O -fullwarn -woff 1233 -DVERBOSE -DDEBUG
 
 
@@ -225,7 +225,7 @@
 
 #CFLAGS=$(DEBUG) $(DEFINES) $(INCLUDE) -DSUNOS
 
-CFLAGS=$(DEBUG) $(DEFINES) $(INCLUDE)
+CFLAGS+=$(DEBUG) $(DEFINES) $(INCLUDE)
 
 
 
@@ -248,7 +248,10 @@
 #   The cvt library is available in the goldengate.sw.goldengate package
 
 #XLIBS=-L/usr/openwin/lib -lXaw -lXmu -lXext -lXt -lX11
-XLIBS=-L/usr/X11/lib -lXaw -lXmu -lXext -lXt -lX11
+XLIBS=-L$(X11BASE)/lib -lXaw -lXmu -lXext -lXt -lX11
+.if $(PORTOBJFORMAT) == "elf"
+XLIBS+=-Wl,-rpath,$(X11BASE)/lib
+.endif
 #XLIBS=              -lXaw -lXmu -lXext -lXt -lcvt -lX11
 
 
@@ -289,7 +292,7 @@
 
 #LIBS = -lm
 #LIBS = $(XLIBS) -lm
-LIBS = $(XLIBS) -lm -ldl
+LIBS = $(XLIBS) -lm
 #LIBS = $(XLIBS) -lm /usr/lib/debug/malloc.o
 #LIBS = $(XLIBS) -lm -lmalloc
 
@@ -370,6 +373,11 @@
 #all: morph.$(SHLIB_EXT)
 all: xmorph xmorph.man
 
+install:
+	install -cs xmorph ${PREFIX}/bin
+	install -c -m 644 xmorph ${PREFIX}/man/man1/xmorph.1
+	gzip -9nf ${PREFIX}/man/man1/xmorph.1
+
 xmorph:   $(OBJS)
 	@echo ""
 	@echo ""