summaryrefslogtreecommitdiff
path: root/archivers/afio/patches/patch-aa
blob: 535f6a26061b8d48c4b853fb14e6645441956170 (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
$NetBSD: patch-aa,v 1.3 2020/11/25 14:59:24 ryoon Exp $

--- Makefile.orig	2018-11-30 14:25:04.000000000 +0000
+++ Makefile
@@ -28,7 +28,7 @@ SHELL=/bin/sh
 c	= -DHAVEMEMCMP
 ##  Define DEFFMTCMD to being how to format the media you use the most
 ##		This is the DEFault FoRMat CoManD.
-d	= -DDEFFMTCMD='"fdformat /dev/fd0H1440"'
+d	= -DDEFFMTCMD='"cdrecord dev=/dev/rcd0d -v -force blank=all"'
 ##  Define LONGZFILE if you want .Z to be tagged on the end of a 14 char
 ##	file name (or longer for BSD) in the archive when the file is compressed
 #e	= -DLONGZFILE
@@ -74,9 +74,10 @@ MW=-Wformat -Werror=format-security -Wal
 #code can be reviewed manually
 #MW=-Wtraditional -Wcast-qual -Wcast-align -Wconversion -pedantic -Wlong-long -Wimplicit -Wuninitialized -W -Wshadow -Wsign-compare -Wstrict-prototypes -Wmissing-declarations
 
-CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer -Wno-unused-result $(LARGEFILEFLAGS) $(MW)
+#CFLAGS1 = -Wall -Wstrict-prototypes -s -O2 -fomit-frame-pointer -Wno-unused-result $(LARGEFILEFLAGS) $(MW)
+CFLAGS1 = ${LARGEFILEFLAGS}
 
-CC=gcc
+#CC=gcc
 
 # also using contents of usin CPPFLAGS, CFLAGS, LDFLAGS out of environment
 # variables, if they exist
@@ -95,8 +96,8 @@ clean:
 	cd regtest; /bin/sh regtest.clean
 
 install: afio
-	cp afio /usr/local/bin
-	cp afio.1 /usr/share/man/man1
+	cp afio ${PREFIX}/bin
+	cp afio.1 ${PREFIX}/man/man1
 
 # generate default list of -E extensions from manpage
 # note: on sun, I had to change awk command below to nawk or gawk