summaryrefslogtreecommitdiff
path: root/graphics/netpbm/patches/patch-aa
blob: 15c628dbf334385bd49c6473db8d1e825b83e3bc (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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
$NetBSD: patch-aa,v 1.8 1999/10/08 21:18:33 jlam Exp $

--- Makefile.orig	Wed Jan 26 06:47:35 1994
+++ Makefile	Tue May  4 16:51:11 1999
@@ -21,7 +21,7 @@
 #CC =		gcc -ansi -pedantic -fcombine-regs -fpcc-struct-return
 
 # CONFIGURE: cc flags go here.
-CFLAGS =	-O
+CFLAGS =	-O2
 #CFLAGS =	-g
 #CFLAGS =	-g -O
 
@@ -48,33 +48,36 @@
 # By the way, you must have at least version 2.4 of libtiff.  Earlier
 # versions will not work.
 TIFFDEF =	-DLIBTIFF
-TIFFINC =	-I../libtiff
-TIFFLIB =	../libtiff/libtiff.a
+TIFFINC =	-I$(LOCALBASE)/include
+TIFFLIB =	-Wl,-R$(LOCALBASE)/lib -L$(LOCALBASE)/lib -ltiff -ljpeg -lz
 TIFFBINARIES =	tifftopnm pnmtotiff
 TIFFOBJECTS =	tifftopnm.o pnmtotiff.o
 
 # CONFIGURE: Define the directory that you want the binaries copied to.
 # If you need scripts and binaries to be in different directories, you
 # can set that up too.
-INSTALLBINARIES =	/usr/local/netpbm
+INSTALLBINARIES =	$(PREFIX)/bin
 INSTALLSCRIPTS =	$(INSTALLBINARIES)
 
 # CONFIGURE: Define the directories that you want the manual sources copied to,
 # plus the suffix you want them to have.
-INSTALLMANUALS1 =	/usr/local/man/man1
+INSTALLMANUALS1 =	$(PREFIX)/man/man1
 SUFFIXMANUALS1 =	1
-INSTALLMANUALS3 =	/usr/local/man/man3
+INSTALLMANUALS3 =	$(PREFIX)/man/man3
 SUFFIXMANUALS3 =	3
-INSTALLMANUALS5 =	/usr/local/man/man5
+INSTALLMANUALS5 =	$(PREFIX)/man/man5
 SUFFIXMANUALS5 =	5
 
 # CONFIGURE: Normally the man pages are installed using "cp".  By changing
 # this define you can use something else, for example a script that calls
 # compress or pack. The ../mantocat is used on systems which use man pages
 # in the "cat" format.
-MANCP =			cp
+MANCP =			install -c -m 0644
 #MANCP =		../mantocat
 
+INSTALLLIBS =		$(PREFIX)/lib
+INSTALLDEFS =		$(PREFIX)/include
+
 # CONFIGURE: Normally the Makefiles build and install separate binaries for
 # each program.  However, on some systems (especially those without shared
 # libraries) this can mean a lot of space.  In this case you might try
@@ -87,10 +90,10 @@
 #
 # Note that if you make a "merge", the executables don't get created
 # until you do the install.
-#all:		binaries
-#install:	install.bin install.man
-all:		merge
-install:	install.merge install.man
+all:		binaries
+install:	install.bin install.man
+#all:		merge
+#install:	install.merge install.man
 
 # End of configurable definitions.
 
@@ -99,10 +102,10 @@
 SUBDIRS =	pbm pgm ppm pnm
 
 binaries:
-	./stamp-date
-	( echo "libtiff" ; cd libtiff ; make )
+#	./stamp-date
+#	( echo "libtiff" ; cd libtiff ; make )
 	for i in $(SUBDIRS) ; do \
-	    ( echo $$i ; cd $$i ; $(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'TIFFDEF=$(TIFFDEF)' 'TIFFINC=$(TIFFINC)' 'TIFFLIB=$(TIFFLIB)' 'TIFFBINARIES=$(TIFFBINARIES)' 'TIFFOBJECTS=$(TIFFOBJECTS)' 'LDFLAGS=$(LDFLAGS)' binaries ); \
+	    ( echo "===> $$i" ; cd $$i ; $(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'TIFFDEF=$(TIFFDEF)' 'TIFFINC=$(TIFFINC)' 'TIFFLIB=$(TIFFLIB)' 'TIFFBINARIES=$(TIFFBINARIES)' 'TIFFOBJECTS=$(TIFFOBJECTS)' 'LDFLAGS=$(LDFLAGS)' binaries ); \
 	done
 
 merge:
@@ -113,15 +116,20 @@
 	done
 
 install.bin:
-	-mkdir $(INSTALLBINARIES)
+#	-mkdir $(INSTALLBINARIES)
+#	-mkdir $(INSTALLLIBS)
+#	-mkdir $(INSTALLDEFS)
+	$(MANCP) pbmplus.h	$(INSTALLDEFS)
 	for i in $(SUBDIRS) ; do \
-	    ( echo $$i ; cd $$i ; $(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'TIFFDEF=$(TIFFDEF)' 'TIFFINC=$(TIFFINC)' 'TIFFLIB=$(TIFFLIB)' 'TIFFBINARIES=$(TIFFBINARIES)' 'TIFFOBJECTS=$(TIFFOBJECTS)' 'LDFLAGS=$(LDFLAGS)' 'INSTALLBINARIES=$(INSTALLBINARIES)' 'INSTALLSCRIPTS=$(INSTALLSCRIPTS)' install.bin ); \
+	    ( echo $$i ; cd $$i ; $(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'TIFFDEF=$(TIFFDEF)' 'TIFFINC=$(TIFFINC)' 'TIFFLIB=$(TIFFLIB)' 'TIFFBINARIES=$(TIFFBINARIES)' 'TIFFOBJECTS=$(TIFFOBJECTS)' 'LDFLAGS=$(LDFLAGS)' 'INSTALLBINARIES=$(INSTALLBINARIES)' 'INSTALLSCRIPTS=$(INSTALLSCRIPTS)' 'INSTALLLIBS=$(INSTALLLIBS)' 'INSTALLDEFS=$(INSTALLDEFS)' install.bin ); \
 	done
 
 install.merge:
-	-mkdir $(INSTALLBINARIES)
+#	-mkdir $(INSTALLBINARIES)
+#	-mkdir $(INSTALLLIBS)
+#	-mkdir $(INSTALLDEFS)
 	for i in $(SUBDIRS) ; do \
-	    ( echo $$i ; cd $$i ; $(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'TIFFDEF=$(TIFFDEF)' 'TIFFINC=$(TIFFINC)' 'TIFFLIB=$(TIFFLIB)' 'TIFFBINARIES=$(TIFFBINARIES)' 'TIFFOBJECTS=$(TIFFOBJECTS)' 'LDFLAGS=$(LDFLAGS)' 'INSTALLBINARIES=$(INSTALLBINARIES)' 'INSTALLSCRIPTS=$(INSTALLSCRIPTS)' install.merge ); \
+	    ( echo $$i ; cd $$i ; $(MAKE) $(MFLAGS) 'CC=$(CC)' 'CFLAGS=$(CFLAGS)' 'TIFFDEF=$(TIFFDEF)' 'TIFFINC=$(TIFFINC)' 'TIFFLIB=$(TIFFLIB)' 'TIFFBINARIES=$(TIFFBINARIES)' 'TIFFOBJECTS=$(TIFFOBJECTS)' 'LDFLAGS=$(LDFLAGS)' 'INSTALLBINARIES=$(INSTALLBINARIES)' 'INSTALLSCRIPTS=$(INSTALLSCRIPTS)' 'INSTALLLIBS=$(INSTALLLIBS)' 'INSTALLDEFS=$(INSTALLDEFS)' install.merge ); \
 	done
 
 install.man:
@@ -131,7 +139,7 @@
 
 clean:
 	rm -f *.shar *.shar? art.* *~
-	echo "" > compile.h
-	for i in $(SUBDIRS) libtiff ; do \
+	rm -f compile.h ; echo "" > compile.h
+	for i in $(SUBDIRS) ; do \
 	    ( echo $$i ; cd $$i ; $(MAKE) $(MFLAGS) clean ); \
 	done