summaryrefslogtreecommitdiff
path: root/audio/gmp3info/patches/patch-aa
blob: 3404798d0f1a7e88606fc03bd58f48da1eee7c4a (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
$NetBSD: patch-aa,v 1.4 2007/08/31 10:32:49 drochner Exp $

--- Makefile.orig	2006-11-10 01:14:11.000000000 +0100
+++ Makefile
@@ -28,9 +28,8 @@
 # bindir = where binaries get installed (default = /usr/local/bin)
 # mandir = where the manual page gets installed (default = /usr/local/man/man1)
 
-prefix=/usr/local
-bindir=${prefix}/bin
-mandir = $(prefix)/man/man1
+bindir=$(PREFIX)/bin
+mandir = $(PREFIX)/man/man1
 
 # No changes necessary below this line
 
@@ -43,9 +42,9 @@ RM = /bin/rm
 INSTALL = /usr/bin/install -c
 STRIP = strip
 
-LIBS = -lncurses
-CC = gcc
-CFLAGS = -g -O2 -Wall
+LIBS = -L$(LOCALBASE)/lib -Wl,-R$(LOCALBASE)/lib -lncurses
+#CC = gcc
+#CFLAGS = -g -O2 -Wall
 
 all: mp3info gmp3info doc
 
@@ -69,13 +68,11 @@ distclean: clean
 	$(RM) -f mp3info.txt
 
 install-mp3info: mp3info
-	$(STRIP) mp3info
-	$(INSTALL) mp3info $(bindir)/mp3info
-	$(INSTALL) mp3info.1 $(mandir)/mp3info.1
+	$(BSD_INSTALL_PROGRAM) mp3info $(bindir)/mp3info
+	$(BSD_INSTALL_DATA) mp3info.1 $(mandir)/mp3info.1
 
 install-gmp3info: gmp3info
-	$(STRIP) gmp3info
-	$(INSTALL) gmp3info $(bindir)/gmp3info
+	$(BSD_INSTALL_PROGRAM) gmp3info $(bindir)/gmp3info
 
 install: install-mp3info install-gmp3info