summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/xmms-musepack/files/xmms-musepack-0.99-bad-makefile.patch')
-rw-r--r--media-plugins/xmms-musepack/files/xmms-musepack-0.99-bad-makefile.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/media-plugins/xmms-musepack/files/xmms-musepack-0.99-bad-makefile.patch b/media-plugins/xmms-musepack/files/xmms-musepack-0.99-bad-makefile.patch
new file mode 100644
index 000000000000..a563d71b928d
--- /dev/null
+++ b/media-plugins/xmms-musepack/files/xmms-musepack-0.99-bad-makefile.patch
@@ -0,0 +1,43 @@
+--- Makefile.orig 2004-04-22 01:49:59.000000000 -0700
++++ Makefile 2004-04-22 01:51:18.000000000 -0700
+@@ -1,6 +1,6 @@
+ CC = gcc
+ VERSION = 0.99
+-OPTIONS = -Wall -shared -O3 -march=pentium --fast-math -DPOSIX -D_REENTRANT -DREENTRANT -I.. -DMPP_ENCODER
++OPTIONS = -Wall -shared $(CFLAGS) -DPOSIX -D_REENTRANT -DREENTRANT -I.. -DMPP_ENCODER
+
+
+ SOURCE = in_mpc.c bitstream.c huffsv46.c huffsv7.c requant.c synth_filter.c mpc_dec.c equalizer.c equal.c tags.c
+@@ -13,25 +13,25 @@
+
+ install-test: all
+ ln -f -s \
+- `pwd`/xmms-musepack-`echo $(VERSION)`.so
+- ~/.xmms/Plugins/xmms-musepack-`echo $(VERSION)`.so
++ `pwd`/xmms-musepack-$(VERSION).so
++ ~/.xmms/Plugins/xmms-musepack-$(VERSION).so
+
+
+ install: all
+ install -g root -o root -m 755 \
+- ./xmms-musepack-`echo $(VERSION)`.so \
+- `xmms-config --input-plugin-dir`/xmms-musepack-`echo $(VERSION)`.so
++ ./xmms-musepack-$(VERSION).so \
++ `xmms-config --input-plugin-dir`/xmms-musepack-$(VERSION).so
+
+
+ xmms-musepack-$(VERSION).so: $(SOURCE) $(HEADER) $(EQUAL) Makefile
+ @echo
+ @echo
+- $(CC) -s -DVERSION=\"$(VERSION)\" $(OPTIONS) `xmms-config --cflags --libs` `gtk-config --cflags --libs` -o xmms-musepack-`echo $(VERSION)`.so $(SOURCE) 2>&1 | grep -v '/usr/'
++ $(CC) -s -DVERSION=\"$(VERSION)\" $(OPTIONS) `xmms-config --cflags --libs` `gtk-config --cflags --libs` -o xmms-musepack-$(VERSION).so $(SOURCE) 2>&1 | grep -v '/usr/'
+
+
+ clean:
+- rm -f *.o xmms-musepack-`echo $(VERSION)`.so
++ rm -f *.o xmms-musepack-$(VERSION).so
+
+
+ uninstall:
+- rm -f `xmms-config --input-plugin-dir`/xmms-musepack-`echo $(VERSION)`.so
++ rm -f `xmms-config --input-plugin-dir`/xmms-musepack-$(VERSION).so