summaryrefslogtreecommitdiff
path: root/archivers/lbrate/patches/patch-aa
blob: 95b2c6ba9fd418a08d2259254456c0137643cca3 (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
$NetBSD: patch-aa,v 1.5 2012/01/29 08:26:32 sbd Exp $

--- Makefile.orig	2001-08-30 16:03:17.000000000 +0000
+++ Makefile
@@ -1,7 +1,7 @@
 # Makefile - makefile for lbrate
 
 CC=gcc
-CFLAGS=-O2 -Wall
+#CFLAGS=-O2 -Wall
 
 # Set BINDIR to directory for binary,
 # MANDIR to directory for man page.
@@ -9,7 +9,7 @@ CFLAGS=-O2 -Wall
 #
 PREFIX=/usr/local
 BINDIR=$(PREFIX)/bin
-MANDIR=$(PREFIX)/man/man1
+MANDIR=$(PREFIX)/$(PKGMANDIR)/man1
 
 # You shouldn't need to edit below this line.
 #--------------------------------------------------------
@@ -19,14 +19,14 @@ OBJ=main.o readrle.o readhuff.o readlzw.
 all: lbrate
 
 lbrate: $(OBJ)
-	$(CC) $(CFLAGS) -o lbrate $(OBJ)
+	$(CC) $(CFLAGS) -o lbrate $(OBJ) $(LDFLAGS)
 
 installdirs:
-	/bin/sh ./mkinstalldirs $(BINDIR) $(MANDIR)
+	/bin/sh ./mkinstalldirs ${DESTDIR}$(BINDIR) ${DESTDIR}$(MANDIR)
 
 install: lbrate installdirs
-	install -m 755 lbrate $(BINDIR)
-	install -m 644 lbrate.1 $(MANDIR)
+	$(BSD_INSTALL_PROGRAM) lbrate ${DESTDIR}$(BINDIR)
+	$(BSD_INSTALL_MAN) lbrate.1 ${DESTDIR}$(MANDIR)
 
 uninstall:
 	$(RM) $(BINDIR)/lbrate $(MANDIR)/lbrate.1