aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/netpbm/files/patch-bc
blob: 2daf66ab170b1d6c99c575931e0da3a13e507544 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
--- Makefile.config.orig	Sat May  6 17:47:58 2000
+++ Makefile.config	Mon May  8 00:00:00 2000
@@ -34,12 +34,12 @@
 # The C compiler (including macro preprocessor)
 #CC =		cc
 #CC =		gcc
-CC =		gcc -fpcc-struct-return
+CC ?=		gcc -fpcc-struct-return
 
 # The linker.
 #LD = ld
 #LD = cc
-LD = gcc 
+LD = ${CC}
 
 # Normally the man pages are installed using "install".  But via this
 # variable, you can use something else, for example a script that
@@ -47,7 +47,7 @@
 # systems which use man pages in the "cat" format.
 
 #MANCP = $(SRCDIR)/mantocat
-MANCP =	$(INSTALL) -m$(INSTALL_PERM_MAN)
+MANCP =	${BSD_INSTALL_MAN}
 
 # MAKE is set automatically by Make to what was used to invoke Make.
 SHELL =	/bin/sh
@@ -60,7 +60,7 @@
 
 # On DEC Tru64 4.0F (at least), you need -DLONG_32 for ppmtompeg.
 #CFLAGS = -O2 -std1 DLONG_32 $(CDEBUG)
-CFLAGS = -pedantic -O2 -Wall -Wno-uninitialized $(CDEBUG)
+CFLAGS += $(CDEBUG)
 
 # EXE is a suffix that the linker puts on any executable it generates.
 # In cygwin, this is .exe and most program deal with its existence without
@@ -96,7 +96,7 @@
 # On older systems, you have to make shared libraries out of position 
 # independent code, so you need -fpic here.  SunOS requires this.
 #CFLAG_SHLIB = -fpic
-CFLAG_SHLIB = 
+CFLAGS_SHLIB = -fPIC -DPIC
 
 # The netpbm package contains a version of the Tiff library,
 # libtiff.  If you want to use your own, fill in the appropriate paths
@@ -114,8 +114,8 @@
 # OSF, Tru64:
 #TIFFHDR_DIR = /usr/local1/DEC/include
 #TIFFLIB_DIR = /usr/local1/DEC/lib
-TIFFHDR_DIR = $(SRCDIR)/libtiff
-TIFFLIB_DIR = $(SRCDIR)/libtiff
+TIFFHDR_DIR = ${LOCALBASE}/include
+TIFFLIB_DIR = ${LOCALBASE}/lib
 
 # Put the location of your JPEG library here.
 # If you want to build the jpeg converters or tiff
@@ -139,8 +139,8 @@
 #JPEGHDR_DIR = /usr/local/include
 #JPEGLIB_DIR = NONE
 #JPEGHDR_DIR = NONE
-JPEGLIB_DIR = /usr/lib/jpeg
-JPEGHDR_DIR = /usr/include/jpeg
+JPEGLIB_DIR = ${LOCALBASE}/lib
+JPEGHDR_DIR = ${LOCALBASE}/include
 
 
 # Put the location of your PNG library here.  If you want to build the
@@ -161,8 +161,8 @@
 # No PNG:
 #PNGLIB_DIR = NONE
 #PNGHDR_DIR = NONE
-PNGLIB_DIR = /lib
-PNGHDR_DIR = /usr/include/png
+PNGLIB_DIR = ${LOCALBASE}/lib
+PNGHDR_DIR = ${LOCALBASE}/include
 
 
 # And the Utah Raster Toolkit (aka URT aka RLE) library: