File mp3info-0.8.5a.dif of Package mp3info
Index: Makefile
===================================================================
--- Makefile.orig
+++ Makefile
@@ -27,11 +27,14 @@
# bindir = where binaries get installed (default = /usr/local/bin)
# mandir = where the manual page gets installed (default = /usr/local/man/man1)
-prefix=/usr/local
+prefix=/usr
bindir=${prefix}/bin
mandir = $(prefix)/man/man1
+xbindir=/usr/X11R6/bin
+mandir = $(prefix)/share/man/man1
+DESTDIR=
# No changes necessary below this line
PROG = mp3info
@@ -41,17 +44,21 @@ XSRC = gmp3info.c
XOBJ = mp3tech.o
RM = /bin/rm
INSTALL = /usr/bin/install -c
STRIP = strip
-
+MKDIR = mkdir -p
LIBS = -lncurses
CC = gcc
-CFLAGS = -g -O2 -Wall
+RPM_OPT_FLAGS = -g -O2 -Wall
+CFLAGS =$(RPM_OPT_FLAGS)
all: mp3info gmp3info doc
doc: mp3info.txt
+.c.o:
+ $(CC) $(CFLAGS) -o $@ -c $^
+
mp3info: $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBS)
gmp3info: $(XSRC) $(XOBJ)
@@ -68,15 +75,18 @@ dist: clean doc
distclean: clean
$(RM) -f mp3info.txt
install-mp3info: mp3info
- $(STRIP) mp3info
- $(INSTALL) mp3info $(bindir)/mp3info
- $(INSTALL) mp3info.1 $(mandir)/mp3info.1
+ #$(STRIP) mp3info
+ $(MKDIR) ${DESTDIR}$(bindir)
+ $(INSTALL) mp3info ${DESTDIR}$(bindir)/mp3info
+ $(MKDIR) ${DESTDIR}$(mandir)/
+ $(INSTALL) mp3info.1 ${DESTDIR}$(mandir)/mp3info.1
install-gmp3info: gmp3info
- $(STRIP) gmp3info
- $(INSTALL) gmp3info $(bindir)/gmp3info
+ #$(STRIP) gmp3info
+ $(MKDIR) ${DESTDIR}$(xbindir)
+ $(INSTALL) gmp3info ${DESTDIR}$(xbindir)/gmp3info
install: install-mp3info install-gmp3info