openbsd-ports/audio/mpegaudio/patches/patch-aa

27 lines
946 B
Plaintext
Raw Normal View History

--- Makefile.orig Tue Jan 4 20:47:50 1994
+++ Makefile Mon Nov 29 09:14:40 1999
@@ -1,10 +1,18 @@
-ALL : musicin musicout
+CFLAGS += -DPREFIX=\"${PREFIX}\"
-CFLAGS = -O2
-LDFLAGS=
+all: musicin musicout
musicin: musicin.o common.o encode.o subs.o psy.o tonal.o
- cc $(LDFLAGS) -o musicin musicin.o common.o encode.o subs.o psy.o tonal.o -lm
+ $(CC) $(CFLAGS) -o musicin musicin.o common.o encode.o subs.o psy.o tonal.o -lm
musicout: musicout.o common.o decode.o subs.o
- cc $(LDFLAGS) musicout.o common.o decode.o subs.o -o musicout -lm
+ $(CC) $(CFLAGS) -o musicout musicout.o common.o decode.o subs.o -lm
+
+clean:
+ rm -f *.core *.o musicin musicout
+
+install:
+ mkdir -m 0755 -p ${PREFIX}/lib/mpegaudio/tables
+ install -c -m 0755 -o root -g bin musicin ${PREFIX}/bin/mpeg_musicin
+ install -c -m 0755 -o root -g bin musicout ${PREFIX}/bin/mpeg_musicout
+ install -c -m 0644 -o bin -g bin tables/* ${PREFIX}/lib/mpegaudio/tables