summaryrefslogtreecommitdiff
path: root/print/pnm2ppa/patches/patch-aa
blob: 4a53b1fd452434a7b5da88709c5898740dffa59b (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
$NetBSD: patch-aa,v 1.1.1.1 2001/04/28 03:10:59 kei Exp $

--- Makefile.orig	Fri Nov  3 03:33:08 2000
+++ Makefile	Fri Apr 27 17:00:51 2001
@@ -2,16 +2,17 @@
 # Makefile for pnm2ppa
 #
 
-INSTALLDIR=/usr/local/bin
-CONFDIR=/etc
-MANDIR=/usr/local/man/man1
+INSTALLDIR=${PREFIX}/bin
+CONFDIR=${PREFIX}/etc
+MANDIR=${PREFIX}/man/man1
 
-CC=gcc
-INSTALL=install
+#CC=gcc
+#INSTALL=install
 
 # production build
-CFLAGS=-Wall -pedantic -O2 -g -DNDEBUG 
-LDFLAGS=-lm
+CPPFLAGS=-I${PREFIX}/include
+CFLAGS=-Wall -pedantic -O2 -g -DNDEBUG
+LDFLAGS=-lm #-L${PREFIX}/lib -R${PREFIX}/lib
 OBJS = pnm2ppa.o syslog.o ppa.o image.o dither.o cutswath.o hash_ink.o gamma.o
 SRC =  pnm2ppa.c syslog.c ppa.c image.c dither.c cutswath.c hash_ink.c gamma.c
 
@@ -89,23 +90,23 @@
 
 
 install: pnm2ppa calibrate_ppa 
-	$(INSTALL) -m 755 pnm2ppa $(INSTALLDIR)
-	$(INSTALLD) $(MANDIR)
-	$(INSTALL) -m 644 docs/en/pnm2ppa.1 $(MANDIR)
+	${INSTALL_PROGRAM} -m 755 pnm2ppa $(INSTALLDIR)
+	${INSTALL_MAN} -m 644 docs/en/pnm2ppa.1 $(MANDIR)
 # development only - allows root to edit
-	$(INSTALL) -m 644 pnm2ppa.conf $(CONFDIR)
+	${INSTALL_DATA} -m 644 pnm2ppa.conf $(CONFDIR)/pnm2ppa.conf.default
 # calibration tool
-	$(INSTALL) -m 755 calibrate_ppa $(INSTALLDIR) 
+	${INSTALL_PROGRAM} -m 755 calibrate_ppa $(INSTALLDIR)
 # final production - much tighter
-#	$(INSTALL) -m 444 pnm2ppa.conf $(CONFDIR)
-	@@echo 
-	@@echo Now, edit /etc/pnm2ppa.conf to choose your printer
+#	${INSTALL_DATA} -m 444 pnm2ppa.conf $(CONFDIR)/pnm2ppa.conf.default
+	@${ECHO}
+	@${ECHO} Now, copy ${CONFDIR}/pnm2ppa.conf.default to /etc/pnm2ppa.conf
+	@${ECHO} and edit to choose your printer
 
 uninstall: 
 	rm -f $(INSTALLDIR)/pnm2ppa
 	rm -f $(INSTALLDIR)/calibrate_ppa
 	rm -f $(MANDIR)/pnm2ppa.1
-	rm -f $(CONFDIR)/pnm2ppa.conf
+	rm -f $(CONFDIR)/pnm2ppa.conf.default
 
 pnm2ppa: $(OBJS) 
 	$(CC) $(LDFLAGS) $(CFLAGS) -o pnm2ppa $(OBJS)