$NetBSD: patch-aa,v 1.7 2013/10/14 13:47:31 roy 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)/$(PKGMANDIR)/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 -lcurses
+#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 ${DESTDIR}$(bindir)/mp3info
+	$(BSD_INSTALL_DATA) mp3info.1 ${DESTDIR}$(mandir)/mp3info.1
 
 install-gmp3info: gmp3info
-	$(STRIP) gmp3info
-	$(INSTALL) gmp3info $(bindir)/gmp3info
+	$(BSD_INSTALL_PROGRAM) gmp3info ${DESTDIR}$(bindir)/gmp3info
 
 install: install-mp3info install-gmp3info
 
