summaryrefslogtreecommitdiff
path: root/graphics/netpbm/files/patch-bc
blob: a44c39fea28d0c24dab593360e3fca071d3d9a90 (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
78
79
80
81
82
83
84
--- Makefile.config.orig	Sat Mar 25 02:39:40 2000
+++ Makefile.config	Sat Apr  1 12:00:00 2000
@@ -29,12 +29,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 "cp".  But via this
 # variable, you can use something else, for example a script that
@@ -42,11 +42,11 @@
 # systems which use man pages in the "cat" format.
 
 #MANCP = $(SRCDIR)/mantocat
-MANCP =	cp
+MANCP =	${BSD_INSTALL_MAN}
 
 SHELL =	/bin/sh
-MAKE = make
-INSTALL = install
+MAKE ?= make
+INSTALL ?= install
 AR= ar
 RANLIB=	ranlib
 
@@ -54,7 +54,7 @@
 # C compiler options
 
 #CFLAGS = -O2 -std1 $(CDEBUG)
-CFLAGS = -pedantic -O2 -Wall -Wno-uninitialized $(CDEBUG)
+CFLAGS ?= -pedantic -O2 -Wall -Wno-uninitialized $(CDEBUG)
   
 # linker options.  Eunice users may want to use -noshare so that
 # the executables can run standalone.
@@ -81,8 +81,10 @@
 
 #TIFFINC_DIR = /usr/local1/DEC/include
 #TIFFLIB_DIR = /usr/local1/DEC/lib
-TIFFHDR_DIR = $(SRCDIR)/libtiff
-TIFFLIB_DIR = $(SRCDIR)/libtiff
+#TIFFHDR_DIR = $(SRCDIR)/libtiff
+#TIFFLIB_DIR = $(SRCDIR)/libtiff
+TIFFINC_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
@@ -104,16 +106,16 @@
 #JPEGHDR_DIR = /usr/local1/DEC/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
 
 
 #PNGLIB_DIR = /usr/local1/DEC/lib
 #PNGHDR_DIR = /usr/local1/DEC/include
 #PNGLIB_DIR = NONE
 #PNGHDR_DIR = NONE
-PNGLIB_DIR = /lib
-PNGHDR_DIR = /usr/include/png
+PNGLIB_DIR = ${LOCALBASE}/lib
+PNGHDR_DIR = ${LOCALBASE}/include
 
 
 # The following variables are used only by 'make install' (and the
@@ -124,7 +126,7 @@
 # you're spreading Netpbm across your system, use "/".
 
 #INSTALL_PREFIX = /usr/local1/DEC/packages/netpbm
-INSTALL_PREFIX = /usr/local/netpbm
+INSTALL_PREFIX = ${PREFIX}
 
 # Specify the directory where you want the executables.
 # If you need scripts and binaries to be in different directories, you